/* ─────────────────────────────────────────────────────────────
   GoHimara · Listing Detail Page
   CSS base: accommodations.html (verbatim, tokens + all
   components). Appended: listing-specific rules ported from
   moodboard.html §5 (detail-gallery, detail-body, contact card).
   Appended: carousel component (webdeva-carousel).
   No tokens redefined. No rules removed.
───────────────────────────────────────────────────────────── */

:root {
  /* Surface */
  --bg:           #F4F2EC;
  --surface:      #FFFFFF;
  --surface-alt:  #EAE7DE;

  /* Ink */
  --ink:          #141C17;
  --ink-2:        #2D3A33;
  --muted:        #494E49;
  --soft:         #A6A99F;

  /* Lines */
  --line:         #E2DFD6;
  --line-strong:  #CFCCC1;

  /* Brand, dark green family */
  --green:        #1E3A2C;
  --green-2:      #2F5440;
  --green-3:      #4A6E58;
  --green-tint:   #E8EEE7;
  --green-line:   #B8C2B7;

  /* Accent, single purpose: required-field marker */
  --required:     #A0463B;

  /* Type */
  --sans:    'Instrument Sans', system-ui, -apple-system, sans-serif;
  --display: 'Poiret One', 'Instrument Sans', system-ui, sans-serif;

  /* Fluid type scale */
  --fs-display: clamp(48px, 7vw, 96px);
  --fs-h1:      clamp(40px, 5vw, 56px);
  --fs-h2:      clamp(32px, 3.7vw, 40px);
  --fs-h3:      clamp(18px, 1.8vw, 22px);
  --fs-h4:      clamp(17px, 1.7vw, 19px);
  --fs-lede:    clamp(17px, 1.8vw, 19px);

  /* Scale, 4px base */
  --s-0: 4px;  --s-1: 8px;   --s-2: 12px;  --s-3: 16px;
  --s-4: 24px; --s-5: 32px;  --s-6: 48px;  --s-7: 64px;
  --s-8: 96px; --s-9: 128px;

  /* Radii */
  --r-sm: 2px; --r-md: 4px; --r-lg: 8px; --r-pill: 999px;

  /* Shadows */
  --shadow-1: 0 1px 2px rgba(20,28,23,0.04);
  --shadow-2: 0 8px 24px -8px rgba(20,28,23,0.08);

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html { --gutter: max(clamp(20px, 5vw, 48px), calc((100vw - 1320px) / 2)); }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { display: block; max-width: 100%; }
a   { color: var(--green); text-decoration: none; }
button { font: inherit; cursor: pointer; }

/* ── Icons ─────────────────────────────────────────── */
.ico {
  width: 14px; height: 14px;
  display: inline-block;
  vertical-align: -2px;
  margin-right: 6px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.75;
  flex-shrink: 0;
}
.ico--lg { width: 16px; height: 16px; }

/* ── Layout ────────────────────────────────────────── */
.wrap         { width: 100%; padding-inline: var(--gutter); }
.wrap--narrow { max-width: 980px; margin-inline: auto; }

/* ──────────────────────────────────────────────────────
   SITE NAV
   ────────────────────────────────────────────────────── */
.site-nav {
  background: var(--bg);
  padding: 22px var(--gutter);
  display: flex; justify-content: space-between; align-items: center;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
}
.site-nav .logo { height: 26px; width: auto; display: block; }
.site-nav-links { display: flex; gap: var(--s-5); align-items: center; }
.site-nav-links a {
  font-size: 11px; font-weight: 600; line-height: 1.4;
  letter-spacing: 2.5px; text-transform: uppercase;
  color: rgba(73, 78, 73, 0.7);
}
.site-nav-links a:hover { color: var(--green); }
.site-nav-links a.has-dd {
  display: inline-flex; align-items: center; gap: 5px; position: relative;
}
.site-nav-links a.has-dd .dd-caret { color: var(--muted); }
.site-nav-links a.nav-cta {
  padding-bottom: 2px;
  border-bottom: 1px solid var(--green);
  color: var(--green);
}
.site-nav-lang {
  font-size: 11px; font-weight: 600; line-height: 1.4;
  letter-spacing: 2.5px; text-transform: uppercase;
  color: rgba(73, 78, 73, 0.7);
  border: 1px solid var(--line-strong); padding: 6px 10px;
}
.site-nav-lang .active { color: var(--green); }

/* Dropdown */
.nav-dd {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%; transform: translateX(-50%);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-2);
  min-width: 180px;
  padding: var(--s-2) 0;
  opacity: 0; pointer-events: none;
  transition: opacity 0.15s ease;
  z-index: 20;
}
.has-dd:hover .nav-dd,
.has-dd:focus-within .nav-dd { opacity: 1; pointer-events: all; }
.nav-dd a {
  display: block; padding: 10px 18px;
  font-size: 11px; font-weight: 600; letter-spacing: 2.5px;
  text-transform: uppercase; color: rgba(73,78,73,0.7); white-space: nowrap;
}
.nav-dd a:hover { color: var(--green); background: var(--green-tint); }

/* ── Buttons ─────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px;
  font: 500 13px/1 var(--sans);
  letter-spacing: 0.04em; text-transform: uppercase;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  text-decoration: none; cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn--primary         { background: var(--green); color: #fff; }
.btn--primary:hover   { background: var(--green-2); }
.btn--secondary       { background: transparent; color: var(--green); border-color: var(--green); }
.btn--secondary:hover { background: var(--green); color: #fff; }
.btn--text {
  background: transparent; color: var(--green);
  padding: 8px 0; border: none;
  border-bottom: 1px solid var(--green);
  border-radius: 0; font-size: 11px; letter-spacing: 1.8px;
}
.btn--text:hover { color: var(--green-2); border-bottom-color: var(--green-2); }
.btn--sm { padding: 10px 18px; font-size: 11px; }
.btn .arrow { font-family: var(--display); font-size: 16px; line-height: 1; }

.btn.on-dark.btn--primary         { background: #fff; color: var(--green); }
.btn.on-dark.btn--primary:hover   { background: var(--green-tint); color: var(--green); }
.btn.on-dark.btn--secondary       { background: transparent; color: #fff; border-color: #fff; }
.btn.on-dark.btn--secondary:hover { background: #fff; color: var(--green); }
.btn.on-dark.btn--text            { color: #fff; border-bottom-color: rgba(255,255,255,0.55); }
.btn.on-dark.btn--text:hover      { color: #fff; border-bottom-color: #fff; }

/* ── Base typography ──────────────────────────────────── */
h1    { font-family: var(--display); font-weight: 400; font-size: var(--fs-h1); line-height: 1.05; letter-spacing: -0.015em; color: var(--ink); }
h2    { font-family: var(--display); font-weight: 400; font-size: var(--fs-h2); line-height: 1.1;  letter-spacing: -0.01em;  color: var(--ink); }
h3    { font-size: var(--fs-h3); font-weight: 400; line-height: 1.25; letter-spacing: -0.005em; color: var(--ink-2); }
h4    { font-size: var(--fs-h4); font-weight: 500; line-height: 1.3;  color: var(--ink); }
h5    { font-size: 16px; font-weight: 500; line-height: 1.4;  color: var(--ink); }
h6    { font-size: 11px; font-weight: 600; line-height: 1.4;  letter-spacing: 2.5px; text-transform: uppercase; color: rgba(73,78,73,0.7); }
p     { font-size: 16px; font-weight: 400; line-height: 1.6;  color: var(--ink-2); }
small { font-size: 14px; line-height: 1.55; color: var(--muted); }
label { font-size: 12px; font-weight: 400; line-height: 1.55; color: var(--muted); }

/* ── Helper classes ─────────────────────────────────────── */
.display     { font-family: var(--display); font-weight: 400; font-size: var(--fs-display); line-height: 1.0; letter-spacing: -0.02em; color: var(--ink); }
.display em  { color: var(--green); }
.lede        { font-size: var(--fs-lede); font-weight: 400; line-height: 1.55; color: var(--ink-2); }
.eyebrow     { font-size: 12px; font-weight: 600; line-height: 1.4; letter-spacing: 2.5px; text-transform: uppercase; color: var(--green); }
.eyebrow.on-dark { color: rgba(255,255,255,0.85); }
.stat        { font-family: var(--display); font-weight: 400; font-size: clamp(22px, 2.2vw, 26px); line-height: 1.1; color: var(--green); }

/* ── Footer ───────────────────────────────────────────── */
.footer {
  background: var(--green);
  color: rgba(255,255,255,0.72);
  padding: var(--s-8) var(--gutter) var(--s-5);
}
.footer-grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: var(--s-6);
  padding-bottom: var(--s-6);
  border-bottom: 1px solid rgba(255,255,255,0.16);
}
.footer-brand .logo   { height: 32px; width: auto; display: block; margin-bottom: var(--s-3); filter: brightness(0) invert(1); opacity: 0.95; }
.footer-brand p       { font-size: 14px; line-height: 1.55; color: rgba(255,255,255,0.65); max-width: 380px; margin-bottom: var(--s-4); }
.footer-brand .social { display: flex; gap: var(--s-3); }
.footer-brand .social a       { font-size: 11px; font-weight: 600; letter-spacing: 2.5px; text-transform: uppercase; color: #fff; border-bottom: 1px solid rgba(255,255,255,0.5); padding-bottom: 2px; }
.footer-brand .social a:hover { border-bottom-color: #fff; }
.footer-col h6    { margin-bottom: var(--s-3); color: rgba(255,255,255,0.5); }
.footer-col ul    { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a     { font-size: 14px; line-height: 1.55; color: rgba(255,255,255,0.78); }
.footer-col a:hover { color: #fff; }
.footer-bottom    { padding-top: var(--s-4); display: flex; justify-content: space-between; }
.footer-bottom span { font-size: 12px; line-height: 1.55; color: rgba(255,255,255,0.5); }

/* ── Modal / inquiry ──────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(20,28,23,0.55);
  display: flex; align-items: center; justify-content: center;
  padding: var(--s-4); z-index: 100;
  opacity: 0; transition: opacity 200ms var(--ease);
}
.modal-overlay[hidden] { display: none; }
.modal-overlay.is-open { opacity: 1; }
.modal {
  position: relative; z-index: 1;
  background: var(--surface);
  width: 100%; max-width: 640px;
  padding: var(--s-6);
  border: 1px solid var(--line);
  box-shadow: 0 24px 56px -16px rgba(20,28,23,0.35);
}
.modal-close {
  position: absolute; top: -16px; right: -16px;
  width: 36px; height: 36px;
  background: var(--green); color: #fff;
  border: 2px solid var(--surface); border-radius: 50%;
  font-size: 18px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s ease;
}
.modal-close:hover { background: var(--green-2); }
.modal-title {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(24px, 3vw, 32px); line-height: 1.15;
  letter-spacing: -0.01em; color: var(--ink);
  margin-bottom: var(--s-5); text-wrap: balance; max-width: 92%;
}
.modal-form              { display: flex; flex-direction: column; gap: var(--s-3); }
.modal-form > .btn       { margin-top: var(--s-3); align-self: flex-start; }
.form-grid               { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-4) var(--s-5); }
.field                   { display: flex; flex-direction: column; gap: 8px; }
label .req               { color: var(--required); margin-left: 3px; font-weight: 600; }
.input {
  height: 48px; padding: 0 16px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  font: 400 14px var(--sans); color: var(--ink);
  outline: none; transition: border-color 0.15s ease;
}
.input::placeholder { color: var(--muted); }
.input:focus        { border-color: var(--green); }

/* ── Nav social icons ──────────────────────────────── */
.nav-social { display: inline-flex; align-items: center; gap: 14px; }
.nav-social a { color: var(--ink); display: inline-flex; transition: color 0.15s ease; }
.nav-social a:hover { color: var(--green); }
.nav-social svg { width: 18px; height: 18px; display: block; }

/* ── Reveal animation ──────────────────────────────── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ──────────────────────────────────────────────────────
   LISTING PAGE · detail components
   ────────────────────────────────────────────────────── */

/* Page header (breadcrumb + h1 + meta + tags) */
.listing-header { padding: var(--s-6) 0 var(--s-5); }

.breadcrumb {
  font-size: 11px; font-weight: 600; line-height: 1.4;
  letter-spacing: 2.5px; text-transform: uppercase;
  color: rgba(73,78,73,0.7);
  margin-bottom: var(--s-4);
}
.breadcrumb a       { color: rgba(73,78,73,0.7); }
.breadcrumb a:hover { color: var(--green); }
.breadcrumb .sep    { margin: 0 10px; color: var(--soft); }

.listing-header h1 { margin-bottom: var(--s-3); text-wrap: balance; }

/* Meta strip */
.detail-meta {
  font-size: 14px; line-height: 1.55;
  display: flex; gap: var(--s-2) var(--s-4); flex-wrap: wrap;
  padding: var(--s-3) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--ink-2);
  margin-bottom: var(--s-4);
}
.detail-meta > span { display: inline-flex; align-items: center; }
.detail-meta strong { color: var(--ink); }

/* Tags */
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; }
.prop-tag {
  display: inline-flex; align-items: center;
  padding: 6px 14px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  font-size: 11px; font-weight: 600; letter-spacing: 1.8px;
  text-transform: uppercase; color: var(--ink-2);
}
.prop-tag--type {
  background: var(--green-tint);
  border-color: var(--green-line);
  color: var(--green);
}

/* Gallery */
.gallery-section { padding: var(--s-4) 0; }
.detail-gallery {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 4px;
  height: 480px;
}
.dg-cell {
  background-size: cover; background-position: center;
  filter: saturate(0.9);
  overflow: hidden; position: relative;
}
.dg-cell--main    { grid-row: 1 / 3; }
.dg-cell--viewall { cursor: pointer; }
.dg-cell--viewall::after {
  content: ''; position: absolute; inset: 0;
  background: rgba(20,28,23,0.45);
}
.dg-viewall-label {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  z-index: 2; color: #fff; gap: 4px;
}
.dg-viewall-count {
  font-family: var(--display);
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 400; line-height: 1; letter-spacing: -0.01em;
}
.dg-viewall-text {
  font-size: 10px; font-weight: 600;
  letter-spacing: 2.5px; text-transform: uppercase; opacity: 0.85;
}

/* Two-column body */
.listing-body { padding: var(--s-7) 0 var(--s-8); }
.listing-cols {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: var(--s-7);
  align-items: start;
}

/* Left col */
.listing-main h2               { margin-bottom: var(--s-4); }
.listing-main p                { margin-bottom: var(--s-3); }
.listing-main p:last-of-type   { margin-bottom: 0; }
.listing-amenities-head        { margin-top: var(--s-6); margin-bottom: var(--s-2); }
.listing-amenities-sub         { margin-bottom: var(--s-4); color: var(--muted); }

/* Amenities grid */
.detail-amenities {
  font-size: 14px; line-height: 1.55;
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: var(--s-2) var(--s-4);
  color: var(--ink-2); list-style: none;
}
.detail-amenities li {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}
.detail-amenities li::before {
  content: ''; width: 4px; height: 4px;
  background: var(--green); border-radius: 50%; flex-shrink: 0;
}

/* Contact card */
.contact-card {
  background: var(--bg);
  border: 1px solid var(--line);
  padding: var(--s-5);
  position: sticky;
  top: calc(var(--s-4) + 72px);
}
.cc-head { padding-bottom: var(--s-4); border-bottom: 1px solid var(--line); margin-bottom: var(--s-4); }
.cc-head h6     { margin-bottom: var(--s-2); }
.cc-headline    { text-wrap: balance; }
.cc-map         { border: 1px solid var(--line); background: var(--surface); margin-bottom: var(--s-3); }
.cc-map-tile {
  height: 140px;
  background:
    radial-gradient(60% 90% at 75% 50%, rgba(184,194,183,0.95) 0%, rgba(184,194,183,0) 70%),
    linear-gradient(135deg, #A5B7BD 0%, #8FA5AE 100%);
  position: relative;
}
.cc-map-tile::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%; transform: translate(-50%, -100%) rotate(-45deg);
  width: 26px; height: 26px;
  border-radius: 50% 50% 50% 0;
  background: var(--green);
  border: 2px solid #fff;
  box-shadow: 0 3px 8px rgba(20,28,23,0.25);
}
.cc-map-link {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px; border-top: 1px solid var(--line);
}
.cc-map-link .arrow { font-family: var(--display); font-size: 14px; }
.cc-actions {
  display: flex; flex-direction: column; gap: var(--s-2);
  margin-top: var(--s-4); margin-bottom: var(--s-4);
}
.cc-action { width: 100%; justify-content: center; padding: 14px 18px; }
.cc-action .cc-action-ico { font-size: 14px; display: inline-flex; align-items: center; margin-right: 2px; }
.cc-footnote { font-size: 12px; line-height: 1.55; color: var(--muted); text-align: center; }

/* ──────────────────────────────────────────────────────
   CAROUSEL · Swiper-based (webdeva-carousel)
   ────────────────────────────────────────────────────── */

.webdeva-carousel-wrap { position: relative; }

/* Nav buttons */
.webdeva-carousel-prev,
.webdeva-carousel-next {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  z-index: 10;
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  cursor: pointer;
  box-shadow: var(--shadow-2);
  transition:
    background    200ms var(--ease),
    border-color  200ms var(--ease),
    box-shadow    200ms var(--ease),
    opacity       200ms ease;
}
.webdeva-carousel-prev { left:  -24px; }
.webdeva-carousel-next { right: -24px; }

/* Arrow icons inside buttons */
.webdeva-carousel-prev svg,
.webdeva-carousel-next svg {
  width: 16px; height: 16px;
  stroke: var(--ink); fill: none;
  stroke-width: 1.75;
  stroke-linecap: round; stroke-linejoin: round;
  transition: stroke 200ms var(--ease);
}

/* Hover */
.webdeva-carousel-prev:hover,
.webdeva-carousel-next:hover {
  background: var(--green);
  border-color: var(--green);
}
.webdeva-carousel-prev:hover svg,
.webdeva-carousel-next:hover svg { stroke: #fff; }

/* Disabled */
.webdeva-carousel-prev.swiper-button-disabled,
.webdeva-carousel-next.swiper-button-disabled {
  opacity: .35;
  cursor: default;
  pointer-events: none;
}

/* Slides */
.webdeva-carousel-wrap .swiper-slide       { height: auto; }
.webdeva-carousel-wrap .swiper-slide .lst  { height: 100%; }

/* Card meta */
.webdeva-carousel-wrap .lst-meta span {
  display: inline-flex; align-items: center; gap: 8px;
}

/* Icon */
.webdeva-carousel-wrap .webdeva-card-icon {
  width: 16px; height: 16px;
  flex-shrink: 0; display: block;
  color: currentColor; opacity: .75;
}

/* CTA */
.webdeva-carousel-wrap .lst-cta {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--sans);
  font-size: 11px; font-weight: 600;
  letter-spacing: 2.5px; text-transform: uppercase;
  line-height: 1; text-decoration: none;
  color: var(--green);
  border-bottom: 1px solid var(--green);
  padding-bottom: 4px;
  transition:
    color       200ms var(--ease),
    border-color 200ms var(--ease);
}
.webdeva-carousel-wrap .lst-cta .arrow {
  display: inline-block;
  transition: transform 300ms var(--ease);
}
.webdeva-carousel-wrap .lst:hover .lst-cta              { color: var(--green-2); border-color: var(--green-2); }
.webdeva-carousel-wrap .lst:hover .lst-cta .arrow       { transform: translateX(4px); }

/* ──────────────────────────────────────────────────────
   RESPONSIVE
   ────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .footer-grid    { grid-template-columns: 1fr 1fr; }
  .listing-cols   { grid-template-columns: 1fr; gap: var(--s-6); }
  .contact-card   { position: static; }
  .detail-gallery { height: 400px; }
}
@media (max-width: 991px) {
  .webdeva-carousel-prev,
  .webdeva-carousel-next { display: none; }
}
@media (max-width: 860px) {
  .site-nav       { padding: 18px var(--gutter); gap: var(--s-4); }
  .site-nav-links { gap: var(--s-4); }
}
@media (max-width: 720px) {
  .footer-grid, .form-grid { grid-template-columns: 1fr; }
  .site-nav-links .has-dd .nav-dd { display: none; }
  .modal { padding: var(--s-4); }
  .detail-gallery {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 240px 120px 120px;
    height: auto;
  }
  .dg-cell--main { grid-column: 1 / -1; grid-row: 1; }
  .detail-amenities { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .detail-amenities { grid-template-columns: 1fr; }
  .tag-row { gap: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .dg-cell { transition: none !important; transform: none !important; }
}
