/* ═══════════════════════════════════════════════════════
   Venn Hostel — style.css
   ═══════════════════════════════════════════════════════ */

/* ─── Variables ─────────────────────────────────────── */
:root {
  --bg:          #FDFCF9;
  --dark:        #1A2E2A;
  --primary:     #2D6A4F;
  --primary-hov: #245840;
  --accent:      #E76F51;
  --light:       #EAF4EF;
  --text:        #2C3E35;
  --muted:       #6B8278;
  --border:      #D5E8DC;
  --white:       #FFFFFF;
  --radius:      12px;
  --radius-lg:   20px;
  --shadow-sm:   0 2px 12px rgba(0,0,0,.06);
  --shadow:      0 6px 32px rgba(0,0,0,.10);
  --shadow-lg:   0 16px 64px rgba(0,0,0,.16);
  --transition:  0.25s ease;
  --font-serif:  'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-sans:   'Inter', system-ui, -apple-system, sans-serif;
  --nav-h:       68px;
}

/* ─── Reset ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html                   { scroll-behavior: smooth; font-size: 16px; }
body                   { font-family: var(--font-sans); background: var(--bg); color: var(--text); line-height: 1.75; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img                    { max-width: 100%; display: block; }
a                      { color: inherit; text-decoration: none; }
ul                     { list-style: none; }

/* ─── Utilities ──────────────────────────────────────── */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 28px;
}

.section-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 12px;
}

section { padding: 96px 0; }

h2 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--dark);
  line-height: 1.2;
  margin-bottom: 40px;
}

/* ─── Buttons ────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 50px;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}
.btn-primary:hover { background: var(--primary-hov); border-color: var(--primary-hov); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(45,106,79,.3); }

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.7);
}
.btn-outline:hover { background: rgba(255,255,255,.15); border-color: var(--white); transform: translateY(-2px); }

.btn-light {
  background: var(--white);
  color: var(--dark);
  border-color: var(--white);
}
.btn-light:hover { background: var(--light); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.12); }

.btn-sm  { padding: 9px 20px; font-size: 0.85rem; }
.btn-lg  { padding: 16px 36px; font-size: 1rem; }

/* ─── Nav ────────────────────────────────────────────── */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  transition: background var(--transition), box-shadow var(--transition);
}

#nav.scrolled {
  background: rgba(253,252,249,.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
}

.nav-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 28px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--white);
  transition: color var(--transition);
}
#nav.scrolled .nav-logo { color: var(--dark); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255,255,255,.88);
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--white); }
#nav.scrolled .nav-links a { color: var(--muted); }
#nav.scrolled .nav-links a:hover { color: var(--dark); }
#nav.scrolled .nav-links .btn.btn-sm { color: var(--white); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
}
#nav.scrolled .nav-toggle span { background: var(--dark); }

/* ─── Hero ───────────────────────────────────────────── */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  /* Replace URL below with an actual Venn Hostel photo */
  background: url('https://picsum.photos/seed/venn-hero/1920/1080') center/cover no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26,46,42,.82) 0%, rgba(26,46,42,.55) 60%, rgba(45,106,79,.4) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 680px;
  padding: 0 28px;
  margin: 0 auto;
  text-align: center;
  padding-top: var(--nav-h);
}

.hero-badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.8);
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.25);
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 24px;
}

.hero-content h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.8rem, 7vw, 5rem);
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 20px;
}

.hero-content p {
  font-size: 1.1rem;
  color: rgba(255,255,255,.82);
  margin-bottom: 36px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.hero-rating {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  padding: 10px 20px;
  border-radius: 50px;
}

.rating-score {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  color: var(--white);
  line-height: 1;
}

.rating-text {
  display: flex;
  flex-direction: column;
  text-align: left;
}
.rating-text strong { font-size: 0.9rem; color: var(--white); }
.rating-text span   { font-size: 0.75rem; color: rgba(255,255,255,.65); }

.hero-scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,.6);
  font-size: 1.4rem;
  animation: bounce 2s infinite;
  z-index: 1;
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}

/* ─── About ──────────────────────────────────────────── */
#about { background: var(--bg); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.about-text p {
  color: var(--muted);
  margin-bottom: 16px;
  font-size: 1.02rem;
}

.about-highlights {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.about-highlights li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  color: var(--dark);
}
.about-highlights li::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--primary);
  flex-shrink: 0;
}

.info-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.info-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--light);
  border-radius: var(--radius);
  padding: 20px;
  border: 1px solid var(--border);
}

.info-icon { font-size: 1.4rem; flex-shrink: 0; margin-top: 2px; }

.info-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.info-body strong { font-size: 0.88rem; color: var(--dark); font-weight: 600; }
.info-body span   { font-size: 0.82rem; color: var(--muted); }

/* ─── Amenities ──────────────────────────────────────── */
#amenities { background: var(--light); }

.amenities-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.amenity-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  transition: all var(--transition);
}
.amenity-item:hover { border-color: var(--primary); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.amenity-item span  { font-size: 1.2rem; flex-shrink: 0; }

/* ─── Gallery ────────────────────────────────────────── */
#gallery { background: var(--bg); }

.section-sub {
  color: var(--muted);
  margin-top: -24px;
  margin-bottom: 36px;
  font-size: 0.95rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4/3;
  background: var(--border);
}

.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-item:hover img { transform: scale(1.05); }

.gallery-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 20px 14px 14px;
  background: linear-gradient(transparent, rgba(26,46,42,.75));
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 500;
  opacity: 0;
  transition: opacity var(--transition);
}
.gallery-item:hover .gallery-caption { opacity: 1; }

/* ─── Lightbox ───────────────────────────────────────── */
#lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(10,18,16,.95);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

#lightbox.active {
  opacity: 1;
  pointer-events: all;
}

.lb-figure {
  position: relative;
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#lb-img {
  max-width: 90vw;
  max-height: 78vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  transition: opacity 0.2s ease;
}

#lb-caption {
  color: rgba(255,255,255,.7);
  font-size: 0.9rem;
  margin-top: 14px;
  text-align: center;
}

#lb-counter {
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,.45);
  font-size: 0.82rem;
  white-space: nowrap;
}

.lb-close,
.lb-prev,
.lb-next {
  position: absolute;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.15);
  color: var(--white);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  line-height: 1;
}
.lb-close:hover, .lb-prev:hover, .lb-next:hover {
  background: rgba(255,255,255,.2);
  border-color: rgba(255,255,255,.4);
}

.lb-close {
  top: 20px; right: 20px;
  width: 44px; height: 44px;
  font-size: 1.1rem;
}

.lb-prev,
.lb-next {
  top: 50%;
  transform: translateY(-50%);
  width: 52px; height: 52px;
  font-size: 1.6rem;
}
.lb-prev { left: 24px; }
.lb-next { right: 24px; }

/* ─── Location ───────────────────────────────────────── */
#location { background: var(--light); }

.location-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.map-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 420px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.contact-block {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 20px;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.contact-icon { font-size: 1.3rem; flex-shrink: 0; margin-top: 2px; }

.contact-body {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.contact-body strong { font-size: 0.88rem; font-weight: 600; color: var(--dark); }
.contact-body span, .contact-body a { font-size: 0.9rem; color: var(--muted); }
.contact-body a:hover { color: var(--primary); }

.nearby-block {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 18px 20px;
}

.nearby-block h4 {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 12px;
}

.nearby-block ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.nearby-block li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text);
}

.nearby-dist {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--primary);
  background: var(--light);
  padding: 2px 8px;
  border-radius: 50px;
  flex-shrink: 0;
}

/* ─── Book CTA ───────────────────────────────────────── */
#book {
  background: var(--dark);
  text-align: center;
  padding: 96px 0;
}

#book h2 {
  color: var(--white);
  margin-bottom: 12px;
}

#book p {
  color: rgba(255,255,255,.65);
  margin-bottom: 36px;
  font-size: 1.05rem;
}

.book-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ─── Footer ─────────────────────────────────────────── */
#footer {
  background: #111E1A;
  padding: 48px 0 28px;
}

.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  flex-wrap: wrap;
}

.footer-logo {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--white);
  margin-bottom: 8px;
}

.footer-brand p {
  font-size: 0.82rem;
  color: rgba(255,255,255,.4);
  line-height: 1.6;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-nav a {
  font-size: 0.88rem;
  color: rgba(255,255,255,.5);
  transition: color var(--transition);
}
.footer-nav a:hover { color: var(--white); }

.footer-book {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-book a {
  font-size: 0.88rem;
  color: rgba(255,255,255,.5);
  transition: color var(--transition);
}
.footer-book a:hover { color: var(--white); }

.footer-copy {
  padding-top: 24px;
  text-align: center;
  font-size: 0.78rem;
  color: rgba(255,255,255,.25);
}

/* ─── Responsive — Tablet ────────────────────────────── */
@media (max-width: 900px) {
  .amenities-grid { grid-template-columns: repeat(3, 1fr); }
  .gallery-grid   { grid-template-columns: repeat(2, 1fr); }
  .about-grid     { grid-template-columns: 1fr; gap: 40px; }
  .location-grid  { grid-template-columns: 1fr; }
  .map-wrap       { height: 320px; }
}

/* ─── Mobile nav ─────────────────────────────────────── */
#nav-mobile       { display: none; }
#nav-mobile-links { display: none; }

@media (max-width: 768px) {
  #nav-mobile {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--nav-h);
    background: var(--white);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    z-index: 200;
    padding: 0 20px;
  }
  .nav-mobile-logo {
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 1rem;
    color: var(--dark);
    text-decoration: none;
    white-space: nowrap;
  }

  .nav-mobile-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
  }
  .nav-mobile-toggle span {
    display: block;
    width: 22px; height: 2px;
    background: var(--dark);
    border-radius: 2px;
    transition: all var(--transition);
  }
  .nav-mobile-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
  .nav-mobile-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-mobile-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

  #nav-mobile-links {
    position: fixed;
    top: var(--nav-h); left: 0; right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    list-style: none;
    margin: 0; padding: 12px 20px 20px;
    z-index: 199;
    box-shadow: 0 8px 24px rgba(0,0,0,.08);
  }
  #nav-mobile-links.open { display: block; }
  #nav-mobile-links a {
    display: block;
    padding: 13px 4px;
    border-bottom: 1px solid var(--border);
    font-size: 0.95rem;
    color: var(--text);
    text-decoration: none;
  }
  #nav-mobile-links li:last-child a { border-bottom: none; }
  #nav-mobile-links a:hover { color: var(--dark); }
  #nav-mobile-links .nav-cta { color: var(--primary); font-weight: 600; }
}

/* ─── Nav collapse — 768px ───────────────────────────── */
@media (max-width: 768px) {
  #nav           { display: none !important; }
  .hero-content  { padding-top: var(--nav-h); }
}

/* ─── Responsive — Mobile ────────────────────────────── */
@media (max-width: 640px) {
  section { padding: 64px 0; }

  .hero-content h1  { font-size: 2.4rem; }
  .hero-actions     { flex-direction: column; align-items: center; }

  .info-cards       { grid-template-columns: 1fr; }
  .amenities-grid   { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid     { grid-template-columns: 1fr; }

  .lb-prev { left: 4px; width: 44px; height: 44px; }
  .lb-next { right: 4px; width: 44px; height: 44px; }

  .map-wrap         { height: 220px; }

  .footer-inner     { flex-direction: column; gap: 28px; }

  #book h2          { font-size: 1.8rem; }
}
