/* =============================================
   Wydaho Properties — Main Stylesheet
   Colors: Navy #1a2733, Rust #d1432a, Sand #c8a86b
   ============================================= */

/* Force Leaflet map panes below modals/overlays */
.leaflet-pane, .leaflet-top, .leaflet-bottom { z-index: 10 !important; }
.leaflet-container { z-index: 1 !important; }

:root {
  --navy: #1a2733;
  --navy-light: #243444;
  --rust: #d1432a;
  --rust-hover: #b8371f;
  --sand: #c8a86b;
  --white: #ffffff;
  --gray-50: #f8f9fa;
  --gray-100: #f1f3f5;
  --gray-200: #e9ecef;
  --gray-300: #dee2e6;
  --gray-400: #ced4da;
  --gray-500: #adb5bd;
  --gray-600: #868e96;
  --gray-700: #495057;
  --gray-800: #343a40;
  --gray-900: #212529;
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Bebas Neue', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-ui: 'Montserrat', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --max-width: 1280px;
  --nav-height: 72px;
  --utility-height: 40px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-main);
  color: var(--gray-800);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--rust); text-decoration: none; }
a:hover { color: var(--rust-hover); }

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

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

/* =============================================
   Utility Bar (top dark bar)
   ============================================= */

.utility-bar {
  background: var(--navy);
  color: var(--white);
  font-size: 13px;
  height: var(--utility-height);
  display: flex;
  align-items: center;
}

.utility-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.utility-bar a {
  color: var(--white);
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-size: 11px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
}

.utility-bar a:hover { color: var(--sand); }

.utility-left, .utility-right { display: flex; align-items: center; gap: 4px; }

/* =============================================
   Main Navigation
   ============================================= */

.main-nav {
  background: var(--white);
  height: var(--nav-height);
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
}

.main-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.nav-left, .nav-right { display: flex; align-items: center; gap: 32px; }

.nav-logo { display: flex; align-items: center; }
.nav-logo img { height: 48px; }

.nav-link {
  font-family: var(--font-ui);
  color: var(--gray-800);
  font-weight: 600;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
}
.nav-link:hover, .nav-link.active {
  color: var(--navy);
  border-bottom-color: var(--rust);
}

.btn-book {
  background: var(--rust);
  color: var(--white) !important;
  padding: 10px 24px;
  border-radius: 6px;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 0.2s;
  border: none;
  cursor: pointer;
}
.btn-book:hover { background: var(--rust-hover); color: var(--white) !important; }

.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-hamburger svg { width: 24px; height: 24px; }

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--white);
  z-index: 200;
  padding: 80px 24px calc(40px + env(safe-area-inset-bottom));
  flex-direction: column;
  gap: 24px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-size: 18px;
  font-weight: 600;
  color: var(--gray-800);
  padding: 12px 0;
  border-bottom: 1px solid var(--gray-200);
}
.mobile-close {
  position: absolute;
  top: 20px; right: 20px;
  background: none; border: none;
  font-size: 28px; cursor: pointer;
}

/* =============================================
   Hero Section
   ============================================= */

.hero {
  position: relative;
  height: 70vh;
  min-height: 500px;
  max-height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-size: cover;
  background-position: center;
  background-color: var(--navy);
}

.hero-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(26, 39, 51, 0.45);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  padding: 0 24px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: 64px;
  font-weight: 400;
  margin-bottom: 16px;
  line-height: 1.0;
  letter-spacing: 0.005em;
  text-transform: uppercase;
}

.hero p {
  font-family: var(--font-ui);
  font-size: 18px;
  font-weight: 500;
  opacity: 0.9;
  margin-bottom: 32px;
}

/* Page hero (smaller, for interior pages) */
.page-hero {
  height: 300px;
  min-height: 250px;
  max-height: 350px;
}
.page-hero h1 {
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 400;
  line-height: 1.0;
  letter-spacing: 0.005em;
  text-transform: uppercase;
}

/* =============================================
   Search Bar
   ============================================= */

.search-bar {
  background: var(--white);
  border-radius: 12px;
  padding: 8px 8px 8px 12px;
  display: flex;
  align-items: stretch;
  gap: 0;
  box-shadow: 0 4px 24px rgba(0,0,0,0.15);
  max-width: 760px;
  margin: 0 auto;
}

.search-field {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  padding: 8px 14px;
  border-right: 1px solid var(--gray-200);
  min-width: 0;
  position: relative;
}
.search-field:last-of-type { border-right: none; }

.search-field input[type="date"],
.search-field input[type="number"] {
  border: none;
  outline: none;
  font-size: 14px;
  width: 100%;
  color: var(--gray-800);
  background: transparent;
  padding: 0;
  font-family: inherit;
}

.search-field > label {
  font-size: 10px;
  font-weight: 700;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.guests-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: transparent;
  border: none;
  padding: 0;
  font-size: 14px;
  color: var(--gray-800);
  cursor: pointer;
  font-family: inherit;
  width: 100%;
  text-align: left;
}
.guests-toggle svg {
  color: var(--gray-500);
  transition: transform 0.2s;
  flex-shrink: 0;
}
.search-field.open .guests-toggle svg { transform: rotate(180deg); }

.guests-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 280px;
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  padding: 8px 16px;
  z-index: 20;
}
.search-field.open .guests-dropdown { display: block; }

.guests-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--gray-100);
  gap: 16px;
}
.guests-row:last-child { border-bottom: none; }
.guests-row-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-800);
}
.guests-row-sub {
  font-size: 12px;
  color: var(--gray-500);
}

.stepper {
  display: flex;
  align-items: center;
  gap: 10px;
}
.stepper-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--gray-300);
  background: var(--white);
  color: var(--gray-700);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.15s, color 0.15s;
}
.stepper-btn:hover { border-color: var(--gray-700); color: var(--gray-900); }
.stepper input {
  width: 24px;
  text-align: center;
  border: none;
  outline: none;
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-800);
  background: transparent;
  -moz-appearance: textfield;
}
.stepper input::-webkit-outer-spin-button,
.stepper input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.guests-toggle-switch {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 22px;
  flex-shrink: 0;
}
.guests-toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.guests-toggle-slider {
  position: absolute;
  inset: 0;
  background: var(--gray-300);
  border-radius: 22px;
  cursor: pointer;
  transition: background 0.2s;
}
.guests-toggle-slider::before {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  left: 2px;
  top: 2px;
  background: var(--white);
  border-radius: 50%;
  transition: transform 0.2s;
}
.guests-toggle-switch input:checked + .guests-toggle-slider { background: var(--rust); }
.guests-toggle-switch input:checked + .guests-toggle-slider::before { transform: translateX(18px); }

.btn-search {
  background: var(--rust);
  color: var(--white);
  padding: 0 28px;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  text-transform: uppercase;
  transition: background 0.2s;
  letter-spacing: 0.04em;
  margin-left: 8px;
  white-space: nowrap;
}
.btn-search:hover { background: var(--rust-hover); }

/* =============================================
   Filters button + modal (shared)
   ============================================= */
.filters-btn {
  padding: 8px 14px; border: 1px solid var(--gray-300); border-radius: 8px;
  font-size: 14px; background: var(--white); cursor: pointer;
  display: flex; align-items: center; gap: 8px; position: relative;
  color: var(--gray-800); font-weight: 500;
}
.filters-btn:hover { background: var(--gray-50); }
.filters-btn-badge {
  background: var(--rust); color: white; border-radius: 10px;
  padding: 1px 7px; font-size: 11px; font-weight: 700; min-width: 18px;
  text-align: center; display: none;
}
.filters-btn-badge.active { display: inline-block; }

/* Hero variant: sits under the search bar on a dark photo */
.hero-filters-btn {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 16px; padding: 10px 20px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.6);
  color: white; font-size: 14px; font-weight: 600;
  border-radius: 999px; cursor: pointer;
  backdrop-filter: blur(4px);
  transition: background 0.2s;
}
.hero-filters-btn:hover { background: rgba(255, 255, 255, 0.3); }
.hero-filters-btn .filters-btn-badge {
  background: var(--rust); color: white;
}

.filters-modal-backdrop {
  display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5);
  z-index: 9500; align-items: flex-start; justify-content: center;
  overflow-y: auto; padding: 40px 20px;
}
.filters-modal-backdrop.open { display: flex; }
.filters-modal {
  background: white; border-radius: 12px; width: 100%; max-width: 780px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3); overflow: hidden;
  display: flex; flex-direction: column; max-height: calc(100vh - 80px);
}
.filters-modal-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 28px; border-bottom: 1px solid var(--gray-200);
}
.filters-modal-title {
  display: flex; align-items: center; gap: 10px;
  font-size: 20px; color: var(--navy); font-weight: 600;
}
.filters-modal-close {
  background: none; border: none; font-size: 24px; cursor: pointer;
  color: var(--gray-500); line-height: 1;
}
.filters-modal-body { padding: 24px 28px; overflow-y: auto; flex: 1; }
.filters-modal-footer {
  padding: 16px 28px; border-top: 1px solid var(--gray-200);
  display: flex; justify-content: space-between; align-items: center;
  background: white;
}
.filters-reset {
  background: none; border: none; font-size: 13px; font-weight: 600;
  color: var(--gray-600); cursor: pointer; text-decoration: underline;
}
.filters-apply {
  background: var(--rust); color: white; border: none;
  padding: 12px 36px; border-radius: 8px; font-size: 14px;
  font-weight: 700; letter-spacing: 0.5px; cursor: pointer; text-transform: uppercase;
}
.filters-apply:hover { background: var(--rust-hover); }

.fm-row { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; padding-bottom: 24px; }
.fm-section { padding: 20px 0; border-top: 1px solid var(--gray-200); }
.fm-section:first-of-type { border-top: none; padding-top: 0; }
.fm-label { font-size: 13px; color: var(--gray-600); margin-bottom: 10px; font-weight: 500; }
.fm-search-input {
  width: 100%; padding: 10px 14px 10px 40px; border: 1px solid var(--gray-300);
  border-radius: 6px; font-size: 14px;
  background: white url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23868e96' stroke-width='2'><circle cx='11' cy='11' r='7'/><path d='M21 21l-4.3-4.3'/></svg>") 12px center no-repeat;
}

.fm-price-range { padding: 8px 4px 0; }
.fm-range-slider {
  position: relative; height: 4px; background: var(--gray-200);
  border-radius: 2px; margin: 18px 8px;
}
.fm-range-track {
  position: absolute; height: 100%; background: var(--navy); border-radius: 2px;
}
.fm-range-slider input[type="range"] {
  position: absolute; width: 100%; height: 4px;
  background: none; pointer-events: none; -webkit-appearance: none;
  appearance: none; top: 0; left: 0; margin: 0;
}
.fm-range-slider input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 20px; height: 20px;
  background: var(--navy); border-radius: 50%; cursor: pointer;
  pointer-events: auto; border: 2px solid white; box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}
.fm-range-slider input[type="range"]::-moz-range-thumb {
  width: 20px; height: 20px; background: var(--navy); border-radius: 50%;
  cursor: pointer; pointer-events: auto; border: 2px solid white;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

.fm-stepper { display: flex; align-items: center; gap: 16px; margin-top: 6px; }
.fm-stepper-btn {
  width: 32px; height: 32px; border-radius: 6px; background: var(--navy);
  color: white; border: none; font-size: 18px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.fm-stepper-btn:hover { background: var(--navy-light); }
.fm-stepper-btn:disabled { opacity: 0.3; cursor: not-allowed; }
.fm-stepper-value { min-width: 20px; text-align: center; font-weight: 700; color: var(--navy); font-size: 16px; }

.fm-checkbox-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; }
.fm-check {
  display: flex; align-items: center; gap: 10px; font-size: 15px;
  color: var(--navy); cursor: pointer; padding: 4px 0;
}
.fm-check input[type="checkbox"] {
  width: 18px; height: 18px; accent-color: var(--navy); cursor: pointer;
}
.fm-check-featured { font-weight: 700; padding-bottom: 12px; border-bottom: 1px solid var(--gray-200); margin-bottom: 12px; }

.fm-more-toggle {
  display: block; text-align: center; color: var(--navy); font-size: 14px;
  font-weight: 600; text-decoration: underline; background: none; border: none;
  cursor: pointer; margin: 16px auto 0; padding: 8px;
}
.fm-more-amenities { display: none; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--gray-200); }
.fm-more-amenities.open { display: block; }

@media (max-width: 600px) {
  .fm-row { grid-template-columns: 1fr; gap: 20px; }
  .fm-checkbox-grid { grid-template-columns: 1fr; }
}

/* =============================================
   Sections
   ============================================= */

.section { padding: 64px 0; }
.section-alt { background: var(--gray-50); }

.section-header {
  text-align: center;
  margin-bottom: 48px;
}
.section-header h2 {
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 400;
  color: var(--navy);
  margin-bottom: 12px;
  line-height: 1.05;
  letter-spacing: 0.005em;
  text-transform: uppercase;
}
.section-header p {
  font-size: 16px;
  color: var(--gray-600);
  max-width: 600px;
  margin: 0 auto;
}

/* =============================================
   Property Cards
   ============================================= */

.property-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}

.property-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}
.property-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.card-image {
  position: relative;
  height: 220px;
  overflow: hidden;
}
.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-carousel {
  position: relative;
  height: 100%;
}
.card-carousel img {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.5s;
}
.card-carousel img.active { opacity: 1; }

.carousel-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
}
.carousel-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
}
.carousel-dot.active { background: var(--white); }

/* Carousel arrow buttons */
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  border: none;
  color: var(--navy);
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s, background 0.2s;
  z-index: 2;
  padding: 0;
  line-height: 1;
}
.carousel-arrow:hover { background: var(--white); }
.carousel-prev { left: 8px; }
.carousel-next { right: 8px; }
.property-card:hover .carousel-arrow,
.card-carousel:hover .carousel-arrow { opacity: 1; }

.card-body { padding: 16px; }

.card-eyebrow {
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.16em;
  color: var(--rust);
  text-transform: uppercase;
  margin-bottom: 4px;
  line-height: 1;
}

.card-title {
  font-family: var(--font-ui);
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
  line-height: 1.3;
}

.card-stats {
  display: flex;
  gap: 16px;
  font-size: 13px;
  color: var(--gray-600);
  margin-bottom: 12px;
}
.card-stats span { display: flex; align-items: center; gap: 4px; }

.card-price {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--navy);
  line-height: 1;
}
.card-price small {
  font-family: var(--font-main);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--gray-500);
  margin-left: 2px;
}

/* =============================================
   Service Cards (homepage)
   ============================================= */

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.service-card {
  position: relative;
  height: 200px;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 24px;
  color: var(--white);
  text-decoration: none;
}
.service-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(transparent 40%, rgba(0,0,0,0.7));
}
.service-card h3 {
  position: relative;
  z-index: 1;
  font-family: var(--font-ui);
  font-size: 22px;
  font-weight: 700;
}
.service-card img {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* =============================================
   Reviews Carousel
   ============================================= */

.reviews-carousel {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 16px;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.reviews-carousel::-webkit-scrollbar { display: none; }

.review-card {
  min-width: 340px;
  max-width: 400px;
  background: var(--white);
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  scroll-snap-align: start;
  flex-shrink: 0;
}

.review-stars { color: #f7c948; font-size: 16px; margin-bottom: 12px; }

.review-text {
  font-size: 14px;
  color: var(--gray-700);
  line-height: 1.6;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.review-author {
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
}
.review-source {
  font-size: 12px;
  color: var(--gray-500);
}
.review-property {
  font-size: 12px;
  color: var(--rust);
  margin-top: 4px;
}

/* =============================================
   Area Guides (Boarding Pass)
   ============================================= */

.guides-layout {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 24px;
  align-items: start;
}
.guides-map-wrap {
  position: sticky;
  top: calc(var(--nav-height) + 16px);
  height: calc(100vh - var(--nav-height) - 32px);
}
#guides-map {
  width: 100%;
  height: 100%;
  border-radius: 12px;
}
.guides-panel { min-width: 0; }
.guides-panel #guide-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.guides-panel #guides-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
@media (max-width: 900px) {
  .guides-layout { grid-template-columns: 1fr; }
  .guides-map-wrap {
    position: static;
    height: 360px;
  }
}

.guide-card {
  position: relative;
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s, box-shadow 0.15s;
}
.guide-card:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,0.12); }

.guide-card.is-featured {
  background: #fff8f3;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08), 0 0 0 2px var(--rust);
}

.guide-featured-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 1;
  background: var(--rust);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

.guide-emoji {
  display: inline-block;
  margin-right: 4px;
  font-size: 1.1em;
  line-height: 1;
}

/* Category filter tabs (replaces the generic .btn-primary/.btn-outline pair). */
.guide-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border: 1px solid var(--gray-200);
  background: var(--white);
  color: var(--gray-700);
  font-size: 13px;
  font-weight: 500;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.guide-tab:hover { border-color: var(--gray-400); }
.guide-tab.active {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

.guide-card-image {
  width: 100%;
  height: 180px;
  background: var(--gray-100);
  background-size: cover;
  background-position: center;
}

.guide-card-body { padding: 18px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }

.guide-card h4 { margin: 0; font-size: 17px; color: var(--navy); }

.guide-category {
  display: inline-block;
  align-self: flex-start;
  background: var(--gray-100);
  color: var(--gray-700);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 3px 10px;
  border-radius: 999px;
}

.guide-card p {
  margin: 0;
  font-size: 14px;
  color: var(--gray-700);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.guide-host-note {
  background: #fff8f0;
  border-left: 3px solid var(--rust);
  padding: 10px 12px;
  font-size: 13px;
  color: var(--gray-700);
  font-style: italic;
  border-radius: 4px;
}
.guide-host-note::before {
  content: "Host tip — ";
  font-style: normal;
  font-weight: 600;
  color: var(--rust);
}

.guide-info {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--gray-100);
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13px;
  color: var(--gray-700);
}

.guide-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.guide-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--gray-200);
  background: var(--gray-50);
  color: var(--gray-800);
  font-size: 13px;
  font-family: inherit;
  text-decoration: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.guide-chip:hover { background: var(--white); border-color: var(--gray-300); text-decoration: none; }
.guide-chip svg { width: 14px; height: 14px; color: var(--rust); flex-shrink: 0; }
.guide-chip.is-static { cursor: default; }
.guide-chip.is-static:hover { background: var(--gray-50); border-color: var(--gray-200); }

.guide-hours { display: flex; flex-direction: column; gap: 8px; }
.guide-hours-toggle { width: 100%; justify-content: flex-start; }
.guide-hours-badge {
  margin-left: auto;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 3px 8px;
  border-radius: 999px;
  text-transform: uppercase;
}
.guide-hours-badge.is-open { background: #e1f3e6; color: #1d7a3a; }
.guide-hours-badge.is-closed { background: var(--gray-200); color: var(--gray-700); }
.guide-chip.is-static .guide-hours-badge { margin-left: auto; }
.guide-hours-caret { color: var(--gray-500); transition: transform 0.15s; }
.guide-hours[data-expanded="true"] .guide-hours-caret { transform: rotate(180deg); }
.guide-hours-rest {
  display: none;
  padding: 8px 12px;
  font-size: 13px;
  color: var(--gray-700);
  border-left: 2px solid var(--gray-200);
  margin-left: 6px;
}
.guide-hours-rest > div + div { margin-top: 4px; }
.guide-hours-rest .is-today { font-weight: 600; color: var(--gray-900); }
.guide-hours[data-expanded="true"] .guide-hours-rest { display: block; }

.guide-cta {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--rust);
  color: #fff;
  padding: 9px 16px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s;
}
.guide-cta:hover { background: var(--rust-hover); color: #fff; text-decoration: none; }

.guide-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.guide-tag {
  font-size: 11px;
  background: var(--gray-100);
  color: var(--gray-600);
  padding: 2px 8px;
  border-radius: 999px;
}

/* =============================================
   Footer
   ============================================= */

.site-footer {
  background: var(--navy);
  color: var(--gray-400);
  padding: 48px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}

.footer-brand img { height: 40px; margin-bottom: 16px; }

.footer-brand p {
  font-size: 13px;
  line-height: 1.6;
}

.footer-heading {
  font-size: 14px;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}

.footer-links { list-style: none; }
.footer-links li { margin-bottom: 8px; }
.footer-links a {
  color: var(--gray-400);
  font-size: 14px;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--white); }

.footer-contact { font-size: 14px; line-height: 1.8; }
.footer-contact a { color: var(--gray-400); }
.footer-contact a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid var(--navy-light);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}

.footer-social { display: flex; gap: 16px; }
.footer-social a { color: var(--gray-400); font-size: 18px; }
.footer-social a:hover { color: var(--white); }

/* =============================================
   Buttons
   ============================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  text-decoration: none;
}

.btn-primary { background: var(--rust); color: var(--white); }
.btn-primary:hover { background: var(--rust-hover); color: var(--white); }

.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
}
.btn-outline:hover { background: var(--navy); color: var(--white); }

.btn-sm { padding: 8px 16px; font-size: 13px; }

.view-all-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--rust);
  font-weight: 600;
  font-size: 14px;
}

/* =============================================
   Forms
   ============================================= */

.form-group { margin-bottom: 20px; }

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--gray-300);
  border-radius: 8px;
  font-size: 15px;
  color: var(--gray-800);
  transition: border-color 0.2s;
  font-family: var(--font-main);
}
.form-control:focus {
  outline: none;
  border-color: var(--rust);
  box-shadow: 0 0 0 3px rgba(209, 67, 42, 0.1);
}

textarea.form-control { resize: vertical; min-height: 120px; }

select.form-control { appearance: auto; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* =============================================
   FAQ Accordion
   ============================================= */

.faq-category { margin-bottom: 32px; }
.faq-category h3 {
  font-family: var(--font-ui);
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--rust);
}

.faq-item {
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  margin-bottom: 8px;
  overflow: hidden;
}

.faq-question {
  padding: 16px 20px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--white);
  transition: background 0.2s;
}
.faq-question:hover { background: var(--gray-50); }

.faq-answer {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s, padding 0.3s;
  color: var(--gray-700);
  font-size: 15px;
  line-height: 1.7;
}
.faq-item.open .faq-answer {
  max-height: 500px;
  padding: 0 20px 16px;
}

/* =============================================
   Toast Notifications
   ============================================= */

.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  padding: 14px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--white);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  animation: toastIn 0.3s ease;
  max-width: 400px;
}
.toast-success { background: #3ecf8e; }
.toast-error { background: var(--rust); }
.toast-info { background: var(--navy); }

@keyframes toastIn {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}

/* =============================================
   Responsive
   ============================================= */

@media (max-width: 768px) {
  .utility-bar { display: none; }
  .nav-left a:not(.nav-logo), .nav-right .nav-link, .nav-right .btn-book { display: none; }
  .nav-hamburger { display: block; }
  .hero { height: auto; min-height: 0; max-height: none; padding: 48px 0; }
  .hero h1 { font-size: 32px; }
  .hero p { font-size: 16px; margin-bottom: 24px; }
  .page-hero { padding: 0; }
  .page-hero h1 { font-size: 38px; }
  .section-header h2 { font-size: 32px; }
  .search-bar { flex-direction: column; padding: 8px; }
  .search-field { border-right: none; border-bottom: 1px solid var(--gray-200); width: 100%; }
  .search-field:last-of-type { border-bottom: none; }
  .guests-dropdown { left: 0; right: 0; min-width: 0; }
  .btn-search { margin-left: 0; margin-top: 8px; padding: 14px; width: 100%; }
  .property-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .section { padding: 40px 0; }
  .page-hero { height: 200px; min-height: 180px; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; }
  .hero h1 { font-size: 28px; }
  .page-hero h1 { font-size: 30px; }
}
