@import url('https://fonts.googleapis.com/css2?family=Caveat+Brush&display=swap');

/* ==========================================================================
   Zeraya: Jaipur Going-Out & Discovery Guide — Stylesheet
   District.in Inspired High-Energy Card-Based Visual Aesthetic
   ========================================================================== */

:root {
  --color-dark-vanilla: #DEC0AE;
  --color-parrot-pink: #D4949D;
  --color-liberty: #5C63A4;
  --color-lavender-purple: #8B7FAC;
  --color-cadet-blue: #ACB0CC;

  --weeks-best-card-width: 220px;
  --color-parrot-pink: #D4949D;
  --color-liberty: #5C63A4;
  --color-lavender-purple: #8B7FAC;
  --color-cadet-blue: #ACB0CC;

  --weeks-best-card-width: 220px;
  --genre-card-width: 260px;
  --mood-card-width: 220px;

  /* Theme variables using the new color palette */
  --color-dark-vanilla: #DEC0AE;
  --color-parrot-pink: #D4949D;
  --color-liberty: #5C63A4;
  --color-lavender-purple: #8B7FAC;
  --color-cadet-blue: #ACB0CC;

  /* Default Dark Mode Theme Variables */
  --bg-color: #0D0F12;          /* Premium Dark Background */
  --card-bg: #15181E;           /* Card & Panel Dark Grey */
  --border-color: rgba(255, 255, 255, 0.08); /* Transparent borders */
  --text-primary: #FFFFFF;      /* Heavy Titles & Names */
  --text-secondary: var(--color-cadet-blue); /* Muted Cadet Blue Labels */
  --input-bg: rgba(255, 255, 255, 0.04);
  --pill-bg: rgba(255, 255, 255, 0.03);
  --footer-bg: #080a0c;
  --sheet-bg: #111419;
  
  /* Brand Gradient (Liberty to Parrot Pink) */
  --accent-purple: var(--color-liberty);
  --accent-blue: var(--color-parrot-pink);
  --brand-gradient: linear-gradient(135deg, var(--color-liberty), var(--color-parrot-pink));
  
  --font-display: 'Playfair Display', serif;
  --font-sans: 'Inter', sans-serif;
  --font-mono: 'Fira Code', monospace;
  
  --shadow-premium: 0 12px 40px rgba(0, 0, 0, 0.4);
  --card-divider: rgba(255, 255, 255, 0.08);
  --card-action-btn: var(--color-cadet-blue);
}

/* Light Mode Overrides */
body[data-theme="light"] {
  --bg-color: #F5F5F5;          /* Grey page background */
  --card-bg: #FFFFFF;           /* Card background white */
  --border-color: #E5E7EB;      /* Light border */
  --text-primary: #1A1A1A;      /* Dark black for titles */
  --text-secondary: #757575;    /* Muted grey for metadata */
  --input-bg: rgba(0, 0, 0, 0.03);
  --pill-bg: rgba(0, 0, 0, 0.02);
  --footer-bg: #F3F4F6;
  --sheet-bg: #FFFFFF;
  --shadow-premium: 0 12px 40px rgba(0, 0, 0, 0.06);
  --card-divider: #E5E7EB;
  --card-action-btn: #757575;
}

/* --- Base Rules --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  overflow-x: hidden;
  min-height: 100vh;
  background-color: var(--bg-color);
  color: var(--text-primary);
  font-family: var(--font-sans);
  /* Smooth theme transition */
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-color);
}
::-webkit-scrollbar-thumb {
  background: rgba(120, 120, 120, 0.2);
  border-radius: 8px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(120, 120, 120, 0.4);
}

/* --- Main Layout --- */
.app-layout {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* --- Sticky Glassmorphic Navbar --- */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 40px;
  background-color: rgba(var(--bg-color), 0.85); /* Fallback */
  background-image: none;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  position: relative;
  z-index: 900;
  transition: all 0.3s ease;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-shrink: 0;
}

.nav-center {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-grow: 1;
  max-width: 480px;
  margin: 0 24px;
}

/* Dynamic Navbar Background Overlay for Dark/Light Mode blur */
body[data-theme="dark"] .navbar {
  background-color: rgba(13, 15, 18, 0.85);
}
body[data-theme="light"] .navbar {
  background-color: rgba(248, 249, 250, 0.85);
}

@media (max-width: 850px) {
  .navbar {
    flex-direction: column;
    gap: 12px;
    padding: 12px 20px;
    align-items: stretch;
  }
  .nav-left, .nav-center, .nav-right-header {
    width: 100%;
    justify-content: space-between;
  }
  .nav-center {
    justify-content: center;
    margin: 8px 0;
  }
  .nav-right-header {
    margin-left: 0;
    justify-content: center;
  }
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 12px;
}

.project-logo {
  height: 36px;
  width: auto;
  object-fit: contain;
}


.project-name {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  font-weight: 700;
  font-style: italic;
  letter-spacing: -0.2px;
  text-transform: none;
  color: var(--text-primary);
  background: none;
  -webkit-background-clip: initial;
  -webkit-text-fill-color: initial;
  line-height: 1;
}

/* Location Selector Pin */
.location-selector {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--input-bg);
  border: 1px solid var(--border-color);
  padding: 8px 16px;
  border-radius: 50px;
  cursor: pointer;
  justify-self: center;
  transition: all 0.3s ease;
  color: var(--text-primary);
}

.location-selector:hover {
  background-color: rgba(120, 120, 120, 0.08);
  border-color: rgba(120, 120, 120, 0.2);
}

.location-text {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2px;
}

.dropdown-arrow {
  font-size: 9px;
  color: var(--text-secondary);
}

/* Location Dropdown Panel */
.location-dropdown {
  position: fixed;
  top: 75px;
  left: 50%;
  transform: translateX(-50%) translateY(-10px);
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 12px;
  width: 280px;
  box-shadow: var(--shadow-premium);
  z-index: 950;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease, background-color 0.3s ease;
}

.location-dropdown.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.dropdown-header {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-secondary);
  letter-spacing: 1px;
  padding: 6px 12px;
}

.city-option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  color: var(--text-secondary);
  transition: all 0.2s ease;
}

.city-option.active {
  color: var(--text-primary);
  background-color: rgba(120, 120, 120, 0.05);
}

.city-option:not(.disabled):hover {
  color: var(--text-primary);
  background-color: rgba(120, 120, 120, 0.08);
}

.city-option.disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.check-mark {
  color: var(--accent-blue);
  font-weight: 700;
}

/* Search Bar Wrapper & Theme Button */
.nav-right-header {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
  margin-left: auto;
}

.search-bar-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  background-color: var(--input-bg);
  border: 1px solid var(--border-color);
  padding: 10px 18px;
  border-radius: 50px;
  flex-grow: 1;
  width: 100%;
  transition: all 0.3s ease;
}

.search-bar-wrapper:focus-within {
  background-color: rgba(120, 120, 120, 0.07);
  border-color: var(--accent-blue);
}

.search-icon {
  font-size: 14px;
  color: var(--text-secondary);
}

.search-bar-wrapper input {
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 13px;
  width: 100%;
}

.search-bar-wrapper input::placeholder {
  color: var(--text-secondary);
  opacity: 0.7;
}

/* Theme Toggle Switch (Skeuomorphic Day/Night Slider) */
.theme-switch {
  position: relative;
  width: 64px;
  height: 32px;
  border-radius: 32px;
  border: 1px solid var(--border-color);
  background: transparent;
  cursor: pointer;
  overflow: hidden;
  padding: 0;
  display: block;
  flex-shrink: 0;
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.2);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Day Mode Track */
body[data-theme="light"] .theme-switch {
  background: linear-gradient(to right, #4197e4, #73a9e6);
  border-color: #6ba2e3;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(65, 151, 228, 0.15);
}

/* Night Mode Track */
body[data-theme="dark"] .theme-switch {
  background: linear-gradient(to right, #0d1321, #1e293b);
  border-color: #1e293b;
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.4), 0 2px 4px rgba(0, 0, 0, 0.25);
}

/* Track Details Container */
.theme-switch-track {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* Clouds for Day Mode */
.theme-switch-clouds {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  transform: translateY(4px);
}

body[data-theme="light"] .theme-switch-clouds {
  opacity: 1;
  transform: translateY(0);
}

.cloud {
  position: absolute;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 50%;
}

.cloud-1 {
  width: 20px;
  height: 20px;
  bottom: -6px;
  right: 12px;
}

.cloud-2 {
  width: 16px;
  height: 16px;
  bottom: -4px;
  right: 24px;
  background: rgba(255, 255, 255, 0.7);
}

.cloud-3 {
  width: 24px;
  height: 24px;
  bottom: -10px;
  right: -2px;
  background: rgba(255, 255, 255, 0.95);
}

/* Stars for Night Mode */
.theme-switch-stars {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  transform: translateY(-4px);
}

body[data-theme="dark"] .theme-switch-stars {
  opacity: 1;
  transform: translateY(0);
}

.star {
  position: absolute;
  background: #FFFFFF;
  border-radius: 50%;
  animation: pulse-star 2s infinite ease-in-out;
}

.star-1 {
  width: 2px;
  height: 2px;
  top: 6px;
  left: 12px;
  animation-delay: 0s;
}

.star-2 {
  width: 3px;
  height: 3px;
  top: 16px;
  left: 20px;
  animation-delay: 0.5s;
}

.star-3 {
  width: 2px;
  height: 2px;
  top: 8px;
  left: 32px;
  animation-delay: 1s;
}

.star-4 {
  width: 1.5px;
  height: 1.5px;
  top: 20px;
  left: 10px;
  animation-delay: 1.5s;
}

@keyframes pulse-star {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

/* Thumb (Sun/Moon Knob) */
.theme-switch-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.4s ease, box-shadow 0.4s ease;
  z-index: 2;
  overflow: hidden;
}

/* Day Mode: Sun styling */
body[data-theme="light"] .theme-switch-thumb {
  background-color: #ffb703;
  transform: translateX(0);
  box-shadow: 0 0 8px rgba(255, 183, 3, 0.5), inset 0 -2px 3px rgba(0, 0, 0, 0.15);
}

/* Night Mode: Moon styling */
body[data-theme="dark"] .theme-switch-thumb {
  background-color: #cbd5e1;
  transform: translateX(32px); /* Moves it to the right */
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.15), inset -2px -2px 4px rgba(0, 0, 0, 0.2);
}

/* Moon Craters */
.moon-crater {
  position: absolute;
  background-color: #94a3b8;
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.3s ease;
}

body[data-theme="dark"] .moon-crater {
  opacity: 1;
}

.crater-1 {
  width: 5px;
  height: 5px;
  top: 5px;
  left: 5px;
}

.crater-2 {
  width: 7px;
  height: 7px;
  bottom: 4px;
  right: 5px;
}

.crater-3 {
  width: 4px;
  height: 4px;
  top: 12px;
  left: 14px;
}


/* --- Genre & Mood Sections --- */
.genre-section, .desktop-cinema-section, .mood-section {
  padding: 32px 40px;
  border-bottom: 1px solid var(--border-color);
  background-color: var(--bg-color);
  transition: background-color 0.3s ease, border-color 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* What's Hot in Cinema Grid Layout (Desktop, 5 cards across, no scrolling, A3 scale font overrides) */
.desktop-cinema-grid {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  gap: 16px !important;
  width: 100% !important;
  box-sizing: border-box !important;
  padding: 8px 0 !important;
}

.desktop-cinema-grid .movie-poster-card {
  width: 100% !important;
  max-width: none !important;
  height: 0 !important;
  padding-bottom: 150% !important; /* 2:3 aspect ratio */
  margin: 0 !important;
  position: relative !important;
  border-radius: 16px !important;
  overflow: hidden !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
  background-color: #2A2438 !important;
  cursor: pointer !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

.desktop-cinema-grid .movie-poster-card:hover {
  transform: translateY(-6px) !important;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3) !important;
}

.desktop-cinema-grid .movie-poster-img {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border-radius: 16px !important;
}

.desktop-cinema-grid .movie-badge-now-showing {
  position: absolute !important;
  top: 12px !important;
  left: 12px !important;
  background-color: #E2DFE7 !important;
  color: #1C1524 !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 10px !important;
  font-weight: 800 !important;
  padding: 4px 10px !important;
  border-radius: 12px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
  z-index: 5 !important;
}

.desktop-cinema-grid .movie-info-gradient {
  position: absolute !important;
  bottom: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 150px !important;
  background: linear-gradient(to top, rgba(11,13,18,0.95) 0%, rgba(11,13,18,0.7) 40%, rgba(11,13,18,0) 100%) !important;
  z-index: 3 !important;
}

.desktop-cinema-grid .movie-info-bottom-block {
  position: absolute !important;
  bottom: 12px !important;
  left: 0 !important;
  width: 100% !important;
  padding: 0 14px !important;
  box-sizing: border-box !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
  z-index: 5 !important;
}

.desktop-cinema-grid .movie-info-row-layout {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.desktop-cinema-grid .movie-card-title {
  width: 100% !important;
  text-align: center !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 20px !important;
  font-weight: 800 !important;
  color: #FFFFFF !important;
  margin: 0 !important;
  text-shadow: 0 2px 4px rgba(0,0,0,0.8) !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  line-height: 1.2 !important;
}

.desktop-cinema-grid .movie-tag-pill {
  font-family: 'Inter', sans-serif !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  color: rgba(255, 255, 255, 0.95) !important;
  border: 1px solid rgba(255, 255, 255, 0.4) !important;
  padding: 4px 12px !important;
  border-radius: 20px !important;
  text-transform: none !important;
  background: rgba(11, 13, 18, 0.6) !important;
  backdrop-filter: blur(2px) !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
}

.desktop-cinema-grid .movie-card-book-btn {
  background-color: #FFFFFF !important;
  color: #1C1524 !important;
  border: none !important;
  border-radius: 20px !important;
  height: 24px !important;
  padding: 0 12px !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 10px !important;
  font-weight: 800 !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25) !important;
  transition: transform 0.1s ease, background-color 0.2s ease !important;
  margin: 4px auto 0 auto !important;
  align-self: center !important;
  white-space: nowrap !important;
}

.desktop-cinema-grid .movie-card-book-btn:active {
  transform: scale(0.97) !important;
  background-color: #E2DFE7 !important;
}

body[data-theme="dark"] .genre-section,
body[data-theme="dark"] .desktop-cinema-section,
body[data-theme="dark"] .mood-section {
  background-color: #0A0C0E;
}
body[data-theme="light"] .genre-section,
body[data-theme="light"] .desktop-cinema-section,
body[data-theme="light"] .mood-section {
  background-color: #F3F4F6;
}

.section-title-container {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.genre-title, .mood-title {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: normal;
  color: var(--text-primary);
  text-transform: none;
}

.genre-subtitle, .mood-subtitle {
  font-size: 16px;
  color: var(--text-secondary);
  font-weight: 400;
}

@media (max-width: 768px) {
  .genre-section, .mood-section {
    padding: 24px 20px;
  }
}

.category-cards-row {
  display: flex;
  gap: 20px;
  padding: 40px 16px;
  overflow-y: visible;
}
.category-cards-row::-webkit-scrollbar {
  display: none;
}
/* Card Outer Wrapper */
.card-wrapper {
  position: relative;
  flex: 0 0 var(--genre-card-width);
  width: var(--genre-card-width);
  transition: none !important;
  opacity: 1 !important;
  transform: none !important;
}
/* Interactive Card Body */
.category-card {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 150px; /* Locked card height, landscape rectangle */
  border-radius: 16px;
  background: linear-gradient(90deg, #F56E6B 0%, #FF9A7B 100%);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  padding: 24px;
  text-decoration: none;
  transition: transform 250ms ease-out, box-shadow 250ms ease-out;
  will-change: transform, box-shadow;
  box-sizing: border-box;
  overflow: hidden; /* Restored to hidden to contain both illustrations cleanly */
}
/* Typography Hierarchy */
.card-text-group {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  color: #ffffff;
  font-family: 'Inter', sans-serif;
  text-align: left;
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  padding-left: 12px;
  z-index: 3; /* Render on top of background/illustrations */
}
.card-number {
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  font-weight: 500;
  color: #FFFFFF;
  opacity: 1;
  display: block;
  margin-bottom: 4px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
}
.card-title {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: #FFFFFF;
  opacity: 1;
  line-height: 1.3;
  text-transform: none;
  display: block;
  letter-spacing: normal;
  margin: 0;
}
/* Illustration Container & Overflow Mechanics */
.card-illustration-wrap {
  position: absolute;
  bottom: 0; /* Aligns graphic base flush on bottom border */
  right: 0; /* Aligns graphic flush on right border */
  height: 120px; /* Scaled to fit inside the card height */
  pointer-events: none;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  z-index: 2;
}
.card-illustration-wrap img {
  height: 100%;
  width: auto;
  display: block;
  filter: drop-shadow(-12px 10px 18px rgba(0, 0, 0, 0.15));
  transition: transform 250ms ease-out;
}

/* Card Specific Illustration Tuning */
.category-card[data-value="Sunset Viewpoints"] {
  overflow: hidden; /* Keep Card 02 sunset viewpoint cropped */
}

.category-card[data-value="Palaces"] .card-illustration-wrap {
  height: 128px;
  bottom: 10px;
  right: 12px;
}

.category-card[data-value="Palaces"] .card-illustration-wrap img {
  filter: drop-shadow(-8px 6px 12px rgba(0, 0, 0, 0.2));
}

.category-card[data-value="Sunset Viewpoints"] .card-illustration-wrap {
  height: 92px;
  bottom: 10px;
  right: 12px;
}

.category-card[data-value="Sunset Viewpoints"] .card-illustration-wrap img {
  filter: drop-shadow(-8px 6px 12px rgba(0, 0, 0, 0.15));
}

.category-card[data-value="Date Spots"] .card-illustration-wrap {
  height: 130px;
  bottom: 10px;
  right: 12px;
}

.category-card[data-value="Date Spots"] .card-illustration-wrap img {
  filter: drop-shadow(-6px 6px 12px rgba(0, 0, 0, 0.15));
}

.category-card[data-value="Cafes"] .card-illustration-wrap {
  height: 95px;
  bottom: 10px;
  right: 12px;
}

.category-card[data-value="Cafes"] .card-illustration-wrap img {
  filter: drop-shadow(-5px 5px 10px rgba(0, 0, 0, 0.15));
}

.category-card[data-value="Markets & Malls"] .card-illustration-wrap {
  height: 102px;
  bottom: 10px;
  right: 12px;
}

.category-card[data-value="Markets & Malls"] .card-illustration-wrap img {
  filter: drop-shadow(-8px 6px 12px rgba(0, 0, 0, 0.15));
}

.category-card[data-value="Street Food"] .card-illustration-wrap {
  height: 125px;
  bottom: 10px;
  right: 12px;
}

.category-card[data-value="Street Food"] .card-illustration-wrap img {
  filter: drop-shadow(-8px 6px 12px rgba(0, 0, 0, 0.15));
}

.category-card[data-value="Temples"] .card-illustration-wrap {
  height: 130px;
  bottom: 10px;
  right: 12px;
}

.category-card[data-value="Temples"] .card-illustration-wrap img {
  filter: drop-shadow(-8px 6px 12px rgba(0, 0, 0, 0.15));
}

.category-card[data-value="Adventure & Play"] .card-illustration-wrap {
  height: 110px;
  bottom: 10px;
  right: 12px;
}

.category-card[data-value="Adventure & Play"] .card-illustration-wrap img {
  filter: drop-shadow(-8px 6px 12px rgba(0, 0, 0, 0.15));
}

.category-card[data-value="Workshop"] .card-illustration-wrap {
  height: 85px;
  bottom: 10px;
  right: 12px;
}

.category-card[data-value="Workshop"] .card-illustration-wrap img {
  filter: drop-shadow(-8px 6px 12px rgba(0, 0, 0, 0.15));
}

.category-card[data-value="Events & Shows"] .card-illustration-wrap {
  height: 100px;
  bottom: 10px;
  right: 12px;
}

.category-card[data-value="Events & Shows"] .card-illustration-wrap img {
  filter: drop-shadow(-8px 6px 12px rgba(0, 0, 0, 0.15));
}
/* Hover spec matching your rules */
.card-wrapper:hover .category-card {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 38px rgba(91, 58, 143, 0.15);
}
.card-wrapper:hover .card-illustration-wrap img {
  transform: scale(1.03) translateY(-2px); /* Parallax depth effect */
}

/* Dark Mode Behaviour */
body[data-theme="dark"] .category-card {
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.5);
}
body[data-theme="dark"] .card-wrapper:hover .category-card {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6);
}

/* Responsive Overrides for Mobile screens */
@media (max-width: 480px) {
  .card-wrapper {
    flex: 0 0 200px; /* Scaled mobile width */
  }
  .category-card {
    height: 115px; /* Maintain aspect ratio */
    padding: 12px;
    border-radius: 12px;
  }
  .card-text-group {
    top: 0;
    left: 0;
    bottom: 0;
    padding-left: 12px;
    gap: 4px;
  }
  .card-number {
    font-size: 14px;
    margin-bottom: 4px;
  }
  .card-title {
    font-size: 13px;
    line-height: 1.25;
  }
  .card-illustration-wrap {
    height: 90px;
    right: -12px;
  }
}
/* --- Week's Best Featured Carousel Section --- */
.weeks-best-section {
  padding: 16px 40px;
  border-bottom: 1px solid var(--border-color);
  background-color: var(--bg-color);
}

.weeks-best-header-container {
  text-align: center;
  margin-bottom: 24px;
}

.weeks-best-title-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  max-width: 1000px;
  margin: 0 auto;
}

.weeks-best-title-wrapper::before,
.weeks-best-title-wrapper::after {
  display: none !important;
}

.weeks-best-title {
  font-family: var(--font-display); /* Playfair Display */
  font-size: 26px;
  font-weight: 700;
  color: #1A1A1A;
  white-space: nowrap;
  margin: 0;
  text-transform: none;
}

.weeks-best-subtitle {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: #6E6D75;
  margin: 6px 0 0 0;
}

.weeks-best-section .weeks-best-carousel-container {
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
}

.weeks-best-carousel-track-wrapper {
  overflow: visible !important;
  width: 100%;
}

.weeks-best-carousel {
  padding: 16px 0 24px;
}

.weeks-best-carousel-track-wrapper .swiper-slide {
  display: flex;
  justify-content: center;
  align-items: flex-end; /* Align cards at the bottom */
  height: 380px !important;
  box-sizing: border-box;
}

.weeks-best-carousel-track-wrapper .swiper-slide .weeks-best-card {
  width: 300px !important;
  max-width: 80vw !important;
  height: 340px !important;
  border-radius: 16px !important;
  transition: width 0.3s ease, height 0.3s ease !important;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

/* Active Swiper slide (center card) */
.weeks-best-carousel-track-wrapper .swiper-slide-active .weeks-best-card {
  width: 340px !important;
  max-width: 90vw !important;
  height: 380px !important;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.16);
}

.weeks-best-card .card-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.weeks-best-card .card-gradient-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 65%, rgba(0, 0, 0, 0.55) 100%);
  z-index: 2;
}

.weeks-best-card .card-pill-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 3;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: #FFFFFF;
  border-radius: 20px;
  padding: 8px 12px;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.weeks-best-card .card-action-icons {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 3;
  display: flex;
  gap: 8px;
}

.weeks-best-card .card-action-icon-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.weeks-best-card .card-action-icon-btn svg {
  width: 20px;
  height: 20px;
  stroke: #FFFFFF;
  fill: none;
  stroke-width: 2px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.25));
  transition: transform 0.2s ease;
}

.weeks-best-card .card-action-icon-btn:hover svg {
  transform: scale(1.1);
}

.weeks-best-card .card-bottom-info {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 16px;
  box-sizing: border-box;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.weeks-best-card .card-place-name {
  font-family: var(--font-display); /* Playfair Display */
  font-size: 22px;
  font-weight: 700;
  color: #FFFFFF;
  margin: 0;
  line-height: 1.2;
}

.weeks-best-card .card-location-text {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
}

.weeks-best-card .card-rating-row {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.85);
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
}

.weeks-best-card .card-rating-row svg {
  width: 14px;
  height: 14px;
  fill: #FFB300;
}

.weeks-best-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: #FFFFFF;
  border: 1px solid #D8D8E0;
  color: #5B3A8F;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  z-index: 10;
}

.weeks-best-arrow.prev-btn {
  left: -130px;
}

.weeks-best-arrow.next-btn {
  right: -130px;
}

.weeks-best-arrow:hover {
  background-color: #F8F8FC;
  border-color: #5B3A8F;
  transform: translateY(-50%) scale(1.05);
}

.weeks-best-arrow::after {
  display: none !important;
}

.weeks-best-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
  position: static !important;
  width: auto !important;
}

.weeks-best-dots .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #D8D8E0;
  opacity: 1;
  cursor: pointer;
  transition: all 0.3s ease;
  margin: 0 !important;
}

.weeks-best-dots .swiper-pagination-bullet-active {
  background-color: #5B3A8F;
  transform: scale(1.3);
  box-shadow: 0 0 6px rgba(91, 58, 143, 0.4);
}

@media (max-width: 1260px) {
  .weeks-best-arrow.prev-btn {
    left: -40px;
  }
  .weeks-best-arrow.next-btn {
    right: -40px;
  }
}

@media (max-width: 1080px) {
  .weeks-best-arrow.prev-btn {
    left: 10px;
  }
  .weeks-best-arrow.next-btn {
    right: 10px;
  }
}

@media (max-width: 768px) {
  .weeks-best-section {
    padding: 32px 20px;
  }
  .weeks-best-arrow {
    display: none;
  }
}

/* --- Main Content Sections --- */
.main-content {
  flex-grow: 1;
  padding: 40px 40px 80px 40px;
  display: flex;
  flex-direction: column;
  gap: 60px;
  background-color: var(--bg-color);
  transition: background-color 0.3s ease;
}

body[data-theme="dark"] .main-content {
  background: radial-gradient(circle at 50% 0%, #171b22 0%, var(--bg-color) 70%);
}
body[data-theme="light"] .main-content {
  background: radial-gradient(circle at 50% 0%, #EBF1F7 0%, var(--bg-color) 70%);
}

@media (max-width: 768px) {
  .main-content {
    padding: 24px 20px 60px 20px;
    gap: 40px;
  }
}

.content-section {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.section-title-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.section-title {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: normal;
  text-transform: none;
}

.section-subtitle {
  font-size: 16px;
  color: #6E6D75;
  margin-top: 4px;
  font-weight: 400;
}

.carousel-nav-arrows {
  display: flex;
  gap: 8px;
}

.arrow-btn {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  transition: all 0.3s ease;
}

.arrow-btn:hover {
  background-color: rgba(120, 120, 120, 0.08);
  border-color: rgba(120, 120, 120, 0.2);
}

.stats-counter {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-secondary);
  background-color: var(--pill-bg);
  border: 1px solid var(--border-color);
  padding: 6px 12px;
  border-radius: 50px;
  transition: all 0.3s ease;
}

/* --- Trending Swipe Carousel --- */
.trending-carousel {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 15px;
  scrollbar-width: none; /* Firefox */
  scroll-behavior: smooth;
}

.trending-carousel::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

.loading-spinner {
  padding: 60px 0;
  text-align: center;
  width: 100%;
  color: var(--text-secondary);
  font-size: 13px;
  font-family: var(--font-mono);
  letter-spacing: 1px;
}

/* --- Premium Card Styling --- */
.place-card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
              box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.3s ease,
              background-color 0.3s ease;
  position: relative;
}

.trending-carousel .place-card {
  flex: 0 0 320px;
  scroll-snap-align: start;
}

@media (max-width: 480px) {
  .trending-carousel .place-card {
    flex: 0 0 280px;
  }
}

.place-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-premium);
  border-color: rgba(0, 180, 216, 0.3);
}

/* Card Image Wrapper & Zoom */
.card-img-wrapper {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  position: relative;
  background-color: #1a1e24;
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Image Gradients & Tags */
.card-img-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0,0,0,0) 60%, rgba(13, 15, 18, 0.9) 100%);
}

/* Bottom shadow adaptation in light mode */
body[data-theme="light"] .card-img-overlay {
  background: linear-gradient(to bottom, rgba(0,0,0,0) 60%, rgba(255, 255, 255, 0.95) 100%);
}

.card-cat-badge {
  position: absolute;
  bottom: 16px;
  left: 16px;
  background-color: rgba(0, 180, 216, 0.85); /* Ocean blue tag */
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: 10px;
  font-weight: 500;
  text-transform: none;
  letter-spacing: normal;
  padding: 4px 10px;
  border-radius: 50px;
}

/* Rating Badge Floating overlay */
.card-rating-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--brand-gradient);
  border: 1px solid rgba(255,255,255,0.15);
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 50px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
  box-shadow: 0 4px 10px rgba(157, 78, 221, 0.3);
}

/* Card Info Body */
.card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.card-body .card-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  text-transform: none;
  letter-spacing: normal;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.3s ease;
}

.card-details-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--text-secondary);
  transition: color 0.3s ease;
  font-weight: 400;
}

.card-location {
  font-weight: 400;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 170px;
}

.card-coordinates {
  font-family: var(--font-mono);
  font-size: 10px;
  color: rgba(120, 120, 120, 0.4);
}

/* Card Inline Badges */
.card-badges-row {
  display: flex;
  gap: 6px;
  margin-top: 2px;
}
.card-badge-inline {
  font-size: 10px;
  font-weight: 500;
  text-transform: none;
  color: var(--text-secondary);
  background-color: var(--pill-bg);
  border: 1px solid var(--border-color);
  padding: 2px 8px;
  border-radius: 4px;
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}
.card-badge-inline.badge-vibe {
  border-color: rgba(157, 78, 221, 0.2);
  color: var(--accent-purple);
}

/* Card Price Row */
.card-price-row {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 4px;
  transition: color 0.3s ease;
}

/* Card Description text */
.card-desc-row {
  margin-top: 6px;
  border-top: 1px dotted var(--border-color);
  padding-top: 6px;
  transition: border-color 0.3s ease;
}
.card-description-text {
  font-size: 11px;
  color: var(--text-secondary);
  line-height: 1.4;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  transition: color 0.3s ease;
}

/* Card Navigation Arrows */
.card-nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(13, 15, 18, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #FFF;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  z-index: 10;
  opacity: 0;
  transition: opacity 0.2s ease, background-color 0.2s ease;
  user-select: none;
  border-style: none;
}
.card-img-wrapper:hover .card-nav-arrow {
  opacity: 1;
}
.card-nav-arrow:hover {
  background-color: rgba(13, 15, 18, 0.95);
}
.card-nav-prev {
  left: 8px;
}
.card-nav-next {
  right: 8px;
}

/* Card Image Slider Dots */
.card-nav-dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 4px;
  z-index: 10;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.card-img-wrapper:hover .card-nav-dots {
  opacity: 1;
}
.card-nav-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.4);
  transition: background-color 0.2s ease, transform 0.2s ease;
}
.card-nav-dot.active {
  background-color: #FFF;
  transform: scale(1.3);
}

/* Toast alert for share copies */
.share-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background-color: #333333;
  color: #FFFFFF;
  padding: 10px 20px;
  border-radius: 50px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 2000;
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

.share-toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.25);
}

/* Card Image Slider Navigation Arrows (Nested inside wrapper) */
.card-nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(13, 15, 18, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #FFF;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  z-index: 10;
  opacity: 0;
  transition: opacity 0.2s ease, background-color 0.2s ease;
}
.card-img-wrapper:hover .card-nav-arrow {
  opacity: 1;
}
.card-nav-arrow:hover {
  background-color: rgba(13, 15, 18, 0.95);
}
.card-nav-prev {
  left: 8px;
}
.card-nav-next {
  right: 8px;
}

/* Card Image Slider Dots */
.card-nav-dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 4px;
  z-index: 10;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.card-img-wrapper:hover .card-nav-dots {
  opacity: 1;
}
.card-nav-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.4);
  transition: background-color 0.2s ease, transform 0.2s ease;
}
.card-nav-dot.active {
  background-color: #FFF;
  transform: scale(1.3);
}

/* --- Vibe check Section --- */
.vibe-filter-section {
  padding: 16px 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  transition: border-color 0.3s ease;
}

.vibe-bar-container {
  display: flex;
  align-items: center;
  gap: 16px;
  overflow-x: auto;
  scrollbar-width: none;
}

.vibe-bar-container::-webkit-scrollbar {
  display: none;
}

.vibe-bar-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1.5px;
  color: var(--text-secondary);
  font-weight: 700;
  flex-shrink: 0;
  transition: color 0.3s ease;
}

.vibe-pills-wrapper {
  display: flex;
  flex-direction: row;
  overflow-x: scroll;
  gap: 24px;
  padding: 24px 16px;
  flex-wrap: nowrap; /* No wrapping */
  scrollbar-width: none; /* Hide scrollbar for clean UI */
}

.vibe-pills-wrapper::-webkit-scrollbar {
  display: none; /* Hide scrollbar for Chrome/Safari */
}

/* Pure CSS Notebook Paper Card Styling */
.notebook-card-wrapper {
  position: relative;
  flex: 0 0 var(--mood-card-width);
  width: var(--mood-card-width);
  height: 340px;
  transition: none !important;
  opacity: 1 !important;
  transform: none !important;
}

/* CSS Paperclip Wire Loop Styling */
.paperclip {
  position: absolute;
  top: 6px; /* Positioned at top-left corner of rotated card/photo */
  left: 20px;
  width: 22px; /* Made bigger */
  height: 52px; /* Made bigger */
  border: 2.2px solid #888888;
  border-radius: 11px;
  background: transparent;
  transform: rotate(-15deg); /* Tilted left to clip the corner */
  z-index: 10;
  pointer-events: none;
  box-shadow: 1.5px 1.5px 3px rgba(0, 0, 0, 0.15);
  box-sizing: border-box;
}

.paperclip::before {
  content: '';
  position: absolute;
  top: 5px;
  left: 1.8px;
  width: 14px;
  height: 36px;
  border: 2.2px solid #888888;
  border-bottom: none;
  border-radius: 7px 7px 0 0;
  box-sizing: border-box;
}

.paperclip::after {
  content: '';
  position: absolute;
  top: 13px;
  left: 5.8px;
  width: 6px;
  height: 24px;
  border: 2.2px solid #888888;
  border-top: none;
  border-radius: 0 0 4px 4px;
  box-sizing: border-box;
}

.notebook-card-wrapper:hover {
  transform: translateY(-4px);
}

.notebook-card {
  width: 100%;
  height: 100%;
  position: relative;
  background-color: #F5EDD8; /* Light warm cream background */
  border-radius: 8px 8px 0 0; /* Sides rounded, bottom flat */
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 0;
  
  /* Jagged bottom edge using a CSS clip-path */
  clip-path: polygon(
    0% 0%, 100% 0%, 100% 95%, 
    98% 97%, 96% 94%, 94% 96%, 92% 93%, 90% 95%, 88% 93%, 86% 96%, 84% 94%, 82% 96%, 80% 93%, 
    78% 95%, 76% 93%, 74% 96%, 72% 94%, 70% 96%, 68% 93%, 66% 95%, 64% 93%, 62% 96%, 60% 94%, 
    58% 96%, 56% 93%, 54% 95%, 52% 93%, 50% 96%, 48% 94%, 46% 96%, 44% 93%, 42% 95%, 40% 93%, 
    38% 96%, 36% 94%, 34% 96%, 32% 93%, 30% 95%, 28% 93%, 26% 96%, 24% 94%, 22% 96%, 20% 93%, 
    18% 95%, 16% 93%, 14% 96%, 12% 94%, 10% 96%, 8% 93%, 6% 95%, 4% 93%, 2% 96%, 0% 94%
  );
  
  transition: background-color 0.3s ease;
}

/* Faint red vertical margin line on the left */
.notebook-card::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 20px;
  width: 1px;
  background-color: rgba(255, 0, 0, 0.15);
  z-index: 1;
  pointer-events: none;
}

/* Hole punches at the top */
.notebook-holes {
  position: relative;
  z-index: 4; /* Keeps holes rendering over the absolute image */
  display: flex;
  justify-content: space-between;
  padding: 14px 12px 0 12px;
  width: 100%;
  margin-bottom: 8px;
}

.hole {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--bg-color); /* Punched-out holes match page background */
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.35);
  transition: background-color 0.3s ease;
}

/* Foreground Rotated Card Frame */
.photo-card {
  position: absolute;
  top: 24px; /* Shifted upward to overlap binder holes */
  left: 12px;
  right: 12px;
  width: calc(100% - 24px);
  height: 172px;
  background-color: #F5EDD8; /* Cream paper background (removes white note card bg) */
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 6px;
  box-shadow: 2px 4px 10px rgba(0, 0, 0, 0.12);
  transform: rotate(-6deg);
  z-index: 3;
  overflow: hidden;
  padding: 6px 6px 14px 6px; /* slightly wider bottom border for polaroid aesthetic */
  box-sizing: border-box;
  display: block;
}

/* Foreground Rotated Card Frame Wrapper */
.photo-wrapper {
  position: absolute;
  top: 24px; /* Overlaps binder holes slightly */
  left: 12px;
  right: 12px;
  width: calc(100% - 24px);
  height: 172px;
  transform: rotate(-6deg);
  z-index: 5; /* Render above holes so tape covers the hole dot */
}

.photo-card-img-inside {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.2);
  display: block;
}

/* Soft Swallowtail Ribbon Tape for Card 1 */
.photo-tape {
  width: 30px; /* Made slightly wider */
  height: 95px; /* Made longer */
  background: rgba(220, 210, 160, 0.85); /* Visible yellowed vintage scotch tape */
  border: 1px solid rgba(180, 165, 100, 0.7);
  box-sizing: border-box;
  position: absolute;
  top: -32px; /* Sticks further above the photo to cover the hole dot */
  left: 12px; /* Positioned on the left side of photo */
  z-index: 10;
  clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 50% 84%, 0% 100%);
  pointer-events: none;
}

.photo-card img.notebook-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
  display: block;
}

/* Blank card styling with cute index line rulings */
.photo-card.blank-card {
  background-color: #F5EDD8; /* Cream paper background (removes white note card bg) */
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 12px;
}

.blank-card-line {
  height: 1px;
  width: 100%;
  background-color: rgba(0, 0, 255, 0.08); /* Faint blue index card rulings */
  margin: 14px 0;
}

/* Custom text content layout for the notebook cards */
.notebook-content {
  position: absolute;
  bottom: 24px; /* Placed cleanly at the bottom on top of rulings */
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 5;
  pointer-events: none;
}

.mood-name {
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #1A1A1A;
  text-align: center;
  margin-top: 0;
  line-height: 1.2;
}

.vibe-line {
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 10px;
  font-weight: 400;
  color: #888888;
  text-align: center;
  margin-top: 4px;
  line-height: 1.2;
}

/* Faint horizontal lines container */
.notebook-lines {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 0;
  z-index: 2;
}

.notebook-line {
  height: 18px;
  width: 100%;
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
}



/* --- Curated Grid Layout --- */
.discovery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
}

@media (max-width: 600px) {
  .discovery-grid {
    grid-template-columns: 1fr;
  }
}

/* --- Bottom Sheet / Modal Details View --- */
.sheet-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 990;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.sheet-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

/* Bottom Sheet Box */
.bottom-sheet {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: auto;
  max-height: 90vh;
  background-color: var(--sheet-bg);
  border-top: 1px solid var(--border-color);
  border-radius: 24px 24px 0 0;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  
  /* Initial state: Slid down */
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.3s ease, border-color 0.3s ease;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.6);
}

.bottom-sheet.open {
  transform: translateY(0);
}

/* Desktop Centered Modal Adaptability */
@media (min-width: 768px) {
  .bottom-sheet {
    bottom: auto;
    top: 50%;
    left: 50%;
    width: 90%;
    max-width: 580px;
    border-radius: 24px;
    border: 1px solid var(--border-color);
    
    /* Transform to centered scaled modal */
    transform: translate(-50%, -50%) scale(0.9);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease, background-color 0.3s ease, border-color 0.3s ease;
  }
  
  .bottom-sheet.open {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    pointer-events: auto;
  }
}

.sheet-handle-wrapper {
  padding: 12px;
  display: flex;
  justify-content: center;
  cursor: grab;
}

.sheet-handle {
  width: 40px;
  height: 5px;
  background-color: rgba(120, 120, 120, 0.3);
  border-radius: 10px;
}

.sheet-content {
  overflow-y: auto;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

/* --- Swipeable Image Gallery --- */
.sheet-gallery-container {
  width: 100%;
  aspect-ratio: 16 / 9;
  position: relative;
  overflow: hidden;
  background-color: #1a1e24;
  border-bottom: 1px solid var(--border-color);
}

.sheet-gallery-slider {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.sheet-gallery-slider img {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Gallery Navigation Arrows */
.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  border: none;
  color: #FFFFFF;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.gallery-arrow:hover {
  background-color: rgba(0, 0, 0, 0.8);
  transform: translateY(-50%) scale(1.05);
}

.gallery-arrow.arrow-left {
  left: 16px;
}

.gallery-arrow.arrow-right {
  right: 16px;
}

/* Pagination Dots */
.gallery-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 10;
}

.gallery-dot {
  width: 8px;
  height: 8px;
  border-radius: 4px;
  background-color: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: width 0.3s cubic-bezier(0.25, 1, 0.3, 1), background-color 0.3s ease;
}

.gallery-dot.active {
  width: 24px;
  background-color: #FFFFFF;
}

/* Floating Overlay inside gallery */
.sheet-rating-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  background: var(--brand-gradient);
  border: 1px solid rgba(255,255,255,0.15);
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 50px;
  z-index: 10;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.sheet-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background-color: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff;
  font-size: 24px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 10;
}

.sheet-close-btn:hover {
  background-color: rgba(0, 0, 0, 0.8);
  transform: scale(1.05);
}

/* Sheet Details Body */
.sheet-body {
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  background-color: var(--sheet-bg);
  transition: background-color 0.3s ease;
}

@media (max-width: 480px) {
  .sheet-body {
    padding: 24px 20px 30px 20px;
  }
}

.sheet-title-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sheet-title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: normal;
  text-transform: none;
  color: var(--text-primary);
  transition: color 0.3s ease;
}

.sheet-badges {
  display: flex;
  gap: 8px;
}

.sheet-badge {
  background-color: rgba(0, 180, 216, 0.1);
  border: 1px solid rgba(0, 180, 216, 0.3);
  color: var(--accent-blue);
  font-size: 11px;
  font-weight: 500;
  text-transform: none;
  padding: 4px 12px;
  border-radius: 50px;
}

.sheet-badge.badge-vibe {
  background-color: rgba(157, 78, 221, 0.1);
  border: 1px solid rgba(157, 78, 221, 0.3);
  color: #b388ff;
}

.sheet-divider {
  height: 1px;
  background-color: var(--border-color);
  transition: background-color 0.3s ease;
}

/* Sheet Info Grid */
.sheet-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 480px) {
  .sheet-info-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
}

.info-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.info-label {
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--text-secondary);
  text-transform: none;
  letter-spacing: normal;
  transition: color 0.3s ease;
}

.info-val {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  transition: color 0.3s ease;
}

.info-val.code-font {
  font-family: var(--font-mono);
  font-size: 12px;
  color: #00b4d8;
}

.sheet-desc-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sheet-section-title {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  transition: color 0.3s ease;
}

.sheet-desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
  transition: color 0.3s ease;
}

/* Actions maps button */
.sheet-actions {
  margin-top: 10px;
}

.gmaps-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--brand-gradient);
  color: #fff;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: 50px;
  box-shadow: 0 4px 20px rgba(0, 180, 216, 0.2);
  transition: all 0.3s ease;
  text-align: center;
}

.gmaps-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(157, 78, 221, 0.4);
}

.gmaps-icon {
  font-size: 18px;
}

/* --- Footer --- */
.footer {
  background-color: var(--footer-bg);
  border-top: 1px solid var(--border-color);
  padding: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

@media (max-width: 600px) {
  .footer {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
    padding: 30px 20px;
  }
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-logo span {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text-primary);
  transition: color 0.3s ease;
}

.footer-desc {
  font-size: 12px;
  color: var(--text-secondary);
  transition: color 0.3s ease;
}

.footer-right {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-end;
}

@media (max-width: 600px) {
  .footer-right {
    align-items: flex-start;
  }
}

.footer-meta {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-secondary);
  opacity: 0.5;
  letter-spacing: 0.5px;
  transition: color 0.3s ease;
}

.footer-coords {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-secondary);
  transition: color 0.3s ease;
}

/* Card Slider details styling consolidated in main place-card block above */

/* ==========================================================================
   Navigation Tabs (Home / Explore SPA routing)
   ========================================================================== */
.nav-tabs {
  display: flex;
  gap: 8px;
  align-items: center;
}

.nav-tab {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  text-transform: none;
  cursor: pointer;
  padding: 6px 16px;
  border-radius: 50px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  letter-spacing: normal;
}

.nav-tab:hover {
  color: var(--text-primary);
  background-color: rgba(120, 120, 120, 0.08);
}

.nav-tab.active {
  color: #FFFFFF;
  background: var(--brand-gradient);
  box-shadow: 0 4px 12px rgba(157, 78, 221, 0.25);
}

body[data-theme="light"] .nav-tab.active {
  color: #FFFFFF;
}

@media (max-width: 850px) {
  .nav-tabs {
    margin-left: 0;
    margin-top: 8px;
    width: 100%;
    justify-content: center;
  }
}

/* ==========================================================================
   Explore Page Masonry Collections Layout
   ========================================================================== */

.explore-header-section {
  margin-bottom: 32px;
}

.explore-title {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 700;
  text-transform: none;
  letter-spacing: normal;
  color: var(--text-primary);
  margin-top: 4px;
}

.explore-subtitle {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-top: 8px;
}

.explore-masonry-grid {
  column-count: 4;
  column-gap: 28px;
  width: 100%;
}

@media (min-width: 1600px) {
  .explore-masonry-grid {
    column-count: 5;
  }
}

@media (max-width: 1200px) {
  .explore-masonry-grid {
    column-count: 3;
    column-gap: 24px;
  }
}

@media (max-width: 768px) {
  .explore-masonry-grid {
    column-count: 2;
    column-gap: 16px;
  }
}

.collection-card {
  break-inside: avoid;
  margin-bottom: 28px;
  width: 100%;
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  background-color: var(--card-bg);
}

@media (max-width: 768px) {
  .collection-card {
    margin-bottom: 16px;
    border-radius: 12px;
  }
}

.collection-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.collection-card img.collection-card-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

/* Bookmark Button inside Collection Card */
.collection-card-bookmark-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 3;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

@media (max-width: 768px) {
  .collection-card-bookmark-btn {
    top: 12px;
    right: 12px;
    width: 30px;
    height: 30px;
  }
  .collection-card-bookmark-btn svg {
    width: 16px;
    height: 16px;
  }
}

.collection-card-bookmark-btn:hover {
  background: rgba(255, 255, 255, 0.4);
  transform: scale(1.05);
}

.collection-card-bookmark-btn.active {
  background: #FFFFFF;
  color: #FFB000;
  border-color: #FFFFFF;
}

/* Feed Nav & Back Button */
.feed-nav-bar {
  margin-bottom: 24px;
}

.feed-back-btn {
  background-color: var(--input-bg);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  padding: 8px 20px;
  border-radius: 50px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.feed-back-btn:hover {
  background-color: rgba(120, 120, 120, 0.08);
  border-color: rgba(120, 120, 120, 0.2);
}

.feed-back-btn .back-arrow {
  font-size: 16px;
}

/* Feed Header metadata */
.feed-header-section {
  margin-bottom: 24px;
}

.feed-title {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  text-transform: none;
  letter-spacing: normal;
  color: var(--text-primary);
  margin-top: 4px;
}

.feed-subtitle {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-secondary);
  text-transform: none;
  letter-spacing: normal;
}

body[data-theme="light"] .feed-subtitle {
  color: var(--accent-purple);
}

/* Collection Grid */
.collection-places-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  width: 100%;
}

@media (min-width: 600px) {
  .collection-places-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1200px) {
  .collection-places-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ==========================================================================
   RECONSOLIDATED SHARED PLACE CARD COMPONENT (.collection-place-card)
   ========================================================================== */

/* The Card Container - Rounded corners, full bleed background */
.collection-place-card {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  background-color: #0b0d12;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
}

.collection-places-grid .collection-place-card,
.discovery-grid .collection-place-card,
#genre-detail-grid .collection-place-card,
#mood-detail-grid .collection-place-card,
.discover-more-row .collection-place-card,
.discover-more-grid .collection-place-card,
.trending-places-grid .collection-place-card {
  max-width: 280px;
  aspect-ratio: 3 / 4;
  height: auto;
  margin: 0 auto; /* Center card inside the grid cell */
}

.collection-place-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 36px rgba(91, 58, 143, 0.25);
}

/* Background Image styling with zoom hover & multi-image slider support */
.collection-place-card .card-image-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.collection-place-card .card-image-slider .card-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  z-index: 1;
  transition: opacity 0.4s ease, transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.collection-place-card .card-image-slider .card-img.active {
  opacity: 1;
  z-index: 2;
}

.collection-place-card:hover .card-image-slider .card-img.active {
  transform: scale(1.05);
}

.collection-place-card .card-slider-arrows {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  padding: 0 10px;
  z-index: 10;
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.collection-place-card:hover .card-slider-arrows {
  opacity: 1;
}

.collection-place-card .card-slider-arrow {
  background: rgba(11, 13, 18, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: none;
  color: white;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 700;
  transition: background 0.2s ease, transform 0.2s ease;
  pointer-events: auto;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.collection-place-card .card-slider-arrow:hover {
  background: rgba(11, 13, 18, 0.9);
  transform: scale(1.1);
}

.collection-place-card .card-slider-dots {
  position: absolute;
  top: 26px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 4px;
  z-index: 10;
  pointer-events: auto;
  background: rgba(11, 13, 18, 0.35);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  padding: 4px 8px;
  border-radius: 10px;
}

.collection-place-card .card-slider-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.collection-place-card .card-slider-dot.active {
  background: #FFFFFF;
  transform: scale(1.2);
}

/* Dark Gradient Overlay over the bottom third to half */
.collection-place-card .card-gradient-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(11, 13, 18, 0) 0%,
    rgba(11, 13, 18, 0.05) 55%,
    rgba(11, 13, 18, 0.6) 75%,
    rgba(11, 13, 18, 0.95) 100%
  );
  z-index: 2;
  pointer-events: none;
}

/* Top-Left Category Pill Badge */
.collection-place-card .card-pill-badge {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 3;
  background: rgba(11, 13, 18, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #FFFFFF;
  border-radius: 20px;
  padding: 6px 14px;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  text-transform: capitalize;
}

/* Top-Right Action Icon Buttons container */
.collection-place-card .card-action-icons {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 3;
  display: flex;
  gap: 10px;
}

/* Circular Buttons styling */
.collection-place-card .card-action-icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.2s ease;
  padding: 0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.collection-place-card .card-action-icon-btn:hover {
  transform: scale(1.1);
  background: rgba(0, 0, 0, 0.7);
}

/* SVGs inside the circular buttons */
.collection-place-card .card-action-icon-btn svg {
  width: 20px;
  height: 20px;
  stroke: #FFFFFF;
  fill: none;
  stroke-width: 2px;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.3));
  transition: transform 0.2s ease, fill 0.2s ease, stroke 0.2s ease;
}

.collection-place-card .card-action-icon-btn.heart-btn.active svg {
  fill: #ff4d4d;
  stroke: #ff4d4d;
}

.collection-place-card .card-action-icon-btn.bookmark-btn.active svg {
  fill: #FFB300;
  stroke: #FFB300;
}

/* Bottom Text and Metadata sitting on the gradient overlay */
.collection-place-card .card-bottom-info {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 24px 20px 20px 20px;
  box-sizing: border-box;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 6px;
  pointer-events: none;
}

.collection-place-card .card-bottom-info * {
  pointer-events: auto;
}

/* Place Name - Bold White Serif */
.collection-place-card .card-place-name {
  font-family: 'Playfair Display', Georgia, serif !important;
  font-size: 20px !important;
  font-weight: 700 !important;
  color: #FFFFFF !important;
  margin: 0 !important;
  line-height: 1.25 !important;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6) !important;
  white-space: normal !important;
  word-wrap: break-word !important;
  overflow: visible !important;
  text-overflow: clip !important;
}

/* Location - smaller white/light-gray sans-serif */
.collection-place-card .card-location-text {
  font-family: 'Inter', sans-serif !important;
  font-size: 13px !important;
  font-weight: 400 !important;
  color: rgba(255, 255, 255, 0.85) !important;
  margin: 0 !important;
  letter-spacing: 0.2px !important;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4) !important;
  white-space: normal !important;
  word-wrap: break-word !important;
}

/* Star Rating and review count row */
.collection-place-card .card-rating-row {
  font-family: 'Inter', sans-serif !important;
  font-size: 13px !important;
  font-weight: 400 !important;
  color: rgba(255, 255, 255, 0.85) !important;
  display: flex !important;
  align-items: center !important;
  gap: 4px !important;
  margin: 0 !important;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4) !important;
}

/* Solid white star icon */
.collection-place-card .card-rating-row .star-icon {
  width: 14px !important;
  height: 14px !important;
  fill: #FFFFFF !important;
  stroke: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.collection-place-card .card-rating-row .rating-value {
  color: #FFFFFF !important;
  font-weight: 700 !important;
}

.collection-place-card .card-rating-row .reviews-count {
  color: rgba(255, 255, 255, 0.85) !important;
}

.mood-card-pink-city-pulse .mood-label {
  font-family: 'Caveat Brush', cursive;
  font-size: 32px; /* Super big! */
  color: #D4156B;
  letter-spacing: 0.5px;
  text-shadow: 2px 2px 0px #FFD6E8;
  line-height: 1.2;
}

.mood-card-pink-city-pulse .mood-number {
  font-family: 'Caveat Brush', cursive;
  font-size: 22px; /* Super big! */
  color: #FF6B9D;
}

.mood-card-art-junkie .mood-label {
  font-family: 'Caveat Brush', cursive;
  font-size: 32px; /* Super big! */
  color: #9B27AF;
  letter-spacing: 0.5px;
  text-shadow: 2px 2px 0px #F3E5F5;
  line-height: 1.2;
}

.mood-card-art-junkie .mood-number {
  font-family: 'Caveat Brush', cursive;
  font-size: 22px; /* Super big! */
  color: #E91E8C;
}

.mood-card-unhinged-fun .mood-label {
  font-family: 'Caveat Brush', cursive;
  font-size: 32px; /* Super big! */
  color: #FF3D00;
  text-shadow: 2px 2px 0px #FFE0D6;
  line-height: 1.2;
}

.mood-card-unhinged-fun .mood-number {
  font-family: 'Caveat Brush', cursive;
  font-size: 22px; /* Super big! */
  color: #FF6D00;
}

.mood-card-frame-it .mood-label {
  font-family: 'Caveat Brush', cursive;
  font-size: 32px; /* Super big! */
  color: #E65100;
  text-shadow: 2px 2px 0px #FFF8E1;
  line-height: 1.2;
}

.mood-card-frame-it .mood-number {
  font-family: 'Caveat Brush', cursive;
  font-size: 22px; /* Super big! */
  color: #F9A825;
}

.mood-card-heal-mode .mood-label {
  font-family: 'Caveat Brush', cursive;
  font-size: 32px; /* Super big! */
  color: #2E7D32;
  text-shadow: 2px 2px 0px #E8F5E9;
  line-height: 1.2;
}

.mood-card-heal-mode .mood-number {
  font-family: 'Caveat Brush', cursive;
  font-size: 22px; /* Super big! */
  color: #66BB6A;
}

.mood-card-crew-coded .mood-label {
  font-family: 'Caveat Brush', cursive;
  font-size: 32px; /* Super big! */
  color: #1565C0;
  text-shadow: 2px 2px 0px #E3F2FD;
  line-height: 1.2;
}

.mood-card-crew-coded .mood-number {
  font-family: 'Caveat Brush', cursive;
  font-size: 22px; /* Super big! */
  color: #42A5F5;
}

.mood-card-vintage-soul .mood-label {
  font-family: 'Caveat Brush', cursive;
  font-size: 32px; /* Super big! */
  color: #B5451B;
  text-shadow: 2px 2px 0px #FFF3E0;
  line-height: 1.2;
}

.mood-card-vintage-soul .mood-number {
  font-family: 'Caveat Brush', cursive;
  font-size: 22px; /* Super big! */
  color: #E8A87C;
}

.mood-card-magic-sky .mood-label {
  font-family: 'Caveat Brush', cursive;
  font-size: 32px; /* Super big! */
  color: #6A1B9A;
  text-shadow: 2px 2px 0px #EDE7F6;
  line-height: 1.2;
}

.mood-card-magic-sky .mood-number {
  font-family: 'Caveat Brush', cursive;
  font-size: 22px; /* Super big! */
  color: #AB47BC;
}

.mood-card-silk-energy .mood-label {
  font-family: 'Caveat Brush', cursive;
  font-size: 32px; /* Super big! */
  color: #0277BD;
  text-shadow: 2px 2px 0px #E1F5FE;
  line-height: 1.2;
}

.mood-card-silk-energy .mood-number {
  font-family: 'Caveat Brush', cursive;
  font-size: 22px; /* Super big! */
  color: #29B6F6;
}

.mood-card-butterfly-mode .mood-label {
  font-family: 'Caveat Brush', cursive;
  font-size: 32px; /* Super big! */
  color: #C2185B;
  text-shadow: 2px 2px 0px #FCE4EC;
  line-height: 1.2;
}

.mood-card-butterfly-mode .mood-number {
  font-family: 'Caveat Brush', cursive;
  font-size: 22px; /* Super big! */
  color: #F48FB1;
}

.mood-card-neon-nights .mood-label {
  font-family: 'Caveat Brush', cursive;
  font-size: 32px; /* Super big! */
  color: #4527A0;
  text-shadow: 2px 2px 0px #EDE7F6;
  line-height: 1.2;
}

.mood-card-neon-nights .mood-number {
  font-family: 'Caveat Brush', cursive;
  font-size: 22px; /* Super big! */
  color: #7E57C2;
}

/* --- Genre Tab Bar with Cards --- */
.genre-tab-wrapper {
  transition: all 0.3s ease;
  position: relative;
  flex: 0 0 260px; /* Same locked width as homepage */
}
.genre-tab-wrapper .category-card {
  opacity: 0.95; /* Keep almost full opacity so they are readable */
  filter: none; /* No grayscale */
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Selected/Popped-up State */
.genre-tab-wrapper.active {
  z-index: 10;
}
.genre-tab-wrapper.active .category-card {
  transform: translateY(-16px) scale(1.02); /* Pop up distinctly! */
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
  outline: 3px solid #5B3A8F; /* Primary purple highlight outline */
  outline-offset: 4px;
}


/* ==========================================================================
   Place Detail Page Styles
   ========================================================================== */

#place-detail-view {
  background-color: var(--bg-color) !important;
  color: var(--text-primary) !important;
  font-family: var(--font-sans) !important;
  min-height: 100vh;
  padding-bottom: 60px;
}

#place-detail-view .main-content {
  background-color: transparent !important;
  padding: 16px 24px 48px 24px !important;
  max-width: 1200px !important;
  margin: 0 auto !important;
  display: block !important;
}

/* Headings font Playfair Display */
#place-detail-view h1,
#place-detail-view h2,
#place-detail-view h3,
#place-detail-view h4 {
  font-family: var(--font-display), serif !important;
  color: var(--text-primary) !important;
  font-weight: 700 !important;
}

#place-detail-view p,
#place-detail-view span,
#place-detail-view div,
#place-detail-view button,
#place-detail-view input {
  font-family: var(--font-sans), sans-serif !important;
}

/* Detail Navigation Bar */
.detail-nav-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.detail-back-button {
  background: none !important;
  border: none !important;
  color: #5B3A8F !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 !important;
}

.detail-back-button:hover {
  opacity: 0.8;
}

.detail-header-dots {
  color: var(--text-secondary);
  font-size: 20px;
  letter-spacing: 2px;
}

/* Titles */
.desktop-place-name {
  font-size: 36px !important;
  margin-bottom: 24px;
  text-align: center;
  color: var(--text-primary) !important;
}

.mobile-place-name {
  font-size: 28px !important;
  margin-bottom: 16px;
  text-align: center;
  color: var(--text-primary) !important;
}

/* Photo Carousel */
.desktop-carousel-container {
  position: relative;
  width: 100%;
  margin-bottom: 24px;
  overflow: hidden;
}

.desktop-carousel-track-wrapper {
  overflow: hidden;
  width: 100%;
  border-radius: 16px;
}

.desktop-carousel-track {
  display: flex;
  transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
  width: 100%;
}

.desktop-carousel-track img {
  width: 25%; /* 4 photos side-by-side */
  height: 280px;
  object-fit: cover;
  flex-shrink: 0;
  border-right: 4px solid var(--bg-color); /* Matches theme background */
}

.desktop-carousel-track img:last-child {
  border-right: none;
}

/* Mobile Carousel */
.mobile-carousel-container {
  position: relative;
  width: 100%;
  margin-bottom: 16px;
  overflow: hidden;
}

.mobile-carousel-track-wrapper {
  overflow: hidden;
  width: 100%;
  border-radius: 16px;
}

.mobile-carousel-track {
  display: flex;
  transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
  width: 100%;
}

.mobile-carousel-track img {
  width: 33.333%; /* 3 photos in a row */
  height: 180px;
  object-fit: cover;
  flex-shrink: 0;
  border-right: 3px solid var(--bg-color); /* Matches theme background */
}

.mobile-carousel-track img:last-child {
  border-right: none;
}

/* Carousel controls */
.desktop-carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.15) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-color) !important;
  color: var(--text-primary) !important;
  width: 40px;
  height: 40px;
  border-radius: 50% !important;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  cursor: pointer;
  z-index: 10;
  box-shadow: var(--shadow-premium);
  transition: all 0.2s ease;
}

.desktop-carousel-arrow:hover {
  background: rgba(255, 255, 255, 0.25) !important;
  transform: translateY(-50%) scale(1.05);
}

.desktop-carousel-arrow.prev-btn {
  left: 16px;
}

.desktop-carousel-arrow.next-btn {
  right: 16px;
}

.desktop-carousel-dots,
.mobile-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 4px;
  background-color: var(--border-color);
  cursor: pointer;
  transition: width 0.3s cubic-bezier(0.25, 1, 0.3, 1), background-color 0.3s ease;
}

.carousel-dot.active {
  width: 24px;
  background-color: #5B3A8F;
}

/* Info Cards (Single White Card - Removed Box Styling) */
.desktop-info-card,
.mobile-info-card {
  background: transparent !important;
  border-radius: 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
  margin-bottom: 32px;
  border: none !important;
}

.detail-info-stacked {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.detail-info-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.detail-info-row.vibes-row {
  align-items: flex-start;
  flex-direction: column;
  gap: 8px;
}

.detail-icon {
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
}

.purple-icon {
  color: #5B3A8F;
}

.star-icon {
  color: #FBBF24;
}

.grey-text {
  color: var(--text-secondary) !important;
}

.detail-text {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary) !important;
}

.detail-text-stacked {
  display: flex;
  flex-direction: column;
}

.detail-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary) !important;
  text-transform: none;
  letter-spacing: normal;
}

.detail-val {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary) !important;
  margin-top: 2px;
}

/* Vibes Pill Badges */
.detail-vibes-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.vibe-badge-pill {
  background-color: #5B3A8F !important;
  color: #FFFFFF !important;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px !important;
  font-weight: 600;
}

/* Desktop and Mobile Detail Layout Overrides */
.desktop-detail-layout .detail-label {
  font-size: 12px !important;
  font-weight: 500 !important;
  color: var(--text-secondary) !important;
  text-transform: none !important;
  letter-spacing: normal !important;
}

.mobile-detail-layout .detail-label {
  font-size: 11px !important;
  font-weight: 500 !important;
  color: var(--text-secondary) !important;
  text-transform: none !important;
  letter-spacing: normal !important;
}

.desktop-detail-layout .detail-val {
  font-size: 16px !important;
  font-weight: 500 !important;
  color: var(--text-primary) !important;
}

.mobile-detail-layout .detail-val {
  font-size: 15px !important;
  font-weight: 500 !important;
  color: var(--text-primary) !important;
}

.desktop-detail-layout .vibe-badge-pill {
  font-size: 14px !important;
  font-weight: 400 !important;
}

.mobile-detail-layout .vibe-badge-pill {
  font-size: 13px !important;
  font-weight: 400 !important;
}

/* Description Text */
.detail-description-text {
  font-size: 15px !important;
  line-height: 1.6 !important;
  color: var(--text-secondary) !important;
  margin: 8px 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.desktop-detail-layout .detail-description-text {
  font-size: 16px !important;
  line-height: 1.6 !important;
  color: var(--text-secondary) !important;
  font-weight: 400 !important;
}

.mobile-detail-layout .detail-description-text {
  font-size: 15px !important;
  line-height: 1.6 !important;
  color: var(--text-secondary) !important;
  font-weight: 400 !important;
}

/* Action row icons */
.detail-actions-row {
  display: flex;
  gap: 16px;
  margin-top: 8px;
}

.detail-action-btn {
  background: none !important;
  border: 1px solid var(--border-color) !important;
  border-radius: 50% !important;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary) !important;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0 !important;
}

.detail-action-btn:hover {
  border-color: #5B3A8F !important;
  color: #5B3A8F !important;
  transform: scale(1.05);
}

.detail-action-btn.active {
  background-color: rgba(91, 58, 143, 0.15) !important;
  border-color: #5B3A8F !important;
  color: #5B3A8F !important;
}

/* Comments Toggle button */
.detail-comments-toggle-btn {
  width: 100%;
  background-color: #5B3A8F !important;
  color: #FFFFFF !important;
  border: none !important;
  border-radius: 24px !important;
  padding: 14px 20px !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.1s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
}

.detail-comments-toggle-btn:hover {
  background-color: #4A2E73 !important;
}

.detail-comments-toggle-btn:active {
  transform: scale(0.98);
}

/* Comments section list */
.detail-comments-section {
  border-top: 1px solid var(--border-color);
  margin-top: 20px;
  padding-top: 20px;
  transition: max-height 0.3s ease-out;
}

.comment-input-wrapper {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}

.comment-text-input {
  flex: 1;
  border: 1px solid var(--border-color) !important;
  border-radius: 20px !important;
  padding: 10px 16px !important;
  font-size: 14px !important;
  background-color: var(--input-bg) !important;
  color: var(--text-primary) !important;
  outline: none;
}

.comment-text-input:focus {
  border-color: #5B3A8F !important;
}

.comment-submit-btn {
  background-color: #5B3A8F !important;
  color: #FFFFFF !important;
  border: none !important;
  border-radius: 20px !important;
  padding: 10px 20px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  cursor: pointer;
}

.comment-submit-btn:hover {
  background-color: #4A2E73 !important;
}

.comment-item {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
}

.comment-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.comment-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.comment-content {
  display: flex;
  flex-direction: column;
}

.comment-author {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.comment-text {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 4px;
  line-height: 1.4;
}

/* Maps Container */
.detail-maps-embed-container {
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-premium);
  margin-top: 16px;
}

/* Discover More Section */
.desktop-discover-more-section,
.mobile-discover-more-section {
  margin-top: 40px;
}

.discover-more-heading {
  font-size: 26px !important;
  margin-bottom: 20px;
  text-align: left;
}

.discover-more-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding-bottom: 16px;
}

.discover-more-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* Discover Place Cards */
.discover-place-card {
  background: var(--card-bg) !important;
  border-radius: 16px !important;
  overflow: hidden;
  box-shadow: var(--shadow-premium) !important;
  border: 1px solid var(--border-color) !important;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  width: 100%;
}

.discover-place-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 38px rgba(91, 58, 143, 0.15) !important;
}

.discover-card-img-wrapper {
  height: 160px;
  overflow: hidden;
}

.discover-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.discover-card-info {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-grow: 1;
}

.discover-card-name {
  font-size: 18px !important;
  font-weight: 700 !important;
  color: var(--text-primary) !important;
  margin: 0;
  line-height: 1.3;
}

.discover-card-location {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 400;
}

.discover-card-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

/* Split Layout inside Mobile Info Card */
.mobile-split-layout {
  display: flex;
  gap: 16px;
}

.mobile-split-left {
  width: 60%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mobile-split-right {
  width: 40%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 20px;
}

.mobile-action-buttons-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mobile-comments-btn {
  margin-top: auto;
  font-size: 13px !important;
  padding: 10px 12px !important;
}

.mobile-maps-section {
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 32px;
}

/* Layout Visibility Media Queries */
@media (min-width: 769px) {
  .desktop-detail-layout {
    display: block !important;
  }
  .mobile-detail-layout {
    display: none !important;
  }
}

@media (max-width: 768px) {
  .desktop-detail-layout {
    display: none !important;
  }
  .mobile-detail-layout {
    display: block !important;
  }
  
  .discover-place-card {
    flex: none;
    width: 100%;
  }
  
  .discover-card-img-wrapper {
    height: 120px;
  }
}

@media (max-width: 1024px) and (min-width: 769px) {
  .discover-more-row {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

/* --- Reusable WeeksBest/SeasonsBest Card System --- */
.weeks-best-card {
  position: relative;
  width: 220px !important;
  height: 275px !important;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
  flex-shrink: 0;
}

.weeks-best-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

.weeks-best-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Steps 2 & 3: Backdrop Blur & Warm Pastel Tint Overlay at Bottom 45% (Soft Progressive Fade) */
.weeks-best-card-blur-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 45%;
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  background: linear-gradient(
    to top, 
    rgba(240, 185, 175, 0.35) 0%, /* warm pink tint */
    rgba(240, 185, 175, 0.15) 50%, 
    transparent 100%
  );
  /* Progressive gradient mask to fade the blur radius and color smoothly upwards */
  mask-image: linear-gradient(to top, black 20%, rgba(0, 0, 0, 0.6) 55%, transparent 100%);
  -webkit-mask-image: linear-gradient(to top, black 20%, rgba(0, 0, 0, 0.6) 55%, transparent 100%);
  pointer-events: none;
  z-index: 1;
}

/* Step 4: Text and Badges */
.weeks-best-card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 4px 10px;
  border-radius: 20px;
  color: #FFFFFF;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.3px;
  z-index: 2;
}

.weeks-best-card-actions {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  gap: 8px;
  z-index: 2;
}

.weeks-best-card-action-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 2px;
  color: #FFFFFF;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
  transition: transform 0.2s ease, color 0.2s ease;
}

.weeks-best-card-action-btn:hover {
  transform: scale(1.15);
}

.weeks-best-card-info {
  position: absolute;
  bottom: 14px;
  left: 14px;
  right: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 3;
}

.weeks-best-card-text-stack {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.weeks-best-card-name {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 700;
  color: #FFFDF9; /* Soft cream text */
  margin: 0;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  line-height: 1.25;
  word-wrap: break-word;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.weeks-best-card-location {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.8) !important;
  margin: 0;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.weeks-best-card-rating {
  display: flex;
  align-items: center;
  gap: 3px;
  color: #FFFDF9;
  font-size: 13px;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.weeks-best-card-rating .weeks-best-star {
  color: #FFFDF9;
  font-size: 14px;
}

.weeks-best-card-rating .reviews-label {
  font-size: 10px;
  opacity: 0.85;
  font-weight: 500;
  margin-left: 1px;
}

/* 5 Pastel Gradients overlays */
.weeks-best-overlay-pink {
  background: linear-gradient(to top, rgba(240, 185, 175, 0.35) 0%, rgba(240, 185, 175, 0.15) 55%, transparent 100%) !important;
}
.weeks-best-overlay-blue {
  background: linear-gradient(to top, rgba(165, 195, 220, 0.35) 0%, rgba(165, 195, 220, 0.15) 55%, transparent 100%) !important;
}
.weeks-best-overlay-green {
  background: linear-gradient(to top, rgba(175, 205, 180, 0.35) 0%, rgba(175, 205, 180, 0.15) 55%, transparent 100%) !important;
}
.weeks-best-overlay-cream {
  background: linear-gradient(to top, rgba(235, 215, 190, 0.35) 0%, rgba(235, 215, 190, 0.15) 55%, transparent 100%) !important;
}
.weeks-best-overlay-lavender {
  background: linear-gradient(to top, rgba(200, 185, 220, 0.35) 0%, rgba(200, 185, 220, 0.15) 55%, transparent 100%) !important;
}

/* --- PROFILE VIEW STYLES --- */
.profile-container {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 20px 60px;
}

.profile-nav-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding: 0 4px;
}

.profile-back-btn, .profile-more-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  border-radius: 50%;
  transition: background-color 0.2s;
}

.profile-back-btn:hover, .profile-more-btn:hover {
  background-color: var(--bg-secondary);
}

.profile-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 32px;
}

.profile-avatar-wrapper {
  margin-bottom: 16px;
}

.profile-avatar-placeholder {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
}

.profile-name {
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  font-weight: 700;
  margin: 0 0 6px;
  color: var(--text-primary);
}

.profile-username {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  margin: 0 0 12px;
}

.profile-bio-placeholder {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0 0 20px;
  cursor: pointer;
  font-style: italic;
  transition: opacity 0.2s;
}

.profile-bio-placeholder:hover {
  opacity: 0.8;
}

.profile-stats {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  font-size: 14px;
  color: var(--text-secondary);
}

.stat-count {
  font-weight: 700;
  color: var(--text-primary);
}

.stat-divider {
  color: var(--text-secondary);
  opacity: 0.5;
}

.profile-mood-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-bottom: 28px;
}

.mood-section-label {
  font-size: 10px;
  text-transform: none;
  letter-spacing: normal;
  font-weight: 500;
  color: var(--text-secondary);
  opacity: 0.8;
}

.profile-mood-badge-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 20px;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
}

.profile-mood-badge-pill .sparkle-icon {
  color: var(--text-secondary);
  opacity: 0.7;
}

.profile-actions {
  display: flex;
  gap: 12px;
}

.profile-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 24px;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.edit-profile-btn {
  background-color: #5B3A8F;
  color: #FFFFFF;
  border: none;
}

.edit-profile-btn:hover {
  background-color: #4A2E75;
}

.share-profile-btn {
  background-color: transparent;
  color: #5B3A8F;
  border: 1px solid #5B3A8F;
}

.share-profile-btn:hover {
  background-color: rgba(91, 58, 143, 0.05);
}

.profile-tabs-wrapper {
  width: 100%;
  margin-top: 16px;
}

.profile-tabs-header {
  display: flex;
  justify-content: center;
  gap: 32px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 32px;
}

.profile-tab-header-item {
  background: none;
  border: none;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  position: relative;
  transition: color 0.2s;
}

.profile-tab-header-item:hover {
  color: var(--text-primary);
}

.profile-tab-header-item.active {
  color: var(--text-primary);
}

.profile-tab-header-item.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background-color: #5B3A8F;
}

.profile-tabs-content {
  width: 100%;
}

.profile-tab-panel {
  display: none;
}

.profile-tab-panel.active {
  display: block;
}

.profile-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 48px 20px;
}

.empty-state-illustration {
  position: relative;
  margin-bottom: 20px;
  color: var(--text-secondary);
  opacity: 0.6;
  display: flex;
  align-items: center;
  justify-content: center;
}

.empty-state-title {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--text-primary);
}

.empty-state-subtitle {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0 0 24px;
  max-width: 280px;
  line-height: 1.4;
}

.profile-create-post-btn {
  background-color: #5B3A8F;
  color: #FFFFFF;
  border: none;
  padding: 10px 28px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s;
}

.profile-create-post-btn:hover {
  background-color: #4A2E75;
}

/* --- Mood Tab Bar with Cards --- */
.active-mood-tab {
  z-index: 10;
}
.active-mood-tab .notebook-card {
  transform: translateY(-16px) scale(1.02) !important; /* Pop up distinctly! */
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25) !important;
  outline: 3px solid #5B3A8F !important; /* Primary purple highlight outline */
  outline-offset: 4px !important;
}

/* --- SPA View Transition Classes --- */
#home-view, #explore-view, #messages-view, #profile-view, #genre-detail-view, #mood-detail-view, #place-detail-view {
  opacity: 1;
  transform: scale(1) translateY(0);
  transition: opacity 0.25s cubic-bezier(0.25, 1, 0.3, 1), transform 0.25s cubic-bezier(0.25, 1, 0.3, 1);
}
#home-view.view-hidden, #explore-view.view-hidden, #messages-view.view-hidden, #profile-view.view-hidden, #genre-detail-view.view-hidden, #mood-detail-view.view-hidden, #place-detail-view.view-hidden {
  opacity: 0;
  transform: scale(0.99) translateY(12px);
  pointer-events: none;
}



/* --- Scroll Driven Reveal Animations --- */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.reveal-on-scroll.reveal-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 600px) {
  :root {
    --active-card-width: 70%;
    --side-card-width: 50%;
    --weeks-best-gap: 16px;
    --genre-card-width: 200px;
    --mood-card-width: 180px;
  }
}

/* Hide mobile responsive layout on desktop by default */
#mobile-app-layout {
  display: none;
}

/* Toggle visibility of layouts based on screen size */
@media (max-width: 767px) {
  .app-layout,
  .navbar,
  .footer,
  .sheet-backdrop,
  #bottom-sheet,
  .theme-switch-wrapper,
  .mobile-chat-window {
    display: none !important;
  }
  
  #mobile-app-layout {
    display: block !important;
  }
  
  body {
    background-color: #FFFFFF !important;
  }
}

@media (min-width: 768px) {
  #mobile-app-layout {
    display: none !important;
  }
}

/* --- LOGIN FLOW VIEWS --- */
.login-flow-view {
  font-family: 'Inter', sans-serif;
  background-color: #FFFFFF;
  min-height: 100vh;
  width: 100%;
  box-sizing: border-box;
}

.login-flow-view .btn-primary {
  background-color: #5B3A8F;
  color: #FFFFFF;
  border: none;
  border-radius: 30px;
  padding: 16px 32px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  text-align: center;
  transition: background-color 0.2s, transform 0.1s;
}
.login-flow-view .btn-primary:hover {
  background-color: #4A2E73;
}
.login-flow-view .btn-primary:active {
  transform: scale(0.98);
}

.login-flow-view .btn-secondary {
  background-color: transparent;
  color: #5B3A8F;
  border: 2px solid #5B3A8F;
  border-radius: 30px;
  padding: 16px 32px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  text-align: center;
  transition: background-color 0.2s, color 0.2s, transform 0.1s;
}
.login-flow-view .btn-secondary:hover {
  background-color: #F6F3FA;
}
.login-flow-view .btn-secondary:active {
  transform: scale(0.98);
}

/* Welcome Desktop Layout */
.welcome-desktop-layout {
  display: flex;
  min-height: 100vh;
  width: 100%;
}

.welcome-left-col {
  width: 48%;
  padding: 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background-color: #FFFFFF;
  box-sizing: border-box;
}

.welcome-heading {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 72px;
  font-weight: 800;
  color: #0A1128;
  line-height: 1.1;
  margin-bottom: 56px;
}

.welcome-buttons-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 320px;
  width: 100%;
}

.welcome-right-col {
  width: 52%;
  background-color: #FAF8FD;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  box-sizing: border-box;
}

.illustrations-2x2-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  max-width: 540px;
  width: 100%;
}

.ill-card {
  background-color: #FFFFFF;
  border-radius: 20px;
  padding: 16px;
  box-shadow: 0 8px 24px rgba(91, 58, 143, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  transition: transform 0.3s ease;
  box-sizing: border-box;
}
.ill-card:hover {
  transform: translateY(-8px);
}

.ill-card img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* Welcome Mobile Layout */
.welcome-mobile-layout {
  display: none;
}

/* Responsive Welcome Layout */
@media (max-width: 767px) {
  .welcome-desktop-layout {
    display: none;
  }
  
  .welcome-mobile-layout {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding: 32px 24px;
    justify-content: space-between;
    background-color: #FFFFFF;
    box-sizing: border-box;
  }
  
  .welcome-mobile-top {
    margin-top: 24px;
  }
  
  .welcome-mobile-top .welcome-heading {
    font-size: 48px;
    margin-bottom: 0;
    text-align: left;
  }
  
  .welcome-mobile-middle {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 40px 0;
  }
  
  .illustrations-staggered-container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    grid-gap: 24px;
    width: 100%;
    max-width: 380px;
  }
  
  .illustrations-staggered-container .ill-card {
    border-radius: 16px;
    padding: 12px;
  }
  
  .illustrations-staggered-container .item-hawa {
    grid-column: 2;
    grid-row: 1;
    transform: rotate(4deg);
  }
  
  .illustrations-staggered-container .item-bazaar {
    grid-column: 1;
    grid-row: 2;
    transform: rotate(-3deg);
  }
  
  .illustrations-staggered-container .item-rickshaw {
    grid-column: 2;
    grid-row: 2;
    transform: rotate(5deg);
  }
  
  .illustrations-staggered-container .item-chai {
    grid-column: 2;
    grid-row: 3;
    transform: rotate(-6deg);
    max-width: 140px;
    justify-self: end;
  }
  
  .welcome-mobile-bottom {
    margin-bottom: 16px;
  }
}

/* Auth Card Layout */
.auth-card-container {
  max-width: 400px;
  width: 100%;
  margin: 0 auto;
  padding: 80px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  box-sizing: border-box;
}

.auth-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
}

.auth-logo {
  height: 32px;
  margin-bottom: 24px;
  object-fit: contain;
}

.auth-ill {
  width: 90px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 32px;
}

.auth-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 32px;
  font-weight: 700;
  color: #0A1128;
  margin-bottom: 8px;
}

.auth-subtext {
  font-size: 15px;
  color: #7A7A85;
  margin-bottom: 40px;
}

.auth-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.auth-form .input-wrapper {
  position: relative;
  width: 100%;
}

.auth-form input {
  width: 100%;
  padding: 16px 20px;
  border: 1px solid #D8D8E0;
  border-radius: 30px;
  font-size: 16px;
  font-family: 'Inter', sans-serif;
  color: #1A1A1A;
  box-sizing: border-box;
  background-color: #FFFFFF;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.auth-form input::placeholder {
  color: #A0A0AB;
}

.auth-form input:focus {
  border-color: #5B3A8F;
  outline: none;
  box-shadow: 0 0 0 4px rgba(91, 58, 143, 0.08);
}

.password-toggle-btn {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: #7A7A85;
  display: flex;
  align-items: center;
  padding: 4px;
}
.password-toggle-btn:hover {
  color: #5B3A8F;
}

.auth-form .btn-primary {
  margin-top: 10px;
}

.auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  width: 100%;
  margin: 32px 0;
  color: #C2C2CB;
  font-size: 14px;
  font-weight: 500;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid #EBEBEF;
}
.auth-divider:not(:empty)::before {
  margin-right: 16px;
}
.auth-divider:not(:empty)::after {
  margin-left: 16px;
}

.btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background-color: #FFFFFF;
  color: #1A1A1A;
  border: 1px solid #D8D8E0;
  border-radius: 30px;
  padding: 16px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  box-sizing: border-box;
  transition: background-color 0.2s, transform 0.1s;
}
.btn-google:hover {
  background-color: #F8F8FC;
}
.btn-google:active {
  transform: scale(0.98);
}

.google-icon {
  width: 20px;
  height: 20px;
}

.auth-footer {
  margin-top: 40px;
  font-size: 15px;
  color: #7A7A85;
}

.auth-footer .link-span {
  color: #5B3A8F;
  font-weight: 600;
  cursor: pointer;
}
.auth-footer .link-span:hover {
  text-decoration: underline;
}

/* Home Placeholder View */
.placeholder-card {
  max-width: 440px;
  width: 100%;
  background-color: #FFFFFF;
  border-radius: 24px;
  padding: 56px 32px;
  box-shadow: 0 12px 48px rgba(91, 58, 143, 0.06);
  border: 1px solid #F3EDFA;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-sizing: border-box;
}

#home-placeholder-view {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  box-sizing: border-box;
  background-color: #FAF9FC;
}

.success-icon-wrapper {
  background-color: #5B3A8F;
  border-radius: 50%;
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 32px;
  box-shadow: 0 8px 24px rgba(91, 58, 143, 0.2);
}

.placeholder-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 32px;
  font-weight: 700;
  color: #0A1128;
  margin-bottom: 16px;
}

.placeholder-desc {
  font-size: 16px;
  color: #7A7A85;
  line-height: 1.5;
  margin-bottom: 40px;
}

.placeholder-actions {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.btn-text {
  background: none;
  border: none;
  color: #7A7A85;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  padding: 8px;
  transition: color 0.2s;
}
.btn-text:hover {
  color: #5B3A8F;
}

/* --- SOCIAL FEATURES STYLING --- */

/* Modals */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(10, 17, 40, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
  animation: fadeIn 0.3s ease;
}

.modal-card {
  background-color: #FFFFFF;
  border-radius: 24px;
  width: 100%;
  max-width: 460px;
  box-shadow: 0 16px 48px rgba(91, 58, 143, 0.12);
  border: 1px solid rgba(91, 58, 143, 0.08);
  display: flex;
  flex-direction: column;
  max-height: 90vh;
  overflow: hidden;
  box-sizing: border-box;
  animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid #F3EDFA;
}

.modal-header h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 22px;
  font-weight: 700;
  color: #0A1128;
  margin: 0;
}

.modal-close-btn {
  background: none;
  border: none;
  font-size: 28px;
  line-height: 1;
  color: #A0A0AB;
  cursor: pointer;
  padding: 4px;
  transition: color 0.2s;
}
.modal-close-btn:hover {
  color: #5B3A8F;
}

.modal-form {
  padding: 24px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-sizing: border-box;
}

/* Avatar edit section */
.avatar-edit-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.avatar-preview-container {
  position: relative;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 2px solid #5B3A8F;
  box-shadow: 0 4px 12px rgba(91, 58, 143, 0.1);
  overflow: visible;
}

#edit-avatar-preview {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background-color: #FAF9FC;
}

.avatar-upload-label {
  position: absolute;
  bottom: 0;
  right: 0;
  background-color: #5B3A8F;
  color: #FFFFFF;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(91, 58, 143, 0.2);
  transition: background-color 0.2s, transform 0.1s;
}
.avatar-upload-label:hover {
  background-color: #4A2E73;
  transform: scale(1.05);
}

.avatar-upload-sub {
  font-size: 13px;
  color: #7A7A85;
}

/* Inputs styling */
.modal-form .input-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.modal-form .input-group label {
  font-size: 14px;
  font-weight: 600;
  color: #4A4A57;
}

.modal-form .input-group input,
.modal-form .input-group select,
.modal-form .input-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #D8D8E0;
  border-radius: 12px;
  font-size: 15px;
  color: #1A1A1A;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
  background-color: #FFFFFF;
  transition: border-color 0.2s;
}

.modal-form .input-group input:focus,
.modal-form .input-group select:focus,
.modal-form .input-group textarea:focus {
  border-color: #5B3A8F;
  outline: none;
}

/* File upload dropzone */
.post-upload-dropzone {
  border: 2px dashed #D8D8E0;
  border-radius: 16px;
  padding: 40px 20px;
  text-align: center;
  cursor: pointer;
  color: #7A7A85;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  transition: border-color 0.2s, background-color 0.2s;
}
.post-upload-dropzone:hover {
  border-color: #5B3A8F;
  background-color: #FAF9FC;
}
.post-upload-dropzone svg {
  color: #A0A0AB;
}

.post-preview-container {
  position: relative;
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 1.6 / 1;
}

#post-photo-preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-remove-photo-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  background-color: rgba(10, 17, 40, 0.6);
  color: #FFFFFF;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Feed Switcher Tabs */
.feed-toggle-container {
  display: flex;
  justify-content: center;
  margin: 32px 0 20px 0;
  width: 100%;
}

.feed-toggle-tabs {
  display: flex;
  background-color: #F3EDFA;
  padding: 4px;
  border-radius: 30px;
  width: max-content;
}

.feed-tab {
  background: none;
  border: none;
  padding: 10px 24px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 26px;
  cursor: pointer;
  color: #7A7A85;
  transition: all 0.2s ease;
  font-family: 'Inter', sans-serif;
}

.feed-tab.active {
  background-color: #5B3A8F;
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(91, 58, 143, 0.15);
}

/* Social Feed Section */
.social-feed-wrapper {
  max-width: 600px;
  margin: 0 auto;
  padding: 0 16px 80px 16px;
}

.social-feed-header {
  text-align: center;
  margin-bottom: 32px;
}

.social-feed-header h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 28px;
  color: #0A1128;
  margin: 0 0 8px 0;
}

.social-feed-header p {
  color: #7A7A85;
  margin: 0;
}

.social-feed-loading {
  text-align: center;
  color: #A0A0AB;
  padding: 40px;
}

/* Social Card */
.social-post-card {
  background-color: #FFFFFF;
  border-radius: 20px;
  border: 1px solid #F3EDFA;
  box-shadow: 0 8px 24px rgba(91, 58, 143, 0.03);
  margin-bottom: 24px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.social-post-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
}

.post-user-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.post-user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  background-color: #F8F9FA;
}

.post-user-meta {
  display: flex;
  flex-direction: column;
}

.post-user-name {
  font-size: 14px;
  font-weight: 700;
  color: #1A1A1A;
}

.post-user-handle {
  font-size: 12px;
  color: #7A7A85;
}

.post-place-tag-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  background-color: #FAF6FF;
  border: 1px solid #EFE5FC;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  color: #5B3A8F;
  cursor: pointer;
  transition: all 0.2s;
}
.post-place-tag-badge:hover {
  background-color: #5B3A8F;
  color: #FFFFFF;
}

.post-image-container {
  width: 100%;
  aspect-ratio: 1.2 / 1;
}

.post-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.social-post-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 16px 8px 16px;
}

.post-action-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: #4A4A57;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  padding: 4px;
  transition: color 0.2s;
}
.post-action-btn:hover {
  color: #5B3A8F;
}

.post-action-btn svg {
  width: 20px;
  height: 20px;
}

.social-post-content {
  padding: 0 16px 16px 16px;
  font-size: 14px;
  line-height: 1.5;
  color: #333333;
}

.post-caption-text {
  margin: 0;
}

.post-caption-text strong {
  margin-right: 6px;
}

.post-timestamp {
  display: block;
  font-size: 11px;
  color: #A0A0AB;
  margin-top: 8px;
}

/* Toast alert */
.toast-alert {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10000;
  animation: toastSlideUp 0.3s ease;
}

.toast-content {
  background: linear-gradient(135deg, #5B3A8F, #4A2E73);
  color: #FFFFFF;
  padding: 12px 24px;
  border-radius: 30px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 8px 24px rgba(91, 58, 143, 0.3);
  font-size: 14px;
  font-weight: 600;
}

.toast-icon {
  stroke: #FFFFFF;
}

/* Keyframes */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

@keyframes toastSlideUp {
  from { transform: translate(-50%, 40px); opacity: 0; }
  to { transform: translate(-50%, 0); opacity: 1; }
}

/* Responsive adjustment for Mobile Header Create button */
@media (max-width: 767px) {
  #nav-create-post-btn {
    display: none !important;
  }
}

/* Collection Detail Split Layout styling */
.collection-detail-layout {
  display: flex;
  gap: 40px;
  margin-top: 24px;
}

.collection-left-banner {
  width: 35%;
  position: sticky;
  top: 94px;
  height: calc(100vh - 140px);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.collection-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.2) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 32px;
  color: #ffffff;
  z-index: 2;
}

#feed-collection-subtitle {
  font-size: 12px;
  font-weight: 500;
  text-transform: none;
  letter-spacing: normal;
  color: #FFB000;
  margin-bottom: 8px;
}

#feed-collection-title {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 900;
  margin: 0 0 16px 0;
  line-height: 1.2;
  text-transform: none;
  letter-spacing: -0.5px;
  color: #ffffff;
}

.collection-banner-curator {
  display: flex;
  align-items: center;
  gap: 8px;
}

.curator-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

#collection-curator-text {
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
}

.collection-places-container {
  width: 65%;
}

.collection-places-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

@media (max-width: 1024px) {
  .collection-detail-layout {
    flex-direction: column;
    gap: 28px;
  }
  
  .collection-left-banner {
    width: 100%;
    height: 300px;
    position: relative;
    top: 0;
  }
  
  .collection-places-container {
    width: 100%;
  }
}

@media (max-width: 600px) {
  .collection-places-grid {
    grid-template-columns: 1fr;
  }
}

/* === REDESIGNED TOP NAVBAR STYLES === */
.brand-logo {
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: -0.5px;
  transition: opacity 0.2s ease;
}

.brand-logo:hover {
  opacity: 0.85;
}

.nav-divider {
  color: var(--border-color);
  font-weight: 300;
  margin: 0 16px;
  font-size: 18px;
  user-select: none;
}

.location-selector.unboxed {
  background-color: transparent !important;
  border: none !important;
  padding: 0 !important;
  border-radius: 0 !important;
  color: var(--text-secondary);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s ease;
}

.location-selector.unboxed:hover {
  color: var(--text-primary);
}

.location-selector.unboxed .dropdown-arrow {
  margin-left: 2px;
}

.nav-center-new {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-grow: 1;
}

.nav-right-header-new {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}

.nav-search-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  border-radius: 50%;
  transition: background-color 0.2s, color 0.2s;
}

.nav-search-btn svg {
  width: 20px;
  height: 20px;
}

.nav-search-btn:hover {
  background-color: rgba(120, 120, 120, 0.08);
  color: var(--text-primary);
}

.nav-profile-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: #1c1524;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  overflow: hidden;
  border: 1.5px solid var(--border-color);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

body[data-theme="light"] .nav-profile-avatar {
  background-color: #f3f4f6;
  color: #1f2937;
}

.nav-profile-avatar:hover {
  transform: scale(1.05);
  border-color: var(--text-primary);
}

.nav-profile-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

/* Search Modal/Overlay (Centered Panel on Desktop, Full-Screen on Mobile) */
.nav-search-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(10, 17, 40, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 24px;
  box-sizing: border-box;
}

.nav-search-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

/* Modal Content Box */
.search-modal-content {
  background-color: var(--card-bg);
  border-radius: 24px;
  width: 100%;
  max-width: 680px;
  height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.15);
  border: 1px solid var(--border-color);
  overflow: hidden;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.3s ease;
}

.nav-search-overlay.open .search-modal-content {
  transform: translateY(0);
}

/* Header Section of Search Modal */
.search-modal-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border-color);
}

.search-modal-header .search-input-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  background-color: var(--input-bg);
  border: 1px solid var(--border-color);
  padding: 10px 18px;
  border-radius: 50px;
  flex-grow: 1;
  transition: border-color 0.2s;
}

.search-modal-header .search-input-wrapper:focus-within {
  border-color: var(--accent-blue);
}

.search-modal-header .search-input-wrapper input {
  background: transparent;
  border: none;
  outline: none;
  font-size: 15px;
  color: var(--text-primary);
  width: 100%;
  font-family: var(--font-sans);
}

.search-modal-header .overlay-search-icon {
  font-size: 16px;
  color: var(--text-secondary);
  user-select: none;
}

.search-modal-header .close-search-btn {
  background: none;
  border: none;
  font-size: 28px;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
  transition: color 0.2s;
}

.search-modal-header .close-search-btn:hover {
  color: var(--text-primary);
}

/* Scrollable Body Section */
.search-modal-body {
  flex-grow: 1;
  overflow-y: auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  scrollbar-width: none;
}

.search-modal-body::-webkit-scrollbar {
  display: none;
}

.search-modal-section-title {
  font-family: 'Playfair Display', serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 0;
  margin-bottom: 12px;
  text-transform: none;
  letter-spacing: normal;
}

/* Recent Searches Row */
.recent-searches-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.recent-search-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--input-bg);
  border: 1px solid var(--border-color);
  padding: 6px 12px;
  border-radius: 50px;
  font-size: 13px;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.recent-search-pill:hover {
  background-color: rgba(120, 120, 120, 0.08);
}

.recent-search-remove {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-secondary);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  transition: background-color 0.2s, color 0.2s;
}

.recent-search-remove:hover {
  background-color: rgba(120, 120, 120, 0.15);
  color: var(--text-primary);
}

/* Mobile full-screen search view */
@media (max-width: 767px) {
  .nav-search-overlay {
    padding: 0;
  }
  .search-modal-content {
    max-width: 100%;
    height: 100%;
    border-radius: 0;
    border: none;
  }
  .trending-places-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }
}

@media (max-width: 850px) {
  .navbar {
    flex-wrap: wrap;
    gap: 16px;
  }
  .nav-left, .nav-center-new, .nav-right-header-new {
    width: auto;
  }
}

/* ==========================================================================
   PLACE DETAIL PAGE REDESIGN STYLES (DISTRICT.IN INSPIRED)
   ========================================================================== */

.details-page-root {
  background: #FFFFFF !important;
  color: #1E1D24 !important;
}

.details-desktop-container {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  align-items: start;
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 16px;
  background: #FFFFFF;
  color: #1E1D24;
  font-family: 'Inter', sans-serif;
}

/* Left Column styling */
.details-main-content {
  display: flex;
  flex-direction: column;
}

.details-category-label {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  text-transform: none;
  color: var(--color-liberty);
  letter-spacing: normal;
  margin-bottom: 12px;
  display: block;
}

.details-photo-grid {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 8px;
  width: 100%;
  aspect-ratio: 5 / 2.3;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 24px;
  background: #FAFAFC;
}

.details-photo-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.details-photo-grid img:hover {
  opacity: 0.9;
}

.details-photo-hero {
  grid-column: 1 / 2;
  grid-row: 1 / 3;
}

.details-photo-last-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
}

.details-show-all-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.2s ease;
}

.details-show-all-overlay:hover {
  background: rgba(0, 0, 0, 0.6);
}

.details-place-name {
  font-family: 'Playfair Display', serif !important;
  font-size: 38px;
  font-weight: 700;
  color: #1E1D24;
  margin: 0 0 8px 0;
  line-height: 1.2;
}

.details-info-line {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: #6E6D76;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.details-info-line .rating-badge {
  background-color: #3AB757;
  color: #FFFFFF;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.details-info-line .dot-separator {
  color: #C1C0C7;
  margin: 0 4px;
}

.details-info-line .status-open {
  color: #3AB757;
  font-weight: 600;
}

.details-info-line .status-closed {
  color: #E03E3E;
  font-weight: 600;
}

.details-address-text {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  color: #4E4D55;
  line-height: 1.5;
  margin-bottom: 16px;
}

.details-actions-row {
  display: flex;
  gap: 12px;
  margin-bottom: 32px;
}

.details-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border: 1px solid #ECEBEF;
  border-radius: 20px;
  background: #FFFFFF;
  color: #1E1D24;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.details-action-btn:hover {
  background: #FAFAFC;
  border-color: #C1C0C7;
}

.details-action-btn svg {
  width: 16px;
  height: 16px;
  color: var(--color-liberty);
  stroke-width: 2.2;
}

.details-reviews-section {
  border-top: 1px solid #ECEBEF;
  padding-top: 32px;
  margin-bottom: 40px;
}

.details-section-title {
  font-family: 'Playfair Display', serif !important;
  font-size: 24px;
  font-weight: 700;
  color: #1E1D24;
  margin-bottom: 20px;
}

.details-rating-summary-card {
  display: flex;
  gap: 32px;
  align-items: center;
  background: #FAFAFC;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
  border: 1px solid #ECEBEF;
}

.details-overall-score {
  text-align: center;
  min-width: 100px;
}

.details-overall-score-num {
  font-size: 48px;
  font-weight: 800;
  color: #1E1D24;
  line-height: 1;
}

.details-overall-score-stars {
  color: #3AB757;
  font-size: 16px;
  margin-top: 6px;
}

.details-subscores-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  flex-grow: 1;
  border-left: 1px solid #ECEBEF;
  padding-left: 32px;
}

.details-subscore-item {
  text-align: center;
}

.details-subscore-value {
  font-size: 20px;
  font-weight: 700;
  color: #1E1D24;
}

.details-subscore-label {
  font-size: 12px;
  color: #6E6D76;
  margin-top: 4px;
  font-weight: 500;
}

.details-reviews-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.details-review-card {
  border: 1px solid #ECEBEF;
  border-radius: 12px;
  padding: 16px;
  background: #FFFFFF;
}

.details-review-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.details-review-author {
  font-weight: 700;
  font-size: 14px;
  color: #1E1D24;
}

.details-review-rating {
  color: #3AB757;
  font-size: 12px;
  font-weight: 700;
  background: #E8F5E9;
  padding: 2px 6px;
  border-radius: 4px;
}

.details-review-time {
  font-size: 12px;
  color: #8E8D95;
  margin-top: 2px;
}

.details-review-text {
  font-size: 13px;
  line-height: 1.5;
  color: #4E4D55;
}

.details-about-section {
  border-top: 1px solid #ECEBEF;
  padding-top: 32px;
  margin-bottom: 40px;
}

.details-about-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.details-about-item {
  margin-bottom: 12px;
}

.details-about-label {
  font-size: 12px;
  font-weight: 500;
  text-transform: none;
  color: #8E8D95;
  margin-bottom: 6px;
  letter-spacing: normal;
}

.details-about-value {
  font-size: 14px;
  color: #1E1D24;
  line-height: 1.4;
}

.details-facilities-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: 8px;
}

.details-facility-tag {
  font-size: 13px;
  color: #4E4D55;
  display: flex;
  align-items: center;
  gap: 6px;
}

.details-facility-tag::before {
  content: "✦";
  color: var(--color-liberty);
  font-size: 10px;
}

.details-location-box {
  border: 1px solid #ECEBEF;
  border-radius: 12px;
  padding: 20px;
  background: #FFFFFF;
  margin-bottom: 24px;
}

.details-location-box-title {
  font-size: 16px;
  font-weight: 700;
  color: #1E1D24;
  margin-bottom: 12px;
}

.details-location-box-address {
  font-size: 13px;
  line-height: 1.5;
  color: #6E6D76;
  margin-bottom: 16px;
}

.details-location-box-map {
  width: 100%;
  height: 200px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #ECEBEF;
  margin-bottom: 16px;
}

.details-location-box-map iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.details-location-box-actions {
  display: flex;
  gap: 12px;
}

/* Sidebar Column styling */
.details-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.details-sidebar-sticky {
  position: sticky;
  top: 96px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.details-sidebar-comments {
  border: 1px solid #ECEBEF;
  border-radius: 12px;
  padding: 24px;
  background: #FFFFFF;
  box-shadow: 0 4px 12px rgba(0,0,0,0.02);
}

.sidebar-comments-actions-row {
  display: flex;
  justify-content: space-around;
  padding-bottom: 16px;
  border-bottom: 1px solid #ECEBEF;
  margin-bottom: 16px;
}

.sidebar-action-btn-circular {
  background: none;
  border: 1px solid #ECEBEF;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #6E6D76;
  transition: all 0.2s ease;
}

.sidebar-action-btn-circular:hover {
  background: #FAFAFC;
  border-color: #C1C0C7;
  color: #1E1D24;
}

.sidebar-action-btn-circular.active.heart {
  background: #FCE8E6;
  border-color: var(--color-parrot-pink);
  color: var(--color-parrot-pink);
}

.sidebar-action-btn-circular.active.bookmark {
  background: #FFF8E1;
  border-color: var(--color-dark-vanilla);
  color: var(--color-dark-vanilla);
}

.sidebar-action-btn-circular svg {
  width: 20px;
  height: 20px;
  stroke-width: 2;
}

.sidebar-comments-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.sidebar-comments-title {
  font-size: 16px;
  font-weight: 700;
  color: #1E1D24;
}

.sidebar-comments-count {
  font-size: 12px;
  font-weight: 700;
  background: #FAFAFC;
  border: 1px solid #ECEBEF;
  padding: 2px 8px;
  border-radius: 12px;
  color: #6E6D76;
}

.sidebar-comments-list {
  max-height: 250px;
  overflow-y: auto;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-right: 4px;
}

.sidebar-comments-list::-webkit-scrollbar {
  width: 4px;
}

.sidebar-comments-list::-webkit-scrollbar-thumb {
  background: #ECEBEF;
  border-radius: 2px;
}

.sidebar-comment-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.sidebar-comment-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  background: #FAFAFC;
}

.sidebar-comment-content {
  flex-grow: 1;
}

.sidebar-comment-author {
  font-size: 12px;
  font-weight: 700;
  color: #1E1D24;
  display: block;
}

.sidebar-comment-text {
  font-size: 12px;
  line-height: 1.4;
  color: #4E4D55;
  margin: 2px 0 0 0;
}

.sidebar-comment-input-wrapper {
  display: flex;
  gap: 8px;
  border-top: 1px solid #ECEBEF;
  padding-top: 16px;
}

.sidebar-comment-text-input {
  flex-grow: 1;
  border: 1px solid #ECEBEF;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 13px;
  outline: none;
  background: #FAFAFC;
  color: #1E1D24;
}

.sidebar-comment-text-input:focus {
  border-color: var(--color-liberty);
  background: #FFFFFF;
}

.sidebar-comment-submit-btn {
  background: var(--color-liberty);
  color: #FFFFFF;
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.sidebar-comment-submit-btn:hover {
  opacity: 0.9;
}

/* Discover More Section */
.details-discover-more {
  border-top: 1px solid #ECEBEF;
  padding-top: 48px;
  margin-top: 48px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 16px;
  padding-right: 16px;
}

/* Responsive grid view for discover recommendations inside details page */
.details-discover-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 24px;
}

@media (max-width: 1024px) {
  .details-desktop-container {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .details-sidebar-sticky {
    position: static;
  }
  .details-discover-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .details-discover-grid {
    grid-template-columns: 1fr;
  }
  .details-photo-grid {
    grid-template-columns: 1fr;
    aspect-ratio: 1.5;
  }
  .details-photo-hero {
    grid-column: span 1;
    grid-row: span 1;
  }
  .details-photo-sub {
    display: none;
  }
  .details-rating-summary-card {
    flex-direction: column;
    gap: 20px;
    align-items: stretch;
  }
  .details-subscores-grid {
    border-left: none;
    padding-left: 0;
  }
  .details-about-grid {
    grid-template-columns: 1fr;
  }
}


/* ==========================================================================
   PLACE DETAIL PAGE REDESIGN STYLES (DISTRICT.IN INSPIRED)
   ========================================================================== */

.details-page-root {
  background: #FFFFFF !important;
  color: #1E1D24 !important;
}

.details-desktop-container {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  align-items: start;
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 16px;
  background: #FFFFFF;
  color: #1E1D24;
  font-family: 'Inter', sans-serif;
}

/* Left Column styling */
.details-main-content {
  display: flex;
  flex-direction: column;
}

.details-category-label {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  text-transform: none;
  color: var(--color-liberty);
  letter-spacing: normal;
  margin-bottom: 12px;
  display: block;
}

.details-photo-grid {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 8px;
  width: 100%;
  aspect-ratio: 5 / 2.3;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 24px;
  background: #FAFAFC;
}

.details-photo-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.details-photo-grid img:hover {
  opacity: 0.9;
}

.details-photo-hero {
  grid-column: 1 / 2;
  grid-row: 1 / 3;
}

.details-photo-last-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
}

.details-show-all-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.2s ease;
}

.details-show-all-overlay:hover {
  background: rgba(0, 0, 0, 0.6);
}

.details-place-name {
  font-family: 'Playfair Display', serif !important;
  font-size: 38px;
  font-weight: 700;
  color: #1E1D24;
  margin: 0 0 8px 0;
  line-height: 1.2;
}

.details-info-line {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: #6E6D76;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.details-info-line .rating-badge {
  background-color: #3AB757;
  color: #FFFFFF;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.details-info-line .dot-separator {
  color: #C1C0C7;
  margin: 0 4px;
}

.details-info-line .status-open {
  color: #3AB757;
  font-weight: 600;
}

.details-info-line .status-closed {
  color: #E03E3E;
  font-weight: 600;
}

.details-address-text {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  color: #4E4D55;
  line-height: 1.5;
  margin-bottom: 16px;
}

.details-actions-row {
  display: flex;
  gap: 12px;
  margin-bottom: 32px;
}

.details-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border: 1px solid #ECEBEF;
  border-radius: 20px;
  background: #FFFFFF;
  color: #1E1D24;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.details-action-btn:hover {
  background: #FAFAFC;
  border-color: #C1C0C7;
}

.details-action-btn svg {
  width: 16px;
  height: 16px;
  color: var(--color-liberty);
  stroke-width: 2.2;
}

.details-reviews-section {
  border-top: 1px solid #ECEBEF;
  padding-top: 32px;
  margin-bottom: 40px;
}

.details-section-title {
  font-family: 'Playfair Display', serif !important;
  font-size: 24px;
  font-weight: 700;
  color: #1E1D24;
  margin-bottom: 20px;
}

.details-rating-summary-card {
  display: flex;
  gap: 32px;
  align-items: center;
  background: #FAFAFC;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
  border: 1px solid #ECEBEF;
}

.details-overall-score {
  text-align: center;
  min-width: 100px;
}

.details-overall-score-num {
  font-size: 48px;
  font-weight: 800;
  color: #1E1D24;
  line-height: 1;
}

.details-overall-score-stars {
  color: #3AB757;
  font-size: 16px;
  margin-top: 6px;
}

.details-subscores-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  flex-grow: 1;
  border-left: 1px solid #ECEBEF;
  padding-left: 32px;
}

.details-subscore-item {
  text-align: center;
}

.details-subscore-value {
  font-size: 20px;
  font-weight: 700;
  color: #1E1D24;
}

.details-subscore-label {
  font-size: 12px;
  color: #6E6D76;
  margin-top: 4px;
  font-weight: 500;
}

.details-reviews-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.details-review-card {
  border: 1px solid #ECEBEF;
  border-radius: 12px;
  padding: 16px;
  background: #FFFFFF;
}

.details-review-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.details-review-author {
  font-weight: 700;
  font-size: 14px;
  color: #1E1D24;
}

.details-review-rating {
  color: #3AB757;
  font-size: 12px;
  font-weight: 700;
  background: #E8F5E9;
  padding: 2px 6px;
  border-radius: 4px;
}

.details-review-time {
  font-size: 12px;
  color: #8E8D95;
  margin-top: 2px;
}

.details-review-text {
  font-size: 13px;
  line-height: 1.5;
  color: #4E4D55;
}

.details-about-section {
  border-top: 1px solid #ECEBEF;
  padding-top: 32px;
  margin-bottom: 40px;
}

.details-about-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.details-about-item {
  margin-bottom: 12px;
}

.details-about-label {
  font-size: 12px;
  font-weight: 500;
  text-transform: none;
  color: #8E8D95;
  margin-bottom: 6px;
  letter-spacing: normal;
}

.details-about-value {
  font-size: 14px;
  color: #1E1D24;
  line-height: 1.4;
}

.details-facilities-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: 8px;
}

.details-facility-tag {
  font-size: 13px;
  color: #4E4D55;
  display: flex;
  align-items: center;
  gap: 6px;
}

.details-facility-tag::before {
  content: "✦";
  color: var(--color-liberty);
  font-size: 10px;
}

.details-location-box {
  border: 1px solid #ECEBEF;
  border-radius: 12px;
  padding: 20px;
  background: #FFFFFF;
  margin-bottom: 24px;
}

.details-location-box-title {
  font-size: 16px;
  font-weight: 700;
  color: #1E1D24;
  margin-bottom: 12px;
}

.details-location-box-address {
  font-size: 13px;
  line-height: 1.5;
  color: #6E6D76;
  margin-bottom: 16px;
}

.details-location-box-map {
  width: 100%;
  height: 200px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #ECEBEF;
  margin-bottom: 16px;
}

.details-location-box-map iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.details-location-box-actions {
  display: flex;
  gap: 12px;
}

/* Sidebar Column styling */
.details-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.details-sidebar-sticky {
  position: sticky;
  top: 96px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.details-sidebar-comments {
  border: 1px solid #ECEBEF;
  border-radius: 12px;
  padding: 24px;
  background: #FFFFFF;
  box-shadow: 0 4px 12px rgba(0,0,0,0.02);
}

.sidebar-comments-actions-row {
  display: flex;
  justify-content: space-around;
  padding-bottom: 16px;
  border-bottom: 1px solid #ECEBEF;
  margin-bottom: 16px;
}

.sidebar-action-btn-circular {
  background: none;
  border: 1px solid #ECEBEF;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #6E6D76;
  transition: all 0.2s ease;
}

.sidebar-action-btn-circular:hover {
  background: #FAFAFC;
  border-color: #C1C0C7;
  color: #1E1D24;
}

.sidebar-action-btn-circular.active.heart {
  background: #FCE8E6;
  border-color: var(--color-parrot-pink);
  color: var(--color-parrot-pink);
}

.sidebar-action-btn-circular.active.bookmark {
  background: #FFF8E1;
  border-color: var(--color-dark-vanilla);
  color: var(--color-dark-vanilla);
}

.sidebar-action-btn-circular svg {
  width: 20px;
  height: 20px;
  stroke-width: 2;
}

.sidebar-comments-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.sidebar-comments-title {
  font-size: 16px;
  font-weight: 700;
  color: #1E1D24;
}

.sidebar-comments-count {
  font-size: 12px;
  font-weight: 700;
  background: #FAFAFC;
  border: 1px solid #ECEBEF;
  padding: 2px 8px;
  border-radius: 12px;
  color: #6E6D76;
}

.sidebar-comments-list {
  max-height: 250px;
  overflow-y: auto;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-right: 4px;
}

.sidebar-comments-list::-webkit-scrollbar {
  width: 4px;
}

.sidebar-comments-list::-webkit-scrollbar-thumb {
  background: #ECEBEF;
  border-radius: 2px;
}

.sidebar-comment-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.sidebar-comment-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  background: #FAFAFC;
}

.sidebar-comment-content {
  flex-grow: 1;
}

.sidebar-comment-author {
  font-size: 12px;
  font-weight: 700;
  color: #1E1D24;
  display: block;
}

.sidebar-comment-text {
  font-size: 12px;
  line-height: 1.4;
  color: #4E4D55;
  margin: 2px 0 0 0;
}

.sidebar-comment-input-wrapper {
  display: flex;
  gap: 8px;
  border-top: 1px solid #ECEBEF;
  padding-top: 16px;
}

.sidebar-comment-text-input {
  flex-grow: 1;
  border: 1px solid #ECEBEF;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 13px;
  outline: none;
  background: #FAFAFC;
  color: #1E1D24;
}

.sidebar-comment-text-input:focus {
  border-color: var(--color-liberty);
  background: #FFFFFF;
}

.sidebar-comment-submit-btn {
  background: var(--color-liberty);
  color: #FFFFFF;
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.sidebar-comment-submit-btn:hover {
  opacity: 0.9;
}

/* Discover More Section */
.details-discover-more {
  border-top: 1px solid #ECEBEF;
  padding-top: 48px;
  margin-top: 48px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 16px;
  padding-right: 16px;
}

/* Responsive grid view for discover recommendations inside details page */
.details-discover-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 24px;
}

@media (max-width: 1024px) {
  .details-desktop-container {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .details-sidebar-sticky {
    position: static;
  }
  .details-discover-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .details-discover-grid {
    grid-template-columns: 1fr;
  }
  .details-photo-grid {
    grid-template-columns: 1fr;
    aspect-ratio: 1.5;
  }
  .details-photo-hero {
    grid-column: span 1;
    grid-row: span 1;
  }
  .details-photo-sub {
    display: none;
  }
  .details-rating-summary-card {
    flex-direction: column;
    gap: 20px;
    align-items: stretch;
  }
  .details-subscores-grid {
    border-left: none;
    padding-left: 0;
  }
  .details-about-grid {
    grid-template-columns: 1fr;
  }
}



/* --- SOCIAL FEATURES STYLING --- */

/* Modals */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(10, 17, 40, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
  animation: fadeIn 0.3s ease;
}

.modal-card {
  background-color: #FFFFFF;
  border-radius: 24px;
  width: 100%;
  max-width: 460px;
  box-shadow: 0 16px 48px rgba(91, 58, 143, 0.12);
  border: 1px solid rgba(91, 58, 143, 0.08);
  display: flex;
  flex-direction: column;
  max-height: 90vh;
  overflow: hidden;
  box-sizing: border-box;
  animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid #F3EDFA;
}

.modal-header h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 22px;
  font-weight: 700;
  color: #0A1128;
  margin: 0;
}

.modal-close-btn {
  background: none;
  border: none;
  font-size: 28px;
  line-height: 1;
  color: #A0A0AB;
  cursor: pointer;
  padding: 4px;
  transition: color 0.2s;
}
.modal-close-btn:hover {
  color: #5B3A8F;
}

.modal-form {
  padding: 24px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-sizing: border-box;
}

/* Avatar edit section */
.avatar-edit-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.avatar-preview-container {
  position: relative;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 2px solid #5B3A8F;
  box-shadow: 0 4px 12px rgba(91, 58, 143, 0.1);
  overflow: visible;
}

#edit-avatar-preview {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background-color: #FAF9FC;
}

.avatar-upload-label {
  position: absolute;
  bottom: 0;
  right: 0;
  background-color: #5B3A8F;
  color: #FFFFFF;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(91, 58, 143, 0.2);
  transition: background-color 0.2s, transform 0.1s;
}
.avatar-upload-label:hover {
  background-color: #4A2E73;
  transform: scale(1.05);
}

.avatar-upload-sub {
  font-size: 13px;
  color: #7A7A85;
}

/* Inputs styling */
.modal-form .input-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.modal-form .input-group label {
  font-size: 14px;
  font-weight: 600;
  color: #4A4A57;
}

.modal-form .input-group input,
.modal-form .input-group select,
.modal-form .input-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #D8D8E0;
  border-radius: 12px;
  font-size: 15px;
  color: #1A1A1A;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
  background-color: #FFFFFF;
  transition: border-color 0.2s;
}

.modal-form .input-group input:focus,
.modal-form .input-group select:focus,
.modal-form .input-group textarea:focus {
  border-color: #5B3A8F;
  outline: none;
}

/* File upload dropzone */
.post-upload-dropzone {
  border: 2px dashed #D8D8E0;
  border-radius: 16px;
  padding: 40px 20px;
  text-align: center;
  cursor: pointer;
  color: #7A7A85;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  transition: border-color 0.2s, background-color 0.2s;
}
.post-upload-dropzone:hover {
  border-color: #5B3A8F;
  background-color: #FAF9FC;
}
.post-upload-dropzone svg {
  color: #A0A0AB;
}

.post-preview-container {
  position: relative;
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 1.6 / 1;
}

#post-photo-preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-remove-photo-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  background-color: rgba(10, 17, 40, 0.6);
  color: #FFFFFF;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Feed Switcher Tabs */
.feed-toggle-container {
  display: flex;
  justify-content: center;
  margin: 32px 0 20px 0;
  width: 100%;
}

.feed-toggle-tabs {
  display: flex;
  background-color: #F3EDFA;
  padding: 4px;
  border-radius: 30px;
  width: max-content;
}

.feed-tab {
  background: none;
  border: none;
  padding: 10px 24px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 26px;
  cursor: pointer;
  color: #7A7A85;
  transition: all 0.2s ease;
  font-family: 'Inter', sans-serif;
}

.feed-tab.active {
  background-color: #5B3A8F;
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(91, 58, 143, 0.15);
}

/* Social Feed Section */
.social-feed-wrapper {
  max-width: 600px;
  margin: 0 auto;
  padding: 0 16px 80px 16px;
}

.social-feed-header {
  text-align: center;
  margin-bottom: 32px;
}

.social-feed-header h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 28px;
  color: #0A1128;
  margin: 0 0 8px 0;
}

.social-feed-header p {
  color: #7A7A85;
  margin: 0;
}

.social-feed-loading {
  text-align: center;
  color: #A0A0AB;
  padding: 40px;
}

/* Social Card */
.social-post-card {
  background-color: #FFFFFF;
  border-radius: 20px;
  border: 1px solid #F3EDFA;
  box-shadow: 0 8px 24px rgba(91, 58, 143, 0.03);
  margin-bottom: 24px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.social-post-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
}

.post-user-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.post-user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  background-color: #F8F9FA;
}

.post-user-meta {
  display: flex;
  flex-direction: column;
}

.post-user-name {
  font-size: 14px;
  font-weight: 700;
  color: #1A1A1A;
}

.post-user-handle {
  font-size: 12px;
  color: #7A7A85;
}

.post-place-tag-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  background-color: #FAF6FF;
  border: 1px solid #EFE5FC;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  color: #5B3A8F;
  cursor: pointer;
  transition: all 0.2s;
}
.post-place-tag-badge:hover {
  background-color: #5B3A8F;
  color: #FFFFFF;
}

.post-image-container {
  width: 100%;
  aspect-ratio: 1.2 / 1;
}

.post-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.social-post-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 16px 8px 16px;
}

.post-action-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: #4A4A57;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  padding: 4px;
  transition: color 0.2s;
}
.post-action-btn:hover {
  color: #5B3A8F;
}

.post-action-btn svg {
  width: 20px;
  height: 20px;
}

.social-post-content {
  padding: 0 16px 16px 16px;
  font-size: 14px;
  line-height: 1.5;
  color: #333333;
}

.post-caption-text {
  margin: 0;
}

.post-caption-text strong {
  margin-right: 6px;
}

.post-timestamp {
  display: block;
  font-size: 11px;
  color: #A0A0AB;
  margin-top: 8px;
}

/* Toast alert */
.toast-alert {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10000;
  animation: toastSlideUp 0.3s ease;
}

.toast-content {
  background: linear-gradient(135deg, #5B3A8F, #4A2E73);
  color: #FFFFFF;
  padding: 12px 24px;
  border-radius: 30px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 8px 24px rgba(91, 58, 143, 0.3);
  font-size: 14px;
  font-weight: 600;
}

.toast-icon {
  stroke: #FFFFFF;
}

/* Keyframes */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

@keyframes toastSlideUp {
  from { transform: translate(-50%, 40px); opacity: 0; }
  to { transform: translate(-50%, 0); opacity: 1; }
}

/* Responsive adjustment for Mobile Header Create button */
@media (max-width: 767px) {
  #nav-create-post-btn {
    display: none !important;
  }
}

/* Asymmetric Desktop Photo Grid */
.detail-photo-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 8px;
  height: 420px;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 28px;
}

.detail-photo-grid .hero-tile {
  grid-column: 1 / 2;
  grid-row: 1 / 3;
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: zoom-in;
  transition: transform 0.3s ease;
}

.detail-photo-grid .sub-tile {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: zoom-in;
  transition: transform 0.3s ease;
}

.detail-photo-grid .hero-tile:hover,
.detail-photo-grid .sub-tile:hover {
  transform: scale(1.02);
}

.detail-photo-grid .last-tile-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
}

.detail-photo-grid .last-tile-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-photo-grid .show-all-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s ease;
  backdrop-filter: blur(2px);
}

.detail-photo-grid .show-all-overlay:hover {
  background: rgba(0, 0, 0, 0.65);
}

/* Mobile Pinterest Hero Container */
.mobile-detail-hero-container {
  position: relative;
  width: 100%;
  height: 280px;
  border-radius: 16px;
  overflow: visible; /* To let avatar break the boundary */
  margin-bottom: 16px;
  background: #1a1e24;
}

.mobile-detail-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
}

.mobile-detail-source-badge {
  position: absolute;
  bottom: -16px;
  right: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-color);
  box-shadow: 0 4px 14px rgba(0,0,0,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  border: 3px solid var(--card-bg);
  overflow: hidden;
}

.mobile-detail-source-badge img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mobile-detail-thumbnails-row {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 8px 0 16px 0;
  margin-bottom: 8px;
  scrollbar-width: none;
}

.mobile-detail-thumbnails-row::-webkit-scrollbar {
  display: none;
}

.mobile-detail-thumbnails-row img {
  width: 90px;
  height: 90px;
  object-fit: cover;
  border-radius: 12px;
  flex-shrink: 0;
  cursor: pointer;
  border: 1px solid var(--border-color);
  transition: transform 0.2s ease;
}

.mobile-detail-thumbnails-row img:hover {
  transform: translateY(-2px);
}

/* Single combined info line */
.detail-info-line-combined {
  font-family: 'Inter', sans-serif !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  color: var(--text-secondary) !important;
  margin: 8px 0 16px 0;
  line-height: 1.5;
}

.detail-info-line-combined span.rating-star {
  color: var(--color-parrot-pink);
  margin-right: 2px;
}

/* Clean, plain-text description with no icon */
.detail-description-text-plain {
  font-family: 'Inter', sans-serif !important;
  font-size: 15px !important;
  line-height: 1.65 !important;
  color: var(--text-primary) !important;
  margin: 16px 0 24px 0;
  white-space: pre-line;
}

/* Locationcompact Address Line */
.detail-location-compact {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Inter', sans-serif !important;
  font-size: 14px !important;
  color: var(--text-secondary) !important;
  margin-top: 16px;
  padding: 12px 16px;
  background: var(--pill-bg);
  border-radius: 12px;
  border: 1px solid var(--border-color);
}

.detail-location-compact a.get-directions-btn {
  color: var(--color-liberty) !important;
  text-decoration: none !important;
  font-weight: 600 !important;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  transition: opacity 0.2s ease;
}

.detail-location-compact a.get-directions-btn:hover {
  opacity: 0.8;
}

/* Collapsible Map Accordion Styles */
.detail-maps-accordion {
  margin-top: 12px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  background: var(--pill-bg);
}

.maps-accordion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  cursor: pointer;
  font-family: 'Inter', sans-serif !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  color: var(--text-primary) !important;
  user-select: none;
  transition: background-color 0.2s ease;
}

.maps-accordion-header:hover {
  background-color: rgba(255, 255, 255, 0.02);
}

.maps-accordion-arrow {
  transition: transform 0.3s ease;
  font-size: 12px;
  color: var(--text-secondary);
}

.detail-maps-accordion.expanded .maps-accordion-arrow {
  transform: rotate(180deg);
}

.maps-accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.detail-maps-accordion.expanded .maps-accordion-content {
  max-height: 320px;
}

/* Actions Row - circular icon buttons */
.detail-actions-row {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.detail-action-btn-circular {
  width: 44px;
  height: 44px;
  border-radius: 50% !important;
  border: 1px solid var(--border-color) !important;
  background: var(--pill-bg) !important;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary) !important;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0 !important;
}

.detail-action-btn-circular:hover {
  border-color: var(--color-liberty) !important;
  color: var(--color-liberty) !important;
  transform: translateY(-2px);
  background: rgba(92, 99, 164, 0.08) !important;
}

.detail-action-btn-circular.active {
  border-color: var(--color-liberty) !important;
  color: var(--color-liberty) !important;
}

.detail-action-btn-circular.active.heart-btn svg {
  fill: var(--color-parrot-pink);
  stroke: var(--color-parrot-pink);
}

.detail-action-btn-circular.active.bookmark-btn svg {
  fill: var(--color-dark-vanilla);
  stroke: var(--color-dark-vanilla);
}

/* Lighter, Less Dominant Tab-Style Comments Header */
.detail-comments-tab-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
  padding: 12px 0;
  border-bottom: 2px solid var(--border-color);
  cursor: pointer;
  user-select: none;
  transition: border-color 0.2s ease;
}

.detail-comments-tab-toggle:hover {
  border-color: var(--color-liberty);
}

.detail-comments-tab-title {
  font-family: 'Inter', sans-serif !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  color: var(--text-primary) !important;
}

.detail-comments-tab-count {
  font-size: 12px !important;
  background: var(--border-color);
  color: var(--text-secondary);
  padding: 2px 8px;
  border-radius: 12px;
  font-weight: 600;
}

.detail-comments-tab-arrow {
  margin-left: auto;
  font-size: 11px;
  color: var(--text-secondary);
  transition: transform 0.3s ease;
}

.detail-comments-tab-toggle.expanded .detail-comments-tab-arrow {
  transform: rotate(180deg);
}

/* VibeBadge small rounded chips */
.vibe-badge-pill {
  background-color: var(--pill-bg) !important;
  color: var(--color-lavender-purple) !important;
  border: 1px solid var(--border-color);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px !important;
  font-weight: 600;
  transition: all 0.2s ease;
}

.vibe-badge-pill:hover {
  border-color: var(--color-lavender-purple);
  background-color: rgba(139, 127, 172, 0.05) !important;
}

/* Safeguard: Hide category tag badges on place cards */
.card-pill-badge, .card-badge {
  display: none !important;
}

/* ==========================================================================
   DESKTOP PLACE DETAIL REDESIGN (MANROPE & INTER)
   ========================================================================== */

@media (min-width: 768px) {
  /* Force clean solid white background throughout the Place Detail page on desktop */
  #place-detail-view {
    background: #FFFFFF !important;
    background-color: #FFFFFF !important;
    --bg-color: #FFFFFF !important;
    --card-bg: #FFFFFF !important;
    --border-color: #E5E7EB !important;
    --text-primary: #3D405B !important;      /* navy */
    --text-secondary: #5F6368 !important;    /* dark grey */
    --pill-bg: #F5F5F5 !important;
    color: #3D405B !important;
    padding-top: 24px !important;
  }

  /* Force headers inside place detail view to be navy */
  #place-detail-view h1,
  #place-detail-view h2,
  #place-detail-view h3,
  #place-detail-view h4 {
    color: #3D405B !important;
  }
  /* Center Column Wrapper */
  .desktop-detail-centered-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    flex-direction: column;
    gap: 32px;
    box-sizing: border-box;
  }

  /* Photo Grid Layout (1 large on left + 2 stacked on right) */
  .desktop-detail-photo-grid {
    display: flex;
    gap: 12px;
    height: 380px;
    width: 100%;
  }

  .desktop-detail-photo-left {
    width: 60%;
    height: 100%;
    overflow: hidden;
    border-radius: 5% !important;
  }

  .desktop-detail-photo-right {
    width: 40%;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .desktop-detail-photo-right-tile {
    height: calc(50% - 6px);
    overflow: hidden;
    border-radius: 5% !important;
  }

  .desktop-detail-photo-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    border-radius: 5% !important;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease;
  }

  .desktop-detail-photo-grid img:hover {
    transform: scale(1.03);
    opacity: 0.95;
  }

  /* Title Row */
  .desktop-detail-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
  }

  .desktop-detail-title {
    font-family: 'Manrope', sans-serif !important;
    font-size: 32px !important;
    font-weight: 700 !important;
    color: var(--text-primary) !important;
    margin: 0 !important;
    line-height: 1.2 !important;
    text-align: left !important;
  }

  .desktop-detail-rating-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: var(--card-bg);
    border: 1.5px solid var(--border-color);
    padding: 10px 16px;
    border-radius: 8% !important;
    flex-shrink: 0;
    min-width: 80px;
    box-shadow: var(--shadow-premium);
  }

  .desktop-detail-rating-value-row {
    display: flex;
    align-items: center;
    gap: 4px;
    font-family: 'Inter', sans-serif !important;
    font-weight: 700;
    font-size: 20px;
    color: var(--text-primary);
  }

  .desktop-detail-rating-value-row svg {
    width: 18px;
    height: 18px;
    fill: #FFB300;
    color: #FFB300;
  }

  .desktop-detail-rating-count-label {
    font-family: 'Inter', sans-serif !important;
    font-size: 11px;
    color: var(--text-secondary);
    margin-top: 2px;
  }

  /* Meta Info Lines */
  .desktop-detail-meta-stack {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: -16px;
  }

  .desktop-detail-meta-line {
    font-family: 'Inter', sans-serif !important;
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .desktop-detail-meta-line .status-open {
    color: #2E7D32;
    font-weight: 600;
  }

  .desktop-detail-meta-line .status-closed {
    color: #C62828;
    font-weight: 600;
  }

  /* Button Pills */
  .desktop-detail-button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: -8px;
  }

  .desktop-detail-pill-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 8% !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    box-sizing: border-box;
    transition: transform 0.1s ease, background-color 0.2s ease, border-color 0.2s ease;
  }

  .desktop-detail-pill-btn:active {
    transform: scale(0.96);
  }

  .desktop-detail-pill-btn.solid-dark {
    background-color: var(--text-primary);
    color: var(--bg-color);
    border: none;
  }

  .desktop-detail-pill-btn.solid-dark:hover {
    opacity: 0.9;
  }

  .desktop-detail-pill-btn.outlined {
    background-color: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
  }

  .desktop-detail-pill-btn.outlined:hover {
    background-color: rgba(255, 255, 255, 0.05);
  }

  .desktop-detail-pill-btn.been-here-active {
    background-color: #2E7D32 !important;
    color: #FFFFFF !important;
    border: none !important;
  }

  .desktop-detail-pill-btn svg {
    width: 16px;
    height: 16px;
  }

  .desktop-detail-divider {
    height: 1px;
    background-color: var(--border-color);
    border: none;
    margin: 8px 0;
  }

  /* Section Title */
  .desktop-detail-section-title {
    font-family: 'Manrope', sans-serif !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    color: var(--text-primary) !important;
    margin: 0 0 16px 0 !important;
  }

  /* Category Row */
  .desktop-detail-category-row {
    display: flex;
    align-items: center;
    margin-bottom: 0px;
  }

  .desktop-detail-category-badge {
    background-color: rgba(224, 122, 95, 0.08) !important;
    color: #E07A5F !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 13px !important;
    font-weight: 700 !important; /* Bold */
    padding: 12px 18px !important; /* Matches facilities pill size */
    border: 1.5px solid #E07A5F !important; /* Bounded border */
    border-radius: 8% !important; /* Strict 8% radius */
    display: inline-flex;
    align-items: center;
  }

  .desktop-detail-summary-text {
    font-family: 'Inter', sans-serif !important;
    font-size: 15px !important;
    line-height: 1.6 !important;
    color: var(--text-secondary) !important;
    margin: 0 0 24px 0 !important;
  }

  /* Facilities Grid */
  .desktop-detail-facilities-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .desktop-detail-facility-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background-color: var(--card-bg);
    border-radius: 8% !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
  }

  .desktop-detail-facility-pill svg {
    width: 18px;
    height: 18px;
    color: #E07A5F; /* terracotta */
    flex-shrink: 0;
  }

  /* Reviews header & link */
  .desktop-detail-reviews-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
  }

  .desktop-detail-reviews-header-link {
    font-family: 'Inter', sans-serif !important;
    font-size: 14px;
    color: #E07A5F;
    font-weight: 600;
    text-decoration: none;
  }

  .desktop-detail-reviews-header-link:hover {
    text-decoration: underline;
  }

  /* Rating Overview Row */
  .desktop-detail-rating-overview-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
  }

  .desktop-detail-overall-rating-badge {
    background-color: #2E7D32;
    color: #FFFFFF;
    padding: 8px 16px;
    border-radius: 8% !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 16px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
  }

  .desktop-detail-subscore-container {
    display: flex;
    align-items: center;
    gap: 16px;
  }

  .desktop-detail-subscore-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: 'Inter', sans-serif !important;
    font-size: 13px;
    color: var(--text-secondary);
  }

  .desktop-detail-subscore-label {
    font-weight: 500;
  }

  .desktop-detail-subscore-val {
    font-weight: 700;
    color: var(--text-primary);
  }

  .desktop-detail-subscore-divider {
    width: 1px;
    height: 16px;
    background-color: var(--border-color);
  }

  /* Review Cards */
  .desktop-detail-reviews-list {
    display: flex !important;
    flex-direction: row !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory !important;
    gap: 16px !important;
    width: 100% !important;
    padding-bottom: 12px !important;
    scroll-behavior: smooth;
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
  }

  .desktop-detail-reviews-list::-webkit-scrollbar {
    display: none; /* Chrome, Safari and Opera */
  }

  .desktop-detail-review-card {
    flex: 0 0 85% !important; /* Peek next card from the right */
    scroll-snap-align: start !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 8% !important; /* Strict 8% corner radius */
    padding: 18px;
    box-sizing: border-box;
    background-color: var(--card-bg) !important;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04) !important;
  }

  .desktop-detail-reviewer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .desktop-detail-reviewer-info {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .desktop-detail-reviewer-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    font-weight: 700;
    font-size: 14px;
  }

  .desktop-detail-reviewer-name-col {
    display: flex;
    flex-direction: column;
  }

  .desktop-detail-reviewer-name {
    font-family: 'Inter', sans-serif !important;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
  }

  .desktop-detail-reviewer-time {
    font-family: 'Inter', sans-serif !important;
    font-size: 12px;
    color: var(--text-secondary);
  }

  .desktop-detail-review-rating-badge {
    background-color: rgba(46, 125, 50, 0.1);
    color: #2E7D32;
    font-family: 'Inter', sans-serif !important;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 8% !important;
    display: inline-flex;
    align-items: center;
    gap: 4px;
  }

  .desktop-detail-review-text {
    font-family: 'Inter', sans-serif !important;
    font-size: 13.5px;
    line-height: 1.55;
    color: var(--text-secondary);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  /* Location Map Box */
  .desktop-detail-map-box {
    width: 100%;
    border-radius: 8% !important;
    overflow: hidden;
    border: 1px solid var(--border-color);
  }

  .desktop-detail-map-box iframe {
    width: 100%;
    height: 100%;
    border: none;
  }

  /* Suggestion Cards Overrides specifically under desktop layout container */
  .desktop-detail-layout .collection-place-card .card-place-name {
    font-family: 'Manrope', sans-serif !important;
  }
  .desktop-detail-layout .collection-place-card .card-location-text,
  .desktop-detail-layout .collection-place-card .card-rating-row {
    font-family: 'Inter', sans-serif !important;
  }
}

/* ==========================================================================
   PHOTO LIGHTBOX SWIPER MODAL (GLOBAL STYLES)
   ========================================================================== */
.desktop-photo-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
}

.desktop-photo-lightbox.show {
  display: flex;
}

.lightbox-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(11, 13, 18, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.lightbox-content {
  position: relative;
  width: 90%;
  max-width: 1000px;
  height: 85%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.lightbox-close-btn {
  position: absolute;
  top: -20px;
  right: 0px;
  background: none;
  border: none;
  color: #FFFFFF;
  font-size: 40px;
  cursor: pointer;
  transition: transform 0.2s ease;
  z-index: 10;
  line-height: 1;
}

.lightbox-close-btn:hover {
  transform: scale(1.1);
}

.lightbox-image-container {
  position: relative;
  width: 100%;
  height: 90%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-active-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 5% !important;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}

.lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
  width: 44px;
  height: 44px;
  border-radius: 8% !important;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Inter', sans-serif;
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.2s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.lightbox-arrow:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-50%) scale(1.05);
}

.lightbox-arrow.prev { left: 16px; }
.lightbox-arrow.next { right: 16px; }

.lightbox-dots {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  background: rgba(255, 255, 255, 0.1);
  padding: 6px 12px;
  border-radius: 8% !important;
  backdrop-filter: blur(8px);
}

.lightbox-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.lightbox-dot.active {
  background: #FFFFFF;
  transform: scale(1.2);
}

/* ==========================================================================
   REVIEWS MODAL OVERLAY (GLOBAL STYLES)
   ========================================================================== */
.desktop-reviews-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
}

.desktop-reviews-modal-overlay.show {
  display: flex;
}

.desktop-reviews-modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(11, 13, 18, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.desktop-reviews-modal-container {
  position: relative;
  width: 90%;
  max-width: 700px;
  max-height: 80vh;
  background-color: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: 8% !important;
  display: flex;
  flex-direction: column;
  z-index: 2;
  box-shadow: var(--shadow-premium);
  overflow: hidden;
}

.desktop-reviews-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-color);
}

.desktop-reviews-modal-title {
  font-family: 'Manrope', sans-serif !important;
  font-size: 20px !important;
  font-weight: 700 !important;
  color: var(--text-primary) !important;
  margin: 0 !important;
}

.desktop-reviews-modal-close-btn {
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 32px;
  cursor: pointer;
  line-height: 1;
  transition: transform 0.2s ease;
  padding: 0;
}

.desktop-reviews-modal-close-btn:hover {
  transform: scale(1.1);
}

.desktop-reviews-modal-content {
  padding: 24px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.desktop-modal-review-card {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.desktop-modal-review-card:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

@media (min-width: 768px) {
  /* Back Button Treatment */
  .detail-back-button {
    font-family: 'Inter', sans-serif !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    color: #3D405B !important; /* Navy */
    background: transparent !important;
    border: 1.5px solid #E07A5F !important; /* Terracotta border */
    border-radius: 8% !important; /* Strict 8% corner radius */
    padding: 10px 18px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    cursor: pointer !important;
    transition: background-color 0.2s ease, transform 0.1s ease !important;
    box-shadow: none !important;
    margin-bottom: 24px !important;
  }
  
  .detail-back-button:hover {
    background-color: rgba(224, 122, 95, 0.08) !important; /* Terracotta tint hover */
  }

  .detail-back-button:active {
    transform: scale(0.96) !important;
  }
  
  .detail-back-button .back-arrow {
    color: #3D405B !important;
    font-weight: 700 !important;
  }

  /* Photo Grid Carousel wrapper */
  .desktop-detail-photo-carousel-wrapper {
    position: relative;
    width: 100%;
  }

  /* Carousel Arrow Controls */
  .desktop-photo-carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9) !important;
    border: 1px solid #E5E7EB !important;
    color: #3D405B !important;
    width: 44px;
    height: 44px;
    border-radius: 8% !important; /* Strict 8% corner radius */
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Inter', sans-serif;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  }

  .desktop-photo-carousel-arrow:hover {
    background: #E07A5F !important;
    color: #FFFFFF !important;
    border-color: #E07A5F !important;
  }

  .desktop-photo-carousel-arrow.prev {
    left: 16px;
  }

  .desktop-photo-carousel-arrow.next {
    right: 16px;
  }

  /* Carousel dots wrapper */
  .desktop-photo-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
  }

  .desktop-photo-carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #E5E7EB;
    cursor: pointer;
    transition: all 0.2s ease;
  }

  .desktop-photo-carousel-dot.active {
    background: #E07A5F;
    transform: scale(1.2);
  }

  /* Desktop Movie Detail Layout Override Styles */
  .desktop-movie-cast-row::-webkit-scrollbar {
    display: none;
  }
  .desktop-movie-cast-row {
    -ms-overflow-style: none;
    scrollbar-width: none;
  }
}

/* Hide place card carousel dots and navigation arrows */
.card-slider-arrows,
.card-slider-dots,
.card-nav-arrow,
.card-slider-arrow {
  display: none !important;
}