/* ==========================================================================
   4 Bedroom Cottage in Kodaikanal (fb- prefix, self-contained)
   Same page language as the car rental page: breadcrumb, kicker, lead with a
   picker card, tab bar, white section cards, sticky enquiry card, closing band,
   mobile buy bar. Own theme (deep teal with a warm sunset accent) and own
   components: cottage picker, headcount slabs, demand bars.
   ========================================================================== */

.fb-page {
  --fb-p: #145066;
  --fb-pd: #0d3a49;
  --fb-ps: #e4f1f4;
  --fb-a: #d9822b;
  --fb-as: #fbebd6;
  --fb-bg: #f1f6f8;
  --fb-card: #fff;
  --fb-ink: #1b2428;
  --fb-muted: #5b6a6e;
  --fb-line: #dce6e9;
  --fb-ok: #2f7a4d;
  --fb-r: 16px;
  --fb-shadow: 0 16px 40px rgba(16, 38, 48, 0.1);
  background: var(--fb-bg);
  color: var(--fb-ink);
  font-family: "Poppins", "Segoe UI", system-ui, sans-serif;
}

.fb-page main { overflow-x: clip; }
.fb-page p { line-height: 1.65; margin: 0; }
.fb-page h1, .fb-page h2, .fb-page h3 { font-family: inherit; color: var(--fb-ink); }
.fb-i { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.fb-wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.fb-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.fb-link { color: var(--fb-p); font-weight: 600; text-underline-offset: 3px; }

.fb-progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 60; background: transparent; pointer-events: none; }
.fb-progress span { display: block; height: 100%; width: 0; background: var(--fb-a); }

/* Breadcrumb */
.fb-crumb { padding: 20px 0 14px; font-size: .82rem; color: var(--fb-muted); }
.fb-crumb a { color: var(--fb-muted); text-decoration: none; }
.fb-crumb a:hover { color: var(--fb-p); }
.fb-crumb span[aria-current] { color: var(--fb-ink); }

/* Layout */
.fb-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; align-items: start; padding-bottom: 48px; }
.fb-main { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
.fb-aside { position: sticky; top: 100px; display: grid; gap: 12px; }

/* Lead */
.fb-kicker { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--fb-a); }
.fb-h1 { font-size: clamp(1.8rem, 1.2rem + 2.4vw, 2.7rem); line-height: 1.12; font-weight: 700; margin: 0 0 12px; }
.fb-sub { color: var(--fb-muted); font-size: 1rem; max-width: 760px; }

.fb-quick { max-width: none; padding: 14px 18px; background: var(--fb-as); border-left: 4px solid var(--fb-a); border-radius: 0 12px 12px 0; font-size: .95rem; line-height: 1.6; color: var(--fb-ink); }
.fb-quick strong { color: #7a4710; margin-right: 6px; }
.fb-byline { font-size: .8rem; color: var(--fb-muted); }
.fb-byline--end { text-align: center; margin: 0 0 20px !important; }

/* Picker card */
.fb-show { display: grid; grid-template-columns: 1.05fr 1fr; background: var(--fb-card); border: 1px solid var(--fb-line); border-radius: var(--fb-r); box-shadow: var(--fb-shadow); overflow: hidden; margin-top: 22px; }
.fb-show-stage { position: relative; min-height: 340px; background: var(--fb-ps); }
.fb-show-stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.fb-show-stage::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(13, 58, 73, .85)); }
.fb-show-name { position: absolute; left: 20px; right: 20px; bottom: 18px; z-index: 1; color: #fff; display: grid; gap: 2px; }
.fb-show-name strong { font-size: 1.5rem; line-height: 1.15; }
.fb-show-name span { font-size: .85rem; opacity: .9; }
.fb-show-panel { padding: 20px; display: grid; gap: 14px; align-content: start; }
.fb-show-pills { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.fb-opt { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border: 1px solid var(--fb-line); border-radius: 12px; background: #fff; font: inherit; font-size: .85rem; font-weight: 600; color: var(--fb-ink); cursor: pointer; text-align: left; transition: border-color .2s, background .2s; }
.fb-opt:hover { border-color: var(--fb-p); }
.fb-opt.is-active { border-color: var(--fb-p); background: var(--fb-ps); box-shadow: inset 0 0 0 1px var(--fb-p); color: var(--fb-pd); }
.fb-opt:focus-visible { outline: 3px solid var(--fb-a); outline-offset: 2px; }
.fb-opt .fb-i { color: var(--fb-p); }
.fb-specs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0; }
.fb-specs div { background: var(--fb-bg); border-radius: 12px; padding: 10px 8px; text-align: center; }
.fb-specs dt { font-size: .66rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--fb-muted); }
.fb-specs dd { margin: 4px 0 0; font-weight: 700; font-size: .88rem; color: var(--fb-ink); }
.fb-show-note { font-size: .84rem; color: var(--fb-muted); }
.fb-show-price { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid var(--fb-line); padding-top: 14px; }
.fb-show-price small { display: block; font-size: .72rem; color: var(--fb-muted); }
.fb-show-price strong { font-size: 1.05rem; color: var(--fb-p); }

/* Buttons */
.fb-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 20px; border-radius: 12px; border: 2px solid transparent; font: inherit; font-size: .88rem; font-weight: 600; text-decoration: none; cursor: pointer; transition: background .2s, color .2s; white-space: nowrap; }
.fb-btn-p { background: var(--fb-p); color: #fff; }
.fb-btn-p:hover { background: var(--fb-pd); }
.fb-btn-a { background: var(--fb-a); color: #2b1802; }
.fb-btn-a:hover { background: #c4741f; }
.fb-btn-o { background: #fff; border-color: var(--fb-p); color: var(--fb-p); }
.fb-btn-o:hover { background: var(--fb-ps); }
.fb-btn-w { background: #fff; color: var(--fb-pd); }
.fb-btn-w:hover { background: var(--fb-as); }
.fb-btn-ghost { border-color: rgba(255,255,255,.7); color: #fff; }
.fb-btn-ghost:hover { background: rgba(255,255,255,.14); }
.fb-btn:focus-visible { outline: 3px solid var(--fb-a); outline-offset: 2px; }

/* Tab bar */
.fb-tabbar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; background: #fff; border: 1px solid var(--fb-line); border-radius: 18px; padding: 6px; position: sticky; top: 84px; z-index: 20; }
.fb-tab { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; border: 0; background: transparent; border-radius: 13px; font: inherit; font-size: .88rem; font-weight: 600; color: var(--fb-muted); cursor: pointer; transition: background .2s, color .2s; }
.fb-tab:hover { color: var(--fb-p); }
.fb-tab[aria-selected="true"] { background: var(--fb-p); color: #fff; }
.fb-tab:focus-visible { outline: 3px solid var(--fb-a); outline-offset: 2px; }
.fb-panel { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
.fb-sec { min-width: 0; }
.fb-panel[hidden] { display: none; }
.fb-panel.is-in { animation: fb-in .35s ease both; }
@keyframes fb-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Section cards */
.fb-sec { background: var(--fb-card); border: 1px solid var(--fb-line); border-radius: var(--fb-r); padding: 28px; scroll-margin-top: 150px; }
.fb-sec h2 { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.75rem); line-height: 1.22; font-weight: 700; margin: 0 0 12px; }
.fb-sec h3 { font-size: 1.02rem; font-weight: 600; margin: 0 0 4px; }
.fb-lede { color: var(--fb-muted); max-width: 720px; }
.fb-lede + .fb-lede { margin-top: 12px; }

/* Feature minis */
.fb-g2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 18px; }
.fb-g3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 18px; }
.fb-mini { display: flex; gap: 14px; align-items: flex-start; }
.fb-mini p { font-size: .9rem; color: var(--fb-muted); }
.fb-ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--fb-ps); color: var(--fb-p); flex: none; }
.fb-pick { border: 2px solid var(--fb-p); border-radius: 14px; padding: 16px; }

/* Headcount slabs (unique) */
.fb-slabs { display: grid; gap: 12px; margin-top: 18px; }
.fb-slab { display: grid; grid-template-columns: 110px 1fr auto; gap: 18px; align-items: center; border: 1px solid var(--fb-line); border-radius: 14px; padding: 16px 18px; }
.fb-slab.is-top { border-color: var(--fb-p); box-shadow: inset 4px 0 0 var(--fb-p); }
.fb-slab-dur { font-size: 1.5rem; font-weight: 700; line-height: 1; color: var(--fb-p); }
.fb-slab-dur small { display: block; margin-top: 6px; font-size: .72rem; font-weight: 500; color: var(--fb-muted); }
.fb-slab p { font-size: .88rem; color: var(--fb-muted); }
.fb-meter { height: 6px; border-radius: 99px; background: var(--fb-line); margin-top: 10px; overflow: hidden; }
.fb-meter span { display: block; height: 100%; width: var(--w); border-radius: 99px; background: linear-gradient(90deg, var(--fb-p), var(--fb-a)); }
.fb-tag { display: inline-block; background: var(--fb-as); color: #7a4710; font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; border-radius: 99px; padding: 3px 10px; }

/* Tables */
.fb-compare-wrap { overflow-x: auto; border: 1px solid var(--fb-line); border-radius: 14px; margin-top: 18px; }
.fb-compare { width: 100%; border-collapse: collapse; min-width: 560px; }
.fb-compare th, .fb-compare td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--fb-line); font-size: .9rem; vertical-align: top; color: var(--fb-muted); line-height: 1.5; }
.fb-compare thead th { background: var(--fb-ps); color: var(--fb-pd); font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.fb-compare tbody th { color: var(--fb-ink); font-weight: 600; }
.fb-compare tbody tr:last-child th, .fb-compare tbody tr:last-child td { border-bottom: 0; }
.fb-note { margin-top: 12px !important; font-size: .82rem; color: var(--fb-muted); }

/* Distances and tiles */
.fb-dist { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.fb-dist li { display: flex; justify-content: space-between; gap: 12px; padding: 12px 16px; background: var(--fb-bg); border-radius: 12px; font-size: .9rem; }
.fb-dist b { font-weight: 600; color: var(--fb-ink); }
.fb-dist span { color: var(--fb-muted); white-space: nowrap; }
.fb-tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 18px; }
.fb-tile { position: relative; border-radius: 14px; overflow: hidden; aspect-ratio: 16 / 10; display: block; text-decoration: none; background: var(--fb-ps); }
.fb-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.fb-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(13,58,73,.88)); }
.fb-tile span { position: absolute; left: 14px; right: 14px; bottom: 12px; z-index: 1; color: #fff; font-weight: 600; font-size: .95rem; line-height: 1.25; }
.fb-tile small { display: block; font-weight: 400; font-size: .76rem; opacity: .9; margin-top: 2px; }

/* Cottage list */
.fb-cottages { display: grid; gap: 16px; margin-top: 18px; }
.fb-cot { display: grid; grid-template-columns: 240px 1fr; border: 1px solid var(--fb-line); border-radius: 14px; overflow: hidden; background: #fff; }
.fb-cot-img { position: relative; background: var(--fb-ps); min-height: 180px; }
.fb-cot-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.fb-cot-badge { position: absolute; left: 10px; top: 10px; background: var(--fb-p); color: #fff; border-radius: 99px; padding: 3px 10px; font-size: .7rem; font-weight: 600; }
.fb-cot-badge.alt { left: auto; right: 10px; background: var(--fb-a); color: #2b1802; }
.fb-cot-body { padding: 18px 20px; display: grid; gap: 10px; align-content: start; }
.fb-cot-body p { font-size: .9rem; color: var(--fb-muted); }
.fb-cot-body .fb-btn { justify-self: start; min-height: 36px; padding: 0 16px; font-size: .82rem; }

/* Amenities */
.fb-amen { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 18px; }
.fb-amen > div { border: 1px solid var(--fb-line); border-radius: 14px; padding: 16px; }
.fb-amen .fb-ico { margin-bottom: 10px; }
.fb-amen p { font-size: .88rem; color: var(--fb-muted); }

/* Ticks, savings, steps */
.fb-ticks { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.fb-ticks li { display: inline-flex; align-items: center; gap: 8px; background: var(--fb-bg); border-radius: 99px; padding: 8px 16px; font-weight: 600; font-size: .86rem; color: var(--fb-p); }
.fb-ticks li::before { content: "\2713"; color: var(--fb-ok); }
.fb-save { counter-reset: s; list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; }
.fb-save li { counter-increment: s; position: relative; padding: 12px 14px 12px 52px; background: var(--fb-bg); border-radius: 12px; font-size: .9rem; color: var(--fb-muted); }
.fb-save li::before { content: counter(s); position: absolute; left: 12px; top: 9px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--fb-as); color: #7a4710; font-weight: 700; font-size: .85rem; }
.fb-steps { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; counter-reset: st; }
.fb-steps li { counter-increment: st; border: 1px solid var(--fb-line); border-radius: 14px; padding: 16px; font-size: .86rem; color: var(--fb-muted); }
.fb-steps li::before { content: "0" counter(st); display: block; font-size: 1.4rem; font-weight: 700; color: var(--fb-a); margin-bottom: 6px; }
.fb-steps strong { display: block; color: var(--fb-ink); font-size: .95rem; margin-bottom: 4px; }

/* Demand bars (unique) */
.fb-bars { margin-top: 20px; border: 1px solid var(--fb-line); border-radius: 14px; padding: 18px; }
.fb-bars-title { font-weight: 600; margin-bottom: 2px !important; }
.fb-bars-note { font-size: .84rem; color: var(--fb-muted); margin-bottom: 16px !important; }
.fb-bars-row { display: grid; grid-template-columns: repeat(12, 1fr); gap: 6px; align-items: end; height: 150px; }
.fb-bar { display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; }
.fb-bar i { display: block; width: 100%; height: var(--h); min-height: 4px; background: #b6d0d8; border-radius: 8px 8px 0 0; }
.fb-bar--peak i { background: var(--fb-a); }
.fb-bar span { font-size: .7rem; color: var(--fb-muted); margin-top: 6px; }
.fb-bars-legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: .76rem; color: var(--fb-muted); margin-top: 12px; }
.fb-bars-legend i { display: inline-block; width: 11px; height: 11px; border-radius: 3px; margin-right: 6px; background: #b6d0d8; vertical-align: -1px; }
.fb-bars-legend i.peak { background: var(--fb-a); }

/* FAQ */
.fb-faq-item { border: 1px solid var(--fb-line); border-radius: 14px; margin-top: 10px; background: #fff; }
.fb-faq-q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 18px; background: transparent; border: 0; font: inherit; font-weight: 600; text-align: left; color: var(--fb-ink); cursor: pointer; }
.fb-faq-q .fb-i { color: var(--fb-p); transition: transform .25s; }
.fb-faq-item.is-open .fb-faq-q .fb-i { transform: rotate(45deg); }
.fb-faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s ease; }
.fb-faq-item.is-open .fb-faq-a { grid-template-rows: 1fr; }
.fb-faq-a > div { overflow: hidden; }
.fb-faq-a p { padding: 0 18px 16px; font-size: .92rem; color: var(--fb-muted); }

/* Enquiry card (aside) */
.fb-card { background: #fff; border: 1px solid var(--fb-line); border-radius: var(--fb-r); box-shadow: var(--fb-shadow); padding: 20px; }
.fb-card-head strong { font-size: 1.15rem; color: var(--fb-p); }
.fb-card-head span { font-size: .76rem; color: var(--fb-muted); margin-left: 6px; }
.fb-card h3 { margin: 6px 0 12px; font-size: 1rem; padding-bottom: 12px; border-bottom: 1px solid var(--fb-line); }
.fb-field { display: grid; gap: 4px; margin-bottom: 10px; }
.fb-field label { font-size: .72rem; font-weight: 600; color: var(--fb-muted); }
.fb-field input, .fb-field select, .fb-field textarea { width: 100%; font: inherit; font-size: .88rem; padding: 9px 10px; border: 1px solid var(--fb-line); border-radius: 10px; background: #fff; color: var(--fb-ink); }
.fb-field input:focus, .fb-field select:focus, .fb-field textarea:focus { outline: 2px solid var(--fb-a); border-color: transparent; }
.fb-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fb-card-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 4px; }
.fb-card-note { margin-top: 10px !important; font-size: .74rem; color: var(--fb-muted); text-align: center; }
.fb-trust { display: grid; gap: 8px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--fb-line); font-size: .8rem; color: var(--fb-muted); }
.fb-trust span { display: flex; align-items: center; gap: 8px; }
.fb-trust .fb-i { width: 16px; height: 16px; color: var(--fb-ok); }

/* Final band */
.fb-final { position: relative; isolation: isolate; text-align: center; color: #fff; padding: 72px 24px; margin: 0 24px 40px; border-radius: 22px; overflow: hidden; }
.fb-final img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.fb-final::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(13,58,73,.82), rgba(13,58,73,.92)); }
.fb-final h2 { color: #fff; font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.1rem); margin: 0 0 12px; }
.fb-final p { max-width: 560px; margin: 0 auto 24px; color: rgba(255,255,255,.92); }
.fb-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* Mobile buy bar and back-to-top */
.fb-mbar { display: none; }
.fb-top { position: fixed; right: 18px; bottom: 96px; width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--fb-p); color: #fff; font-size: 1.1rem; cursor: pointer; opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 40; }
.fb-top.is-on { opacity: 1; pointer-events: auto; }

@media (max-width: 1080px) {
  .fb-layout { grid-template-columns: minmax(0, 1fr); }
  .fb-aside { position: static; order: 2; }
  .fb-tabbar { top: 70px; }
}
@media (max-width: 860px) {
  .fb-show { grid-template-columns: 1fr; }
  .fb-show-stage { min-height: 230px; }
  .fb-g2, .fb-g3, .fb-amen, .fb-dist, .fb-tiles { grid-template-columns: minmax(0, 1fr); }
  .fb-steps { grid-template-columns: repeat(2, 1fr); }
  .fb-slab { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .fb-cot { grid-template-columns: minmax(0, 1fr); }
  .fb-cot-img { min-height: 190px; }
}
@media (max-width: 640px) {
  .fb-wrap { padding: 0 16px; }
  .fb-sec { padding: 20px; }
  .fb-tab .fb-tab-label { display: none; }
  .fb-final { margin: 0 12px 24px; padding: 48px 18px; }
  .fb-row2 { grid-template-columns: 1fr; }
  .fb-mbar { display: flex; align-items: center; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; background: #fff; border-top: 1px solid var(--fb-line); padding: 10px 14px; box-shadow: 0 -8px 24px rgba(16,38,48,.1); }
  .fb-mbar-price { flex: 1; font-size: .7rem; color: var(--fb-muted); line-height: 1.2; }
  .fb-mbar-price strong { display: block; font-size: .95rem; color: var(--fb-p); }
  .fb-page { padding-bottom: 64px; }
}
@media (prefers-reduced-motion: reduce) { .fb-page * { transition: none !important; animation: none !important; } }
