/* Perez Hostels - theme tokens and custom components */

:root {
  --cream: #faf6ef;
  --sand: #f1e8da;
  --terracotta: #c4704f;
  --terracotta-dark: #a8552f;
  --terracotta-light: #d89577;
  --charcoal: #2e2a25;
  --muted: #8c7b6b;
  --sage: #7c8a6b;
}

* {
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  background-color: var(--cream);
  color: var(--charcoal);
  -webkit-font-smoothing: antialiased;
}

body.has-bottombar {
  padding-bottom: 5rem;
}

.font-display {
  font-family: 'Fraunces', Georgia, serif;
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 9999px;
  background: linear-gradient(135deg, var(--terracotta) 0%, var(--terracotta-dark) 100%);
  color: #fff;
  font-weight: 600;
  padding: 0.875rem 1.5rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
  box-shadow: 0 10px 24px rgba(168, 85, 47, 0.28);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(168, 85, 47, 0.34);
}
.btn-primary:active {
  transform: translateY(0);
}
.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 9999px;
  background: #fff;
  color: var(--charcoal);
  font-weight: 600;
  padding: 0.875rem 1.5rem;
  border: 1px solid #e7dcc9;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.btn-secondary:hover {
  border-color: var(--terracotta);
  color: var(--terracotta-dark);
}

/* Cards */
.card {
  background: #fff;
  border-radius: 1.5rem;
  box-shadow: 0 8px 30px rgba(46, 42, 37, 0.07);
  overflow: hidden;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 600;
  background: #fff;
  border: 1px solid #e7dcc9;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}
.chip:hover {
  border-color: var(--terracotta-light);
  color: var(--terracotta-dark);
}
.chip.is-active {
  background: var(--charcoal);
  border-color: var(--charcoal);
  color: #fff;
}

/* Section heading */
.eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--terracotta);
  font-weight: 700;
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(20, 17, 14, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}
.lightbox img {
  max-height: 82vh;
  max-width: 100%;
  border-radius: 1rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}
.lightbox .lb-close,
.lightbox .lb-prev,
.lightbox .lb-next {
  position: absolute;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-radius: 9999px;
  width: 2.75rem;
  height: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  transition: background 0.15s ease;
}
.lightbox .lb-close:hover,
.lightbox .lb-prev:hover,
.lightbox .lb-next:hover {
  background: rgba(255, 255, 255, 0.25);
}
.lightbox .lb-close { top: 1rem; right: 1rem; }
.lightbox .lb-prev { left: 0.75rem; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 0.75rem; top: 50%; transform: translateY(-50%); }

/* Bottom nav */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-top: 1px solid #eee4d5;
  padding-bottom: env(safe-area-inset-bottom);
}
.bottom-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  font-size: 0.625rem;
  font-weight: 600;
  color: var(--muted);
  padding: 0.5rem 0;
  transition: color 0.15s ease;
}
.bottom-nav a svg { width: 1.4rem; height: 1.4rem; }
.bottom-nav a.is-active { color: var(--terracotta-dark); }

/* Sticky book bar */
.book-bar {
  position: fixed;
  left: 0;
  right: 0;
  z-index: 49;
  background: #fff;
  border-top: 1px solid #eee4d5;
  box-shadow: 0 -8px 24px rgba(46, 42, 37, 0.08);
  padding: 0.75rem 1rem;
  padding-bottom: calc(0.75rem + env(safe-area-inset-bottom));
}

/* Hero gradient overlay */
.hero-overlay {
  background: linear-gradient(to top, rgba(30, 25, 20, 0.82) 0%, rgba(30, 25, 20, 0.35) 45%, rgba(30, 25, 20, 0.15) 100%);
}

/* Ken Burns hero animation */
@keyframes kenburns {
  0% { transform: scale(1) translateY(0); }
  100% { transform: scale(1.12) translateY(-2%); }
}
.kenburns {
  animation: kenburns 22s ease-in-out infinite alternate;
}

/* Misc */
.text-balance { text-wrap: balance; }
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

input[type="date"] {
  color-scheme: light;
}

/* Mobile menu */
.mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.mobile-menu.is-open {
  max-height: 28rem;
}
