:root {
  --primary: #34dca2;
  --accent: #ff735e;
  --badge: #b66d82;
  --title: #1b1b1d;
  --text: #333;
  --muted: #818181;
  --bg: #fff;
  --bg-secondary: #f5f8f8;
  --footer: #2c72b0;
  --sidebar-width: 250px;
  --overlay: rgba(0, 0, 0, 0.45);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Source Sans Pro", "Segoe UI", sans-serif;
  font-size: 17px;
  font-weight: 300;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
}

img { max-width: 100%; height: auto; display: block; }
a { color: #429bff; text-decoration: none; }
a:hover { color: #1f496e; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
}
.skip-link:focus {
  left: 12px;
  z-index: 1000;
  background: #000;
  color: #fff;
  padding: 8px 12px;
}

.layout {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: var(--sidebar-width);
  flex: 0 0 var(--sidebar-width);
  min-height: 100vh;
  position: sticky;
  top: 0;
  align-self: flex-start;
  background: #1a1a1a url("../images/Pages/home/Sidebar.jpg") center / cover no-repeat;
  color: #fff;
  z-index: 40;
}
.sidebar::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(40, 40, 40, 0.55);
}
.sidebar-inner {
  position: relative;
  z-index: 1;
  padding: 28px 18px 40px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.brand {
  display: block;
  text-align: center;
  margin: 8px auto 28px;
  width: 180px;
}
.brand img { width: 100%; height: auto; }

.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a, .nav-caret {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: none;
  border: 0;
  color: #fff;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: left;
  padding: 10px 6px;
  cursor: pointer;
}
.nav-parent {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}
.nav .nav-parent-link { flex: 1; width: auto; min-width: 0; }
.nav-caret {
  width: auto;
  flex: 0 0 auto;
  padding: 10px 4px;
}
.nav a:hover, .nav-caret:hover, .nav a.active {
  color: var(--primary);
}
.nav .caret { font-size: 10px; opacity: 0.8; }

.subnav {
  display: none;
  padding: 0 0 8px 10px;
  width: 100%;
}
.nav-parent.open .subnav,
.nav-parent:hover .subnav { display: block; }
.subnav a {
  font-family: "Source Sans Pro", sans-serif;
  font-size: 12px;
  letter-spacing: 0.04em;
  padding: 7px 6px;
  color: rgba(255, 255, 255, 0.88);
}

.menu-toggle {
  display: none;
  position: fixed;
  top: 14px;
  right: 14px;
  z-index: 60;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  font-size: 22px;
  cursor: pointer;
}

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.page-content { flex: 1; }

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  color: #fff;
  overflow: hidden;
  background: #111 center / cover no-repeat;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.55), rgba(0,0,0,.18) 45%, rgba(0,0,0,.25));
}
.hero-slides { position: absolute; inset: 0; }
.hero-slides .slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease;
}
.hero-slides .slide.is-active { opacity: 1; }
.hero-copy {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 24px 90px;
}
.hero h1, .page-hero h1 {
  font-family: Ubuntu, sans-serif;
  font-weight: 700;
  font-size: clamp(42px, 7vw, 92px);
  line-height: 1.05;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 10px;
}
.hero p, .page-hero p {
  font-family: "Source Sans Pro", sans-serif;
  font-size: clamp(16px, 2vw, 22px);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin: 0;
  color: #fff;
}
.hero-dots {
  position: absolute;
  z-index: 3;
  left: 0; right: 0; bottom: 28px;
  display: flex;
  justify-content: center;
  gap: 10px;
}
.hero-dots button {
  width: 10px; height: 10px; border-radius: 50%;
  border: 0; background: rgba(255,255,255,.45); cursor: pointer;
}
.hero-dots button.is-active { background: #fff; }

.page-hero {
  position: relative;
  min-height: 58vh;
  display: flex;
  align-items: flex-end;
  background: #222 center / cover no-repeat;
  color: #fff;
}
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(80, 80, 80, 0.45);
}
.page-hero .hero-copy { z-index: 1; padding-bottom: 48px; }

.section { padding: 72px 6vw; }
.section.alt { background: var(--bg-secondary); }
.section.dark {
  background: #1e293d center / cover no-repeat;
  color: #fff;
  position: relative;
}
.section.dark::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(30, 41, 61, 0.72);
}
.section.dark > * { position: relative; z-index: 1; }

.kicker {
  font-family: "Krona One", sans-serif;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 8px;
}
h2 {
  font-family: Ubuntu, sans-serif;
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  text-transform: uppercase;
  margin: 0 0 18px;
  color: #101010;
}
.section.dark h2, .section.dark .kicker { color: #fff; }
h3 {
  font-family: Candal, Georgia, serif;
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 400;
  text-transform: uppercase;
  margin: 0 0 12px;
  line-height: 1.25;
}
.lede { color: #555; max-width: 70ch; }

.cards-3, .cards-2, .split {
  display: grid;
  gap: 28px;
}
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.cards-2 { grid-template-columns: repeat(2, 1fr); }
.split { grid-template-columns: 1fr 1.2fr; align-items: center; }
.split.reverse { grid-template-columns: 1.2fr 1fr; }

.card {
  background: #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.card img { width: 100%; height: 240px; object-fit: cover; }
.card-body { padding: 22px 22px 28px; }
.card h3 { font-size: 28px; }

.overlay-card {
  position: relative;
  min-height: 320px;
  display: flex;
  align-items: flex-end;
  background: #333 center / cover no-repeat;
  color: #fff;
}
.overlay-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.4);
}
.overlay-card .card-body { position: relative; z-index: 1; }
.overlay-card h3, .overlay-card p { color: #fff; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 16px;
  padding: 12px 22px;
  background: var(--primary);
  color: #123 !important;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 13px;
}
.btn:hover { filter: brightness(0.95); color: #123 !important; }
.btn.ghost { background: transparent; border: 1px solid #123; color: #123 !important; }
.overlay-card .btn.ghost, .hero .btn.ghost, .page-hero .btn.ghost { border-color: #fff; color: #fff !important; }

.quote {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}
.quote h2 {
  font-family: Candal, Georgia, serif;
  font-weight: 400;
  font-size: clamp(26px, 3.4vw, 42px);
  line-height: 1.35;
  text-transform: none;
  color: #fff;
}
.quote cite { display: block; margin-top: 18px; opacity: 0.85; }

.notice {
  background: #fff3cd;
  color: #5c3d00;
  border-left: 5px solid #ffc700;
  padding: 14px 18px;
  margin: 0 6vw 0;
}

.tabs { margin-top: 20px; }
.tab-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}
.tab-list button {
  background: #eee;
  border: 0;
  padding: 10px 16px;
  cursor: pointer;
  font-family: Ubuntu, sans-serif;
  text-transform: uppercase;
  font-size: 13px;
}
.tab-list button.is-active { background: var(--primary); }
.tab-panel { display: none; }
.tab-panel.is-active { display: block; }
.tab-panel img { width: 100%; max-height: 420px; object-fit: cover; margin-bottom: 16px; }

.amenity-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-top: 24px;
}
.amenity img { height: 180px; width: 100%; object-fit: cover; }

.prose { max-width: 78ch; }
.prose:has(.story-block),
.prose:has(.cards-3),
.prose:has(.cards-2),
.prose:has(.split),
.prose:has(.gallery-grid),
.prose:has(.contact-grid),
.prose:has(.amenity-grid),
.prose:has(.tabs) {
  max-width: none;
}
.prose h3 { margin-top: 1.6em; }
.prose p { margin: 0 0 1em; }
.story-block {
  display: grid;
  grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
  gap: 36px;
  align-items: start;
  margin: 36px 0;
  max-width: 1100px;
}
.story-block h3 { margin-top: 0; }
.story-block img { width: 100%; object-fit: cover; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
}
.gallery-grid a { display: block; }
.gallery-grid img { width: 100%; height: 180px; object-fit: cover; }

table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}
th, td {
  border: 1px solid #eee;
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
}
th { background: var(--bg-secondary); font-family: Ubuntu, sans-serif; text-transform: uppercase; font-size: 13px; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.contact-card h3 { font-size: 22px; }
.contact-card p { margin: 0 0 6px; }

.tally-wrap {
  min-height: 420px;
  background: #fff;
  border: 1px solid #eee;
  padding: 8px;
}
.tally-fallback {
  padding: 28px;
  color: #555;
}

.site-footer {
  background: var(--footer) url("../images/Pages/Hostel/HostelBillards.jpg") center / cover no-repeat;
  color: #fff;
  padding: 56px 6vw 28px;
  position: relative;
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(44, 114, 176, 0.88);
}
.footer-inner { position: relative; z-index: 1; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 28px;
  align-items: start;
}
.site-footer h4 {
  font-family: Candal, Georgia, serif;
  text-transform: uppercase;
  margin: 0 0 12px;
}
.site-footer p, .site-footer a { color: #fff; }
.footer-logos { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.footer-logos img { height: 72px; width: auto; }
.copyright { margin-top: 36px; opacity: 0.85; font-size: 14px; }

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.9);
  z-index: 80;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.lightbox.is-open { display: flex; }
.lightbox img { max-width: min(1100px, 92vw); max-height: 90vh; }
.lightbox button {
  position: absolute;
  top: 16px; right: 16px;
  background: none; border: 0; color: #fff; font-size: 32px; cursor: pointer;
}

@media (max-width: 1100px) {
  .cards-3, .amenity-grid { grid-template-columns: 1fr 1fr; }
  .split, .split.reverse, .story-block { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .menu-toggle { display: block; }
  .layout { display: block; }
  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    transform: translateX(-110%);
    transition: transform .25s ease;
    width: min(86vw, 320px);
  }
  .sidebar.is-open { transform: none; }
  .hero, .page-hero { min-height: 70vh; }
  .cards-3, .cards-2, .contact-grid, .footer-grid, .amenity-grid { grid-template-columns: 1fr; }
  .section { padding: 48px 20px; }
}
