/* ====================================================================
   FINCAS PANACA — Luxury Vacation Rentals & Management Design System
   Color Palette: Quindío Coffee & Nature (Terracotta, Emerald, Espresso)
   ==================================================================== */

:root {
  --primary: #2d6a4f;
  --primary-hover: #1b4332;
  --primary-light: #d8f3dc;
  --accent: #c86432;
  --accent-hover: #a74e22;
  --accent-light: #fde8df;
  --bg-main: #fbfaf8;
  --bg-card: #ffffff;
  --bg-subtle: #f4f0eb;
  --text-main: #1f2421;
  --text-muted: #526059;
  --text-light: #8b9991;
  --border: #e6e0d8;
  --border-focus: #2d6a4f;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 6px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 16px 36px rgba(0, 0, 0, 0.12);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-full: 9999px;
  --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

html {
  overflow-x: hidden;
  width: 100%;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  width: 100%;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select, textarea {
  font-family: inherit;
}

/* NAVBAR */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  padding: 0.85rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--primary);
  letter-spacing: -0.02em;
}

.nav-logo {
  height: 44px;
  width: auto;
  object-fit: contain;
}

.nav-brand .brand-badge {
  background: var(--accent);
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-item {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.15s ease;
  cursor: pointer;
}

.nav-item:hover, .nav-item.active {
  color: var(--primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-links-desktop {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.nav-btn-anfitrion {
  background: white;
  color: var(--primary);
  padding: 7px 14px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1.5px solid var(--primary);
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  transition: all 0.15s ease;
}

.nav-btn-anfitrion:hover {
  background: #f0fdf4;
}

.nav-btn-publicar {
  background: rgba(45, 106, 79, 0.1);
  color: var(--primary);
  padding: 7px 14px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(45, 106, 79, 0.25);
  transition: all 0.15s ease;
}

.nav-btn-publicar:hover {
  background: rgba(45, 106, 79, 0.18);
}

/* Mobile Hamburger Toggle */
.nav-mobile-toggle {
  display: none;
  background: white;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px;
  cursor: pointer;
  flex-direction: column;
  gap: 4px;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  box-shadow: var(--shadow-sm);
  transition: background 0.15s ease;
}

.nav-mobile-toggle:hover {
  background: var(--bg-subtle);
}

.hamburger-bar {
  width: 18px;
  height: 2px;
  background-color: var(--text-main);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-mobile-toggle.active .hamburger-bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-mobile-toggle.active .hamburger-bar:nth-child(2) {
  opacity: 0;
}

.nav-mobile-toggle.active .hamburger-bar:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Mobile Collapsible Menu Drawer */
.nav-mobile-menu {
  display: none;
  position: sticky;
  top: 57px;
  left: 0;
  right: 0;
  width: 100%;
  background: white;
  border-bottom: 2px solid var(--border);
  box-shadow: 0 10px 25px rgba(0,0,0,0.12);
  z-index: 99;
  padding: 0.75rem 1rem 1.25rem;
  flex-direction: column;
  gap: 0.5rem;
}

.nav-mobile-menu.open {
  display: flex;
  animation: fadeInDown 0.2s ease-out;
}

.nav-mobile-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid var(--border);
  text-decoration: none;
  color: var(--text-main);
  transition: all 0.15s ease;
}

.nav-mobile-item:hover, .nav-mobile-item:active {
  background: #f0fdf4;
  border-color: var(--primary);
}

.nav-mobile-item.whatsapp {
  background: #ecfdf5;
  border-color: #a7f3d0;
}

.mobile-item-icon {
  font-size: 1.35rem;
}

.mobile-item-text {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.mobile-item-text strong {
  font-size: 0.95rem;
  color: var(--text-main);
}

.mobile-item-text small {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 1px;
}

.mobile-arrow {
  font-weight: 800;
  color: var(--primary);
  font-size: 1.1rem;
}

.currency-toggle {
  display: flex;
  background: var(--bg-subtle);
  padding: 3px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
}

.currency-btn {
  border: none;
  background: transparent;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--text-muted);
  transition: all 0.2s ease;
}

.currency-btn.active {
  background: white;
  color: var(--primary);
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

.btn-admin {
  background: var(--primary);
  color: white;
  padding: 0.55rem 1.15rem;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: background 0.2s ease;
}

.btn-admin:hover {
  background: var(--primary-hover);
}

/* HERO SECTION - Exact High-Res Colombian Coffee Mountain & Hacienda */
.hero {
  position: relative;
  background: linear-gradient(180deg, rgba(19, 42, 32, 0.40) 0%, rgba(27, 67, 50, 0.60) 100%),
              url('/images/hero_bg.jpg') center/cover no-repeat;
  color: white;
  padding: 5rem 2rem 6.5rem;
  text-align: center;
  border-bottom-left-radius: 28px;
  border-bottom-right-radius: 28px;
}

.hero-content {
  max-width: 820px;
  margin: 0 auto;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.hero-title {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1rem;
  letter-spacing: -0.03em;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2.25rem;
  font-weight: 400;
}

/* SEARCH BAR FLOATING CARD */
.search-container {
  max-width: 780px;
  margin: -2.8rem auto 2.5rem;
  padding: 0 1.5rem;
  position: relative;
  z-index: 20;
}

.search-box {
  background: white;
  border-radius: var(--radius-full);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
  display: flex;
  align-items: center;
  padding: 0.45rem 0.5rem 0.45rem 1rem;
  border: 1px solid var(--border);
}

.search-field {
  flex: 1;
  padding: 0.5rem 1.1rem;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  text-align: left;
  min-width: 0;
}

.search-field:last-of-type {
  border-right: none;
}

.search-field label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  margin-bottom: 2px;
}

.search-field input, .search-field select {
  border: none;
  background: transparent;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
  outline: none;
  width: 100%;
}

.btn-search {
  background: var(--accent);
  color: white;
  border: none;
  border-radius: var(--radius-full);
  padding: 0.8rem 1.45rem;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
  margin-left: 0.5rem;
  margin-right: 0.25rem;
  box-shadow: 0 4px 14px rgba(194, 65, 12, 0.25);
}

.btn-search:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(194, 65, 12, 0.35);
}

.btn-filter-trigger {
  background: #f8fafc;
  color: var(--text-main);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 0.85rem 1.25rem;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-filter-trigger:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.filter-count-badge {
  background: var(--primary);
  color: white;
  font-size: 0.72rem;
  font-weight: 800;
  border-radius: 9999px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* AIRBNB-STYLE GUEST POPOVER */
.guest-field-wrapper {
  flex: 1;
  position: relative;
  cursor: pointer;
  user-select: none;
  min-width: 0;
}

.guest-input-trigger {
  display: flex;
  align-items: center;
  width: 100%;
  cursor: pointer;
}

.guest-summary-text {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.guest-popover-card {
  position: absolute;
  top: calc(100% + 14px);
  right: 0;
  min-width: 320px;
  background: white;
  border-radius: var(--radius-md);
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.18), 0 4px 12px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--border);
  padding: 1.5rem;
  z-index: 150;
  display: none;
  cursor: default;
}

.guest-popover-card.show {
  display: block;
  animation: fadeInDown 0.18s ease-out;
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.guest-stepper-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border);
}

.guest-stepper-row:last-of-type {
  border-bottom: none;
}

.guest-stepper-label {
  display: flex;
  flex-direction: column;
}

.stepper-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-main);
}

.stepper-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.stepper-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.stepper-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid #d1d5db;
  background: white;
  color: #374151;
  font-size: 1.15rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  line-height: 1;
  padding: 0;
}

.stepper-btn:hover:not(:disabled) {
  border-color: var(--primary);
  color: var(--primary);
  background: #f0fdf4;
}

.stepper-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  border-color: #e5e7eb;
}

.stepper-count {
  font-weight: 700;
  font-size: 0.95rem;
  min-width: 22px;
  text-align: center;
  color: var(--text-main);
}

.guest-popover-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border);
}

.btn-guest-clear {
  background: none;
  border: none;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
  color: var(--text-main);
  padding: 0;
}

.btn-guest-done {
  background: var(--primary);
  color: white;
  border: none;
  border-radius: var(--radius-full);
  padding: 0.45rem 1.25rem;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease;
}

.btn-guest-done:hover {
  background: var(--primary-hover);
}

/* MARKETPLACE TOOLBAR & VIEW TOGGLE PILLS */
.marketplace-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.results-meta {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.results-count {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.01em;
}

.results-submeta {
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 500;
}

.toolbar-actions-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn-toolbar-filter {
  background: white;
  color: var(--text-main);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 7px 18px;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: all 0.18s ease;
}

.btn-toolbar-filter:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: #f0fdf4;
}

.view-toggle-pills {
  display: inline-flex;
  background: #f1f5f9;
  padding: 4px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  gap: 4px;
}

.view-pill {
  border: none;
  background: transparent;
  padding: 7px 18px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.18s ease;
}

.view-pill:hover {
  color: var(--text-main);
}

.view-pill.active {
  background: white;
  color: var(--text-main);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

/* MAP VIEW CONTAINER */
.map-view-container {
  width: 100%;
  height: 560px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  margin-bottom: 2.5rem;
  position: relative;
  background: #f8fafc;
}

#fincas-map {
  width: 100%;
  height: 100%;
  z-index: 10;
}

/* CUSTOM LEAFLET MARKERS & BADGES */
.map-price-badge {
  background: white;
  color: #1b4332;
  padding: 6px 12px;
  border-radius: 9999px;
  font-weight: 800;
  font-size: 0.85rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
  border: 1.5px solid #2d6a4f;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
  text-align: center;
  letter-spacing: -0.01em;
}

.map-price-badge:hover, .map-price-badge.selected {
  background: #1b4332;
  color: white;
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(27, 67, 50, 0.45);
}

.map-landmark-badge {
  background: #d97706;
  color: white;
  padding: 6px 14px;
  border-radius: 9999px;
  font-weight: 800;
  font-size: 0.82rem;
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.4);
  border: 2px solid white;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* Leaflet Popup customization */
.leaflet-popup-content-wrapper {
  border-radius: 16px !important;
  padding: 0 !important;
  overflow: hidden !important;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2) !important;
}

.leaflet-popup-content {
  margin: 0 !important;
  width: 260px !important;
  line-height: 1.4 !important;
}

.map-popup-card {
  font-family: inherit;
}

.map-popup-thumb {
  width: 100%;
  height: 135px;
  object-fit: cover;
  display: block;
}

.map-popup-body {
  padding: 12px 14px;
}

.map-popup-dist {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 2px;
}

.map-popup-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: #1e293b;
  line-height: 1.25;
  margin-bottom: 6px;
}

.map-popup-price {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 10px;
}

.btn-popup-view {
  display: block;
  width: 100%;
  background: var(--primary);
  color: white;
  text-align: center;
  padding: 8px 0;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.82rem;
  border: none;
  cursor: pointer;
  transition: background 0.15s ease;
}

.btn-popup-view:hover {
  background: var(--primary-hover);
}

/* COMPREHENSIVE AIRBNB-STYLE FILTER MODAL */
.modal-filters-dialog {
  max-width: 620px;
  max-height: 88vh;
  border-radius: 24px;
  overflow: hidden;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.modal-filters-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
  position: relative;
}

.modal-filters-body {
  padding: 1.5rem;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.filter-section {
  display: flex;
  flex-direction: column;
}

.filter-section-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 2px;
}

.filter-section-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 0.85rem;
}

.price-range-inputs {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.price-input-box {
  flex: 1;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.6rem 1rem;
  position: relative;
  background: #fafafa;
}

.price-input-box label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  display: block;
  margin-bottom: 2px;
}

.price-input-box input {
  width: 80%;
  border: none;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
  outline: none;
  background: transparent;
}

.price-input-box .currency-tag {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--text-muted);
}

.price-range-sep {
  font-weight: 700;
  color: var(--text-muted);
}

.chip-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.filter-choice-chip {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 0.5rem 1.1rem;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--text-main);
  transition: all 0.15s ease;
}

.filter-choice-chip:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.filter-choice-chip.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.amenities-filter-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.amenity-checkbox-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.15s ease;
  background: white;
  user-select: none;
}

.amenity-checkbox-card:hover {
  border-color: var(--primary);
  background: #f0fdf4;
}

.amenity-checkbox-card input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
  cursor: pointer;
}

.amenity-checkbox-card .cb-icon {
  font-size: 1.15rem;
}

.amenity-checkbox-card .cb-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-main);
}

.modal-filters-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border);
  background: white;
}

.btn-filter-clear {
  background: none;
  border: none;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
  color: var(--text-main);
}

.btn-filter-apply {
  background: var(--primary);
  color: white;
  border: none;
  border-radius: var(--radius-full);
  padding: 0.8rem 2.2rem;
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
}

.btn-filter-apply:hover {
  background: var(--primary-hover);
  transform: scale(1.02);
}

/* QUICK FILTER PILLS */
.filters-bar {
  max-width: 1200px;
  margin: 1.25rem auto 2rem;
  display: flex;
  gap: 0.55rem;
  overflow-x: auto;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE / Edge */
  padding: 4px 2px 8px;
  -webkit-overflow-scrolling: touch;
}

.filters-bar::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.filter-chip {
  flex-shrink: 0;
  background: white;
  border: 1px solid var(--border);
  padding: 0.45rem 1.05rem;
  border-radius: var(--radius-full);
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  white-space: nowrap;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s ease;
}

.filter-chip:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.filter-chip.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* MAIN CONTENT CONTAINER */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 2rem 4rem;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 1.5rem;
}

.section-title {
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-main);
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-top: 3px;
}

/* FINCA CARDS GRID */
.fincas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
}

.finca-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

.finca-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.card-media {
  position: relative;
  height: 230px;
  overflow: hidden;
  background: #eee;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.finca-card:hover .card-media img {
  transform: scale(1.05);
}

.badge-distance {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.badge-panaca {
  background: var(--accent);
  color: white;
}

.card-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.4rem;
}

.card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.3;
}

.card-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
}

.card-tagline {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-specs {
  display: flex;
  gap: 1rem;
  padding: 0.65rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 0.9rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
}

.spec-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

.card-amenities-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 1rem;
}

.amenity-tag {
  background: var(--bg-subtle);
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
}

.card-footer {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.5rem;
}

.card-price {
  display: flex;
  flex-direction: column;
}

.price-val {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
}

.price-unit {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.btn-card-action {
  background: var(--primary);
  color: white;
  padding: 0.55rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background 0.15s ease;
}

.btn-card-action:hover {
  background: var(--primary-hover);
}

/* ====================================================================
   FINCA DETAIL MODAL / DRAWER
   ==================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: white;
  width: 100%;
  max-width: 1080px;
  max-height: 92vh;
  border-radius: var(--radius-lg);
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  position: relative;
  display: flex;
  flex-direction: column;
}

.modal-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.2rem;
  font-weight: bold;
  z-index: 10;
  box-shadow: var(--shadow-sm);
}

.detail-gallery {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 8px;
  height: 380px;
  padding: 8px;
}

.gallery-main {
  height: 100%;
  border-radius: 14px 0 0 14px;
  overflow: hidden;
}

.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-thumbs {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 8px;
  height: 100%;
}

.gallery-thumb-item {
  overflow: hidden;
  border-radius: 0 14px 14px 0;
}

.gallery-thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-layout {
  display: grid;
  grid-template-columns: 1.8fr 1.2fr;
  gap: 2.5rem;
  padding: 2rem;
}

.detail-info {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.detail-header h1 {
  font-size: 1.85rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 0.4rem;
}

.detail-location {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.detail-distance-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--primary-light);
  color: var(--primary-hover);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.82rem;
}

/* ROOMS BREAKDOWN (CORE FEATURE) */
.rooms-section h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.rooms-carousel {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

.room-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-subtle);
  display: flex;
  flex-direction: column;
}

.room-card-img {
  height: 110px;
  background: #ccc;
}

.room-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.room-card-body {
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.room-card-title {
  font-weight: 700;
  font-size: 0.92rem;
}

.room-card-type {
  font-size: 0.75rem;
  color: var(--primary);
  font-weight: 600;
}

.room-card-layout {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.room-card-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  background: white;
  width: fit-content;
  border: 1px solid var(--border);
}

/* AMENITIES DETAIL GRID */
.amenities-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.amenity-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.9rem;
  color: var(--text-main);
  font-weight: 500;
}

.amenity-icon {
  width: 22px;
  height: 22px;
  color: var(--primary);
}

/* BOOKING WIDGET */
.booking-widget-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 90px;
  height: fit-content;
}

.widget-price-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.widget-price {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-main);
}

.widget-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-group-boxed {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.form-group-boxed .input-row {
  display: flex;
  border-bottom: 1px solid var(--border);
}

.form-group-boxed .input-row:last-child {
  border-bottom: none;
}

.form-cell {
  flex: 1;
  padding: 8px 12px;
  border-right: 1px solid var(--border);
}

.form-cell:last-child {
  border-right: none;
}

.form-cell label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  display: block;
}

.form-cell input, .form-cell select {
  width: 100%;
  border: none;
  font-size: 0.9rem;
  font-weight: 600;
  outline: none;
}

.price-summary {
  background: var(--bg-subtle);
  border-radius: var(--radius-sm);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.price-line {
  display: flex;
  justify-content: space-between;
  color: var(--text-muted);
}

.price-line.total {
  border-top: 1px solid var(--border);
  padding-top: 0.5rem;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-main);
}

.btn-book-instant {
  background: var(--accent);
  color: white;
  border: none;
  border-radius: var(--radius-full);
  padding: 1rem;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  transition: background 0.15s ease;
  width: 100%;
}

.btn-book-instant:hover {
  background: var(--accent-hover);
}

.btn-pay-tab {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: all 0.15s ease;
}

.btn-pay-tab:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.btn-pay-tab.active {
  background: #f0fdf4;
  border-color: #22c55e;
  color: #15803d;
  box-shadow: 0 0 0 1px #22c55e;
}

.payment-fields-wrapper {
  min-height: 165px;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  box-sizing: border-box;
}

.pay-method-panel {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
}

.pay-input {
  width: 100%;
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 0.85rem;
  background: white;
  box-sizing: border-box;
  color: var(--text-main);
  transition: border-color 0.15s ease;
}

.pay-input:focus {
  outline: none;
  border-color: #22c55e;
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.15);
}

/* ====================================================================
   ADMIN DASHBOARD STYLES (admin.html)
   ==================================================================== */
.admin-layout {
  display: flex;
  min-height: 100vh;
}

.admin-sidebar {
  width: 250px;
  flex-shrink: 0;
  background: #132a20;
  color: white;
  padding: 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: sticky;
  top: 0;
  height: 100vh;
}

.admin-brand-row {
  display: block;
}

.admin-public-link-mobile {
  display: none;
}

.admin-sidebar-category-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  color: #74c69d;
  font-weight: 700;
  padding: 0 0.5rem;
  letter-spacing: 0.05em;
}

.admin-brand {
  font-size: 1.25rem;
  font-weight: 800;
  color: white;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0 0.5rem;
}

.admin-brand span {
  color: #74c69d;
}

.admin-menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.admin-menu-item {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.92rem;
  color: #b7e4c7;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  transition: all 0.15s ease;
}

.admin-menu-item:hover, .admin-menu-item.active {
  background: rgba(255, 255, 255, 0.12);
  color: white;
}

.menu-badge {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1.2;
}

.badge-blue {
  background: #2563eb;
  color: white;
}

.badge-red {
  background: #e11d48;
  color: white;
}

.admin-sidebar-footer {
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1rem;
}

.admin-main {
  flex: 1;
  min-width: 0;
  padding: 1.5rem 2rem;
  overflow-y: auto;
  overflow-x: hidden;
  background: #f8f7f4;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.stat-card {
  background: white;
  padding: 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.stat-card .label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
}

.stat-card .value {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-main);
  margin-top: 4px;
}

/* FORM GRIDS & UTILITIES */
.form-grid-2-1 {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.25rem;
}

.form-grid-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1.25rem;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.scrape-preview-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 1rem;
  align-items: start;
  margin-bottom: 1rem;
}

.pending-finca-card {
  background: #fafaf9;
  border: 1.5px solid #e7e5e4;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.25rem;
  display: grid;
  grid-template-columns: 200px 1fr 180px;
  gap: 1.5rem;
  align-items: flex-start;
  box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

.mobile-table-hint {
  display: none;
}

/* DYNAMIC ROOM BUILDER (CORE ASK) */
.room-builder-box {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  margin-top: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.room-builder-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.room-builder-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.room-builder-row {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.5fr 0.8fr 0.8fr auto;
  gap: 0.75rem;
  align-items: center;
}

.btn-remove-room {
  background: #fee2e2;
  color: #b91c1c;
  border: none;
  border-radius: var(--radius-sm);
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-weight: bold;
}

.btn-add-room {
  background: var(--primary-light);
  color: var(--primary-hover);
  border: 1px dashed var(--primary);
  border-radius: var(--radius-sm);
  padding: 0.65rem 1.25rem;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.btn-add-room:hover {
  background: #c3eed0;
}

/* DATA TABLE */
.data-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.data-table th {
  background: var(--bg-subtle);
  padding: 1rem;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.data-table td {
  padding: 1rem;
  font-size: 0.92rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.data-table tr:last-child td {
  border-bottom: none;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
}

.status-badge.confirmed {
  background: #dcfce7;
  color: #15803d;
}

.status-badge.pending {
  background: #fef9c3;
  color: #a16207;
}

.status-badge.cancelled {
  background: #fee2e2;
  color: #b91c1c;
}

/* RESPONSIVENESS */
@media (max-width: 900px) {
  .search-box {
    flex-direction: column;
    border-radius: var(--radius-md);
  }
  .search-field {
    border-right: none;
    border-bottom: 1px solid var(--border);
    width: 100%;
  }
  .btn-search {
    width: 100%;
    justify-content: center;
    border-radius: var(--radius-sm);
    margin: 0.5rem 0 0 0;
  }
  .hero-title {
    font-size: 2.2rem;
  }
  .detail-layout {
    grid-template-columns: 1fr;
  }
  
  /* ADMIN DASHBOARD MOBILE OVERHAUL */
  .admin-layout {
    flex-direction: column;
    min-height: 100vh;
    width: 100%;
    overflow-x: hidden;
  }
  .admin-sidebar {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    height: auto;
    padding: 0.6rem 0.85rem;
    gap: 0.4rem;
    background: #132a20;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
  }
  .admin-brand-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }
  .admin-brand {
    font-size: 1.05rem;
    padding: 0;
  }
  .admin-public-link-mobile {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.76rem;
    font-weight: 700;
    color: #b7e4c7;
    background: rgba(255, 255, 255, 0.12);
    padding: 4px 10px;
    border-radius: 999px;
    text-decoration: none;
    border: 1px solid rgba(183, 228, 199, 0.25);
  }
  .admin-sidebar-category-label {
    display: none;
  }
  .admin-menu {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 0.4rem;
    padding: 3px 0 2px 0;
    margin: 0;
    scrollbar-width: none;
    width: 100%;
  }
  .admin-menu::-webkit-scrollbar {
    display: none;
  }
  .admin-menu-item {
    flex-shrink: 0;
    white-space: nowrap;
    padding: 6px 11px;
    font-size: 0.8rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    gap: 5px;
    justify-content: center;
  }
  .admin-menu-item.active {
    background: #2d6a4f;
    color: white;
    font-weight: 700;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
  }
  .admin-sidebar-footer {
    display: none;
  }
  
  .admin-main {
    padding: 0.85rem 0.75rem !important;
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
  }
  .admin-header {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    margin-bottom: 1rem;
  }
  .admin-header h1 {
    font-size: 1.35rem !important;
  }
  .admin-header p {
    font-size: 0.82rem !important;
  }
  .admin-header .btn-admin {
    width: 100% !important;
    justify-content: center !important;
    padding: 10px 16px !important;
    font-size: 0.88rem !important;
    border-radius: 8px !important;
    box-sizing: border-box;
  }
  
  .admin-stats-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 0.5rem !important;
    margin-bottom: 1.25rem !important;
  }
  .stat-card {
    padding: 0.75rem !important;
    border-radius: 8px !important;
  }
  .stat-card .label {
    font-size: 0.68rem !important;
  }
  .stat-card .value {
    font-size: 1.25rem !important;
    margin-top: 2px !important;
  }
  .stat-card:last-child {
    grid-column: span 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem !important;
  }
  .stat-card:last-child .value {
    margin-top: 0 !important;
    font-size: 1.2rem !important;
  }
  
  .admin-card-container {
    padding: 1rem !important;
    border-radius: 10px !important;
  }
  
  .mobile-table-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 0.74rem;
    font-weight: 700;
    color: #047857;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    padding: 6px 10px;
    border-radius: 6px;
    margin-bottom: 0.75rem;
    text-align: center;
  }
  
  .form-grid-2-1, .form-grid-3, .form-grid-2 {
    grid-template-columns: 1fr !important;
    gap: 0.75rem !important;
  }
  
  .room-builder-row {
    grid-template-columns: 1fr !important;
    gap: 0.6rem !important;
  }
  
  .scrape-preview-grid {
    grid-template-columns: 1fr !important;
    gap: 0.75rem !important;
  }
  
  .pending-finca-card {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
    padding: 1rem !important;
  }
  
  #amenities-checkbox-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  
  .form-submit-actions {
    flex-direction: column !important;
    width: 100% !important;
  }
  .form-submit-actions button {
    width: 100% !important;
  }
}

/* ====================================================================
   DESTINATIONS, TESTIMONIALS & HOST CTA
   ==================================================================== */
.destinations-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.destination-card {
  position: relative;
  height: 320px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer;
}

.destination-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.destination-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.destination-card:hover img {
  transform: scale(1.08);
}

.destination-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(19,42,32,0.85) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.25rem;
  color: white;
}

.destination-tag {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #74c69d;
  letter-spacing: 0.05em;
  margin-bottom: 2px;
}

.destination-title {
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.2;
}

.destination-desc {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.85);
  margin-top: 4px;
}

/* TESTIMONIALS */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.testimonial-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.testimonial-quote {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.25rem;
  font-style: italic;
  flex: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-top: 1px solid var(--border);
  padding-top: 1rem;
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}

.testimonial-name {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-main);
}

.testimonial-meta {
  font-size: 0.75rem;
  color: var(--text-light);
}

/* HOST CTA BANNER */
.host-cta-banner {
  background: linear-gradient(135deg, #132a20 0%, #2d6a4f 100%);
  border-radius: var(--radius-lg);
  padding: 3.5rem 3rem;
  color: white;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 2.5rem;
  align-items: center;
  margin-top: 4rem;
  box-shadow: var(--shadow-md);
}

/* ====================================================================
   RESPONSIVE LAYOUT CLASSES & REUSABLE BLOCKS
   ==================================================================== */
.story-card-box {
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 3rem;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 3rem;
  align-items: center;
  box-shadow: var(--shadow-sm);
}

.story-stats-row {
  display: flex;
  gap: 2rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.privilege-card-box {
  background: linear-gradient(135deg, #f7fbf8 0%, #edf7f0 100%);
  border-radius: var(--radius-lg);
  border: 1.5px solid rgba(45, 106, 79, 0.2);
  padding: 2.5rem 2.25rem;
  box-shadow: var(--shadow-sm);
}

.driving-times-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.85rem;
}

/* FOOTER RESPONSIVE STYLES */
.site-footer {
  background: white;
  border-top: 1px solid var(--border);
  padding: 3.5rem 2rem 2.5rem;
  margin-top: 4rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 3rem;
  flex-wrap: wrap;
}

.footer-brand-col {
  flex: 1;
  min-width: 260px;
}

.footer-brand-title {
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.footer-brand-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 400px;
}

.footer-links-grid {
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
}

.footer-col h4 {
  font-weight: 700;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
  color: var(--text-main);
}

.footer-col ul {
  list-style: none;
  font-size: 0.88rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.footer-col ul a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer-col ul a:hover {
  color: var(--primary);
}

.footer-highlight-link {
  color: var(--primary) !important;
  font-weight: 700;
}

.footer-copyright {
  max-width: 1200px;
  margin: 2.5rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--text-muted);
  text-align: center;
}

/* FLOATING WHATSAPP BUTTON */
.btn-whatsapp-floating {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #25D366;
  color: white;
  padding: 12px 20px;
  border-radius: 9999px;
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.4);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-whatsapp-floating:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.5);
}

/* ====================================================================
   TABLET & MOBILE BREAKPOINTS (max-width: 860px)
   ==================================================================== */
@media (max-width: 860px) {
  .navbar {
    padding: 0.55rem 0.75rem;
    width: 100%;
    max-width: 100vw;
  }
  .nav-brand {
    max-width: 52%;
  }
  .nav-logo {
    height: 30px !important;
    max-height: 30px !important;
    width: auto;
  }
  .nav-links-desktop {
    display: none !important;
  }
  .nav-mobile-toggle {
    display: flex !important;
    width: 35px;
    height: 35px;
    padding: 6px;
  }
  .nav-actions {
    gap: 0.35rem;
  }
  .currency-toggle {
    padding: 2px;
  }
  .currency-btn {
    padding: 2px 6px;
    font-size: 0.7rem;
  }
  .destinations-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }
  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .host-cta-banner {
    grid-template-columns: 1fr;
    padding: 2.25rem 1.5rem;
    gap: 2rem;
  }
  .story-card-box {
    grid-template-columns: 1fr;
    padding: 2rem 1.5rem;
    gap: 2rem;
  }
}

/* ====================================================================
   MOBILE SCREENS & SMARTPHONES (max-width: 768px)
   ==================================================================== */
@media (max-width: 768px) {
  html, body {
    overflow-x: hidden !important;
    max-width: 100vw !important;
    width: 100% !important;
  }

  .container {
    padding: 0 0.85rem 3rem;
  }

  /* HERO ON MOBILE */
  .hero {
    padding: 2.25rem 0.85rem 3.5rem;
    border-bottom-left-radius: 18px;
    border-bottom-right-radius: 18px;
    width: 100%;
    overflow: hidden;
  }

  .hero-content {
    width: 100%;
    max-width: 100%;
  }

  .hero-pill {
    font-size: 0.7rem;
    padding: 4px 10px;
    max-width: 100%;
    white-space: normal;
    text-align: center;
    line-height: 1.35;
    margin-bottom: 0.75rem;
    display: inline-block;
  }

  .hero-title {
    font-size: 1.55rem;
    line-height: 1.22;
    letter-spacing: -0.02em;
    margin-bottom: 0.65rem;
    word-break: normal;
    overflow-wrap: break-word;
  }

  .hero-subtitle {
    font-size: 0.88rem;
    line-height: 1.45;
    margin-bottom: 1.4rem;
  }

  .story-card-box {
    grid-template-columns: 1fr;
    padding: 1.5rem 1rem;
    gap: 1.5rem;
    overflow: hidden;
  }

  .story-card-box h2 {
    font-size: 1.45rem !important;
    line-height: 1.25 !important;
  }

  .privilege-card-box {
    padding: 1.5rem 1rem;
  }

  .privilege-card-box h2 {
    font-size: 1.35rem !important;
    line-height: 1.25 !important;
  }

  /* FLOATING SEARCH CARD ON MOBILE */
  .search-container {
    padding: 0 0.65rem;
    margin: -1.8rem auto 1.5rem;
    width: 100%;
  }

  .search-box {
    flex-direction: column;
    border-radius: 18px;
    padding: 0.85rem;
    gap: 0.65rem;
  }

  .search-field {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 0.45rem 0.25rem;
  }

  .search-field:last-of-type {
    border-bottom: none;
  }

  .btn-search {
    width: 100%;
    margin: 0.25rem 0 0 0;
    padding: 0.85rem;
    border-radius: 12px;
    font-size: 1rem;
    justify-content: center;
  }

  /* AIRBNB-STYLE GUEST POPOVER BECOMES A NATIVE MOBILE BOTTOM SHEET */
  .guest-popover-card {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    top: auto !important;
    width: 100% !important;
    max-width: 100vw !important;
    min-width: unset !important;
    border-radius: 24px 24px 0 0 !important;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.3) !important;
    padding: 1.5rem 1.25rem 2rem !important;
    z-index: 1000 !important;
    animation: slideUpMobile 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
  }

  @keyframes slideUpMobile {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
  }

  /* FINCAS GRID ON MOBILE - GUARANTEE FULL WIDTH AND NO OVERFLOW */
  .fincas-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    width: 100%;
  }

  .finca-card {
    width: 100%;
  }

  .card-media {
    height: 200px;
  }

  .card-specs {
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  /* TOOLBAR ON MOBILE */
  .marketplace-toolbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    width: 100%;
  }

  .toolbar-actions-group {
    width: 100%;
    justify-content: space-between;
  }

  /* DESTINATIONS & DRIVING TIMES ON MOBILE */
  .destinations-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .destination-card {
    height: 280px;
  }

  .driving-times-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
  }

  /* HOST CTA BANNER ON MOBILE */
  .host-cta-banner {
    padding: 1.75rem 1.25rem;
    margin-top: 3rem;
    border-radius: 18px;
  }

  .host-cta-banner h2 {
    font-size: 1.45rem !important;
  }

  .host-cta-banner .btn-search,
  .host-cta-banner a {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  /* FOOTER ON MOBILE */
  .site-footer {
    padding: 2.5rem 1.25rem 2rem;
    margin-top: 3rem;
  }

  .footer-inner {
    flex-direction: column;
    gap: 2rem;
  }

  .footer-links-grid {
    flex-direction: column;
    gap: 1.75rem;
  }

  .footer-col ul {
    gap: 0.65rem;
  }

  .footer-col ul a {
    display: inline-block;
    padding: 3px 0;
  }

  /* FLOATING WHATSAPP BUTTON ON MOBILE */
  .btn-whatsapp-floating {
    bottom: 16px;
    right: 16px;
    padding: 10px 16px;
    font-size: 0.88rem;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
  }

  /* PROPERTY DETAIL MODAL ON MOBILE */
  .modal-overlay {
    padding: 0;
    align-items: flex-end;
  }

  .modal-content {
    max-height: 94vh;
    border-radius: 20px 20px 0 0;
    width: 100%;
  }

  .detail-gallery {
    grid-template-columns: 1fr;
    height: 230px;
    padding: 0;
  }

  .gallery-main {
    border-radius: 0;
  }

  .gallery-thumbs {
    display: none;
  }

  .detail-layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 1.25rem 1rem;
  }

  .detail-header h1 {
    font-size: 1.45rem;
  }

  .rooms-carousel {
    grid-template-columns: 1fr;
  }

  .amenities-grid {
    grid-template-columns: 1fr;
  }

  .booking-widget-card {
    position: static;
    padding: 1.25rem 1rem;
    border-radius: var(--radius-sm);
  }

  /* MAP VIEW ON MOBILE */
  .map-view-container {
    height: 380px;
    border-radius: 14px;
  }

  .modal-filters-dialog {
    max-height: 94vh;
    border-radius: 16px;
    width: 100%;
  }

  .amenities-filter-grid {
    grid-template-columns: 1fr;
  }
}

/* EXTRA SMALL SCREENS (e.g. iPhone SE, 360px Android) */
@media (max-width: 400px) {
  .driving-times-grid {
    grid-template-columns: 1fr;
  }
  .story-card-box {
    padding: 1.5rem 1rem;
  }
  .privilege-card-box {
    padding: 1.5rem 1rem;
  }
}

