/* ============================================================
   CALMA Residences — التنسيق
   الألوان الأساسية في :root — غيّرها من هنا لتتغير في كل الموقع
   ============================================================ */
:root {
  --sand: #F3EADF;
  --linen: #FBF7F1;
  --sand-deep: #E9DCCB;
  --line: #DCC8AE;
  --gold: #C9A97E;
  --bronze: #7A5534;
  --bronze-dark: #5E3F26;
  --espresso: #3B2A1E;
  --taupe: #7E6B58;
  --error: #A3362B;

  --f-body: "IBM Plex Sans Arabic", Tahoma, sans-serif;
  --f-head: "Noto Naskh Arabic", "IBM Plex Sans Arabic", serif;
  --f-latin: "Marcellus", Georgia, serif;

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 6px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--sand); color: var(--espresso);
  font-family: var(--f-body); font-size: 16px; font-weight: 400; line-height: 1.85;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, p { margin: 0; }
h2 { font-family: var(--f-head); font-weight: 500; font-size: clamp(28px, 3.4vw, 40px); line-height: 1.5; color: var(--espresso); }
h3 { font-size: 18px; font-weight: 500; line-height: 1.6; }
p { color: var(--taupe); }
:focus-visible { outline: 2px solid var(--bronze); outline-offset: 3px; border-radius: 2px; }
svg { flex-shrink: 0; }

.skip { position: absolute; top: -60px; right: 16px; z-index: 100; background: var(--espresso); color: #fff; padding: 10px 16px; border-radius: var(--radius); }
.skip:focus { top: 12px; }

.link { color: var(--bronze); border-bottom: 1px solid var(--gold); padding-bottom: 1px; }
.link:hover { color: var(--bronze-dark); border-color: var(--bronze); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 26px; border-radius: 999px; border: 1px solid transparent;
  font-size: 15px; font-weight: 500; line-height: 1.2; white-space: nowrap;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.btn svg { width: 20px; height: 20px; }
.btn-primary { background: var(--bronze); color: #FFF9F1; }
.btn-primary:hover { background: var(--bronze-dark); }
.btn-light { background: var(--linen); color: var(--espresso); }
.btn-light:hover { background: #fff; }
.btn-ghost-light { border-color: rgba(255,255,255,.55); color: #fff; }
.btn-ghost-light:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.btn-sm { min-height: 42px; padding: 10px 20px; font-size: 14px; }
.btn-block { width: 100%; }
.btn:active { transform: translateY(1px); }

/* ---------- Top line & header ---------- */
.topline {
  background: var(--espresso); color: #E6D6C1; text-align: center;
  font-size: 13px; padding: 8px var(--gutter);
}
.topline span { color: var(--gold); margin: 0 10px; }

.site-header { position: sticky; top: 0; z-index: 30; transition: background .3s, box-shadow .3s; background: rgba(243,234,223,.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.site-header.scrolled { box-shadow: 0 1px 0 var(--line), 0 10px 30px rgba(59,42,30,.06); }
.header-inner { max-width: 1320px; margin: 0 auto; padding: 14px var(--gutter); display: flex; align-items: center; gap: 32px; }

.brand { display: inline-flex; align-items: center; gap: 12px; direction: ltr; color: var(--bronze); }
.brand-mark { width: 44px; height: 44px; object-fit: contain; }
.brand-word { font-family: var(--f-latin); font-size: 26px; letter-spacing: .22em; line-height: 1; display: flex; flex-direction: column; }
.brand-word small { font-family: var(--f-latin); font-size: 9.5px; letter-spacing: .42em; margin-top: 6px; color: var(--taupe); }

.main-nav { display: flex; align-items: center; gap: 30px; margin-inline-start: auto; font-size: 15px; }
.main-nav a { position: relative; padding: 6px 0; color: var(--espresso); }
.main-nav a:not(.nav-cta)::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 1px; background: var(--bronze); transform: scaleX(0); transition: transform .3s var(--ease); }
.main-nav a:not(.nav-cta):hover::after { transform: scaleX(1); }
.nav-cta { display: none; }
.header-cta { display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; border-radius: 999px; background: var(--bronze); color: #FFF9F1; font-size: 14px; font-weight: 500; transition: background .25s; }
.header-cta:hover { background: var(--bronze-dark); }
.header-cta svg { width: 18px; height: 18px; }

.menu-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: transparent; position: relative; margin-inline-start: auto; }
.menu-toggle span { position: absolute; left: 13px; right: 13px; height: 1.5px; background: var(--espresso); transition: transform .3s var(--ease), top .3s var(--ease); }
.menu-toggle span:first-child { top: 17px; }
.menu-toggle span:last-child { top: 25px; }
.menu-open .menu-toggle span:first-child { top: 21px; transform: rotate(45deg); }
.menu-open .menu-toggle span:last-child { top: 21px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; margin: 0 var(--gutter); border-radius: 10px; overflow: hidden; background: linear-gradient(180deg, #E5D9CC 0%, #ECE2D7 100%); }
.hero-media { display: block; position: relative; }
.hero-media img { width: 100%; height: clamp(320px, 46vw, 600px); object-fit: cover; object-position: center 42%; animation: heroIn 1.6s var(--ease) both; }
.hero-media::after { content: ""; position: absolute; inset: auto 0 0 0; height: 28%; background: linear-gradient(to bottom, rgba(229,217,204,0), #E5D9CC); pointer-events: none; }
.hero-inner { position: relative; text-align: center; max-width: 760px; margin: -8px auto 0; padding: 0 24px 120px; }
.hero-tag { color: var(--bronze); font-size: 15px; margin-bottom: 6px; }
.hero h1 { font-family: var(--f-head); font-weight: 500; font-size: clamp(34px, 4.4vw, 56px); line-height: 1.4; color: var(--espresso); margin-bottom: 14px; }
.hero-lead { color: var(--taupe); font-size: clamp(16px, 1.3vw, 18px); max-width: 34em; margin: 0 auto 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
@keyframes heroIn { from { opacity: 0; transform: scale(1.03); } }

/* ---------- Search ---------- */
.search {
  position: relative; z-index: 2; max-width: 1060px; margin: -64px auto 0; width: calc(100% - 2 * var(--gutter) - 32px);
  background: var(--linen); border: 1px solid var(--line); border-radius: 10px;
  display: grid; grid-template-columns: 1fr 1fr .9fr auto; gap: 28px; align-items: end;
  padding: 26px 30px; box-shadow: 0 24px 60px rgba(59,42,30,.10);
}
.field { display: grid; gap: 4px; font-size: 13px; color: var(--taupe); font-weight: 500; }
input, select {
  width: 100%; min-height: 46px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0;
  background: transparent; color: var(--espresso); padding: 6px 2px; font-size: 16px; transition: border-color .2s;
}
input:hover, select:hover { border-bottom-color: var(--gold); }
input:focus, select:focus { outline: none; border-bottom-color: var(--bronze); box-shadow: 0 1px 0 var(--bronze); }
input[type=date] { direction: ltr; text-align: right; }
select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%237A5534' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: left 4px center; background-size: 11px; padding-left: 22px; }
input::placeholder { color: #B3A08B; }
.search .btn { min-height: 52px; }
.search-status { grid-column: 1 / -1; font-size: 14px; color: var(--bronze); margin-top: -8px; }
.search-status.is-error { color: var(--error); }
.search-status:empty { display: none; }

/* ---------- Sections ---------- */
.section { max-width: var(--wrap); margin: 0 auto; padding: clamp(72px, 9vw, 120px) var(--gutter); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 40px; margin-bottom: 44px; }
.section-head p { max-width: 420px; font-size: 16px; }
.section-head.stacked { display: block; }
.section-head.stacked p { margin-top: 12px; }
.section-head.center { text-align: center; }

/* ---------- Units ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.card { background: var(--linen); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .35s var(--ease), transform .35s var(--ease); }
.card:hover { box-shadow: 0 22px 50px rgba(59,42,30,.10); transform: translateY(-3px); }
.card-image { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border: 0; padding: 0; background: var(--sand-deep); width: 100%; }
.card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.card:hover .card-image img { transform: scale(1.05); }
.card-photos { position: absolute; bottom: 14px; right: 14px; background: rgba(251,247,241,.92); color: var(--espresso); font-size: 12.5px; padding: 5px 13px; border-radius: 999px; }
.card-body { padding: 24px 24px 22px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { font-family: var(--f-head); font-size: 24px; font-weight: 500; }
.card-body h3 .unit-name { font-family: var(--f-body); font-weight: 500; letter-spacing: .12em; font-size: 22px; }
.card-body h3 .unit-tag { display: block; font-family: var(--f-body); font-size: 15px; color: var(--taupe); font-weight: 400; margin-top: -2px; }
.specs { list-style: none; margin: 16px 0 22px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 14px; color: var(--taupe); }
.specs li { display: inline-flex; align-items: center; gap: 7px; }
.specs svg { width: 19px; height: 19px; color: var(--bronze); }
.card-bottom { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 12px; border-top: 1px solid var(--line); padding-top: 18px; }
.price { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.price strong { font-family: var(--f-body); font-size: 28px; font-weight: 600; color: var(--espresso); line-height: 1; }
.price small { font-size: 13px; color: var(--taupe); }

/* ---------- Amenities ---------- */
.amenities-band { background: var(--sand-deep); position: relative; overflow: hidden; }
.amenities-band::before { content: ""; position: absolute; width: 520px; height: 520px; left: -160px; bottom: -200px; background: url("assets/mark.svg") center / contain no-repeat; opacity: .09; pointer-events: none; }
.amenities-inner { display: grid; grid-template-columns: .8fr 1.6fr; gap: 64px; align-items: start; }
.amenities { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 36px 44px; }
.amenities li { display: flex; gap: 16px; align-items: flex-start; }
.amenities svg { width: 46px; height: 46px; padding: 11px; border: 1px solid var(--gold); border-radius: 50%; color: var(--bronze); background: var(--linen); }
.amenities p { font-size: 15px; margin-top: 2px; }

/* ---------- Steps ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; position: relative; counter-reset: s; }
.steps li { text-align: center; padding: 0 28px; position: relative; }
.steps li + li::before { content: ""; position: absolute; top: 28px; right: calc(-50% + 36px); width: calc(100% - 72px); height: 1px; background: var(--line); }
.step-num { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; border: 1px solid var(--gold); font-family: var(--f-head); font-size: 24px; color: var(--bronze); background: var(--linen); margin-bottom: 18px; }
.steps p { font-size: 15px; margin-top: 6px; }

/* ---------- Accordions ---------- */
.faq { display: grid; grid-template-columns: .8fr 1.6fr; gap: 64px; border-top: 1px solid var(--line); }
.accordion details { border-bottom: 1px solid var(--line); }
.accordion summary { list-style: none; cursor: pointer; padding: 20px 0 20px 40px; position: relative; font-size: 17px; font-weight: 500; transition: color .2s; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: ""; position: absolute; left: 6px; top: 50%; width: 12px; height: 12px; margin-top: -6px; background: linear-gradient(var(--bronze), var(--bronze)) center / 12px 1.5px no-repeat, linear-gradient(var(--bronze), var(--bronze)) center / 1.5px 12px no-repeat; transition: transform .3s var(--ease); }
.accordion details[open] summary::after { transform: rotate(45deg); }
.accordion summary:hover { color: var(--bronze); }
.accordion details > p, .accordion details > ul { padding: 0 0 22px; font-size: 15.5px; color: var(--taupe); max-width: 62ch; }
.accordion ul { margin: 0; padding-inline-start: 0 !important; list-style: none; display: grid; gap: 8px; }
.accordion ul b { color: var(--espresso); font-weight: 500; }

/* ---------- Policies ---------- */
.policies { border-top: 1px solid var(--line); }
.stay-times { display: flex; align-items: center; gap: 40px; background: var(--linen); border: 1px solid var(--line); border-radius: 10px; padding: 26px 32px; margin-bottom: 18px; }
.stay-times small { display: block; font-size: 13px; color: var(--taupe); }
.stay-times b { display: block; font-family: var(--f-head); font-weight: 500; font-size: 28px; color: var(--bronze); line-height: 1.5; }
.stay-mark { width: 38px; height: 38px; object-fit: contain; }
.stay-times p { margin-inline-start: auto; font-size: 14px; }
.policy-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; align-items: start; }
.policy-list .wide { grid-column: 1 / -1; }
.pn { font-family: var(--f-body); font-weight: 500; color: var(--gold); font-size: 15px; margin-inline-end: 14px; }
.emergency { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; border: 1px solid var(--line); border-radius: 10px; padding: 20px 26px; margin-top: 32px; }
.emergency > b { font-weight: 500; }
.emergency > div { display: flex; flex-wrap: wrap; gap: 10px 26px; font-size: 15px; }
.emergency a { color: var(--taupe); transition: color .2s; }
.emergency a:hover { color: var(--bronze); }
.emergency span { font-weight: 600; color: var(--espresso); margin-inline-start: 6px; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 280px 1fr; gap: 72px; align-items: center; border-top: 1px solid var(--line); }
.brand-poster { width: 100%; height: auto; border-radius: 10px; box-shadow: 0 30px 60px rgba(59,42,30,.16); }
.social-links { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.social-card { display: flex; align-items: center; gap: 16px; padding: 20px 22px; background: var(--linen); border: 1px solid var(--line); border-radius: 10px; transition: border-color .25s, background .25s; }
.social-card:hover { border-color: var(--bronze); }
.social-card svg { width: 30px; height: 30px; color: var(--bronze); }
.social-card span { font-size: 14px; color: var(--taupe); line-height: 1.5; }
.social-card b { display: block; font-family: var(--f-body); font-size: 17px; font-weight: 500; color: var(--espresso); letter-spacing: .01em; }
.social-card.primary-card { background: var(--bronze); border-color: var(--bronze); }
.social-card.primary-card svg, .social-card.primary-card b { color: #FFF9F1; }
.social-card.primary-card span { color: #E9D3B4; }
.social-card.primary-card:hover { background: var(--bronze-dark); }

/* ---------- Closing ---------- */
.closing { position: relative; overflow: hidden; background: var(--espresso); color: #F5ECE0; text-align: center; padding: clamp(80px, 10vw, 130px) var(--gutter); margin: 0 var(--gutter); border-radius: 10px; }
.closing-mark { position: absolute; width: 440px; height: 440px; opacity: .22; filter: brightness(1.6); top: 50%; left: 50%; transform: translate(-50%, -50%); }
.closing h2 { position: relative; color: #F5ECE0; margin-bottom: 32px; }
.closing .btn { position: relative; }

/* ---------- Footer ---------- */
.site-footer { padding: 64px var(--gutter) 110px; }
.footer-inner { max-width: var(--wrap); margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; align-items: start; }
.footer-col b { display: block; font-weight: 500; font-size: 14px; margin-bottom: 6px; }
.footer-col p { font-size: 15px; }
.footer-col a:hover { color: var(--bronze); }
.footer-social { display: flex; gap: 14px; }
.footer-social svg { width: 22px; height: 22px; color: var(--bronze); }
.copy { display: block; max-width: var(--wrap); margin: 40px auto 0; padding-top: 22px; border-top: 1px solid var(--line); font-size: 13px; color: var(--taupe); }

/* ---------- Dialogs ---------- */
dialog { border: 1px solid var(--line); border-radius: 14px; background: var(--linen); color: var(--espresso); width: min(560px, calc(100% - 24px)); max-height: calc(100dvh - 24px); padding: 30px; overflow: auto; box-shadow: 0 40px 100px rgba(30,20,12,.35); }
dialog[open] { animation: pop .3s var(--ease); }
dialog::backdrop { background: rgba(33,24,17,.6); backdrop-filter: blur(3px); }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(.98); } }
body:has(dialog[open]) { overflow: hidden; }
.dialog-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.dialog-kicker { font-size: 13px; color: var(--bronze); }
dialog h2 { font-size: 26px; line-height: 1.5; }
.close-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: transparent; font-size: 24px; line-height: 1; display: grid; place-items: center; transition: background .2s; }
.close-btn:hover { background: var(--sand-deep); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 22px; margin-top: 22px; }
.summary { background: var(--sand); border-radius: 8px; padding: 16px 18px; margin-top: 22px; }
.summary-row { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; }
.summary-row b { font-weight: 600; font-size: 17px; }
.summary small { display: block; font-size: 13px; color: var(--taupe); margin-top: 4px; }
.summary-err { color: var(--error); font-size: 14px; }
.booking-policy { margin-top: 16px; font-size: 14px; }
.booking-policy summary { cursor: pointer; color: var(--bronze); font-weight: 500; }
.booking-policy p { font-size: 14px; margin: 8px 0; }
.consent { display: flex; align-items: flex-start; gap: 10px; font-size: 14.5px; margin: 18px 0 6px; cursor: pointer; }
.consent input { width: 20px; height: 20px; min-height: 0; flex-shrink: 0; margin: 4px 0 0; accent-color: var(--bronze); }
.error { color: var(--error); font-size: 14px; min-height: 1.2em; margin-bottom: 8px; }
.fine { font-size: 13px; margin-top: 12px; text-align: center; }

.gallery { width: min(960px, calc(100% - 24px)); }
.gallery-stage { position: relative; margin-top: 16px; border-radius: 8px; overflow: hidden; background: var(--sand-deep); }
.gallery-stage img, .gallery-stage video { display: block; width: 100%; height: auto; max-height: 70vh; object-fit: contain; background: #000; }
.gallery-stage img { background: transparent; }
.gallery-stage [hidden] { display: none; }
.g-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(251,247,241,.92); display: grid; place-items: center; color: var(--espresso); }
.g-nav svg { width: 22px; height: 22px; }
.g-prev { right: 12px; }
.g-next { left: 12px; }
.g-nav[hidden] { display: none; }
.g-count { text-align: center; font-size: 14px; margin-top: 10px; }
.g-count:empty { display: none; }

/* ---------- Floating WhatsApp ---------- */
.floating-wa { position: fixed; bottom: max(20px, env(safe-area-inset-bottom)); left: 20px; z-index: 25; display: flex; align-items: center; gap: 8px; padding: 12px 18px; border-radius: 999px; background: var(--bronze); color: #FFF9F1; font-size: 14px; font-weight: 500; box-shadow: 0 10px 30px rgba(59,42,30,.3); transition: background .25s, transform .25s; }
.floating-wa:hover { background: var(--bronze-dark); transform: translateY(-2px); }
.floating-wa svg { width: 22px; height: 22px; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1080px) {
  .main-nav { gap: 22px; font-size: 14px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .amenities-inner, .faq { grid-template-columns: 1fr; gap: 36px; }
  .contact { grid-template-columns: 220px 1fr; gap: 44px; }
}

@media (max-width: 900px) {
  .header-cta { display: none; }
  .menu-toggle { display: block; }
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--sand); }
  .main-nav {
    position: fixed; inset: 0; top: 0; z-index: -1; flex-direction: column; justify-content: center; gap: 6px;
    background: var(--sand); font-size: 22px; font-family: var(--f-head);
    opacity: 0; visibility: hidden; transition: opacity .3s var(--ease), visibility .3s;
  }
  .main-nav a { padding: 10px 0; }
  .nav-cta { display: inline-flex; margin-top: 18px; font-family: var(--f-body); font-size: 16px; background: var(--bronze); color: #FFF9F1 !important; padding: 14px 28px !important; border-radius: 999px; }
  .menu-open .main-nav { opacity: 1; visibility: visible; }
  .menu-open { overflow: hidden; }
  .menu-open .site-header { background: var(--sand); }

  .search { grid-template-columns: 1fr 1fr; gap: 18px 22px; padding: 22px; }
  .search .btn { grid-column: 1 / -1; }
  .section-head { display: block; }
  .section-head p { margin-top: 12px; }
  .steps { grid-template-columns: 1fr; gap: 28px; max-width: 460px; margin: 0 auto; }
  .steps li { display: grid; grid-template-columns: 56px 1fr; gap: 0 18px; text-align: right; padding: 0; }
  .steps li .step-num { grid-row: span 2; margin: 0; }
  .steps li + li::before { display: none; }
  .policy-list { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-inner .brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  body { font-size: 15px; }
  .topline { font-size: 12px; }
  .topline span { margin: 0 6px; }
  .brand-mark { width: 36px; height: 36px; }
  .brand-word { font-size: 22px; }
  .hero { margin: 0 12px; }
  .hero-media img { height: auto; aspect-ratio: 954 / 572; }
  .hero-inner { padding: 0 20px 100px; margin-top: -4px; }
  .hero-tag { font-size: 14px; }
  .hero-actions .btn { flex: 1; padding-inline: 16px; }
  .search { width: calc(100% - 40px); margin-top: -56px; grid-template-columns: 1fr 1fr; padding: 20px; }
  .search .field:nth-of-type(3) { grid-column: 1 / -1; }
  .cards { grid-template-columns: 1fr; }
  .amenities { grid-template-columns: 1fr; gap: 26px; }
  .stay-times { flex-wrap: wrap; gap: 14px 32px; padding: 20px 22px; }
  .stay-mark { display: none; }
  .stay-times p { margin: 0; width: 100%; }
  .emergency { flex-direction: column; align-items: flex-start; gap: 10px; }
  .contact { grid-template-columns: 1fr; gap: 36px; }
  .brand-poster { max-width: 240px; margin: 0 auto; }
  .contact .section-head { text-align: center; }
  .social-links { grid-template-columns: 1fr; }
  .closing { margin: 0 12px; }
  .closing-mark { width: 320px; height: 320px; }
  .footer-inner { grid-template-columns: 1fr; gap: 22px; }
  dialog { padding: 22px; }
  .form-grid { grid-template-columns: 1fr 1fr; gap: 14px 16px; }
  .form-grid .field:nth-child(3), .form-grid .field:nth-child(4) { grid-column: 1 / -1; }
  .floating-wa span { display: none; }
  .floating-wa { padding: 14px; left: 16px; }
}

/* ---------- Intro splash (logo animation) ---------- */
.splash { position: fixed; inset: 0; z-index: 200; background: radial-gradient(ellipse at 50% 45%, #F6EFE6 0%, #E9DDCF 100%); display: grid; place-items: center; transition: opacity .7s var(--ease), visibility .7s; cursor: pointer; }
.splash.is-hidden { opacity: 0; visibility: hidden; }
.splash-logo { text-align: center; color: #A57C52; }
.splash-mark { width: clamp(96px, 16vw, 140px); height: auto; display: block; margin: 0 auto 22px; }
.splash-mark circle, .splash-mark ellipse { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.5s var(--ease) forwards; }
.splash-mark :nth-child(2) { animation-delay: .25s; }
.splash-mark :nth-child(3) { animation-delay: .4s; }
.splash-mark :nth-child(4) { animation-delay: .6s; }
.splash-word { font-family: var(--f-latin); font-size: clamp(38px, 7vw, 64px); letter-spacing: .2em; color: #6B4A2E; line-height: 1; padding-inline-start: .2em; direction: ltr; opacity: 0; animation: rise .9s var(--ease) 1s forwards; }
.splash-word small { display: block; font-size: .24em; letter-spacing: .5em; margin-top: 14px; color: #8C6B4C; }
.splash-tag { margin-top: 22px; color: #8C6B4C; font-size: 15px; opacity: 0; animation: rise .9s var(--ease) 1.4s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.splash-skip { position: absolute; bottom: max(24px, env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); border: 1px solid rgba(59,42,30,.25); background: rgba(255,255,255,.4); color: var(--espresso); border-radius: 999px; padding: 8px 22px; font-size: 13px; }
body.intro-on { overflow: hidden; }

/* ---------- Monthly ---------- */
.monthly-band { background: var(--espresso); color: #F5ECE0; margin: 0 var(--gutter) clamp(64px, 8vw, 110px); border-radius: 10px; position: relative; overflow: hidden; }
.monthly-band::after { content: ""; position: absolute; width: 460px; height: 460px; right: -140px; top: -150px; background: url("assets/mark.svg") center / contain no-repeat; opacity: .08; pointer-events: none; }
.monthly { display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: center; position: relative; z-index: 1; }
.monthly h2 { color: #F5ECE0; }
.monthly-copy > p { color: #D9C8B1; margin-top: 14px; max-width: 34em; font-size: 16.5px; }
.monthly-facts { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 18px 44px; margin: 34px 0 0; }
.monthly-facts div { border-inline-start: 1px solid rgba(201,169,126,.45); padding-inline-start: 16px; }
.monthly-facts dt { font-size: 13px; color: #BFA98C; }
.monthly-facts dd { margin: 2px 0 0; font-family: var(--f-head); font-size: 22px; color: #F5ECE0; }
.monthly-card { background: var(--linen); color: var(--espresso); border-radius: 10px; padding: 30px; display: grid; gap: 16px; box-shadow: 0 30px 60px rgba(0,0,0,.25); }
.monthly-price { display: flex; align-items: baseline; gap: 10px; }
.monthly-price strong { font-family: var(--f-body); font-size: 44px; font-weight: 600; line-height: 1; color: var(--bronze); }
.monthly-price span { color: var(--taupe); font-size: 15px; }
.monthly-note { font-size: 14px; margin-top: -8px; }
.monthly-out { font-size: 14px; color: var(--bronze); min-height: 1.4em; }
.card-monthly { margin-top: 14px; width: 100%; text-align: right; border: 1px dashed var(--gold); background: transparent; border-radius: 8px; padding: 9px 14px; font-size: 14px; color: var(--taupe); transition: background .2s, border-color .2s; }
.card-monthly b { color: var(--bronze); font-weight: 600; }
.card-monthly:hover { background: var(--sand); border-color: var(--bronze); }

/* booking: stay type */
.stay-type { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; background: var(--sand); border-radius: 999px; padding: 5px; margin-top: 20px; }
.stay-type label { position: relative; cursor: pointer; }
.stay-type input { position: absolute; opacity: 0; inset: 0; }
.stay-type span { display: block; text-align: center; padding: 9px 12px; border-radius: 999px; font-size: 14.5px; font-weight: 500; color: var(--taupe); transition: background .25s, color .25s; }
.stay-type input:checked + span { background: var(--bronze); color: #FFF9F1; }
.stay-type input:focus-visible + span { outline: 2px solid var(--bronze); outline-offset: 2px; }
.field.is-locked input { color: var(--taupe); border-bottom-style: dashed; pointer-events: none; }
.summary-row.sub { font-size: 14px; color: var(--taupe); margin-top: 4px; }
.summary-tip { display: block; width: 100%; margin-top: 10px; text-align: right; background: var(--linen); border: 1px solid var(--gold); border-radius: 6px; padding: 8px 12px; font-size: 13.5px; color: var(--bronze); }

@media (max-width: 900px) {
  .monthly { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 640px) {
  .monthly-band { margin: 0 12px; }
  .monthly-facts { grid-template-columns: 1fr 1fr; gap: 16px 20px; }
  .monthly-facts div:last-child { grid-column: 1 / -1; }
  .monthly-card { padding: 22px; }
  .monthly-price strong { font-size: 38px; }
}

/* ---------- Unit deep link & share ---------- */
.card { scroll-margin-top: 100px; }
.card.is-target { border-color: var(--bronze); box-shadow: 0 0 0 3px rgba(122,85,52,.25), 0 22px 50px rgba(59,42,30,.12); animation: targetPulse 1.6s var(--ease) 2; }
@keyframes targetPulse { 50% { box-shadow: 0 0 0 8px rgba(122,85,52,.12), 0 22px 50px rgba(59,42,30,.12); } }
.card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.share-btn { flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--bronze); display: grid; place-items: center; transition: background .2s, border-color .2s; }
.share-btn:hover { background: var(--sand); border-color: var(--bronze); }
.share-btn svg { width: 18px; height: 18px; }
.toast { position: fixed; bottom: 90px; left: 50%; transform: translate(-50%, 20px); background: var(--espresso); color: #FFF9F1; padding: 10px 20px; border-radius: 999px; font-size: 14px; opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s var(--ease); z-index: 150; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Card rates (daily + monthly) ---------- */
.card-rates { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.rate { display: grid; gap: 0; text-align: right; border: 1px dashed var(--gold); background: transparent; border-radius: 8px; padding: 9px 12px; line-height: 1.5; transition: background .2s, border-color .2s; }
.rate:hover { background: var(--sand); border-color: var(--bronze); }
.rate small { font-size: 12.5px; color: var(--taupe); }
.rate b { font-size: 17px; font-weight: 600; color: var(--bronze); }
.rate span { font-size: 12.5px; color: var(--taupe); }

/* ---------- Promo ---------- */
.promo { display: flex; align-items: flex-end; gap: 12px; margin-top: 20px; }
.promo .field { flex: 1; }
.promo input { text-transform: uppercase; letter-spacing: .06em; }
.btn-outline { background: transparent; border-color: var(--bronze); color: var(--bronze); }
.btn-outline:hover { background: var(--bronze); color: #FFF9F1; }
.promo-msg { font-size: 13.5px; min-height: 1.3em; margin-top: 6px; }
.promo-msg.is-ok { color: #3F6B3A; }
.promo-msg.is-error { color: var(--error); }
.summary { margin-top: 12px; }
.summary-row.total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 8px; font-size: 15.5px; }
.summary-row.discount { color: #3F6B3A; }
.summary-note { color: var(--error) !important; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}
