/* ─── Sobe South Beach — Custom Styles ─────────────────── */

/* Base */
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  overflow-x: hidden;
}

/* ─── Navbar ───────────────────────────────────────────── */
#navbar {
  background: transparent;
  transition: background 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}

#navbar.scrolled {
  background: rgba(15, 26, 46, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 20px rgba(0, 0, 0, 0.25);
}

.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: #C0523A;
  transition: width 0.25s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* ─── Mobile menu ──────────────────────────────────────── */
#mobileMenu.open {
  translate: 0 0;
}

#mobileMenu.translate-x-full {
  translate: 100% 0;
}

.mobile-link {
  position: relative;
}

/* ─── Hero ─────────────────────────────────────────────── */
#top {
  position: relative;
}

#top::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to top, #fdf8ee, transparent);
  z-index: 2;
  pointer-events: none;
}

/* ─── Room Cards ───────────────────────────────────────── */
.room-card {
  background: white;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 4px 16px rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.room-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08), 0 12px 32px rgba(0, 0, 0, 0.08);
  transform: translateY(-4px);
}

/* ─── Reveal Animations ────────────────────────────────── */
.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
  }

  .reveal.visible {
    opacity: 1;
    transform: translateY(0);
  }

  .reveal:nth-child(2) { transition-delay: 0.1s; }
  .reveal:nth-child(3) { transition-delay: 0.2s; }
  .reveal:nth-child(4) { transition-delay: 0.3s; }
}

/* ─── Custom scrollbar ─────────────────────────────────── */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #fdf8ee;
}

::-webkit-scrollbar-thumb {
  background: #d4a87c;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #C0523A;
}

/* ─── Selection ────────────────────────────────────────── */
::selection {
  background: #C0523A;
  color: white;
}

/* ─── Focus visible ────────────────────────────────────── */
:focus-visible {
  outline: 2px solid #C0523A;
  outline-offset: 2px;
}

/* ─── Select arrow ─────────────────────────────────────── */
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 40px;
}
