/* ============================================
   Hotel Hilly Rainbow — Bandarban
   Design system: hill-green + rainbow-red, Kalpurush Bangla
   ============================================ */

/* ---------- KALPURUSH (Bangla only, via unicode-range) ----------
   Because the unicode-range is limited to the Bengali block, this font
   is ONLY downloaded and applied when Bangla characters are present.
   English keeps Outfit / Inter. */
@font-face {
  font-family: 'Kalpurush';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(/fonts/kalpurush.woff2) format('woff2'), url(/fonts/kalpurush.woff) format('woff');
  unicode-range: U+0951-0952,U+0964-0965,U+0980-09FE,U+1CD0,U+1CD2,U+1CD5-1CD6,U+1CD8,U+1CE1,U+1CEA,U+1CED,U+1CF2,U+1CF5-1CF7,U+200C-200D,U+20B9,U+25CC,U+A8F1;
}
@font-face {
  font-family: 'Kalpurush';
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url(/fonts/kalpurush.woff2) format('woff2'), url(/fonts/kalpurush.woff) format('woff');
  unicode-range: U+0951-0952,U+0964-0965,U+0980-09FE,U+1CD0,U+1CD2,U+1CD5-1CD6,U+1CD8,U+1CE1,U+1CEA,U+1CED,U+1CF2,U+1CF5-1CF7,U+200C-200D,U+20B9,U+25CC,U+A8F1;
}

/* Bangla sits slightly larger + looser than Latin at the same px size */
:lang(bn), .bn { font-family: 'Kalpurush', 'Outfit', system-ui, sans-serif; line-height: 1.85; }

:root {
  /* --accent / --accent-hover are injected per-site from admin settings in header.ejs */
  --brand-green: #00843C;
  --brand-green-deep: #00661F;
  --brand-leaf: #54B43C;
  --brand-red: #E41824;
  --brand-red-soft: #FDEAEB;
  --ink: #12261C;
  --slate2: #4A5A52;
  --fog: #7C8A83;
  --cloud: #F7FAF8;
  --line: #E2EAE5;
  --radius-btn: 999px;
  --radius-card: 14px;
  --radius-hero: 22px;
}

/* Prevent horizontal scroll & zoom bounce everywhere */
html { -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; scroll-behavior: smooth; }
html, body { overflow-x: hidden; overscroll-behavior-x: none; max-width: 100vw; }

.img-ph { background: linear-gradient(135deg, #12261C 0%, var(--accent, #00843C) 55%, #54B43C 100%); position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.85); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; font-size: 10px; text-align: center; padding: 12px; }
.img-ph::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 25% 20%, rgba(255,255,255,.28), transparent 55%), radial-gradient(circle at 80% 80%, rgba(10,30,20,.5), transparent 60%); pointer-events: none; }
.img-ph > span { position: relative; z-index: 1; }

/* ============================================
   HERO — Ken Burns slider
   ============================================ */
.hero-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 1.1s ease, visibility 1.1s; }
.hero-slide.is-active { opacity: 1; visibility: visible; }
.hero-slide .kb-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); }
.hero-slide.is-active .kb-img { animation: kenburns 11s ease-out forwards; }
.hero-slide:nth-child(even).is-active .kb-img { animation-name: kenburns-alt; }
@keyframes kenburns {
  0%   { transform: scale(1.02) translate3d(0, 0, 0); }
  100% { transform: scale(1.16) translate3d(-2.2%, -1.6%, 0); }
}
@keyframes kenburns-alt {
  0%   { transform: scale(1.16) translate3d(2%, 1.2%, 0); }
  100% { transform: scale(1.02) translate3d(0, 0, 0); }
}

/* Left-weighted scrim so the left-aligned caption always stays readable */
.hero-scrim {
  background:
    linear-gradient(100deg, rgba(8,22,14,.90) 0%, rgba(8,22,14,.70) 34%, rgba(8,22,14,.20) 64%, rgba(8,22,14,.35) 100%),
    linear-gradient(to top, rgba(8,22,14,.75) 0%, transparent 42%);
}

/* Sequenced text reveal */
.hero-rise { opacity: 0; transform: translateY(26px); }
.is-active .hero-rise { animation: heroRise .85s cubic-bezier(.22,1,.36,1) forwards; }
.is-active .hero-rise.d1 { animation-delay: .10s; }
.is-active .hero-rise.d2 { animation-delay: .26s; }
.is-active .hero-rise.d3 { animation-delay: .42s; }
.is-active .hero-rise.d4 { animation-delay: .58s; }
@keyframes heroRise { to { opacity: 1; transform: translateY(0); } }

.hero-kicker { display: inline-flex; align-items: center; gap: 10px; color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; }
.hero-kicker::before { content: ""; width: 34px; height: 2px; background: var(--brand-red); border-radius: 2px; }

.h1-hero { font-family: 'Kalpurush','Outfit', system-ui, sans-serif; font-size: clamp(2.1rem, 5.6vw, 4.15rem); line-height: 1.04; font-weight: 700; letter-spacing: -0.025em; }
.h1-hero em { font-style: normal; position: relative; color: #fff; white-space: nowrap; }
.h1-hero em::after { content: ""; position: absolute; left: 0; right: 0; bottom: .06em; height: .19em; background: var(--brand-red); opacity: .92; border-radius: 3px; z-index: -1; }

/* Vertical progress rails (replaces centered dots) */
.hero-rails { display: flex; flex-direction: column; gap: 14px; }
.hero-rail { width: 3px; height: 46px; border-radius: 3px; background: rgba(255,255,255,.3); position: relative; overflow: hidden; border: 0; padding: 0; cursor: pointer; }
.hero-rail span { position: absolute; left: 0; top: 0; width: 100%; height: 0%; background: #fff; border-radius: 3px; }
.hero-rail.is-active span { animation: railFill 7s linear forwards; }
.hero-rail.is-done span { height: 100%; background: rgba(255,255,255,.75); }
@keyframes railFill { from { height: 0%; } to { height: 100%; } }
.hero-rail-num { font-size: 10px; font-weight: 700; letter-spacing: .1em; color: rgba(255,255,255,.65); }

@media (prefers-reduced-motion: reduce) {
  .hero-slide.is-active .kb-img { animation: none; transform: scale(1.04); }
  .hero-rise { opacity: 1; transform: none; animation: none !important; }
  .hero-rail.is-active span { animation: none; height: 100%; }
}

.booking-glass { background: rgba(255,255,255,0.96); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border: 1px solid rgba(255,255,255,0.8); box-shadow: 0 22px 60px rgba(10,35,22,0.22); }

/* ============================================
   HEADER
   ============================================ */
#site-header { background: rgba(255,255,255,0.97); backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--line), 0 6px 18px rgba(10,35,22,0.05); transition: background .3s ease; }
#site-header #hd-logo, #site-header #hd-nav a, #site-header #hd-acc { color: var(--ink); }
#site-header #hd-nav a { position: relative; }
#site-header #hd-nav a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px; background: var(--accent, var(--brand-green)); border-radius: 2px; transform: scaleX(0); transform-origin: left; transition: transform .25s ease; }
#site-header #hd-nav a:hover::after { transform: scaleX(1); }
#site-header #hd-nav a:hover, #site-header #hd-acc:hover { color: var(--accent, var(--brand-green)); }
#site-header #hd-cart, #site-header #menu-open { background: var(--cloud); border: 1px solid var(--line); color: var(--ink); }

/* Dual logo swap — default state (solid header) shows the solid logo */
#site-header .logo-transparent, #site-header .logo-transparent-fallback { display: none; }
#site-header .logo-solid, #site-header .logo-solid-fallback { display: inline-block; }

/* HOME PAGE: transparent header until scroll */
body.page-home #site-header { background: transparent; box-shadow: none; backdrop-filter: none; }
body.page-home #site-header #hd-logo, body.page-home #site-header #hd-nav a, body.page-home #site-header #hd-acc { color: white; }
body.page-home #site-header #hd-nav a::after { background: #fff; }
body.page-home #site-header #hd-cart, body.page-home #site-header #menu-open { background: rgba(255,255,255,0.16); border-color: rgba(255,255,255,.28); color: white; }
body.page-home #site-header #hd-cart:hover, body.page-home #site-header #menu-open:hover { background: rgba(255,255,255,0.28); }
body.page-home #site-header.scrolled { background: rgba(255,255,255,0.97); backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--line), 0 6px 18px rgba(10,35,22,0.05); }
body.page-home #site-header.scrolled #hd-logo, body.page-home #site-header.scrolled #hd-nav a, body.page-home #site-header.scrolled #hd-acc { color: var(--ink); }
body.page-home #site-header.scrolled #hd-nav a::after { background: var(--accent, var(--brand-green)); }
body.page-home #site-header.scrolled #hd-cart, body.page-home #site-header.scrolled #menu-open { background: var(--cloud); border-color: var(--line); color: var(--ink); }

body.page-home #site-header:not(.scrolled) .logo-transparent,
body.page-home #site-header:not(.scrolled) .logo-transparent-fallback { display: inline-block; }
body.page-home #site-header:not(.scrolled) .logo-solid,
body.page-home #site-header:not(.scrolled) .logo-solid-fallback { display: none; }

/* ========== MOBILE TITLE BAR (app-like) ========== */
#mobile-title-bar { display: none; }
@media (max-width: 768px) {
  #mobile-title-bar { display: flex; position: fixed; top: 64px; left: 0; right: 0; z-index: 40; background: white; border-bottom: 1px solid var(--line); padding: 10px 16px; align-items: center; justify-content: center; font-family: 'Kalpurush','Outfit', sans-serif; font-weight: 600; font-size: 14px; color: var(--ink); letter-spacing: 0.3px; box-shadow: 0 1px 3px rgba(10,35,22,0.04); }
  body.page-home #mobile-title-bar { display: none; }
  body:not(.page-home) main { padding-top: 44px; }
}

/* ========== STICKY CART BAR ========== */
#sticky-cart-bar { display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 45; background: white; border-top: 2px solid var(--accent, var(--brand-green)); box-shadow: 0 -6px 24px rgba(10,35,22,0.14); padding: 12px 20px; align-items: center; justify-content: space-between; gap: 12px; }
#sticky-cart-bar .info { display: flex; flex-direction: column; min-width: 0; }
#sticky-cart-bar .info .label { font-size: 10px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--fog); font-weight: 700; white-space: nowrap; }
#sticky-cart-bar .info .total { font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 20px; color: var(--ink); white-space: nowrap; }
#sticky-cart-bar .actions { display: flex; gap: 10px; align-items: center; flex-wrap: nowrap; }
#sticky-cart-bar.visible { display: flex; }
body.has-sticky-cart { padding-bottom: 88px; }
@media (max-width: 640px) {
  #sticky-cart-bar { padding: 10px 14px; gap: 8px; }
  #sticky-cart-bar .info .total { font-size: 17px; }
  #sticky-cart-bar .actions .btn-primary, #sticky-cart-bar .actions .btn-ghost-dark { padding: 10px 14px; font-size: 13px; }
}

/* ============================================
   CARDS — bordered, flatter, squarer than before
   ============================================ */
.card { background: white; border: 1px solid var(--line); border-radius: var(--radius-card); box-shadow: 0 1px 2px rgba(10,35,22,0.04); transition: transform .28s cubic-bezier(.22,1,.36,1), box-shadow .28s, border-color .28s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 34px rgba(10,35,22,0.10); border-color: color-mix(in srgb, var(--accent, #00843C) 35%, var(--line)); }

.chip { display: inline-flex; align-items: center; gap: 4px; background: color-mix(in srgb, var(--accent, #00843C) 12%, white); color: color-mix(in srgb, var(--accent, #00843C) 70%, var(--ink)); padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 600; }
.chip-success { background: rgba(0,132,60,.14); color: #00661F; }
.chip-warn { background: rgba(245,166,35,.18); color: #b7791f; }
.chip-dark { background: rgba(0,0,0,.55); color: white; }
.chip-danger { background: var(--brand-red-soft); color: var(--brand-red); }

/* ============================================
   BUTTONS — pill shaped (was 12px rounded rect)
   ============================================ */
.btn-primary { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--accent, var(--brand-green)); color: white; padding: 12px 24px; border-radius: var(--radius-btn); font-weight: 600; transition: all .22s; border: none; cursor: pointer; text-decoration: none; min-height: 46px; touch-action: manipulation; }
.btn-primary:hover { background: var(--accent-hover, var(--brand-green-deep)); transform: translateY(-1px); box-shadow: 0 10px 22px color-mix(in srgb, var(--accent, #00843C) 32%, transparent); }
.btn-primary:active { transform: scale(0.97); }

.btn-red { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--brand-red); color: white; padding: 12px 24px; border-radius: var(--radius-btn); font-weight: 600; transition: all .22s; border: none; cursor: pointer; text-decoration: none; min-height: 46px; }
.btn-red:hover { background: #C1131E; transform: translateY(-1px); box-shadow: 0 10px 22px rgba(228,24,36,.3); }

.btn-ghost-light { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 24px; border-radius: var(--radius-btn); border: 1.5px solid rgba(255,255,255,.75); color: white; font-weight: 600; text-decoration: none; min-height: 46px; touch-action: manipulation; transition: all .22s; }
.btn-ghost-light:hover { background: rgba(255,255,255,.16); border-color: #fff; }
.btn-ghost-dark { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 24px; border-radius: var(--radius-btn); border: 1.5px solid var(--ink); color: var(--ink); font-weight: 600; text-decoration: none; background: transparent; cursor: pointer; min-height: 46px; touch-action: manipulation; transition: all .22s; }
.btn-ghost-dark:hover { background: var(--ink); color: white; }

/* ============================================
   SECTION FURNITURE — rule-and-label eyebrow
   ============================================ */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; text-transform: uppercase; letter-spacing: 0.2em; font-size: 11px; font-weight: 700; color: var(--accent, var(--brand-green)); }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--brand-red); border-radius: 2px; flex-shrink: 0; }
.eyebrow-center { justify-content: center; }
.eyebrow-light { color: rgba(255,255,255,.9); }

.section { padding-block: clamp(48px, 6.5vw, 92px); position: relative; }
.h2-section { font-family: 'Kalpurush','Outfit', system-ui, sans-serif; font-size: clamp(1.5rem, 3.6vw, 2.5rem); line-height: 1.14; font-weight: 700; letter-spacing: -0.02em; }
.lead { color: var(--slate2); font-size: 15px; line-height: 1.75; }

/* Hill contour motif — subtle brand texture used as a section top edge */
.contour-top::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--brand-green) 0%, var(--brand-leaf) 32%, #F5A623 58%, var(--brand-red) 100%);
  opacity: .9;
}

/* Number-led feature block */
.num-block { position: relative; padding-left: 62px; }
.num-block .n { position: absolute; left: 0; top: -6px; font-family: 'Outfit', sans-serif; font-size: 42px; font-weight: 700; line-height: 1; color: color-mix(in srgb, var(--accent, #00843C) 22%, white); }

/* Amenity pill row */
.amenity { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius-card); background: white; transition: border-color .25s, transform .25s; }
.amenity:hover { border-color: color-mix(in srgb, var(--accent, #00843C) 45%, var(--line)); transform: translateY(-2px); }
.amenity .ico { width: 38px; height: 38px; flex-shrink: 0; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 17px; background: color-mix(in srgb, var(--accent, #00843C) 11%, white); }

@keyframes ping-slow { 0% { transform: scale(1); opacity: 1; } 75%, 100% { transform: scale(1.6); opacity: 0; } }
.play-pulse::before { content: ""; position: absolute; inset: 0; border-radius: 9999px; background: rgba(255,255,255,.5); animation: ping-slow 2s cubic-bezier(0,0,.2,1) infinite; }

.line-clamp-1 { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.line-clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* Scroll-reveal for sections */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.22,1,.36,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* MOBILE optimizations */
@media (max-width: 768px) {
  img { max-width: 100%; height: auto; }
  input[type="date"], input[type="time"], select, input[type="text"], input[type="email"], input[type="tel"], input[type="password"], input[type="number"], textarea { font-size: 16px; }
  .h1-hero { font-size: clamp(1.85rem, 8.4vw, 2.6rem); }
  .section { padding-block: 46px; }
  a, button { touch-action: manipulation; }
  .num-block { padding-left: 52px; }
  .num-block .n { font-size: 34px; }
}

input[type="date"]::-webkit-datetime-edit { color: var(--ink); padding: 0; }
input[type="date"]::-webkit-inner-spin-button { display: none; }
input[type="date"]::-webkit-calendar-picker-indicator { opacity: 0.7; cursor: pointer; }

:focus-visible { outline: 2px solid var(--accent, var(--brand-green)); outline-offset: 3px; border-radius: 6px; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #C2D2C9; border-radius: 8px; }
::-webkit-scrollbar-track { background: transparent; }

.aspect-\[4\/5\] { aspect-ratio: 4/5; }
.aspect-\[4\/3\] { aspect-ratio: 4/3; }
.aspect-\[3\/4\] { aspect-ratio: 3/4; }
.aspect-\[16\/9\] { aspect-ratio: 16/9; }

/* ============================================
   ROOM CARD — image-led with overlaid price tag
   ============================================ */
.room-card { background: white; border: 1px solid var(--line); border-radius: var(--radius-card); box-shadow: 0 1px 2px rgba(10,35,22,0.04); overflow: hidden; display: flex; flex-direction: column; transition: transform .28s cubic-bezier(.22,1,.36,1), box-shadow .28s, border-color .28s; }
.room-card:hover { transform: translateY(-5px); box-shadow: 0 20px 38px rgba(10,35,22,0.12); border-color: color-mix(in srgb, var(--accent, #00843C) 38%, var(--line)); }
.room-card .shot { position: relative; overflow: hidden; }
.room-card .shot img { transition: transform .6s cubic-bezier(.22,1,.36,1); }
.room-card:hover .shot img { transform: scale(1.06); }
.room-cat-badge { background: rgba(10,30,20,0.82); color: white; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; padding: 6px 12px; border-radius: 999px; backdrop-filter: blur(6px); }
.room-price-tag { position: absolute; left: 12px; bottom: 12px; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-radius: 12px; padding: 7px 13px; box-shadow: 0 6px 18px rgba(10,35,22,.2); }
.room-price-tag .amt { font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 16px; color: var(--ink); line-height: 1.1; }
.room-price-tag .per { font-size: 9px; letter-spacing: .08em; text-transform: uppercase; color: var(--fog); font-weight: 700; }
.room-price-tag .was { font-size: 10px; color: var(--fog); text-decoration: line-through; }

.room-tile { display: flex; align-items: center; gap: 8px; background: var(--cloud); border-radius: 10px; padding: 8px 10px; min-width: 0; }
.room-tile .ico { width: 26px; height: 26px; border-radius: 8px; background: white; display: flex; align-items: center; justify-content: center; font-size: 13px; flex-shrink: 0; }
.room-tile .lbl { font-size: 9px; letter-spacing: 1px; text-transform: uppercase; color: var(--fog); font-weight: 700; }
.room-tile .val { font-size: 11px; color: var(--ink); font-weight: 600; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ============================================
   TESTIMONIAL — quote-mark led, offset card
   ============================================ */
.quote-card { position: relative; background: white; border: 1px solid var(--line); border-radius: var(--radius-card); padding: 30px 26px 24px; }
.quote-card::before { content: "\201C"; position: absolute; top: 4px; left: 20px; font-family: Georgia, serif; font-size: 72px; line-height: 1; color: color-mix(in srgb, var(--accent, #00843C) 20%, white); }
.quote-card .stars { color: #F5A623; letter-spacing: 2px; }

/* Spot card — tall poster style with gradient foot */
.spot-card { position: relative; border-radius: var(--radius-card); overflow: hidden; display: block; }
.spot-card img { transition: transform .7s cubic-bezier(.22,1,.36,1); }
.spot-card:hover img { transform: scale(1.07); }
.spot-card .veil { position: absolute; inset: 0; background: linear-gradient(to top, rgba(8,22,14,.92) 6%, rgba(8,22,14,.45) 42%, rgba(8,22,14,.05) 78%); }

/* ADMIN TAB SYSTEM */
.tab-btn { padding: 10px 18px; border-radius: 12px; font-weight: 600; font-size: 14px; color: var(--slate2); cursor: pointer; background: transparent; transition: all .2s; white-space: nowrap; border: 0; }
.tab-btn:hover { background: var(--line); color: var(--ink); }
.tab-btn.active { background: var(--accent, var(--brand-green)); color: white; }
.tab-panel { display: none; }
.tab-panel.active { display: block; }
