/* ============================================================
   APARTMENT DETAIL PAGE — overview, gallery (masonry+filters),
   availability (iCal), booking, reviews, map.
   Built on tokens.css. Black & yellow, soft & rounded.
   ============================================================ */

/* ---- apt hero photo backdrop ---- */
.apt-hero{ background:var(--ink); }
.apt-hero__bg{ position:absolute; inset:0; z-index:0; overflow:hidden; }
.apt-hero__bg img{ width:100%; height:100%; object-fit:cover; }
.apt-hero::before{ content:""; position:absolute; inset:0; z-index:1; opacity:1;
  background:
    linear-gradient(180deg, rgba(12,12,13,.66) 0%, rgba(12,12,13,.42) 42%, rgba(12,12,13,.88) 100%),
    linear-gradient(90deg, rgba(12,12,13,.66) 0%, rgba(12,12,13,.18) 48%, transparent 78%),
    linear-gradient(0deg, rgba(12,12,13,.20), rgba(12,12,13,.20)); }
.apt-hero::after{ display:none; }
.apt-hero .wrap{ position:relative; z-index:2; }
@media (prefers-reduced-motion: reduce){ .apt-hero__bg img{ animation:none; } }

/* =============================================================
   OVERVIEW
   ============================================================= */
.overview{ background:var(--paper); color:var(--ink); padding:clamp(64px,9vh,128px) 0; }
.overview__grid{ display:grid; grid-template-columns:1.35fr .9fr; gap:clamp(34px,5vw,84px); align-items:start; }
@media (max-width:920px){ .overview__grid{ grid-template-columns:1fr; gap:40px; } }
.overview .eyebrow{ color:var(--yellow-deep); }
.overview h2{ font-family:var(--font-display); font-weight:var(--display-weight,500); letter-spacing:-.01em;
  font-size:clamp(32px,4.4vw,60px); line-height:1.02; margin:14px 0 22px; text-wrap:balance; }
.overview h2 em{ font-style:italic; color:var(--yellow-deep); }
.overview__lead{ font-size:clamp(17px,1.7vw,21px); line-height:1.55; color:#26241d; max-width:54ch; }
.overview__body{ margin-top:20px; color:#4a463c; font-size:16px; line-height:1.7; max-width:56ch; }
.overview__body p+p{ margin-top:14px; }
.overview__signature{ margin-top:26px; font-family:var(--font-display); font-style:italic; font-size:22px; color:var(--ink); }
.overview__signature small{ display:block; font-family:var(--font-body); font-style:normal; font-size:12.5px;
  letter-spacing:.12em; text-transform:uppercase; color:#8a8475; margin-top:4px; }

/* facts card */
.facts{ background:var(--ink); color:var(--paper); border-radius:var(--r-xl); padding:clamp(26px,3vw,38px);
  box-shadow:var(--shadow-deep); position:sticky; top:96px; }
.facts h3{ font-family:var(--font-display); font-style:italic; color:var(--yellow); font-size:24px; margin-bottom:20px; }
.facts__list{ display:grid; gap:2px; }
.facts__row{ display:flex; align-items:center; justify-content:space-between; gap:16px; padding:13px 0;
  border-bottom:1px solid rgba(255,255,255,.09); }
.facts__row:last-child{ border-bottom:0; }
.facts__row .k{ display:flex; align-items:center; gap:11px; color:rgba(246,243,236,.62); font-size:14.5px; }
.facts__row .k svg{ width:18px; height:18px; color:var(--yellow); flex:none; }
.facts__row .v{ font-weight:700; font-size:15px; text-align:right; }
.facts__cta{ margin-top:22px; display:block; text-align:center; }

/* amenities */
.amenities{ margin-top:clamp(38px,5vh,60px); }
.amenities__title{ font-family:var(--font-eyebrow); text-transform:uppercase; letter-spacing:.22em; font-size:12px;
  font-weight:700; color:#8a8475; margin-bottom:18px; display:flex; align-items:center; gap:14px; }
.amenities__title::after{ content:""; flex:1; height:1px; background:var(--bone); }
.amenities__grid{ display:grid; grid-template-columns:repeat(auto-fill, minmax(180px,1fr)); gap:10px 26px; }
.amen{ display:flex; align-items:center; gap:12px; font-size:15px; color:#33302a; padding:8px 0; }
.amen svg{ width:21px; height:21px; color:var(--ink); flex:none; }
.amen.is-no{ color:#b3ad9e; }

/* =============================================================
   GALLERY — masonry + filters + load-more + lightbox
   ============================================================= */
.gallery{ background:var(--ink); color:var(--paper); padding:clamp(64px,9vh,128px) 0; }
.gallery__head{ display:flex; align-items:flex-end; justify-content:space-between; gap:30px; flex-wrap:wrap; margin-bottom:clamp(26px,4vh,42px); }
.gallery .eyebrow{ color:var(--yellow); }
.gallery__head h2{ font-family:var(--font-display); color:#fff; font-size:clamp(30px,4.2vw,56px); line-height:1; margin-top:12px; }
.gallery__head p{ color:rgba(246,243,236,.55); font-size:15px; max-width:32ch; }

.filters{ display:flex; flex-wrap:wrap; gap:10px; margin-bottom:clamp(22px,3vh,34px); }
.filter{ font-family:var(--font-body); font-size:13.5px; font-weight:600; letter-spacing:.02em;
  color:rgba(246,243,236,.78); background:transparent; border:1px solid rgba(255,255,255,.18);
  border-radius:var(--r-pill); padding:9px 18px; cursor:pointer; transition:.3s var(--ease); display:inline-flex; align-items:center; gap:8px; }
.filter .count{ font-size:11px; opacity:.6; }
.filter:hover{ border-color:rgba(255,217,0,.5); color:#fff; }
.filter.is-active{ background:var(--yellow); color:var(--ink); border-color:var(--yellow); }
.filter.is-active .count{ opacity:.7; }

/* Uniform, harmonized grid — equal 4:3 cards instead of ragged masonry */
.masonry{ display:grid; grid-template-columns:repeat(3,1fr); gap:clamp(12px,1.4vw,18px); }
@media (max-width:1024px){ .masonry{ grid-template-columns:repeat(2,1fr); } }
@media (max-width:560px){ .masonry{ grid-template-columns:1fr; } }
.gitem{ position:relative; display:block; padding:0; aspect-ratio:4/3; border-radius:var(--r-md);
  overflow:hidden; cursor:zoom-in; background:var(--ink-2); box-shadow:var(--shadow-soft);
  opacity:0; transform:translateY(18px) scale(.98); transition:opacity .6s var(--ease), transform .6s var(--ease); }
.gitem.is-in{ opacity:1; transform:none; }
.gitem img{ display:block; width:100%; height:100%; object-fit:cover; transition:transform .9s var(--ease); }
.gitem:hover img{ transform:scale(1.06); }
.gitem__tag{ position:absolute; top:12px; left:12px; z-index:2; font-size:11px; font-weight:700; letter-spacing:.03em;
  color:#fff; background:rgba(12,12,13,.5); backdrop-filter:blur(6px); border:1px solid rgba(255,255,255,.2);
  border-radius:var(--r-pill); padding:5px 12px; opacity:0; transform:translateY(-6px); transition:.4s var(--ease); }
.gitem:hover .gitem__tag{ opacity:1; transform:none; }
.gitem__zoom{ position:absolute; right:12px; bottom:12px; z-index:2; width:38px; height:38px; border-radius:var(--r-pill);
  display:flex; align-items:center; justify-content:center; background:var(--yellow); color:var(--ink);
  opacity:0; transform:scale(.7); transition:.4s var(--ease); }
.gitem:hover .gitem__zoom{ opacity:1; transform:none; }
.gitem__zoom svg{ width:18px; height:18px; }

.gallery__more{ display:flex; flex-direction:column; align-items:center; gap:14px; margin-top:clamp(30px,5vh,52px); }
.abtn-more{ font-family:var(--font-body); font-weight:700; font-size:14.5px; letter-spacing:.02em; color:var(--ink);
  background:var(--yellow); border:0; border-radius:var(--r-pill); padding:15px 34px; cursor:pointer;
  display:inline-flex; align-items:center; gap:11px; transition:.3s var(--ease); box-shadow:0 14px 34px -16px var(--yellow-deep); }
.abtn-more:hover{ transform:translateY(-2px); box-shadow:0 20px 40px -16px var(--yellow-deep); }
.abtn-more:disabled{ opacity:.5; cursor:default; transform:none; }
.abtn-more .spin{ width:16px; height:16px; border-radius:50%; border:2px solid rgba(12,12,13,.25); border-top-color:var(--ink);
  animation:spin .7s linear infinite; display:none; }
.abtn-more.is-loading .spin{ display:inline-block; }
.abtn-more.is-loading .lbl, .abtn-more.is-loading .arr{ display:none; }
@keyframes spin{ to{ transform:rotate(360deg); } }
.gallery__counter{ font-size:12.5px; letter-spacing:.14em; text-transform:uppercase; color:rgba(246,243,236,.45); }

/* lightbox */
.lightbox{ position:fixed; inset:0; z-index:9999; background:rgba(8,8,9,.94); backdrop-filter:blur(8px);
  display:flex; align-items:center; justify-content:center; opacity:0; pointer-events:none; transition:opacity .35s var(--ease); }
.lightbox.is-open{ opacity:1; pointer-events:auto; }
.lightbox__img{ max-width:88vw; max-height:84vh; border-radius:var(--r-md); box-shadow:0 40px 100px -20px rgba(0,0,0,.8);
  transform:scale(.96); transition:transform .35s var(--ease); object-fit:contain; }
.lightbox.is-open .lightbox__img{ transform:scale(1); }
.lightbox__cap{ position:absolute; bottom:26px; left:0; right:0; text-align:center; color:rgba(246,243,236,.8);
  font-family:var(--font-display); font-style:italic; font-size:18px; }
.lightbox__btn{ position:absolute; width:54px; height:54px; border-radius:var(--r-pill); border:1px solid rgba(255,255,255,.22);
  background:rgba(255,255,255,.06); color:#fff; display:flex; align-items:center; justify-content:center; cursor:pointer; transition:.3s var(--ease); }
.lightbox__btn:hover{ background:var(--yellow); color:var(--ink); border-color:var(--yellow); }
.lightbox__btn svg{ width:22px; height:22px; }
.lightbox__prev{ left:max(18px,3vw); top:50%; transform:translateY(-50%); }
.lightbox__next{ right:max(18px,3vw); top:50%; transform:translateY(-50%); }
.lightbox__close{ top:max(18px,3vh); right:max(18px,3vw); width:46px; height:46px; }
@media (max-width:600px){ .lightbox__prev{ left:10px; } .lightbox__next{ right:10px; } .lightbox__btn{ width:46px; height:46px; } }

/* =============================================================
   AVAILABILITY + BOOKING
   ============================================================= */
.booking{ background:var(--paper); color:var(--ink); padding:clamp(64px,9vh,128px) 0; }
.booking__head{ text-align:center; max-width:620px; margin:0 auto clamp(34px,5vh,54px); }
.booking__head .eyebrow{ color:var(--yellow-deep); }
.booking__head h2{ font-family:var(--font-display); font-size:clamp(30px,4.2vw,56px); line-height:1.02; margin:12px 0 14px; }
.booking__head h2 em{ font-style:italic; color:var(--yellow-deep); }
.booking__head p{ color:#5a5648; font-size:16px; }
.booking__grid{ display:grid; grid-template-columns:1.05fr .95fr; gap:clamp(20px,2.4vw,34px); align-items:start; }
@media (max-width:920px){ .booking__grid{ grid-template-columns:1fr; } }

.acard{ background:#fff; border:1px solid var(--bone); border-radius:var(--r-xl); padding:clamp(22px,2.6vw,34px);
  box-shadow:0 40px 80px -50px rgba(0,0,0,.4); }
.acard__title{ display:flex; align-items:center; gap:11px; font-family:var(--font-display); font-style:italic;
  font-size:23px; margin-bottom:6px; }
.acard__title svg{ width:21px; height:21px; color:var(--yellow-deep); }
.acard__hint{ font-size:13px; color:#8a8475; margin-bottom:20px; }

/* calendar */
.cal__nav{ display:flex; align-items:center; justify-content:space-between; margin-bottom:14px; }
.cal__nav button{ width:38px; height:38px; border-radius:var(--r-pill); border:1px solid var(--bone); background:#fff;
  display:flex; align-items:center; justify-content:center; cursor:pointer; transition:.25s var(--ease); color:var(--ink); }
.cal__nav button:hover{ background:var(--ink); color:#fff; border-color:var(--ink); }
.cal__nav button svg{ width:18px; height:18px; }
.cal__nav button:disabled{ opacity:.3; cursor:default; }
.cal__months{ display:grid; grid-template-columns:1fr 1fr; gap:26px; }
@media (max-width:560px){ .cal__months{ grid-template-columns:1fr; } }
.cal__mlabel{ text-align:center; font-weight:700; font-size:15px; margin-bottom:10px; text-transform:capitalize; }
.cal__dow, .cal__days{ display:grid; grid-template-columns:repeat(7,1fr); }
.cal__dow span{ text-align:center; font-size:10.5px; letter-spacing:.06em; text-transform:uppercase; color:#a8a290; padding-bottom:6px; }
.cal__day{ aspect-ratio:1; display:flex; align-items:center; justify-content:center; font-size:13.5px; position:relative;
  cursor:pointer; border-radius:var(--r-sm); color:#2a2820; transition:background .18s, color .18s; user-select:none; }
.cal__day.empty{ cursor:default; }
.cal__day.past{ color:#cdc7b7; cursor:default; text-decoration:line-through; }
.cal__day.booked{ color:#c9c2b1; cursor:not-allowed; }
.cal__day.booked::after{ content:""; position:absolute; width:62%; height:1.5px; background:#d8a39a; transform:rotate(-12deg); }
.cal__day.free:hover{ background:var(--paper-2); }
.cal__day.sel-start, .cal__day.sel-end{ background:var(--ink); color:#fff; font-weight:700; border-radius:var(--r-sm); }
.cal__day.in-range{ background:rgba(255,217,0,.26); color:var(--ink); border-radius:0; }
.cal__legend{ display:flex; flex-wrap:wrap; gap:16px; margin-top:16px; font-size:12px; color:#7d7768; }
.cal__legend span{ display:inline-flex; align-items:center; gap:7px; }
.dot{ width:12px; height:12px; border-radius:4px; display:inline-block; }
.dot.free{ background:#fff; border:1px solid var(--bone); }
.dot.bk{ background:#fff; border:1px solid var(--bone); position:relative; overflow:hidden; }
.dot.bk::after{ content:""; position:absolute; inset:0; margin:auto; width:120%; height:1.5px; background:#d8a39a; transform:rotate(-25deg); }
.dot.sel{ background:var(--ink); }
.cal__src{ margin-top:14px; font-size:11.5px; color:#a39d8c; display:flex; align-items:center; gap:7px; }
.cal__src svg{ width:13px; height:13px; }

/* booking form */
.bform{ display:grid; gap:14px; }
.bform__row{ display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.field{ display:flex; flex-direction:column; gap:6px; }
.field label{ font-size:12px; font-weight:600; letter-spacing:.04em; text-transform:uppercase; color:#8a8475; }
.field input, .field select, .field textarea{ font-family:var(--font-body); font-size:15px; color:var(--ink);
  background:var(--paper); border:1px solid var(--bone); border-radius:var(--r-md); padding:13px 15px; transition:.2s var(--ease); width:100%; }
.field input:focus, .field select:focus, .field textarea:focus{ outline:none; border-color:var(--yellow-deep);
  box-shadow:0 0 0 3px rgba(255,217,0,.18); background:#fff; }
.field textarea{ resize:vertical; min-height:84px; }
.field .ro{ background:#fff; cursor:default; font-weight:600; }
.bform__submit{ font-family:var(--font-body); font-weight:700; font-size:15.5px; color:var(--ink); background:var(--yellow);
  border:0; border-radius:var(--r-pill); padding:16px; cursor:pointer; transition:.3s var(--ease); margin-top:4px;
  display:flex; align-items:center; justify-content:center; gap:10px; box-shadow:0 16px 36px -16px var(--yellow-deep); }
.bform__submit:hover{ transform:translateY(-2px); }
.bform__submit svg{ width:18px; height:18px; }
.bform__alt{ display:flex; align-items:center; justify-content:center; gap:8px; margin-top:6px; font-size:13px; color:#8a8475; }
.bform__alt a{ color:var(--ink); font-weight:600; border-bottom:1px solid var(--yellow); }

/* =============================================================
   REVIEWS (Google style)
   ============================================================= */
.reviews{ background:var(--paper-2); color:var(--ink); padding:clamp(64px,9vh,128px) 0; }
.reviews__head{ display:flex; align-items:center; justify-content:space-between; gap:30px; flex-wrap:wrap; margin-bottom:clamp(30px,4vh,46px); }
.reviews__intro .eyebrow{ color:var(--yellow-deep); }
.reviews__intro h2{ font-family:var(--font-display); font-size:clamp(30px,4.2vw,56px); line-height:1.02; margin-top:10px; }
.gscore{ display:flex; align-items:center; gap:18px; background:#fff; border:1px solid var(--bone); border-radius:var(--r-lg);
  padding:18px 24px; box-shadow:0 30px 60px -45px rgba(0,0,0,.4); }
.gscore__num{ font-family:var(--font-display); font-size:48px; line-height:1; font-weight:600; }
.gscore__stars{ color:#fbbc04; font-size:16px; letter-spacing:2px; }
.gscore__meta{ font-size:13px; color:#6b6657; margin-top:3px; }
.gscore__g{ width:30px; height:30px; flex:none; }

.rev-track{ display:grid; grid-auto-flow:column; grid-auto-columns:minmax(300px,1fr); gap:18px; overflow-x:auto;
  scroll-snap-type:x mandatory; padding:6px 2px 18px; scrollbar-width:thin; }
.rev-track::-webkit-scrollbar{ height:6px; }
.rev-track::-webkit-scrollbar-thumb{ background:var(--bone); border-radius:3px; }
@media (min-width:1100px){ .rev-track{ grid-auto-flow:row; grid-template-columns:repeat(3,1fr); grid-auto-rows:1fr; overflow:visible; } }
.rcard2{ background:#fff; border:1px solid var(--bone); border-radius:var(--r-lg); padding:24px; scroll-snap-align:start;
  display:flex; flex-direction:column; gap:12px; box-shadow:0 30px 60px -50px rgba(0,0,0,.35); }
.rcard2__top{ display:flex; align-items:center; gap:12px; }
.rav{ width:44px; height:44px; border-radius:var(--r-pill); display:flex; align-items:center; justify-content:center;
  font-weight:700; color:#fff; font-size:17px; flex:none; }
.rcard2__who{ flex:1; min-width:0; }
.rcard2__name{ font-weight:700; font-size:15px; }
.rcard2__date{ font-size:12.5px; color:#8a8475; }
.rcard2__g{ width:20px; height:20px; flex:none; }
.rcard2__stars{ color:#fbbc04; font-size:14px; letter-spacing:1.5px; }
.rcard2__text{ font-size:14.5px; line-height:1.6; color:#3a3730; }
.reviews__cta{ margin-top:clamp(26px,4vh,40px); text-align:center; }

/* =============================================================
   MAP
   ============================================================= */
.mapsec{ background:var(--ink); color:var(--paper); padding:clamp(64px,9vh,120px) 0; }
.mapsec__head{ text-align:center; max-width:560px; margin:0 auto clamp(28px,4vh,44px); }
.mapsec .eyebrow{ color:var(--yellow); }
.mapsec__head h2{ font-family:var(--font-display); color:#fff; font-size:clamp(30px,4.2vw,56px); line-height:1.02; margin:10px 0 12px; }
.mapsec__head p{ color:rgba(246,243,236,.55); font-size:15.5px; }
.mapwrap{ position:relative; border-radius:var(--r-xl); overflow:hidden; box-shadow:var(--shadow-deep);
  border:1px solid rgba(255,255,255,.08); }
#leaflet-map{ height:clamp(380px,56vh,560px); width:100%; background:#1a1a1c; z-index:0; }
.leaflet-tile-pane{ filter:grayscale(.32) contrast(1.02) brightness(.98); }
.leaflet-container{ font-family:var(--font-body) !important; background:#15151700; }
.leaflet-control-attribution{ background:rgba(12,12,13,.55) !important; color:rgba(246,243,236,.55) !important; font-size:10px !important; }
.leaflet-control-attribution a{ color:rgba(246,243,236,.8) !important; }
.leaflet-bar a{ background:var(--ink-3) !important; color:#fff !important; border-color:rgba(255,255,255,.1) !important; }
.leaflet-bar a:hover{ background:var(--yellow) !important; color:var(--ink) !important; }

/* branded marker */
.brand-pin{ position:relative; }
.brand-pin__dot{ width:46px; height:46px; border-radius:50% 50% 50% 8px; transform:rotate(45deg);
  background:var(--ink); border:2.5px solid var(--yellow); box-shadow:0 10px 22px -6px rgba(0,0,0,.6);
  display:flex; align-items:center; justify-content:center; }
.brand-pin__dot b{ transform:rotate(-45deg); font-family:var(--font-display); font-weight:700; color:var(--yellow); font-size:22px; }
.brand-pin__pulse{ position:absolute; left:50%; top:50%; width:46px; height:46px; transform:translate(-50%,-50%);
  border-radius:50%; background:rgba(255,217,0,.35); animation:pulse 2.4s ease-out infinite; z-index:-1; }
@keyframes pulse{ 0%{ transform:translate(-50%,-50%) scale(.6); opacity:.7; } 100%{ transform:translate(-50%,-50%) scale(2.6); opacity:0; } }
.leaflet-popup-content-wrapper{ background:var(--ink) !important; color:var(--paper) !important; border-radius:var(--r-md) !important;
  box-shadow:0 24px 50px -20px rgba(0,0,0,.7) !important; }
.leaflet-popup-tip{ background:var(--ink) !important; }
.leaflet-popup-content{ margin:16px 18px !important; font-family:var(--font-body) !important; }
.mappop b{ font-family:var(--font-display); font-style:italic; color:var(--yellow); font-size:18px; display:block; margin-bottom:4px; }
.mappop span{ font-size:13px; color:rgba(246,243,236,.7); display:block; }
.mappop a{ display:inline-flex; align-items:center; gap:6px; margin-top:10px; font-size:13px; font-weight:700;
  color:var(--ink); background:var(--yellow); border-radius:var(--r-pill); padding:8px 14px; }
.mappop a svg{ width:14px; height:14px; }

/* ghost button on light sections */
.abtn--ghost-dark{ border:1.4px solid rgba(12,12,13,.28); color:var(--ink); background:transparent; }
.abtn--ghost-dark:hover{ background:var(--ink); color:#fff; border-color:var(--ink); transform:translateY(-2px); }
