/* =========================================================================
   Visit Secret Sri Lanka — page components (interests, packages, property,
   enquiry, homepage). Loaded after style.css and uses its tokens.
   Ivory paper, charcoal ink, deep green actions, brass hairlines only.
   ========================================================================= */

.btn-green { background: var(--green-700); color: var(--sand-000); }
.btn-line { border-color: var(--text-on-light); color: var(--text-on-light); }
.btn-line:hover { background: rgba(36, 38, 42, 0.06); }
.btn-ghost { border-color: rgba(255, 252, 245, 0.65); color: #fffcf5; }
.btn-ghost:hover { background: rgba(255, 252, 245, 0.1); }
.btn-sm { padding: 0.45rem 0.85rem; font-size: 0.82rem; }
.main-nav a.btn-gold { color: var(--sand-000); }
.u { text-decoration: underline; text-underline-offset: 3px; }
.data { font-family: var(--font-data); font-size: 0.74rem; letter-spacing: 0.02em; }
.byline { font-size: 0.84rem; color: var(--text-on-light-dim); }
.reason { color: var(--text-on-light-dim); font-size: 0.95rem; }

/* ---------- photo slots: illustrated stand-in + size label ---------- */
.ph { position: relative; overflow: hidden; background: #cfc6ad; aspect-ratio: var(--ar, 4 / 3); width: 100%; }
.ph > svg, .ph > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ph-size {
  position: absolute; top: 12px; left: 12px; z-index: 4;
  font-family: var(--font-data); font-size: 0.62rem; line-height: 1.3; letter-spacing: 0.02em;
  padding: 0.3rem 0.5rem; background: rgba(168, 138, 78, 0.95); color: #1c1e21; border-radius: 2px;
  max-width: calc(100% - 24px); white-space: nowrap;
}
.tile .ph, .hero > .ph, .ihero > .ph { position: absolute; inset: 0; aspect-ratio: auto; height: 100%; }
.hero > .ph .ph-size, .ihero > .ph .ph-size { top: auto; bottom: 14px; left: auto; right: 14px; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: min(100svh, 820px); display: flex; align-items: flex-end; background: var(--green-700); color: #fffcf5; isolation: isolate; }
.hero::after { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(14, 28, 23, 0.62) 0%, rgba(14, 28, 23, 0.4) 38%, rgba(14, 28, 23, 0.82) 100%); }
.hero-in { position: relative; z-index: 3; width: 100%; padding-top: 8.5rem; padding-bottom: 2.75rem; display: grid; gap: 2.4rem; }
.hero .copy { display: grid; gap: 1.2rem; }
.hero h1 { font-size: clamp(2.8rem, 6.6vw, 5.4rem); font-weight: 500; max-width: 15ch; color: #fffcf5; line-height: 1.02; }
.hero .sub { max-width: 52ch; font-size: 1.08rem; color: rgba(255, 252, 245, 0.9); }
.hero .eyebrow, .ihero .eyebrow { color: #f0dfb4; }
.hero .eyebrow::before, .ihero .eyebrow::before { background: #f0dfb4; }
.hero-links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.4rem; font-size: 0.86rem; }
.hero-links a { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(255, 252, 245, 0.5); }

.finder { display: grid; grid-template-columns: repeat(3, 1fr) auto; background: var(--sand-000); color: var(--text-on-light); border-radius: 4px; overflow: hidden; box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.5); }
.finder label { display: grid; gap: 2px; padding: 0.85rem 1.1rem; border-right: 1px solid var(--sand-200); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-on-light-dim); font-weight: 700; min-width: 0; }
.finder select { font: inherit; font-size: 0.98rem; letter-spacing: 0; text-transform: none; color: var(--ink); border: 0; background: transparent; padding: 0; width: 100%; min-width: 0; }
.finder .btn { border-radius: 0; padding-inline: 1.8rem; }

/* ---------- strip ---------- */
.strip { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--sand-200); background: #fffcf5; }
.strip div { padding: 1.1rem 1.5rem; display: grid; gap: 2px; }
.strip div + div { border-left: 1px solid var(--sand-200); }
.strip b { font-weight: 600; font-size: 0.9rem; }
.strip span { font-size: 0.8rem; color: var(--text-on-light-dim); }

/* ---------- sections ---------- */
.sec { padding-block: clamp(3.5rem, 7vw, 5.5rem); background: var(--sand-000); }
.sec.alt { background: var(--sand-100); }
.sec.tight-top { padding-top: 1.5rem; }
.page-top { padding-top: 7rem; background: var(--sand-000); }
.sec-head { display: grid; gap: 0.8rem; max-width: 640px; margin-bottom: 2.4rem; }
.sec-head.tight { margin-bottom: 1.2rem; }
.sec-head h2 { font-size: clamp(2.1rem, 4.2vw, 3.1rem); font-weight: 500; color: var(--ink); }
.sec-head p:not(.eyebrow) { color: var(--text-on-light-dim); font-size: 1.02rem; }
.row-head { display: flex; flex-wrap: wrap; gap: 0.8rem 1.5rem; justify-content: space-between; align-items: flex-end; margin-bottom: 2rem; }
.row-head .sec-head { margin: 0; }
.soon { margin-top: 1.6rem; color: var(--text-on-light-dim); font-size: 0.92rem; }
.soon a { text-decoration: underline; text-underline-offset: 3px; color: var(--green-700); }

/* ---------- interest tiles ---------- */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.9rem; }
.tiles.n3, .tiles.n6, .tiles.n9 { grid-template-columns: repeat(3, 1fr); }
.tiles.n5 { grid-template-columns: repeat(5, 1fr); }
.tiles.n5 .tile b { font-size: 1.4rem; }
.tile { position: relative; aspect-ratio: 4 / 5; display: flex; align-items: flex-end; overflow: hidden; border-radius: 3px; color: #fffcf5; isolation: isolate; }
.tile::after { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, transparent 40%, rgba(12, 24, 19, 0.82)); }
.tile .ph { transition: transform 0.7s var(--ease-out); }
.tile:hover .ph { transform: scale(1.04); }
.tile .lbl { position: relative; z-index: 3; padding: 1.1rem; display: grid; gap: 3px; }
.tile b { font-family: var(--font-display); font-weight: 500; font-size: 1.65rem; line-height: 1; }
.tile .lbl span { font-size: 0.82rem; opacity: 0.92; }
.tile .n { font-family: var(--font-data); font-size: 0.66rem; opacity: 0.85; }

/* ---------- cards ---------- */
.props { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.props.two { grid-template-columns: repeat(2, 1fr); }
.rgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.8rem; }
.card { display: grid; align-content: start; background: #fffcf5; border: 1px solid var(--sand-200); border-radius: 3px; overflow: hidden; transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out); }
.card:hover { transform: translateY(-3px); box-shadow: 0 24px 40px -30px rgba(20, 30, 26, 0.5); }
.card .top { position: relative; display: block; }
.card .body { padding: 1.25rem; display: grid; gap: 0.55rem; }
.meta { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--green-700); font-weight: 700; }
.card h3 { font-size: 1.8rem; font-weight: 500; }
.badge { position: absolute; bottom: 12px; left: 12px; z-index: 5; font-family: var(--font-data); font-size: 0.66rem; letter-spacing: 0.08em; text-transform: uppercase; background: var(--green-700); color: var(--sand-000); padding: 0.25rem 0.55rem; border-radius: 2px; }
.foot { display: flex; justify-content: space-between; align-items: center; gap: 0.8rem; border-top: 1px solid var(--sand-200); padding-top: 0.8rem; margin-top: 0.3rem; font-size: 0.88rem; }
.foot .p b { font-weight: 700; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { border: 1px solid var(--sand-200); border-radius: 999px; padding: 0.1rem 0.6rem; font-size: 0.74rem; color: var(--text-on-light-dim); background: #fffcf5; }
a.tag:hover { border-color: var(--green-700); color: var(--green-700); }
.rline-wrap { display: grid; gap: 0.4rem; }
.rline { display: flex; align-items: center; min-width: 0; }
.rline .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--green-700); flex: none; }
.rline .seg-l { flex: 1; height: 1px; background: repeating-linear-gradient(90deg, var(--gold-500) 0 5px, transparent 5px 9px); min-width: 12px; }
.rstops { display: flex; justify-content: space-between; gap: 8px; font-size: 0.78rem; color: var(--text-on-light-dim); }

/* ---------- why / checks ---------- */
.why { display: grid; grid-template-columns: 1.1fr 1fr; gap: 4rem; align-items: start; }
.why h2 { font-size: clamp(2.1rem, 4.2vw, 3.1rem); font-weight: 500; margin-top: 0.9rem; }
.checks { border-top: 1px solid var(--sand-200); }
.checks > div { display: grid; grid-template-columns: 2.2rem 1fr; gap: 6px; padding: 1rem 0; border-bottom: 1px solid var(--sand-200); }
.checks i { font-style: normal; font-family: var(--font-data); color: var(--gold-600); }
.checks b { display: block; font-weight: 700; }
.checks span { color: var(--text-on-light-dim); font-size: 0.92rem; }

.final { background: var(--green-700); color: var(--sand-000); padding-block: clamp(3.5rem, 7vw, 5.5rem); }
.final-in { display: grid; grid-template-columns: 1.2fr 1fr; gap: 2.5rem; align-items: center; }
.final h2 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); font-weight: 500; color: #fffcf5; }
.final p { color: rgba(246, 240, 227, 0.82); margin-top: 0.8rem; max-width: 46ch; }
.final .acts { display: grid; gap: 0.8rem; justify-items: start; }

/* ---------- interior pages ---------- */
.ptitle { display: grid; gap: 0.7rem; padding-bottom: 0.5rem; }
.ptitle h1 { font-size: clamp(2.4rem, 5.4vw, 3.8rem); font-weight: 500; }
.ptitle .reason { max-width: 58ch; }
.filters { margin-top: 1.4rem; padding: 1rem; background: #fffcf5; border: 1px solid var(--sand-200); }
.frow { display: grid; grid-template-columns: repeat(5, 1fr) auto; gap: 0.8rem; align-items: end; }
.f { display: grid; gap: 4px; font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-on-light-dim); font-weight: 700; min-width: 0; border: 0; padding: 0; margin: 0; }
.f select, .f input:not([type='checkbox']), .f textarea { font: inherit; font-size: 0.95rem; letter-spacing: 0; text-transform: none; font-weight: 400; color: var(--ink); background: var(--sand-000); border: 1px solid var(--sand-200); border-radius: 3px; padding: 0.6rem 0.7rem; width: 100%; min-width: 0; }
.f textarea { min-height: 90px; resize: vertical; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 1.2rem; }
.f .chips { margin-top: 0.2rem; }
.chip { display: inline-block; border: 1px solid var(--sand-200); background: var(--sand-000); border-radius: 999px; padding: 0.35rem 0.8rem; font-size: 0.84rem; letter-spacing: 0; text-transform: none; font-weight: 500; color: var(--ink); cursor: pointer; position: relative; }
.chip[aria-current='true'], .chip.check:has(input:checked) { background: var(--green-700); border-color: var(--green-700); color: var(--sand-000); }
.chip.check input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip.check:has(input:focus-visible) { outline: 2px solid var(--gold-600); outline-offset: 2px; }
.count { color: var(--text-on-light-dim); font-size: 0.88rem; margin-bottom: 1.2rem; }
.empty { border: 1px dashed var(--gold-500); padding: 2rem; color: var(--text-on-light-dim); }
.empty a { text-decoration: underline; text-underline-offset: 3px; color: var(--green-700); }

.ihero { position: relative; min-height: 440px; display: flex; align-items: flex-end; color: #fffcf5; background: var(--green-700); isolation: isolate; }
.ihero::after { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(14, 28, 23, 0.55), rgba(14, 28, 23, 0.8)); }
.ihero .in { position: relative; z-index: 3; padding-top: 8rem; padding-bottom: 2.6rem; display: grid; gap: 0.9rem; max-width: 900px; margin-inline: 0; }
.ihero h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); font-weight: 500; color: #fffcf5; }
.ihero p:not(.eyebrow) { max-width: 52ch; color: rgba(255, 252, 245, 0.9); font-size: 1.05rem; }
.ihero .container.in { width: 100%; max-width: var(--container); margin-inline: auto; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; }
.list { display: grid; border-top: 1px solid var(--sand-200); }
.list > div { display: grid; grid-template-columns: 10rem 1fr; gap: 1rem; padding: 0.8rem 0; border-bottom: 1px solid var(--sand-200); font-size: 0.93rem; }
.list b { font-weight: 700; }
.faq { border-top: 1px solid var(--sand-200); }
.faq details { border-bottom: 1px solid var(--sand-200); padding: 0.9rem 0; }
.faq summary { font-family: var(--font-display); font-size: 1.35rem; cursor: pointer; }
.faq p { color: var(--text-on-light-dim); margin-top: 0.5rem; max-width: 64ch; }

.notes { margin-top: 1rem; display: grid; grid-template-columns: repeat(5, 1fr); border: 1px solid var(--sand-200); background: #fffcf5; }
.notes div { padding: 0.75rem 1rem; display: grid; gap: 2px; }
.notes div + div { border-left: 1px solid var(--sand-200); }
.notes span { font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-on-light-dim); font-weight: 700; }
.notes b { font-family: var(--font-data); font-weight: 500; font-size: 0.86rem; }

.pgrid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 3.5rem; padding-block: 2.5rem 5rem; align-items: start; }
.pmain { display: grid; gap: 2.8rem; min-width: 0; }
.keyfacts { display: grid; grid-template-columns: repeat(4, 1fr); border-block: 1px solid var(--sand-200); }
.keyfacts div { padding: 1rem 0; display: grid; gap: 2px; align-content: start; }
.keyfacts div + div { padding-left: 1.1rem; border-left: 1px solid var(--sand-200); }
.keyfacts b { font-family: var(--font-display); font-size: 1.6rem; font-weight: 500; line-height: 1.05; }
.keyfacts span { font-size: 0.78rem; color: var(--text-on-light-dim); }
.blk { display: grid; gap: 0.9rem; align-content: start; }
.blk h2 { font-size: 2rem; font-weight: 500; }
.two-l { display: grid; grid-template-columns: 1fr 1fr; gap: 1.8rem; align-items: start; }
.ul { align-content: start; margin: 0; padding: 0; list-style: none; display: grid; border-top: 1px solid var(--sand-200); }
.ul li { padding: 0.65rem 0 0.65rem 1.4rem; border-bottom: 1px solid var(--sand-200); position: relative; font-size: 0.92rem; }
.ul li::before { content: '+'; position: absolute; left: 0; font-family: var(--font-data); color: var(--gold-600); }
.ul.no li::before { content: '\2013'; color: var(--text-on-light-dim); }
.days { display: grid; }
.day { display: grid; grid-template-columns: 8rem 1fr; gap: 1.5rem; padding: 1.3rem 0; border-bottom: 1px solid var(--sand-200); }
.day .d { font-family: var(--font-data); font-size: 0.74rem; color: var(--green-700); letter-spacing: 0.06em; text-transform: uppercase; }
.day h3 { font-size: 1.7rem; font-weight: 500; }
.day p { color: var(--text-on-light-dim); margin-top: 0.4rem; max-width: 60ch; }
.day .more a { text-decoration: underline; text-underline-offset: 3px; color: var(--green-700); }
.xfer { padding: 0.6rem 0; color: var(--text-on-light-dim); font-size: 0.86rem; }
.xfer .d { color: var(--gold-600); }

.panel { position: sticky; top: 6rem; background: #fffcf5; border: 1px solid var(--sand-200); padding: 1.5rem; display: grid; gap: 0.9rem; }
.panel .price { display: grid; gap: 2px; }
.panel .price b { font-family: var(--font-display); font-size: 2.3rem; font-weight: 500; line-height: 1; }
.panel .price span { font-size: 0.84rem; color: var(--text-on-light-dim); }
.panel small { color: var(--text-on-light-dim); font-size: 0.8rem; }
.sticky-bar { display: none; }

/* ---------- enquiry ---------- */
.enq { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 3rem; padding-block: 2rem 5rem; align-items: start; }
.steps { display: flex; gap: 10px; align-items: center; font-size: 0.84rem; color: var(--text-on-light-dim); margin-bottom: 1rem; }
.steps .st { display: flex; align-items: center; gap: 8px; }
.steps .dt { width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--sand-200); display: grid; place-items: center; font-size: 0.75rem; }
.steps .st.on { color: var(--ink); font-weight: 700; }
.steps .st.on .dt { background: var(--green-700); border-color: var(--green-700); color: var(--sand-000); }
.steps .bar { width: 36px; height: 1px; background: var(--sand-200); }
.form { background: #fffcf5; border: 1px solid var(--sand-200); padding: 1.8rem; display: grid; gap: 1.2rem; }
.form .form-banner.error { color: var(--ink); }
.form fieldset.step { border: 0; padding: 0; margin: 0; display: grid; gap: 1.1rem; min-width: 0; }
.form legend { padding: 0; margin-bottom: 0.9rem; }
.form legend h2 { font-size: 2.1rem; font-weight: 500; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; }
.grid2.tight { gap: 0.6rem; }
.err { color: #8a2b1f; font-size: 0.8rem; text-transform: none; letter-spacing: 0; font-weight: 500; }
.actions { display: flex; flex-wrap: wrap; gap: 0.8rem; justify-content: space-between; align-items: center; }
.form.js-steps fieldset.step { display: none; }
.form.js-steps[data-current='1'] fieldset.step[data-step='1'], .form.js-steps[data-current='2'] fieldset.step[data-step='2'] { display: grid; }
.side { background: #fffcf5; border: 1px solid var(--sand-200); padding: 1.4rem; display: grid; gap: 0.9rem; }
.side h3 { font-size: 1.6rem; font-weight: 500; }
.sl { display: grid; gap: 0.7rem; }
.sl > div { display: grid; padding-bottom: 0.7rem; border-bottom: 1px solid var(--sand-200); }
.sl b { font-weight: 700; font-size: 0.93rem; }
.sl span { font-size: 0.8rem; color: var(--text-on-light-dim); }
.done { display: grid; gap: 1.2rem; max-width: 760px; grid-column: 1 / -1; }
.done h1 { font-size: clamp(2.2rem, 4.6vw, 3.2rem); font-weight: 500; }
.next { display: grid; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--sand-200); }
.next li { display: grid; grid-template-columns: 8rem 1fr; gap: 0.8rem; padding: 0.8rem 0; border-bottom: 1px solid var(--sand-200); font-size: 0.93rem; }
.next b { font-weight: 700; }

.room-card .ph { aspect-ratio: 3 / 2; }

@media (max-width: 1080px) {
  .tiles, .tiles.n3, .tiles.n5, .tiles.n6, .tiles.n9 { grid-template-columns: repeat(2, 1fr); }
  .props { grid-template-columns: repeat(2, 1fr); }
  .frow { grid-template-columns: repeat(3, 1fr); }
  .frow .btn { grid-column: span 3; }
}

@media (max-width: 860px) {
  .hero-in { padding-top: 6.5rem; gap: 1.6rem; }
  .finder { grid-template-columns: 1fr; }
  .finder label { border-right: 0; border-bottom: 1px solid var(--sand-200); }
  .finder .btn { padding-block: 1rem; }
  .strip { grid-template-columns: 1fr 1fr; }
  .strip div { padding: 0.9rem 1rem; }
  .strip div:nth-child(3) { border-left: 0; }
  .strip div:nth-child(n + 3) { border-top: 1px solid var(--sand-200); }
  .props, .props.two, .rgrid, .split, .why, .two-l, .final-in { grid-template-columns: 1fr; }
  .why { gap: 2rem; }
  .frow { grid-template-columns: 1fr 1fr; }
  .frow .btn { grid-column: span 2; }
  .notes { grid-template-columns: 1fr 1fr; }
  .notes div:nth-child(odd) { border-left: 0; }
  .notes div:nth-child(n + 3) { border-top: 1px solid var(--sand-200); }
  .pgrid, .enq { grid-template-columns: 1fr; gap: 2rem; }
  .keyfacts { grid-template-columns: repeat(2, 1fr); }
  .keyfacts div:nth-child(3) { padding-left: 0; border-left: 0; }
  .keyfacts div:nth-child(n + 3) { border-top: 1px solid var(--sand-200); }
  .panel { display: none; }
  .sticky-bar { display: flex; position: fixed; inset: auto 0 0 0; z-index: 90; gap: 0.6rem; align-items: center; justify-content: space-between; padding: 0.7rem 1rem calc(0.7rem + env(safe-area-inset-bottom, 0px)); background: #fffcf5; border-top: 1px solid var(--sand-200); }
  .sticky-bar .p { display: grid; line-height: 1.2; font-size: 0.78rem; color: var(--text-on-light-dim); }
  .sticky-bar .p b { font-size: 1.05rem; color: var(--ink); }
  .list > div, .day, .next li { grid-template-columns: 1fr; gap: 2px; }
  .grid2 { grid-template-columns: 1fr; }
  .form { padding: 1.2rem; }
  .ihero { min-height: 380px; }
  .ihero .in { padding-top: 6.5rem; }
}
@media (max-width: 480px) {
  .tile b { font-size: 1.3rem; }
  .tile .lbl { padding: 0.8rem; }
}
