/* VibeDelhi clone — hero stays fixed; overlays sit on top */

html,
body {
  height: 100%;
  overflow: hidden;
  background-color: hsl(222.2, 84%, 4.9%);
}

/* ─── Homepage loader (index.php) ─── */
html.vd-loading #app,
html.vd-loading #detail-modal,
html.vd-loading #review-modal,
html.vd-loading #saved-drawer,
html.vd-loading #toast {
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

html.vd-ready #app,
html.vd-ready #detail-modal,
html.vd-ready #review-modal,
html.vd-ready #saved-drawer,
html.vd-ready #toast {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transition: opacity 0.35s ease;
}

.vd-page-loader__ring-glow {
  position: absolute;
  inset: -0.35rem;
  border-radius: 9999px;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.2) 0%, transparent 70%);
  animation: vd-loader-pulse 1.6s ease-in-out infinite;
}

@keyframes vd-loader-pulse {
  0%,
  100% {
    opacity: 0.45;
    transform: scale(0.96);
  }
  50% {
    opacity: 1;
    transform: scale(1.04);
  }
}

/* ─── Hero (persistent background) ─── */
.hero-stage {
  position: fixed;
  inset: 0;
  z-index: 0;
}

.hero-content {
  transition: opacity 0.35s ease, transform 0.35s ease;
}

/* Visible before Tailwind / on first paint */
.hero-text-slide.active {
  opacity: 1;
  transform: none;
}

.hero-content-scroll {
  height: 100vh;
  height: 100dvh;
  overflow-x: hidden;
  overflow-y: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
}

.hero-content-scroll.hero-content {
  display: flex;
  flex-direction: column;
}

.hero-content-scroll .hero-main {
  box-sizing: border-box;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 0;
  padding: 4.25rem 1.5rem 0.5rem;
}

.hero-cta {
  flex-shrink: 0;
}

.site-brand {
  text-align: left;
}

.site-logo {
  display: block;
}

/* Hero banner slides (from admin → Banners) */
.hero-bg {
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.1s ease-in-out;
  pointer-events: none;
}

.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.hero-text-track {
  position: relative;
  min-height: 12rem;
}

.hero-text-slide {
  display: none;
}

.hero-text-slide.active {
  display: block;
}

.hero-rich-text p {
  margin: 0;
}

/* Hero title: white lines + gradient accent (admin Title, use | before gradient phrase) */
.hero-headline-white {
  display: block;
}

.hero-headline .hero-gradient-text {
  display: block;
  margin-top: 0.15em;
  padding-bottom: 0.06em;
  background: linear-gradient(
    90deg,
    #fcd34d 0%,
    #fbbf24 12%,
    #fb923c 28%,
    #fb7185 48%,
    #f472b6 68%,
    #e879f9 88%,
    #c084fc 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.hero-dots .hero-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.35);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease;
}

.hero-dots .hero-dot.active {
  background: rgba(255, 255, 255, 0.95);
  transform: scale(1.15);
}

body[data-overlay="true"] .hero-content {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.98);
}

body[data-overlay="true"] #main-footer {
  opacity: 0;
}

#main-footer .footer-bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.875rem;
  width: 100%;
  max-width: 48rem;
  margin: 0 auto;
  text-align: center;
  line-height: 1.5;
}

#main-footer.footer-hero {
  position: relative;
  flex-shrink: 0;
  z-index: 2;
  margin-top: 0;
  padding-top: 0;
  padding-bottom: max(1rem, env(safe-area-inset-bottom, 0px));
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.88) 0%,
    rgba(0, 0, 0, 0.5) 70%,
    transparent 100%
  );
  pointer-events: none;
}

#main-footer.footer-hero .footer-bar,
#main-footer.footer-hero .footer-scroll-btn,
#main-footer.footer-hero a {
  pointer-events: auto;
}

#main-footer.footer-hero .footer-bar-hero {
  gap: 0;
}

#main-footer.footer-hero .footer-peek {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 0.25rem;
  padding-top: 0.15rem;
}

#main-footer.footer-hero .footer-scroll-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 9999px;
  background: transparent;
  color: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: color 0.2s ease, transform 0.25s ease;
}

#main-footer.footer-hero .footer-scroll-btn:hover {
  color: rgba(255, 255, 255, 0.85);
}

#main-footer.footer-hero .footer-scroll-icon {
  animation: footer-bounce 2.2s ease-in-out infinite;
}

#main-footer.footer-hero.is-expanded .footer-scroll-icon {
  animation: none;
  transform: rotate(180deg);
}

@keyframes footer-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(0.28rem); }
}

#main-footer.footer-hero .footer-details {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.45s ease, opacity 0.35s ease, margin 0.35s ease;
  margin-top: 0;
}

#main-footer.footer-hero.is-expanded .footer-details {
  max-height: 16rem;
  opacity: 1;
  margin-top: 0.75rem;
}

#main-footer.footer-hero.is-expanded .footer-details.footer-details-tall {
  max-height: 22rem;
}

#main-footer.footer-hero .footer-details .footer-bar,
#main-footer.footer-hero .footer-details {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
}

#main-footer.footer-static {
  position: relative;
  flex-shrink: 0;
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: max(1.5rem, env(safe-area-inset-bottom, 0px));
}

#main-footer .footer-line {
  margin: 0;
  width: 100%;
  text-align: center;
}

#main-footer .footer-tagline {
  white-space: nowrap;
}

#main-footer .footer-links {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.25rem 0.5rem;
}

#main-footer .footer-sep {
  color: rgba(161, 161, 170, 0.55);
  user-select: none;
}

#main-footer .footer-link {
  color: rgba(161, 161, 170, 0.9);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s ease;
}

#main-footer .footer-link:hover {
  color: rgba(244, 244, 245, 0.95);
}

#main-footer .footer-copyright {
  font-size: 0.8125rem;
  color: rgba(161, 161, 170, 0.8);
  line-height: 1.5;
}

#main-footer .footer-social {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  width: 100%;
}

#main-footer .footer-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

#main-footer .footer-social-link:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}

#main-footer .footer-social-link img {
  width: 1.25rem;
  height: 1.25rem;
  object-fit: contain;
  display: block;
}

@media (max-width: 640px) {
  #main-footer .footer-tagline {
    white-space: normal;
  }
}

/* ─── CMS pages (scrollable; overrides landing overflow:hidden) ─── */
html.cms-page {
  height: auto;
  min-height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  scroll-behavior: smooth;
}

html.cms-page body.cms-page-wrap {
  height: auto;
  min-height: 100vh;
  overflow-x: hidden;
  overflow-y: visible;
}

.cms-page-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: hsl(222.2, 84%, 4.9%);
}

.cms-page-main {
  flex: 1 1 auto;
  width: 100%;
  padding: 5.5rem 1.25rem 4rem;
}

@media (min-width: 640px) {
  .cms-page-main {
    padding: 6.5rem 1.5rem 5rem;
  }
}

.cms-page-inner {
  max-width: 44rem;
  margin: 0 auto;
  padding-bottom: 1rem;
}

.cms-page-back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.875rem;
  color: rgba(161, 161, 170, 0.95);
  text-decoration: none;
  margin-bottom: 1.5rem;
  transition: color 0.2s ease;
}

.cms-page-back:hover {
  color: rgba(244, 244, 245, 0.95);
}

.cms-page-title {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: rgba(250, 250, 250, 0.98);
  margin: 0 0 0.5rem;
  line-height: 1.2;
}

.cms-page-updated {
  font-size: 0.8125rem;
  color: rgba(161, 161, 170, 0.85);
  margin: 0 0 2rem;
}

.cms-prose {
  color: rgba(212, 212, 216, 0.92);
  font-size: 0.9375rem;
  line-height: 1.75;
}

.cms-prose h2 {
  font-size: 1.125rem;
  font-weight: 600;
  color: rgba(250, 250, 250, 0.96);
  margin: 2rem 0 0.75rem;
  letter-spacing: -0.01em;
}

.cms-prose h2:first-child {
  margin-top: 0;
}

.cms-prose p {
  margin: 0 0 1rem;
}

.cms-prose ul,
.cms-prose ol {
  margin: 0 0 1rem;
  padding-left: 1.35rem;
}

.cms-prose li {
  margin-bottom: 0.35rem;
}

.cms-prose a {
  color: rgba(251, 191, 36, 0.95);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cms-prose a:hover {
  color: rgba(253, 224, 71, 1);
}

.cms-prose strong {
  color: rgba(250, 250, 250, 0.95);
  font-weight: 600;
}

.cms-prose h3 {
  font-size: 1rem;
  font-weight: 600;
  color: rgba(250, 250, 250, 0.94);
  margin: 1.5rem 0 0.5rem;
}

.cms-prose img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 1.25rem 0;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.cms-prose blockquote {
  margin: 1.25rem 0;
  padding: 0.75rem 1rem;
  border-left: 3px solid rgba(251, 191, 36, 0.65);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 0 0.5rem 0.5rem 0;
  color: rgba(228, 228, 231, 0.9);
}

/* ─── Overlay stage (quiz + results over hero) ─── */
.overlay-stage {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

body[data-overlay="true"] .overlay-stage {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.overlay-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.45) 0%,
    rgba(5, 7, 10, 0.78) 40%,
    rgba(5, 7, 10, 0.88) 100%
  );
  backdrop-filter: blur(1px);
}

/* Vibes step: let hero + card colors show through more */
body[data-view='vibes'] .overlay-scrim {
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.5) 0%,
    rgba(5, 7, 10, 0.85) 50%,
    rgba(5, 7, 10, 0.9) 100%
  );
}

.overlay-scroll {
  position: relative;
  z-index: 1;
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding-top: 4.5rem;
  -webkit-overflow-scrolling: touch;
}

.view-overlay {
  display: none;
  animation: viewIn 0.35s ease forwards;
}

.view-overlay.active {
  display: block;
}

.overlay-panel {
  position: relative;
}

.overlay-footer-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 25;
  padding: 1rem;
  background: linear-gradient(to top, rgba(5, 7, 10, 0.98) 40%, transparent);
  pointer-events: none;
}

.overlay-footer-bar .continue-btn {
  pointer-events: auto;
}

@keyframes viewIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Optional: add .animate-fade-up in JS after first paint if you want intro motion */
.animate-fade-up {
  animation: fadeUp 0.55s ease forwards;
}

@media (prefers-reduced-motion: reduce) {
  .animate-fade-up {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

.animate-bounce-slow {
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* Continue button gradient */
.continue-btn:not(:disabled) {
  background: linear-gradient(90deg, #7c3aed 0%, #db2777 45%, #f59e0b 100%);
  box-shadow: 0 8px 32px rgba(124, 58, 237, 0.35);
}

.continue-btn:not(:disabled):hover {
  filter: brightness(1.08);
}

/* Vibe selection grid — compact cards like reference */
.vibe-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.625rem;
  max-width: 22rem;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 480px) {
  .vibe-grid {
    gap: 0.75rem;
    max-width: 26rem;
  }
}

@media (min-width: 640px) {
  .vibe-grid {
    gap: 0.875rem;
    max-width: 28rem;
  }
}

@media (max-width: 380px) {
  .vibe-grid {
    gap: 0.5rem;
    max-width: 100%;
  }
}

.vibe-card {
  position: relative;
  width: 100%;
  aspect-ratio: 5 / 4;
  max-height: 6.75rem;
  border-radius: 0.875rem;
  border: 2px solid transparent;
  overflow: hidden;
  text-align: left;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  background-color: #1a1a1f;
}

.vibe-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.08) 0%, transparent 45%, rgba(0, 0, 0, 0.25) 100%);
  pointer-events: none;
}

.vibe-card:hover {
  transform: scale(1.03);
}

.vibe-card.selected {
  border-color: rgba(255, 255, 255, 0.75);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.15),
    0 12px 28px rgba(0, 0, 0, 0.45);
}

/* Per-vibe gradients (reference design) */
.vibe-card[data-vibe='romantic'] {
  background: linear-gradient(145deg, #8b2d52 0%, #5c1a35 42%, #3d1225 100%);
}

.vibe-card[data-vibe='adventure'] {
  background: linear-gradient(145deg, #8b4520 0%, #5c2e14 42%, #3d1a0a 100%);
}

.vibe-card[data-vibe='nature'] {
  background: linear-gradient(145deg, #1f6b45 0%, #0f4a2e 42%, #0a3020 100%);
}

.vibe-card[data-vibe='food'] {
  background: linear-gradient(145deg, #9a5c18 0%, #6b4010 42%, #4a2d0c 100%);
}

.vibe-card[data-vibe='historical'] {
  background: linear-gradient(145deg, #5c5650 0%, #3d3a36 42%, #2a2826 100%);
}

.vibe-card[data-vibe='luxury'] {
  background: linear-gradient(145deg, #8b7428 0%, #5c4e18 42%, #3d3410 100%);
}

.vibe-card[data-vibe='photography'] {
  background: linear-gradient(145deg, #6b30a8 0%, #4a2080 42%, #321660 100%);
}

.vibe-card[data-vibe='nightlife'] {
  background: linear-gradient(145deg, #2a4488 0%, #1a3060 42%, #0f2048 100%);
}

.vibe-card[data-vibe='hidden_gems'] {
  background: linear-gradient(145deg, #1f7070 0%, #145050 42%, #0c3838 100%);
}

.vibe-card .vibe-icon {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  color: rgba(255, 255, 255, 0.95);
  z-index: 1;
}

.vibe-card .vibe-icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

.vibe-card .vibe-label {
  position: absolute;
  bottom: 0.75rem;
  left: 0.75rem;
  font-weight: 600;
  font-size: 0.8125rem;
  line-height: 1.2;
  color: #fff;
  letter-spacing: -0.01em;
  z-index: 1;
}

@media (min-width: 480px) {
  .vibe-card {
    max-height: 7.25rem;
    border-radius: 1rem;
  }
  .vibe-card .vibe-icon {
    top: 0.875rem;
    left: 0.875rem;
  }
  .vibe-card .vibe-icon svg {
    width: 1.375rem;
    height: 1.375rem;
  }
  .vibe-card .vibe-label {
    bottom: 0.875rem;
    left: 0.875rem;
    font-size: 0.875rem;
  }
}

.vibe-card .check-mark {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 9999px;
  background: #fff;
  color: #18181b;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.vibe-card.selected .check-mark {
  display: flex;
}

/* Group / budget option cards */
.option-card {
  border-radius: 1rem;
  border: 2px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  padding: 1.25rem;
  text-align: left;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
  cursor: pointer;
}

.option-card:hover {
  background: rgba(255, 255, 255, 0.07);
}

.option-card.selected {
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.08);
}

.option-card .option-icon {
  width: 2rem;
  height: 2rem;
  color: #a1a1aa;
  margin-bottom: 0.75rem;
}

.option-card.selected .option-icon {
  color: #fbbf24;
}

/* Place result cards */
.place-card {
  border-radius: 1rem;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.place-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.place-card .place-img-wrap {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
}

.place-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.place-card:hover img {
  transform: scale(1.04);
}

.place-card .place-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, transparent 55%);
}

.place-card .rank-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  width: 2rem;
  height: 2rem;
  border-radius: 9999px;
  background: white;
  color: #18181b;
  font-weight: 700;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.place-card .featured-badge {
  position: absolute;
  top: 0.75rem;
  left: 3.25rem;
  padding: 0.2rem 0.55rem;
  border-radius: 9999px;
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  color: #1c1917;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.place-card:has(.featured-badge) .rating-badge {
  left: 7.5rem;
}

.place-card .rating-badge {
  position: absolute;
  top: 0.75rem;
  left: 3.25rem;
  padding: 0.25rem 0.5rem;
  border-radius: 9999px;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
  font-size: 0.75rem;
  font-weight: 600;
  color: white;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.place-card .rating-badge svg {
  width: 0.75rem;
  height: 0.75rem;
  fill: #fbbf24;
  color: #fbbf24;
}

.place-card .save-btn {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 9999px;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  color: white;
  transition: background 0.2s;
}

.place-card .save-btn:hover {
  background: rgba(0, 0, 0, 0.65);
}

.place-card .save-btn.saved svg {
  fill: #f43f5e;
  color: #f43f5e;
}

.filter-pill {
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.8rem;
  color: #d4d4d8;
  text-transform: capitalize;
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.drawer {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
}

.modal.hidden,
.drawer.hidden {
  display: none;
}

.modal-backdrop,
.drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
}

.modal-panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 42rem;
  max-height: 92vh;
  overflow-y: auto;
  background: hsl(222.2, 84%, 6%);
  border-radius: 1.25rem 1.25rem 0 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.5rem;
  animation: slideUp 0.3s ease;
}

@media (min-width: 768px) {
  .modal {
    align-items: center;
  }
  .modal-panel {
    border-radius: 1.25rem;
    max-height: 88vh;
  }
}

.drawer-panel {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 28rem;
  height: 100%;
  max-height: 100dvh;
  margin-left: auto;
  background: hsl(222.2, 84%, 6%);
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0;
  animation: slideLeft 0.3s ease;
  overflow: hidden;
}

.drawer-header {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem 1rem;
  padding-top: max(1.25rem, env(safe-area-inset-top, 0px));
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.drawer-close-btn {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border: none;
  border-radius: 9999px;
  background: transparent;
  color: rgba(161, 161, 170, 1);
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease;
}

.drawer-close-btn:hover {
  color: rgba(250, 250, 250, 1);
  background: rgba(255, 255, 255, 0.06);
}

.drawer-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 1rem 1.5rem 1.5rem;
  padding-bottom: max(1.5rem, env(safe-area-inset-bottom, 0px));
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

@keyframes slideLeft {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.detail-hero {
  border-radius: 1rem;
  overflow: hidden;
  aspect-ratio: 16/9;
  margin-bottom: 1rem;
}

.detail-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Toast */
.toast {
  position: fixed;
  top: 4.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 60;
  padding: 0.75rem 1.25rem;
  border-radius: 9999px;
  background: rgba(24, 24, 27, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.875rem;
  color: white;
  backdrop-filter: blur(12px);
  animation: toastIn 0.3s ease;
}

.toast.hidden {
  display: none;
}

@keyframes toastIn {
  from { opacity: 0; transform: translateX(-50%) translateY(-8px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* AJAX loading over hero */
.results-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 50vh;
  gap: 1.25rem;
  color: #a1a1aa;
}

.results-loading .spinner {
  width: 3rem;
  height: 3rem;
  border: 3px solid rgba(255, 255, 255, 0.15);
  border-top-color: #f59e0b;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.loading-pulse {
  animation: pulse 1.2s ease infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

/* Review modal — above place detail */
.review-modal {
  z-index: 70;
}

.review-modal-panel {
  max-width: 28rem;
}

.review-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #d4d4d8;
  margin-bottom: 0.5rem;
}

.review-input {
  width: 100%;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: #fafafa;
  padding: 0.65rem 0.85rem;
  font-size: 0.9375rem;
  transition: border-color 0.2s, background 0.2s;
}

.review-input:focus {
  outline: none;
  border-color: rgba(251, 191, 36, 0.55);
  background: rgba(255, 255, 255, 0.08);
}

.review-textarea {
  resize: vertical;
  min-height: 6rem;
}

.review-stars {
  display: flex;
  gap: 0.35rem;
  margin-top: 0.35rem;
}

.review-star {
  width: 2.25rem;
  height: 2.25rem;
  border: none;
  border-radius: 0.5rem;
  background: transparent;
  color: rgba(255, 255, 255, 0.25);
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  transition: color 0.15s, transform 0.15s;
  padding: 0;
}

.review-star:hover,
.review-star.is-hover {
  color: #fbbf24;
  transform: scale(1.08);
}

.review-star.is-active {
  color: #fbbf24;
}

.review-hint {
  font-size: 0.75rem;
  color: #71717a;
  margin-top: 0.35rem;
}

.review-form-error {
  font-size: 0.8125rem;
  color: #fca5a5;
  margin-bottom: 0.75rem;
}

.review-form-error.hidden {
  display: none;
}

.review-submit-btn {
  width: 100%;
  height: 3rem;
  border: none;
  border-radius: 9999px;
  background: white;
  color: #18181b;
  font-weight: 600;
  font-size: 0.9375rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: opacity 0.2s, background 0.2s;
}

.review-submit-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.92);
}

.review-submit-btn:disabled {
  opacity: 0.55;
  cursor: wait;
}

.review-submit-spinner {
  width: 1.125rem;
  height: 1.125rem;
  border: 2px solid rgba(24, 24, 27, 0.2);
  border-top-color: #18181b;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.review-submit-spinner.hidden {
  display: none;
}

/* Detail — reviews block */
.detail-rating-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.detail-write-review {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.85rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
  color: #fafafa;
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.detail-write-review:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.35);
}

.detail-reviews-section {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.detail-reviews-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #fafafa;
  margin-bottom: 0.75rem;
}

.detail-reviews-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-height: 14rem;
  overflow-y: auto;
}

.detail-review-card {
  padding: 0.85rem 1rem;
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.detail-review-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.detail-review-card-name {
  font-weight: 600;
  font-size: 0.875rem;
  color: #fafafa;
}

.detail-review-card-date {
  font-size: 0.7rem;
  color: #71717a;
}

.detail-review-card-stars {
  color: #fbbf24;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  margin-bottom: 0.35rem;
}

.detail-review-card-title {
  font-weight: 600;
  font-size: 0.8125rem;
  color: #e4e4e7;
  margin-bottom: 0.25rem;
}

.detail-review-card-text {
  font-size: 0.8125rem;
  color: #a1a1aa;
  line-height: 1.5;
}

.detail-reviews-empty,
.detail-reviews-loading {
  font-size: 0.8125rem;
  color: #71717a;
  text-align: center;
  padding: 1rem 0;
}
