/* =========================================================
   Titus Chhalamkyong Homestay — Hill Station Theme
   Palette inspired by Sittong: pine forests, terracotta roofs,
   misty mauve/blue interiors, warm wood tones.
========================================================= */

:root {
  --forest: #2f5a45;
  --forest-dark: #1e3d2e;
  --forest-light: #4d7c5f;
  --terracotta: #bf5b3c;
  --terracotta-dark: #9c4530;
  --mauve: #a9707e;
  --sky: #7fb8d6;
  --gold: #d3a24c;
  --cream: #faf5ec;
  --cream-2: #f2ead9;
  --wood: #5c3a26;
  --ink: #24312a;
  --muted: #6d7a71;
  --white: #ffffff;
  --shadow: 0 10px 30px rgba(30, 45, 35, 0.12);
  --shadow-soft: 0 4px 14px rgba(30, 45, 35, 0.08);
  --radius: 16px;
  --radius-sm: 10px;
  --transition: all 0.28s cubic-bezier(.4,0,.2,1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Poppins', 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  overflow-x: hidden;
}

h1, h2, h3, h4, .display-font {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--forest-dark);
  line-height: 1.25;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

.section { padding: 80px 0; }
.section-alt { background: var(--cream-2); }

.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-head .eyebrow {
  display: inline-block; font-size: 13px; letter-spacing: 3px;
  text-transform: uppercase; color: var(--terracotta); font-weight: 600;
  margin-bottom: 10px;
}
.section-head h2 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 12px; }
.section-head p { color: var(--muted); font-size: 16px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 30px; border-radius: 50px; font-weight: 600;
  font-size: 15px; border: 2px solid transparent; cursor: pointer;
  transition: var(--transition);
}
.btn-primary { background: var(--terracotta); color: #fff; box-shadow: 0 8px 20px rgba(191,91,60,0.35); }
.btn-primary:hover { background: var(--terracotta-dark); transform: translateY(-2px); box-shadow: 0 12px 26px rgba(191,91,60,0.45); }
.btn-outline { border-color: var(--forest); color: var(--forest); background: transparent; }
.btn-outline:hover { background: var(--forest); color: #fff; transform: translateY(-2px); }
.btn-light { background: #fff; color: var(--forest-dark); }
.btn-light:hover { background: var(--gold); color: #fff; transform: translateY(-2px); }
.btn-sm { padding: 9px 18px; font-size: 13px; }
.btn-block { width: 100%; justify-content: center; }

/* ---------- Top Bar ---------- */
.topbar {
  background: var(--forest-dark); color: #dce8e0; font-size: 13px;
  padding: 8px 0;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.topbar a { color: #dce8e0; }
.topbar a:hover { color: var(--gold); }
.topbar .tb-links { display: flex; gap: 18px; align-items: center; }

/* ---------- Navbar ---------- */
.navbar {
  background: rgba(250,245,236,0.96);
  backdrop-filter: blur(6px);
  position: sticky; top: 0; z-index: 999;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.navbar .container { display: flex; align-items: center; justify-content: space-between; padding-top: 12px; padding-bottom: 12px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand .logo-mark {
  width: 44px; height: 44px; border-radius: 50%; background: var(--forest);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-family: 'Playfair Display', serif; font-weight: 700; font-size: 18px;
}
.brand-text .name { font-family: 'Playfair Display', serif; font-weight: 700; font-size: 19px; color: var(--forest-dark); }
.brand-text .tagline { font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--terracotta); }

.nav-links { display: flex; gap: 30px; align-items: center; }
.nav-links a {
  font-weight: 500; font-size: 15px; color: var(--ink); position: relative; padding: 6px 0;
}
.nav-links a::after {
  content: ''; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: var(--terracotta); transition: var(--transition);
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--terracotta); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; }
.nav-toggle span { width: 26px; height: 3px; background: var(--forest-dark); border-radius: 2px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 88vh; display: flex; align-items: center;
  background: linear-gradient(160deg, var(--forest-dark) 0%, var(--forest) 55%, var(--forest-light) 100%);
  color: #fff; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(211,162,76,0.25), transparent 45%),
              radial-gradient(circle at 10% 90%, rgba(127,184,214,0.25), transparent 45%);
}
.hero-shape {
  position: absolute; bottom: -2px; left: 0; width: 100%; line-height: 0;
}
.hero .container { position: relative; z-index: 2; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,0.12);
  padding: 8px 16px; border-radius: 40px; font-size: 13px; letter-spacing: 1px; margin-bottom: 20px;
}
.hero h1 { font-size: clamp(34px, 5.2vw, 58px); color: #fff; margin-bottom: 18px; }
.hero h1 span { color: var(--gold); }
.hero p { font-size: 17px; color: #dce8e0; max-width: 480px; margin-bottom: 30px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 34px; margin-top: 40px; }
.hero-stats div strong { display: block; font-size: 26px; font-family: 'Playfair Display', serif; color: var(--gold); }
.hero-stats div span { font-size: 13px; color: #cfe0d6; }

.hero-card {
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--radius); padding: 26px; backdrop-filter: blur(10px);
  animation: floaty 5s ease-in-out infinite;
}
.hero-card img { border-radius: var(--radius-sm); margin-bottom: 16px; }
.hero-card .badge { display: inline-block; background: var(--gold); color: #2c210a; font-weight: 700; font-size: 12px; padding: 5px 12px; border-radius: 30px; margin-bottom: 10px; }

@keyframes floaty { 0%,100% { transform: translateY(0px);} 50% { transform: translateY(-14px);} }

/* ---------- Feature Strip ---------- */
.feature-strip { background: var(--white); }
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 10px; }
.feature-card {
  background: var(--cream); border-radius: var(--radius); padding: 26px 20px; text-align: center;
  box-shadow: var(--shadow-soft); transition: var(--transition);
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.feature-card .icon {
  width: 56px; height: 56px; border-radius: 50%; background: var(--forest); color: #fff;
  display: flex; align-items: center; justify-content: center; margin: 0 auto 14px; font-size: 22px;
}
.feature-card h4 { font-size: 16px; margin-bottom: 6px; }
.feature-card p { font-size: 13.5px; color: var(--muted); }

/* ---------- Room Cards ---------- */
.room-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.room-card {
  background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-soft);
  transition: var(--transition); display: flex; flex-direction: column;
}
.room-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.room-thumb { position: relative; height: 220px; overflow: hidden; }
.room-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.room-card:hover .room-thumb img { transform: scale(1.08); }
.room-price-tag {
  position: absolute; top: 14px; right: 14px; background: var(--gold); color: #2c210a;
  font-weight: 700; font-size: 13px; padding: 7px 14px; border-radius: 30px; box-shadow: var(--shadow-soft);
}
.room-type-tag {
  position: absolute; top: 14px; left: 14px; background: rgba(30,61,46,0.85); color: #fff;
  font-size: 12px; padding: 5px 12px; border-radius: 30px; text-transform: capitalize;
}
.room-body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.room-body h3 { font-size: 20px; }
.room-body p { color: var(--muted); font-size: 14px; flex: 1; }
.room-meta { display: flex; gap: 16px; font-size: 13px; color: var(--forest); font-weight: 600; }
.room-actions { display: flex; gap: 10px; margin-top: 6px; }

/* ---------- Gallery ---------- */
.gallery-filter { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-bottom: 34px; }
.gallery-filter a {
  padding: 9px 20px; border-radius: 30px; font-size: 13px; font-weight: 600; border: 2px solid var(--forest);
  color: var(--forest); transition: var(--transition);
}
.gallery-filter a.active, .gallery-filter a:hover { background: var(--forest); color: #fff; }
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.gallery-item { border-radius: var(--radius-sm); overflow: hidden; position: relative; height: 220px; box-shadow: var(--shadow-soft); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.gallery-item:hover img { transform: scale(1.1); }
.gallery-item .cap {
  position: absolute; bottom: 0; left: 0; right: 0; padding: 14px 12px 10px;
  background: linear-gradient(to top, rgba(0,0,0,0.65), transparent); color: #fff; font-size: 12.5px;
  opacity: 0; transition: var(--transition);
}
.gallery-item:hover .cap { opacity: 1; }

/* ---------- Testimonials / Reviews strip ---------- */
.review-strip { background: var(--forest-dark); color: #fff; }
.review-strip .section-head h2, .review-strip .section-head p { color: #fff; }
.review-card { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.14); padding: 26px; border-radius: var(--radius); }
.review-card p { font-size: 14.5px; color: #dce8e0; margin-bottom: 14px; }
.review-card .stars { color: var(--gold); margin-bottom: 10px; letter-spacing: 2px; }
.review-card .who { font-weight: 600; font-size: 14px; }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 7px; color: var(--forest-dark); }
.form-control {
  width: 100%; padding: 13px 16px; border-radius: var(--radius-sm); border: 1.5px solid #e0d8c8;
  font-family: inherit; font-size: 14.5px; background: #fff; transition: var(--transition);
}
.form-control:focus { outline: none; border-color: var(--forest); box-shadow: 0 0 0 4px rgba(47,90,69,0.12); }
textarea.form-control { resize: vertical; min-height: 110px; }

.booking-box, .contact-box {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 36px;
}
.alert { padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 22px; font-size: 14px; }
.alert-error { background: #fbe6e2; color: #9c3a24; border: 1px solid #f2c3b6; }
.alert-success { background: #e5f2e6; color: #1e5c28; border: 1px solid #bfe3c4; }

/* ---------- CTA Band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--terracotta), var(--gold));
  color: #fff; border-radius: var(--radius); padding: 50px; text-align: center;
  margin: 0 auto; box-shadow: var(--shadow);
}
.cta-band h2 { color: #fff; margin-bottom: 12px; }
.cta-band p { color: #fff2e6; margin-bottom: 24px; }

/* ---------- Footer ---------- */
.footer { background: var(--forest-dark); color: #cfe0d6; padding: 70px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 44px; }
.footer h4 { color: #fff; font-size: 16px; margin-bottom: 16px; }
.footer p, .footer a { font-size: 13.5px; color: #b7cabf; }
.footer a:hover { color: var(--gold); }
.footer ul li { margin-bottom: 10px; }
.footer .brand-text .name { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12); padding: 20px 0; text-align: center; font-size: 12.5px; color: #9db4a6;
}
.footer-bottom a { color: #cfe0d6; }
.social-row { display: flex; gap: 12px; margin-top: 14px; }
.social-row a {
  width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,0.1); display: flex;
  align-items: center; justify-content: center; transition: var(--transition);
}
.social-row a:hover { background: var(--gold); color: #2c210a; }

/* ---------- Page banner ---------- */
.page-banner {
  background: linear-gradient(160deg, var(--forest-dark), var(--forest));
  color: #fff; padding: 70px 0 50px; text-align: center;
}
.page-banner h1 { color: #fff; font-size: clamp(28px, 4.5vw, 42px); }
.page-banner .crumbs { margin-top: 10px; font-size: 13px; color: #cfe0d6; }
.page-banner .crumbs a { color: var(--gold); }

/* ---------- Legal / content pages ---------- */
.content-page { max-width: 820px; margin: 0 auto; }
.content-page h2 { margin: 26px 0 12px; font-size: 22px; }
.content-page p { margin-bottom: 14px; color: #40514a; }
.content-page ul { margin: 0 0 14px 20px; list-style: disc; color: #40514a; }
.content-page ul li { margin-bottom: 8px; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ---------- WhatsApp float ---------- */
.wa-float {
  position: fixed; bottom: 24px; right: 24px; width: 58px; height: 58px; border-radius: 50%;
  background: #25D366; display: flex; align-items: center; justify-content: center; color: #fff;
  box-shadow: 0 10px 25px rgba(37,211,102,0.5); z-index: 998; font-size: 26px; animation: pulse 2.4s infinite;
}
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(37,211,102,0.55);} 70% { box-shadow: 0 0 0 16px rgba(37,211,102,0);} 100% { box-shadow: 0 0 0 0 rgba(37,211,102,0);} }

/* ---------- 404 ---------- */
.error-page { text-align: center; padding: 110px 0; }
.error-page h1 { font-size: 100px; color: var(--terracotta); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero .container { grid-template-columns: 1fr; text-align: center; }
  .hero p { margin-left: auto; margin-right: auto; }
  .hero-actions, .hero-stats { justify-content: center; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .room-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav-links {
    position: fixed; top: 0; right: -100%; height: 100vh; width: 72%; background: var(--cream);
    flex-direction: column; justify-content: center; gap: 26px; transition: right .35s ease; box-shadow: -8px 0 24px rgba(0,0,0,0.1);
  }
  .nav-links.open { right: 0; }
  .nav-toggle { display: flex; }
  .form-grid { grid-template-columns: 1fr; }
  .room-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .topbar .container { justify-content: center; text-align: center; }
}

/* ---------- Admin Panel ---------- */
.admin-body { background: #f1f4f2; font-family: 'Poppins', sans-serif; min-height: 100vh; }
.admin-wrap { display: flex; min-height: 100vh; }
.admin-sidebar {
  width: 250px; background: var(--forest-dark); color: #dce8e0; padding: 26px 18px; flex-shrink: 0;
}
.admin-sidebar .brand-text .name { color: #fff; font-size: 16px; }
.admin-sidebar nav { margin-top: 30px; }
.admin-sidebar nav a {
  display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 10px;
  color: #cfe0d6; font-size: 14px; margin-bottom: 6px; transition: var(--transition);
}
.admin-sidebar nav a:hover, .admin-sidebar nav a.active { background: rgba(255,255,255,0.1); color: #fff; }
.admin-main { flex: 1; padding: 28px 34px; }
.admin-topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 26px; }
.admin-topbar h1 { font-size: 24px; color: var(--forest-dark); font-family: 'Playfair Display', serif; }
.admin-card { background: #fff; border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-soft); margin-bottom: 24px; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 26px; }
.stat-card { background: #fff; border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-soft); border-left: 5px solid var(--forest); }
.stat-card strong { font-size: 26px; display: block; color: var(--forest-dark); }
.stat-card span { font-size: 13px; color: var(--muted); }
.admin-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.admin-table th, .admin-table td { padding: 12px 14px; border-bottom: 1px solid #eee; text-align: left; }
.admin-table th { background: var(--cream-2); font-weight: 600; color: var(--forest-dark); }
.admin-table tr:hover { background: #fafafa; }
.badge-status { padding: 4px 12px; border-radius: 30px; font-size: 12px; font-weight: 600; text-transform: capitalize; }
.badge-pending { background: #fff3cd; color: #856404; }
.badge-confirmed { background: #d4edda; color: #155724; }
.badge-cancelled { background: #f8d7da; color: #721c24; }
.badge-completed { background: #d1ecf1; color: #0c5460; }
.login-wrap {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(160deg, var(--forest-dark), var(--forest));
}
.login-card { background: #fff; padding: 40px; border-radius: var(--radius); width: 100%; max-width: 380px; box-shadow: var(--shadow); }
.login-card h2 { text-align: center; margin-bottom: 6px; }
.login-card p.sub { text-align: center; color: var(--muted); font-size: 13.5px; margin-bottom: 24px; }
.thumb-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.thumb-row .thumb { position: relative; width: 90px; height: 70px; border-radius: 8px; overflow: hidden; }
.thumb-row .thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb-row .thumb button {
  position: absolute; top: 2px; right: 2px; background: rgba(200,40,20,0.85); color: #fff; border: none;
  width: 20px; height: 20px; border-radius: 50%; cursor: pointer; font-size: 11px; line-height: 1;
}

/* ---------- Lightbox ---------- */
#lightbox {
  position: fixed; inset: 0; background: rgba(20,25,20,0.92); display: none;
  align-items: center; justify-content: center; z-index: 1200; padding: 30px; cursor: zoom-out;
}
#lightbox.open { display: flex; }
#lightbox img { max-width: 90vw; max-height: 88vh; border-radius: 10px; box-shadow: 0 20px 60px rgba(0,0,0,0.5); }
