/* =====================================================================
   Villa Azul — "Djerba" redesign layer
   Loaded AFTER style.css. Overrides by source order + compound selectors.
   Palette: limewash white ground, Djerban door-blue accent, sand for money.
   ===================================================================== */

:root {
  --ground:      #f5f2ea;
  --surface:     #ffffff;
  --surface-2:   #efe9dc;
  --ink:         #16232a;
  --ink-soft:    #46565d;
  --muted:       #7b898f;
  --line:        #e4ddce;
  --line-strong: #d4cab4;

  --azul:        #1e6e8c;
  --azul-deep:   #124f65;
  --azul-wash:   #e6eef1;
  --turq:        #3fb0c6;
  --sand:        #c98a47;
  --sand-deep:   #a76e30;
  --star:        #dc9b32;

  --radius:      14px;
  --radius-sm:   10px;
  --radius-pill: 999px;
  --shadow-sm:   0 1px 2px rgba(22,35,42,.05), 0 6px 18px -8px rgba(22,35,42,.14);
  --shadow-lg:   0 2px 8px rgba(22,35,42,.07), 0 28px 56px -20px rgba(22,35,42,.26);

  --maxw:        1180px;
  --font-head:   "Fraunces", Georgia, "Times New Roman", serif;
  --font-body:   "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--ground);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  -webkit-tap-highlight-color: transparent;
}

img { max-width: 100%; }

.container { max-width: var(--maxw); padding: 0 24px; width: 100%; }

@media (max-width: 480px) {
  .container { padding: 0 18px; }
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  color: var(--ink);
  font-weight: 500;
  letter-spacing: -0.011em;
  text-wrap: balance;
}

a { color: var(--azul); }
a:hover { color: var(--azul-deep); }

::selection { background: var(--azul-wash); }

/* ---------- buttons ---------- */
.btn {
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: .01em;
  padding: 12px 22px;
  transition: background-color .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.btn-primary { background-color: var(--sand-deep); color: #fff; }
.btn-primary:hover { background-color: #935f27; color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn-secondary {
  background-color: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line-strong);
}
.btn-secondary:hover { background-color: var(--surface-2); }

/* ---------- header ---------- */
.header {
  background-color: rgba(245, 242, 234, .82);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  box-shadow: none;
  padding: 14px 0;
}
.header-content { gap: 24px; }

.logo {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.5rem;
  letter-spacing: -.02em;
  color: var(--ink);
}
.logo .logo-icon, .logo span { color: var(--azul); }
.logo-mark {
  width: 26px; height: 26px; margin-right: 9px; flex: 0 0 auto;
  border-radius: 8px 8px 8px 2px;
  background: linear-gradient(150deg, var(--azul) 0%, var(--turq) 100%);
  position: relative;
}
.logo-mark::after {
  content: ""; position: absolute; left: 50%; bottom: 4px; transform: translateX(-50%);
  width: 11px; height: 15px; background: var(--ground);
  border-radius: 50% 50% 0 0 / 65% 65% 0 0;
}

.nav { display: flex; align-items: center; gap: 26px; }
.nav-links li { margin-left: 26px; }
.nav-link { color: var(--ink-soft); font-weight: 500; }
.nav-link:hover, .nav-link.active { color: var(--azul); }
.nav-link.active::after { background-color: var(--azul); height: 2px; bottom: -6px; }

.header-phone {
  font-weight: 600; font-size: .92rem; color: var(--ink);
  white-space: nowrap; display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 15px; border: 1px solid var(--line-strong); border-radius: var(--radius-pill);
}
.header-phone i { color: var(--azul); font-size: .82em; }
.header-phone:hover { background: var(--azul-wash); color: var(--ink); }

.lang-switch {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-body);
  font-size: .78rem; font-weight: 600; letter-spacing: .04em;
}
.lang-switch a { color: var(--muted); text-decoration: none; }
.lang-switch a:hover { color: var(--azul); }
.lang-switch .lang-current { color: var(--ink); position: relative; }
.lang-switch .lang-current::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; background: var(--azul);
}

/* ---------- hero (full-bleed) ---------- */
.property-hero {
  background: var(--ink);
  padding: 0;
  text-align: left;
}
.hero-frame {
  position: relative;
  height: min(76vh, 640px);
  min-height: 440px;
  overflow: hidden;
}
.hero-frame .main-image-container { position: absolute; inset: 0; height: 100%; width: 100%; }
.hero-frame .main-image { width: 100%; height: 100%; object-fit: cover; }
.hero-frame::after {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  background: linear-gradient(to top, rgba(9,17,21,.74) 0%, rgba(9,17,21,.10) 46%, rgba(9,17,21,.20) 100%);
}
.hero-frame .main-image-container { cursor: zoom-in; }
.hero-caption {
  position: absolute; left: 50%; transform: translateX(-50%);
  bottom: clamp(26px, 6vh, 60px);
  width: 100%; z-index: 2; color: #fff;
  pointer-events: none;
}
.hero-eyebrow {
  font-family: var(--font-body); text-transform: uppercase;
  letter-spacing: .17em; font-size: .72rem; font-weight: 600;
  color: rgba(255,255,255,.82); margin: 0 0 12px;
}
.property-hero .property-title {
  font-family: var(--font-head); color: #fff;
  font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 500;
  line-height: 1.07; margin: 0 0 16px; max-width: 18ch;
  text-shadow: 0 2px 30px rgba(0,0,0,.28);
}
.property-hero .property-meta {
  color: rgba(255,255,255,.94); font-size: 1rem; margin: 0;
  display: flex; gap: 20px; flex-wrap: wrap;
}
.property-hero .property-meta span { margin: 0; display: inline-flex; align-items: center; gap: 8px; }
.property-hero .property-meta i { color: #fff; margin: 0; }
.property-hero .property-rating i { color: var(--star); }

.show-all-btn {
  position: absolute; right: clamp(16px, 4vw, 36px); bottom: clamp(16px, 4vw, 36px);
  z-index: 3; background: rgba(255,255,255,.94); color: var(--ink);
  padding: 11px 18px; border-radius: var(--radius-pill);
  font: 600 .9rem/1 var(--font-body); border: none; cursor: pointer;
  box-shadow: var(--shadow-sm); display: inline-flex; gap: 8px; align-items: center;
}
.show-all-btn:hover { background: #fff; transform: translateY(-1px); }

.hero-filmstrip { padding-top: 4px; }
.property-hero .thumbnail-gallery {
  display: flex; gap: 10px; height: auto; overflow-x: auto;
  padding: 16px 0 8px; grid-template-columns: none; grid-template-rows: none;
  scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent;
}
.property-hero .thumbnail-gallery img {
  flex: 0 0 auto; width: 124px; height: 84px; border-radius: var(--radius-sm);
  opacity: .7; border: 2px solid transparent;
}
.property-hero .thumbnail-gallery img:hover,
.property-hero .thumbnail-gallery img.active { opacity: 1; border-color: var(--azul); }

/* ---------- details layout ---------- */
.property-details-section { padding: 64px 0 80px; }
.details-grid { gap: 72px; }
.property-info-left { padding-right: 8px; }

.property-overview .subtitle {
  font-family: var(--font-head); font-size: 1.5rem; font-weight: 500;
  color: var(--ink); margin-bottom: 14px; letter-spacing: -.01em;
}
.property-overview .description {
  color: var(--ink-soft); line-height: 1.75; font-size: 1.02rem;
  margin-bottom: 8px; max-width: 62ch;
}

.section-heading {
  font-family: var(--font-head); font-size: 1.4rem; font-weight: 500;
  color: var(--ink); margin-bottom: 22px;
  border-bottom: 1px solid var(--line); padding-bottom: 12px;
}

/* section rhythm */
.property-amenities-section,
.property-rules-section,
.property-reviews,
.property-location-map { margin-bottom: 52px; }
.property-info-left > * + * { margin-top: 4px; }

/* ---------- amenities ---------- */
.categorized-list-summary,
.categorized-list-full { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px 36px; }
.category-block, .category-block-full {
  background: none; border: none; padding: 0; margin: 0; box-shadow: none;
}
.category-block h4, .category-block-full h4 {
  font-family: var(--font-body); font-size: .74rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em; color: var(--muted);
  margin: 14px 0 8px; border: none; padding: 0;
}
.category-block ul, .category-block-full ul { list-style: none; margin: 0; padding: 0; }
.category-block li, .category-block-full li {
  display: flex; align-items: center; gap: 11px;
  padding: 7px 0; color: var(--ink-soft); font-size: .96rem; border: none;
}
.category-block li i, .category-block-full li i {
  color: var(--azul); width: 20px; text-align: center; font-size: .95em; flex: 0 0 auto;
}
.show-more-btn, .spaces-btn {
  background: var(--surface); color: var(--ink);
  border: 1px solid var(--line-strong); border-radius: var(--radius-pill);
  padding: 11px 20px; font: 600 .9rem var(--font-body); cursor: pointer; margin-top: 18px;
}
.show-more-btn:hover, .spaces-btn:hover { background: var(--surface-2); }

/* ---------- house rules ---------- */
.property-rules-section {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 30px;
}
.rules-content { gap: 26px 40px; }
.rules-category h4 {
  font-family: var(--font-body); font-size: .96rem; font-weight: 700;
  color: var(--ink); border: none; margin-bottom: 8px;
}
.rules-category p, .rules-category li { color: var(--ink-soft); font-size: .95rem; }
.rules-category li::before { color: var(--azul); }
.security-info {
  background: var(--azul-wash); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 16px 18px;
}
.security-info h5 { color: var(--ink); font-family: var(--font-body); font-weight: 700; }

/* ---------- reviews ---------- */
.reviews-summary { margin-bottom: 22px; }
.overall-rating { color: var(--ink); font-family: var(--font-head); font-weight: 500; font-size: 1.35rem; }
.overall-rating i { color: var(--star); }
.review-count { color: var(--muted); }
.review-cards-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
.review-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 22px; box-shadow: none;
}
.reviewer-avatar {
  background: linear-gradient(150deg, var(--azul), var(--turq)); color: #fff;
  font-family: var(--font-body); font-weight: 600;
}
.reviewer-name { color: var(--ink); font-weight: 600; }
.reviewer-flag { font-size: .95em; }
.review-stars { color: var(--star); font-size: .82rem; letter-spacing: 2px; margin: -4px 0 10px; }
.review-text { color: var(--ink-soft); line-height: 1.65; font-style: normal; }
.review-date { color: var(--muted); }
.show-all-reviews-btn {
  background: var(--surface); color: var(--ink);
  border: 1px solid var(--line-strong); border-radius: var(--radius-pill);
  padding: 11px 22px; font: 600 .9rem var(--font-body); cursor: pointer; margin-top: 20px;
}
.show-all-reviews-btn:hover { background: var(--surface-2); }

/* ---------- map ---------- */
.map-description { color: var(--ink-soft); }
.map-placeholder { border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--line); }
.map-placeholder img { border-radius: 0 !important; }

/* ---------- booking card ---------- */
.booking-sidebar { top: 96px; }
.booking-summary-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 24px;
}
.price-display { align-items: baseline; margin-bottom: 4px; }
.price-display .price {
  font-family: var(--font-head); font-size: 1.7rem; font-weight: 500; color: var(--ink);
}
.price-display .per-night { color: var(--muted); }
.rating-summary { color: var(--ink-soft); margin-bottom: 18px; }
.rating-summary .stars { color: var(--star); }

.booking-form label {
  font-family: var(--font-body); font-size: .68rem; font-weight: 700;
  letter-spacing: .08em; color: var(--muted);
}
.booking-form input[type="text"],
.booking-form input[type="email"],
.booking-form input[type="tel"] {
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  padding: 11px 13px; font-family: var(--font-body); color: var(--ink); background: var(--surface);
}
.booking-form input:focus,
.booking-form input[type="text"]:focus,
.booking-form input[type="email"]:focus,
.booking-form input[type="tel"]:focus {
  outline: none; border-color: var(--azul);
  box-shadow: 0 0 0 3px var(--azul-wash);
}
.modern-form .form-input-modern:focus,
.form-input-modern:focus {
  border-color: var(--azul); box-shadow: 0 0 0 3px var(--azul-wash); outline: none;
}
.guests-dropdown-display-btn {
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  color: var(--ink); background: var(--surface);
}
.guests-dropdown-display-btn.active,
.guests-dropdown-display-btn:focus { border-color: var(--azul); box-shadow: 0 0 0 3px var(--azul-wash); }
.guests-dropdown-content {
  border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow-lg);
}
.counter-button {
  border: 1px solid var(--line-strong); color: var(--azul); background: var(--surface);
}
.counter-button:hover:not(:disabled) { border-color: var(--azul); background: var(--azul-wash); }
.guest-info-text { color: var(--muted); }
.guest-info-text #maxGuestsCapacity { color: var(--ink); }
.close-guest-dropdown-btn { background: var(--ink); border-radius: var(--radius-pill); }

.total-price-display {
  border-top: 1px solid var(--line); padding-top: 16px; margin-top: 4px;
  font-family: var(--font-head); font-weight: 500;
}
.total-price-display span:last-child { color: var(--ink); }

.check-availability-btn {
  margin-top: 18px; padding: 15px; font-size: 1rem; letter-spacing: .01em;
}

/* v1: booking + contact forms are shown but disabled ("coming soon") */
.booking-enquiry-text {
  margin: 14px 0 4px; font-size: .92rem; color: var(--ink-soft); line-height: 1.55;
}
a.check-availability-btn { display: block; text-align: center; text-decoration: none; }
.booking-call-btn {
  display: flex; align-items: center; justify-content: center; gap: 9px;
  margin-top: 10px; padding: 13px; text-decoration: none;
}
.booking-call-btn i { color: var(--azul); font-size: .85em; }

.locked-feature {
  position: relative;
  margin-top: 16px;
  max-height: 440px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  isolation: isolate;
}
.locked-feature > form {
  filter: blur(3.5px);
  opacity: .5;
  pointer-events: none;
  user-select: none;
}
.locked-feature__veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
  padding: 24px 18px;
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}
.locked-feature__badge {
  font-family: var(--font-body);
  font-size: .68rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--sand-deep);
  border: 1px solid var(--sand-deep);
  border-radius: 999px;
  padding: 5px 13px;
}
.locked-feature__veil p {
  margin: 0; font-size: .88rem; line-height: 1.55; color: var(--ink-soft); max-width: 32ch;
}
.locked-feature__veil .btn,
.locked-feature__veil .contact-action-btn { width: 100%; max-width: 280px; }
.locked-feature__veil .btn-primary,
.locked-feature__veil .btn-primary:hover { color: #fff; }
.locked-feature__veil .btn-secondary { color: var(--ink); }
.locked-feature__veil .booking-call-btn { margin-top: 0; }
.locked-feature__veil .contact-action-btn { justify-content: center; }

.booking-trust {
  margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line);
  display: grid; gap: 9px;
}
.booking-trust p {
  margin: 0; display: flex; align-items: center; gap: 10px;
  font-size: .84rem; color: var(--ink-soft);
}
.booking-trust i { color: var(--azul); width: 16px; text-align: center; flex: 0 0 auto; }

/* remove Airbnb marketplace leftover if it lingers */
.report-ad-link { display: none !important; }

/* ---------- services + contact pages ---------- */
.services-hero {
  background: var(--ink);
  padding: 76px 0;
}
.services-hero-title { font-family: var(--font-head); color: #fff; font-weight: 500; }
.services-hero-subtitle { color: rgba(255,255,255,.82); }
.services-main { background: var(--ground); }
.service-card, .modern-service-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
}
.service-icon { background: var(--azul-wash) !important; }
.service-icon i { color: var(--azul) !important; }
.service-title, .service-content h3 { font-family: var(--font-head); font-weight: 500; color: var(--ink); }
.service-price { color: var(--azul-deep); }

/* kill the purple/blue gradients throughout the services + extras UI */
.service-card::before,
.modern-service-card::before,
.additional-services-note .note-card::before,
.note-card::before {
  background: var(--azul) !important;
}
.service-icon,
.service-icon i,
.note-icon {
  background: var(--azul-wash) !important;
  color: var(--azul) !important;
  -webkit-background-clip: border-box !important;
  background-clip: border-box !important;
}
.note-icon i { color: var(--azul) !important; }
.add-service-btn,
.remove-service-btn,
.service-select-btn,
.service-select-btn.selected,
.contact-link-btn,
.phone-btn,
.tracking-link-btn,
.close-success-modal,
.additional-services-card .contact-option-btn {
  background: var(--azul) !important;
  background-image: none !important;
  color: #fff !important;
  border-radius: var(--radius-pill) !important;
}
.add-service-btn:hover,
.service-select-btn:hover,
.contact-link-btn:hover,
.tracking-link-btn:hover { background: var(--azul-deep) !important; }
.remove-service-btn,
.service-select-btn.selected { background: var(--sand-deep) !important; }
.service-price,
.service-pricing .service-price { color: var(--azul-deep) !important; background: transparent !important; }
.service-price.free { color: var(--sand-deep) !important; }
.view-services-link,
.additional-services-title,
.rules-category h4 a { color: var(--azul) !important; }
.additional-services-card,
.note-card { background: var(--surface) !important; border: 1px solid var(--line) !important; }
.services-hero { background: var(--ink) !important; background-image: none !important; }

.contact-section { background: var(--ground); }
.contact-form-side { background: var(--surface); }

/* v1: contact actions replace the contact form */
.contact-actions { display: grid; gap: 12px; margin-top: 24px; }
.contact-action-btn {
  display: flex; align-items: center; gap: 11px;
  padding: 15px 18px; border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong); background: var(--surface);
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: .96rem;
}
.contact-action-btn i { color: var(--azul); width: 18px; text-align: center; }
.contact-action-btn:hover { background: var(--azul-wash); color: var(--ink); }
.contact-action-btn.primary { background: var(--sand-deep); border-color: transparent; color: #fff; }
.contact-action-btn.primary i { color: #fff; }
.contact-action-btn.primary:hover { background: #935f27; color: #fff; }
.contact-info-side { background: var(--ink); }
.contact-form-title, .contact-info-title { font-family: var(--font-head); font-weight: 500; }
.contact-info-side .contact-info-title,
.contact-info-side .contact-info-subtitle,
.contact-info-side .contact-info-details h4 { color: #fff; }
.contact-info-side .contact-info-details p { color: rgba(255, 255, 255, .8); }
.form-input-modern {
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm); font-family: var(--font-body);
}
.form-input-modern:focus { border-color: var(--azul); box-shadow: 0 0 0 3px var(--azul-wash); outline: none; }
.submit-btn-modern {
  background: var(--sand-deep); border-radius: var(--radius-pill); font-family: var(--font-body);
}
.submit-btn-modern:hover { background: #935f27; }
.contact-info-icon { background: rgba(255,255,255,.12); }
.contact-info-icon i { color: #fff; }

/* ---------- footer ---------- */
.site-footer {
  background: var(--ink); color: rgba(255,255,255,.78);
  padding: 56px 0 28px; margin-top: 72px;
  font-size: .92rem;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px;
  padding-bottom: 36px; border-bottom: 1px solid rgba(255,255,255,.12);
}
.site-footer .logo { color: #fff; margin-bottom: 12px; }
.site-footer .logo span { color: var(--turq); }
.footer-brand p { color: rgba(255,255,255,.66); max-width: 34ch; margin: 0; }
.footer-col h4 {
  font-family: var(--font-body); font-size: .74rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em; color: rgba(255,255,255,.5);
  margin: 0 0 12px;
}
.footer-col p { margin: 0 0 8px; }
.site-footer a { color: rgba(255,255,255,.82); }
.site-footer a:hover { color: #fff; }
.footer-base {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
  padding-top: 22px; color: rgba(255,255,255,.5); font-size: .82rem;
}

/* ---------- modals (light polish) ---------- */
/* A closed .modal keeps display:flex + opacity:0, and the inline flatpickr
   inside #calendarModal forces itself visible — so the hidden modal was
   silently intercepting clicks over the centre of the page (incl. the hero).
   Neutralise pointer events until the modal is actually open. */
.modal:not(.is-active) { pointer-events: none; }
.modal.is-active { pointer-events: auto; }

.modal-content { border: 1px solid var(--line); border-radius: var(--radius); }
.modal-title { font-family: var(--font-head); font-weight: 500; }
.modal-section .section-heading {
  font-family: var(--font-head); font-weight: 500; color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.modal .close { color: var(--muted); }
.modal .close:hover { color: var(--ink); }

/* ---------- notifications ---------- */
.notification { border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); }

/* ---------- legal / privacy page ---------- */
.legal-page { padding: 44px 0 72px; }
.legal-page .container { max-width: 760px; }
.legal-page h1 {
  font-family: var(--font-head); font-weight: 500; font-size: clamp(1.7rem, 4vw, 2.2rem);
  color: var(--ink); margin: 0 0 6px; letter-spacing: -.01em;
}
.legal-page .legal-updated { color: var(--muted); font-size: .88rem; margin: 0 0 2rem; }
.legal-page h2 {
  font-family: var(--font-head); font-weight: 500; font-size: 1.3rem; color: var(--ink);
  margin: 2.4rem 0 .5rem; padding-bottom: 8px; border-bottom: 1px solid var(--line);
}
.legal-page h3 {
  font-family: var(--font-body); font-weight: 650; font-size: .98rem; color: var(--ink);
  margin: 1.4rem 0 .3rem;
}
.legal-page p, .legal-page li { color: var(--ink-soft); font-size: .96rem; line-height: 1.68; }
.legal-page ul { padding-left: 1.15rem; margin: 0 0 1rem; }
.legal-page li { margin: .35rem 0; }
.legal-page a { color: var(--azul); }
.legal-page code {
  background: var(--surface-2); border: 1px solid var(--line);
  padding: .06em .38em; border-radius: 4px; font-size: .86em; color: var(--azul-deep);
}
/* ---------- lightbox / carousel ---------- */
.hero-frame .main-image { cursor: zoom-in; }
#allPhotosGrid .all-photo-item,
.photo-tour-item { cursor: zoom-in; }

body.vlb-lock { overflow: hidden; }

.vlb {
  position: fixed; inset: 0; z-index: 3000;
  display: flex; align-items: center; justify-content: center;
  background: rgba(9, 14, 17, .94);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  opacity: 0; transition: opacity .18s ease;
}
.vlb[hidden] { display: none; }
.vlb.is-open { opacity: 1; }

.vlb-stage {
  margin: 0; max-width: min(1400px, 94vw); max-height: 88vh;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
}
.vlb-img {
  max-width: 100%; max-height: 80vh; width: auto; height: auto;
  object-fit: contain; border-radius: 6px;
  box-shadow: 0 24px 70px -20px rgba(0, 0, 0, .7);
  background: #0d1417;
  transform: scale(.985); transition: transform .18s ease;
}
.vlb.is-open .vlb-img { transform: scale(1); }
.vlb-counter {
  color: rgba(255, 255, 255, .78);
  font: 500 .82rem/1 var(--font-body);
  letter-spacing: .06em; font-variant-numeric: tabular-nums;
}

.vlb-nav, .vlb-close {
  position: absolute; z-index: 1;
  display: flex; align-items: center; justify-content: center;
  border: none; cursor: pointer; color: #fff;
  background: rgba(255, 255, 255, .12);
  transition: background-color .15s ease, transform .15s ease;
}
.vlb-nav {
  top: 50%; transform: translateY(-50%);
  width: 52px; height: 52px; border-radius: 999px; font-size: 1.05rem;
}
.vlb-nav:hover:not(:disabled) { background: rgba(255, 255, 255, .22); }
.vlb-nav:disabled { opacity: 0; pointer-events: none; }
.vlb-prev { left: clamp(10px, 3vw, 34px); }
.vlb-next { right: clamp(10px, 3vw, 34px); }
.vlb-close {
  top: clamp(12px, 3vw, 26px); right: clamp(12px, 3vw, 26px);
  width: 44px; height: 44px; border-radius: 999px;
  font-size: 1.6rem; line-height: 1;
}
.vlb-close:hover { background: rgba(255, 255, 255, .22); }
.vlb-nav:focus-visible, .vlb-close:focus-visible {
  outline: 2px solid #fff; outline-offset: 2px;
}

@media (max-width: 640px) {
  .vlb-nav { width: 44px; height: 44px; }
  .vlb-img { max-height: 74vh; }
}
@media (prefers-reduced-motion: reduce) {
  .vlb, .vlb-img { transition: none; }
}

/* =====================================================================
   Responsive
   Breakpoints: 1024 (tablet landscape) · 900 (stack) · 768 (mobile nav)
                600 (small phone) · 400 (compact)
   ===================================================================== */

@media (max-width: 1024px) {
  .details-grid { gap: 48px; }
  .property-details-section { padding: 56px 0 68px; }
}

/* ---- stack the two-column body + free the sticky sidebar ---- */
@media (max-width: 992px) {
  .details-grid { gap: 40px; }
  .property-info-left { padding-right: 0; }
  .categorized-list-summary, .categorized-list-full { grid-template-columns: 1fr; }
  .review-cards-grid { grid-template-columns: 1fr; }
  .booking-sidebar { position: static; margin-top: 8px; }
  .booking-summary-card { max-width: 460px; }

  /* the "voir les photos" button sits inside the full-bleed hero frame;
     style.css tries to make it position:static here, which drops it on top
     of the image — keep it anchored, just move it clear of the caption. */
  .show-all-btn {
    position: absolute;
    top: clamp(12px, 4vw, 20px);
    right: clamp(12px, 4vw, 20px);
    bottom: auto;
    width: auto;
    margin: 0;
    padding: 9px 14px;
    font-size: .82rem;
  }
}

/* ---- mobile: hamburger nav, tighter hero ---- */
@media (max-width: 768px) {
  .header { padding: 11px 0; }
  .header-content {
    position: relative;
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 10px;
  }
  .logo { margin-bottom: 0; width: auto; font-size: 1.3rem; }

  .nav { width: auto; gap: 9px; }

  .header-phone {
    padding: 8px 12px;
    font-size: .86rem;
    gap: 6px;
  }

  .mobile-menu-toggle {
    display: flex;
    position: static;
    order: 5;
    padding: 8px;
  }
  .mobile-menu-toggle span { background: var(--ink); }
  .lang-switch { order: 4; }

  /* dropdown panel anchored to the header row (no magic offset) */
  .nav-links {
    display: none;
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: 8px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    z-index: 1200;
  }
  .nav-links.mobile-active { display: flex; }
  .nav-links li { margin: 0; }
  .nav-links .nav-link {
    display: block;
    padding: 13px 12px;
    border-radius: 9px;
    font-size: 1rem;
  }
  .nav-links .nav-link:hover,
  .nav-links .nav-link.active { background: var(--azul-wash); color: var(--azul); }
  .nav-link.active::after { display: none; }

  /* keep the legal-page "back" link visible (it is the only way home) */
  .header-back { display: inline-flex !important; }

  .hero-frame { height: 68vh; min-height: 400px; max-height: 560px; }
  .hero-frame::after {
    background: linear-gradient(to top, rgba(9,17,21,.82) 0%, rgba(9,17,21,.15) 52%, rgba(9,17,21,.28) 100%);
  }
  .property-hero .property-title {
    font-size: clamp(1.7rem, 8vw, 2.3rem);
    line-height: 1.12;
    max-width: 100%;
  }
  .hero-caption { bottom: clamp(20px, 5vh, 40px); }
  .property-hero .property-meta { gap: 8px 16px; font-size: .9rem; }
  .hero-eyebrow { font-size: .66rem; margin-bottom: 9px; }

  .property-hero .thumbnail-gallery { padding: 12px 0 6px; gap: 8px; }
  .property-hero .thumbnail-gallery img { width: 104px; height: 70px; }

  .property-details-section { padding: 40px 0 52px; }
  .property-amenities-section,
  .property-rules-section,
  .property-reviews,
  .property-location-map { margin-bottom: 40px; }
  .property-rules-section { padding: 22px 20px; }
  .rules-content { grid-template-columns: 1fr; gap: 22px; }
  .section-heading { font-size: 1.25rem; margin-bottom: 18px; }
  .property-overview .subtitle { font-size: 1.3rem; }

  .booking-summary-card { max-width: none; padding: 20px; }

  /* contact card needs side gutters on small screens */
  .contact-section { padding: 44px 16px; min-height: 0; }
  .contact-form-side, .contact-info-side { padding: 28px 22px; }
  .contact-form-title { font-size: 1.7rem; }
  .contact-form-subtitle { font-size: 1rem; }

  .services-hero { padding: 56px 0; }
  .services-hero-title { font-size: clamp(1.8rem, 7vw, 2.3rem); }
  .services-main { padding: 48px 0; }

  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .site-footer { padding: 44px 0 24px; margin-top: 48px; }

  .modal-content { padding: 22px 18px; }
  .modal .close { top: 12px; right: 16px; }
  .modal-title { font-size: 1.5rem; margin-bottom: 18px; }
}

/* ---- small phones ---- */
@media (max-width: 600px) {
  .booking-form .form-row { flex-direction: column; gap: 0; }
  .booking-form .form-row .form-group { margin-bottom: 14px; }
  .modern-form .form-row-modern { flex-direction: column; gap: 0; }
  .modern-form .form-group-modern { margin-bottom: 16px; }

  .locked-feature { max-height: none; }
  .locked-feature__veil { position: static; background: none; backdrop-filter: none; -webkit-backdrop-filter: none; padding: 18px 0 4px; }
  .locked-feature > form { display: none; }

  .property-hero .property-meta { flex-direction: column; gap: 6px; }

  .review-card { padding: 18px; }
  .footer-base { flex-direction: column; align-items: flex-start; gap: 6px; }
}

/* ---- compact ---- */
@media (max-width: 400px) {
  .logo { font-size: 1.2rem; }
  .header-phone__num { display: none; }
  .header-phone { padding: 9px 11px; }
  .nav { gap: 7px; }
  .hero-frame { height: 62vh; min-height: 360px; }
  .show-all-btn { font-size: .78rem; padding: 8px 12px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
}
