/* Crave - Luxury Minimalist Design System */
:root {
  /* Premium Color Palette */
  --brand-color: #1B4D3E;
  --brand-hover: #143D31;
  --accent-gold: #C5A572;
  --accent-gold-hover: #B39460;
  --text-primary: #1A1A1A;
  --text-secondary: #4A4A4A;
  --text-muted: #8A8A8A;
  --bg-primary: #FFFFFF;
  --bg-secondary: #F9F9F9;
  --bg-tertiary: #F0F0F0;
  --border-color: #E5E5E5;
  
  /* Premium Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 10px 40px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.12);
  --shadow-hover: 0 15px 50px rgba(0, 0, 0, 0.1);
  
  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
}

/* Typography */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 400;
  transition: background-color 0.3s ease, color 0.3s ease;
  background-color: #FFFFFF;
  color: var(--text-primary);
  line-height: 1.6;
}

h1, h2, h3, .brand-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 600;
  letter-spacing: -0.02em;
}

/* Dark Mode Styles */
body.dark-mode {
  background-color: #121212;
  color: #e0e0e0;
}

body.dark-mode .card {
  background-color: #1e1e1e;
  color: #e0e0e0;
  border-color: #333;
}

body.dark-mode .modal-content {
  background-color: #1e1e1e;
  color: #e0e0e0;
  border-color: #333;
}

body.dark-mode .text-muted {
  color: #aaaaaa !important;
}

body.dark-mode .input-group input,
body.dark-mode .input-group button,
body.dark-mode .form-control {
  background-color: #2d2d2d;
  color: #e0e0e0;
  border-color: #444;
}

body.dark-mode .btn-outline-primary,
body.dark-mode .btn-outline-info,
body.dark-mode .btn-outline-success,
body.dark-mode .btn-outline-warning,
body.dark-mode .btn-outline-danger,
body.dark-mode .btn-outline-dark,
body.dark-mode .btn-outline-purple {
  color: #e0e0e0;
  border-color: #606060;
}

/* ==================== LAYOUT CONTAINERS ==================== */
.content-container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header area wrapper - seamless white canvas */
.content-container:first-of-type {
  padding-bottom: 20px;
  background: transparent;
}

/* Map section with soft shadow separator */
.map-section {
  width: 100%;
  box-shadow: inset 0 4px 20px rgba(0, 0, 0, 0.03);
}

body.dark-mode .map-section {
  box-shadow: inset 0 4px 20px rgba(0, 0, 0, 0.2);
}

/* ==================== CRAVE HEADER ==================== */
.crave-header {
  padding: 24px 0 20px;
  width: 100%;
  background: transparent;
}

.brand-title {
  font-size: 3.5rem;
  color: var(--text-primary);
  margin-bottom: 4px;
  letter-spacing: -0.03em;
}

.brand-tagline {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 300;
  letter-spacing: 0.02em;
}

body.dark-mode .brand-title {
  color: #fff;
}

body.dark-mode .crave-header {
  background: transparent;
}

body.dark-mode .brand-tagline {
  color: #888;
}

/* Dark mode body background */
body.dark-mode {
  background-color: #121212;
}

/* ==================== UNIFIED SEARCH BAR ==================== */
.unified-search-bar {
  background: var(--bg-primary);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-md);
  padding: 6px;
  border: 1px solid var(--border-color);
}

.search-inputs {
  display: flex;
  align-items: center;
}

.search-field {
  display: flex;
  align-items: center;
  padding: 12px 20px;
  flex: 1;
}

.search-field i {
  color: var(--text-muted);
  margin-right: 12px;
  font-size: 14px;
}

.search-field input {
  border: none;
  background: transparent;
  font-size: 15px;
  color: var(--text-primary);
  width: 100%;
  outline: none;
  font-family: 'Inter', sans-serif;
}

.search-field input::placeholder {
  color: var(--text-muted);
}

.search-divider {
  width: 1px;
  height: 28px;
  background: var(--border-color);
}

.search-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--brand-color);
  border: none;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-left: 8px;
}

.search-btn:hover {
  background: var(--brand-hover);
  transform: scale(1.05);
}

body.dark-mode .unified-search-bar {
  background: #1e1e1e;
  border-color: #333;
}

body.dark-mode .search-field input {
  background: #2c2c2c;
  color: #e0e0e0;
}

body.dark-mode .search-field input::placeholder {
  color: #888;
}

body.dark-mode .search-btn {
  background: var(--brand-accent);
}

/* ==================== ACTION BUTTONS ==================== */
.header-action-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
  flex-wrap: wrap;
}

/* Legacy support - modal action buttons row (different from header) */
.action-buttons-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.action-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 500;
  border: 1px solid var(--border-color);
  background: var(--bg-primary);
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.action-btn:hover {
  background: var(--bg-tertiary);
  border-color: var(--text-primary);
}

.action-btn i {
  font-size: 14px;
}

.count-badge {
  background: var(--brand-color);
  color: white;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: var(--radius-full);
  margin-left: 4px;
}

.dark-mode-toggle {
  display: flex;
  align-items: center;
}

.dark-mode-toggle input {
  display: none;
}

.dark-mode-toggle label {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.dark-mode-toggle label:hover {
  background: var(--bg-tertiary);
}

.dark-mode-toggle label i {
  color: var(--text-secondary);
}

body.dark-mode .action-btn {
  background: #1e1e1e;
  border-color: #444;
  color: #e0e0e0;
}

body.dark-mode .dark-mode-toggle label {
  background: #1e1e1e;
  border-color: #444;
}

body.dark-mode .dark-mode-toggle label i {
  color: #ffc107;
}

/* ==================== FILTERS PANEL ==================== */
.search-section {
  max-width: 800px;
  margin: 0 auto;
  padding-bottom: 16px;
  background: transparent;
}

.filters-section {
  max-width: 600px;
  margin: 0 auto;
  background: transparent;
}

.categories-section {
  width: 100%;
}

.results-header {
  width: 100%;
}

/* Results section below map */
.content-container.results-section {
  padding-top: 30px;
  background: #FAFAFA;
}

.filters-card {
  background: var(--bg-primary);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-md);
}

.filter-group {
  margin-bottom: 20px;
}

.filter-group:last-child {
  margin-bottom: 0;
}

.filter-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 12px;
  display: block;
}

.premium-slider {
  width: 100%;
  height: 4px;
  border-radius: 2px;
  background: var(--bg-tertiary);
  outline: none;
  -webkit-appearance: none;
}

.premium-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--brand-color);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.slider-labels {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 8px;
}

.filter-checkbox {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  font-size: 14px;
}

.filter-checkbox input {
  width: 20px;
  height: 20px;
  accent-color: var(--brand-color);
}

body.dark-mode .filters-card {
  background: #1e1e1e;
}

/* ==================== WEATHER PILL (Glassmorphism) ==================== */
.weather-pill {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  background: #ffffff;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 50px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
}

.weather-pill img {
  width: 24px;
  height: 24px;
}

#weather-desc-mini {
  color: var(--text-secondary);
  font-weight: 400;
}

body.dark-mode .weather-pill {
  background: rgba(30, 30, 30, 0.85);
  color: #e0e0e0;
}

/* ==================== MAP FLOATING BUTTONS ==================== */
.map-float-btn {
  position: absolute;
  z-index: 5;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: none;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  color: var(--text-secondary);
}

.map-float-btn:hover {
  background: var(--bg-tertiary);
  transform: scale(1.05);
}

/* Legal Link on Map */
.legal-link {
  position: absolute;
  bottom: 8px;
  right: 12px;
  z-index: 5;
  font-size: 11px;
  color: #888;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.85);
  padding: 4px 8px;
  border-radius: 4px;
  transition: color 0.2s ease;
}

.legal-link:hover {
  color: #555;
  text-decoration: underline;
}

body.dark-mode .legal-link {
  background: rgba(30, 30, 30, 0.85);
  color: #999;
}

body.dark-mode .legal-link:hover {
  color: #ccc;
}

/* Legal Modal */
.legal-modal {
  background: #fff;
  color: #333;
}

.legal-modal .modal-header {
  border-bottom: 1px solid #eee;
}

.legal-modal .modal-body h6 {
  font-weight: 600;
  margin-top: 16px;
  margin-bottom: 8px;
  color: #222;
}

.legal-modal .modal-body h6:first-child {
  margin-top: 0;
}

.legal-modal .modal-body p {
  font-size: 14px;
  line-height: 1.6;
  color: #555;
  margin-bottom: 12px;
}

.legal-modal .modal-footer {
  border-top: 1px solid #eee;
}

body.dark-mode .legal-modal {
  background: #1e1e1e;
  color: #e0e0e0;
}

body.dark-mode .legal-modal .modal-header,
body.dark-mode .legal-modal .modal-footer {
  border-color: #333;
}

body.dark-mode .legal-modal .modal-body h6 {
  color: #e0e0e0;
}

body.dark-mode .legal-modal .modal-body p {
  color: #bbb;
}


/* Modern Map Container */
#map {
  height: 100%;
  width: 100%;
  border-radius: 0;
  margin-bottom: 0;
  box-shadow: none;
  position: absolute !important;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  background-color: #f0f0f0;
}

#map-container {
  width: 100%;
  height: 60vh;
  min-height: 500px;
  position: relative;
  margin-bottom: 0;
  border: none;
  border-radius: 0;
  overflow: hidden;
  box-shadow: none;
}

/* Modern Category Pills - Horizontal Scrollable */
.categories-section {
  position: sticky;
  top: 0;
  z-index: 100;
  background: transparent;
  padding: 12px 0;
  margin-top: 0 !important;
}

.category-select {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  gap: 10px;
  padding: 8px 0;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-mask-image: linear-gradient(to right, black 85%, transparent 100%);
  mask-image: linear-gradient(to right, black 85%, transparent 100%);
}

.category-select::-webkit-scrollbar {
  display: none;
}

.category-btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid #e0e0e0;
  background: #fff;
  color: #333;
  transition: all 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.category-btn:hover {
  background: #f5f5f5;
  border-color: #ccc;
}

.category-btn.active {
  background: #1B4D3E;
  color: #fff;
  border-color: #1B4D3E;
}

/* Purple active state for Hotels button */
.category-btn.hotel-active {
  background: #8E44AD !important;
  color: #fff !important;
  border-color: #8E44AD !important;
}

.category-btn.hotel-active:hover {
  background: #7D3C98 !important;
  border-color: #7D3C98 !important;
}

.category-btn i {
  font-size: 14px;
  color: #888;
  transition: color 0.2s ease;
}

.category-btn.active i,
.category-btn.hotel-active i {
  color: #fff;
}

/* Filter divider between cuisine and vibe filters */
.filter-divider {
  display: inline-block;
  width: 1px;
  height: 28px;
  background: #ddd;
  margin: 0 8px;
  vertical-align: middle;
}

/* Vibe filter buttons with subtle purple border */
.vibe-btn {
  border-color: #E8DAEF !important;
}

.vibe-btn i {
  color: #9B59B6;
}

.vibe-btn:hover {
  background: #F5EEF8;
  border-color: #D2B4DE !important;
}

.vibe-btn.active {
  background: #8E44AD !important;
  border-color: #8E44AD !important;
  color: #fff !important;
}

.vibe-btn.active i {
  color: #fff;
}

/* ==================== SUB-FILTER DRILL-DOWN CONTAINER ==================== */
.sub-filter-container {
  display: none;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 8px;
  padding: 10px 0;
  margin-top: 0;
  background: #F9F9F9;
  border-radius: 12px;
  padding-left: 12px;
  padding-right: 12px;
  max-height: 0;
  opacity: 0;
  transition: all 0.3s ease;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.sub-filter-container::-webkit-scrollbar {
  display: none;
}

.sub-filter-container.visible {
  display: flex;
  max-height: 60px;
  opacity: 1;
}

.sub-filter-pill {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 500;
  height: 28px;
  border: 1px solid #bbb;
  background: #fff;
  color: #555;
  transition: all 0.2s ease;
  white-space: nowrap;
  cursor: pointer;
}

.sub-filter-pill:hover {
  background: #f0f0f0;
  border-color: #999;
}

.sub-filter-pill.active {
  background: #1A1A1A;
  color: #fff;
  border-color: #1A1A1A;
}

body.dark-mode .sub-filter-container {
  background: #2a2a2a;
}

body.dark-mode .sub-filter-pill {
  background: #333;
  color: #ccc;
  border-color: #555;
}

body.dark-mode .sub-filter-pill:hover {
  background: #444;
  border-color: #666;
}

body.dark-mode .sub-filter-pill.active {
  background: #fff;
  color: #1A1A1A;
  border-color: #fff;
}

/* Price Filter Pills - Distinct square style */
.price-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  margin: 3px;
  background: #fff;
  border: 2px solid #ddd;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  color: #666;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: 'Inter', system-ui, sans-serif;
  letter-spacing: 0.5px;
}

.price-pill:hover {
  background: #f5f5f5;
  border-color: #aaa;
  color: #333;
}

.price-pill.active {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  color: #fff;
  box-shadow: 0 2px 8px rgba(27, 77, 62, 0.3);
}

.price-pill.active:hover {
  background: #164036;
  border-color: #164036;
}

/* Dark mode for price pills */
body.dark-mode .price-pill {
  background: #2a2a2a;
  border-color: #444;
  color: #bbb;
}

body.dark-mode .price-pill:hover {
  background: #3a3a3a;
  border-color: #666;
  color: #fff;
}

body.dark-mode .price-pill.active {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  color: #fff;
}

.category-btn:first-child {
  margin-left: 0;
}

.category-btn:last-child {
  margin-right: 0;
}

/* ==================== PREMIUM PLACE CARDS ==================== */
.place-card {
  margin-bottom: 28px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-primary);
  box-shadow: var(--shadow-md);
  cursor: pointer;
  position: relative;
  border: none;
}

.place-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.place-card .card {
  border: none;
  border-radius: var(--radius-md);
  background: transparent;
}

.place-card .card-body {
  padding: 20px 24px;
}

/* Floating Favorite Heart Button */
.place-card .card-number-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #1B4D3E;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  border: 2px solid #fff;
}

.place-card .favorite-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  padding: 0;
}

.place-card .favorite-btn:hover {
  transform: scale(1.1);
  background: white;
}

.place-card .favorite-btn i {
  font-size: 16px;
  color: var(--brand-color);
}

.place-card .favorite-btn.btn-danger {
  background: var(--brand-color);
}

.place-card .favorite-btn.btn-danger i {
  color: white;
}

.place-image {
  height: 200px;
  object-fit: cover;
  width: 100%;
  transition: transform 0.4s ease;
}

.place-card:hover .place-image {
  transform: scale(1.02);
}

/* Card Image Wrapper and Thumbnail */
.card-img-wrapper {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
  cursor: pointer;
}

.card-img-wrapper .card-img-top {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.place-card:hover .card-img-wrapper .card-img-top {
  transform: scale(1.05);
}

/* Photo Attribution Overlay */
.photo-attribution {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 4px 8px;
  background: rgba(0, 0, 0, 0.6);
  color: rgba(255, 255, 255, 0.8);
  font-size: 10px;
  text-align: right;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.photo-attribution a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
}

.photo-attribution a:hover {
  text-decoration: underline;
}

.card-img-placeholder {
  width: 100%;
  height: 220px;
  background: linear-gradient(135deg, #f5f7fa 0%, #e4e8ec 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.card-img-placeholder i {
  font-size: 32px;
  color: #aaa;
}

/* Results Count */
.results-count {
  font-size: 15px;
  color: var(--text-primary);
}

/* Sort Controls */
.sort-controls select {
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  padding: 6px 12px;
  font-size: 14px;
}

body.dark-mode .sort-controls select {
  background: #2d2d2d;
  color: #e0e0e0;
  border-color: #444;
}

body.dark-mode .card-img-placeholder {
  background: linear-gradient(135deg, #2d2d2d 0%, #1e1e1e 100%);
}

body.dark-mode .card-img-placeholder i {
  color: #666;
}

.star-rating {
  color: #FFC107;
  position: relative;
}

.star-rating .badge {
  font-size: 0.75rem;
  vertical-align: middle;
}

.star-rating .badge i {
  margin-right: 3px;
}

/* TripAdvisor Ratings Styles */
.ratings-container {
  border-radius: 8px;
  padding: 15px;
  background-color: #f9f9fa;
  margin-bottom: 20px;
}

.detailed-ratings h6 {
  margin-bottom: 12px;
  color: #495057;
}

.rating-bars {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rating-bar {
  display: grid;
  grid-template-columns: 80px 1fr 50px;
  align-items: center;
  gap: 10px;
}

.rating-label {
  font-size: 0.8rem;
  color: #6c757d;
}

.rating-count {
  font-size: 0.8rem;
  text-align: right;
  color: #6c757d;
}

.progress {
  height: 8px;
  background-color: #e9ecef;
}

/* Adjusted color for TripAdvisor circles */
.text-success {
  color: #00aa6c !important;
}

.price-level {
  color: #28a745;
}

#loading-indicator {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

body.dark-mode #loading-indicator {
  background-color: rgba(0, 0, 0, 0.7);
}

.modal-img {
  width: 100%;
  max-height: 300px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
}

/* Photo carousel styles */
/* Using Bootstrap carousel with customizations */
#place-photos {
  position: relative;
  margin-bottom: 20px;
  border-radius: 8px;
  overflow: hidden;
}

#place-photos .carousel-item {
  height: 350px;
  background-color: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
}

#place-photos .carousel-item img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* Make carousel controls more visible */
.carousel-control-prev,
.carousel-control-next {
  width: 50px;
  height: 50px;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  margin: 0 15px;
  opacity: 0.8;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  background: rgba(0, 0, 0, 0.8);
  opacity: 1;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  width: 24px;
  height: 24px;
}

.carousel-indicator-custom {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  border-radius: 20px;
  padding: 5px 10px;
  font-size: 12px;
  z-index: 10;
}

.thumbnail-container {
  display: flex;
  overflow-x: auto;
  gap: 10px;
  padding: 10px 0;
}

.thumbnail {
  width: 60px;
  height: 60px;
  border-radius: 4px;
  object-fit: cover;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s;
  border: 2px solid transparent;
}

.thumbnail:hover {
  opacity: 1;
}

.thumbnail.active {
  opacity: 1;
  border-color: #007bff;
}

.review {
  background-color: #f9f9f9;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 15px;
}

.review-author {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.review-author img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-right: 10px;
}

/* Reviews carousel styles */
.reviews-carousel {
  position: relative;
  margin-bottom: 20px;
  padding: 0 30px;
}

.reviews-carousel .slick-prev,
.reviews-carousel .slick-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #1B4D3E;
  color: white;
  border: none;
  cursor: pointer;
  z-index: 10;
  display: flex !important;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: all 0.2s ease;
}

.reviews-carousel .slick-prev:hover,
.reviews-carousel .slick-next:hover {
  background: #143D31;
  transform: translateY(-50%) scale(1.1);
}

.reviews-carousel .slick-prev {
  left: -5px;
}

.reviews-carousel .slick-next {
  right: -5px;
}

body.dark-mode .reviews-carousel .slick-prev,
body.dark-mode .reviews-carousel .slick-next {
  background: #1B4D3E;
}

body.dark-mode .reviews-carousel .slick-prev:hover,
body.dark-mode .reviews-carousel .slick-next:hover {
  background: #2a6b54;
}

.reviews-container {
  overflow: hidden;
  position: relative;
}

.reviews-slide {
  width: 100%;
  display: none;
}

.reviews-slide.active {
  display: block;
}

.reviews-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: background 0.2s;
  font-size: 24px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.reviews-nav:hover {
  background: rgba(0, 0, 0, 0.8);
}

.reviews-prev {
  left: 10px;
}

.reviews-next {
  right: 10px;
}

.reviews-counter {
  text-align: center;
  padding: 5px 0;
  font-size: 12px;
  color: #6c757d;
}

.photo-gallery {
  margin-top: 20px;
}

.photo-gallery img {
  height: 100px;
  object-fit: cover;
  border-radius: 5px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: opacity 0.2s;
}

.photo-gallery img:hover {
  opacity: 0.8;
}

.sort-indicator {
  color: #6c757d;
  font-size: 0.9rem;
  padding: 5px 10px;
  background-color: #f8f9fa;
  border-radius: 4px;
  border-left: 3px solid #0d6efd;
}

.sort-indicator i {
  color: #0d6efd;
  margin-right: 5px;
}

/* Search Radius Control Styles */
.search-radius-control {
  background-color: #f8f9fa;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 15px;
  border-left: 3px solid #0d6efd;
}

/* Customize the slider track */
.form-range::-webkit-slider-runnable-track {
  height: 8px;
  background-color: #e9ecef;
  border-radius: 4px;
}

.form-range::-moz-range-track {
  height: 8px;
  background-color: #e9ecef;
  border-radius: 4px;
}

/* Customize the slider thumb */
.form-range::-webkit-slider-thumb {
  background-color: #0d6efd;
  border: 2px solid white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.form-range::-moz-range-thumb {
  background-color: #0d6efd;
  border: 2px solid white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Nearby recommendations styles */
.nearby-recommendations {
  background-color: #f8f9fa;
  padding: 15px;
  border-radius: 8px;
  margin-top: 20px;
  border-left: 3px solid #0d6efd;
}

.recommendation-card {
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  border-radius: 5px;
  overflow: hidden;
}

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

.recommendation-image {
  height: 100px;
  object-fit: cover;
}

.recommendation-card .card-body {
  padding: 8px 10px;
}

.recommendation-card .card-title {
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Weather Component Styles */
#weather-container .card {
  background: linear-gradient(to right, #3498db, #2c3e50);
  border: none;
  color: white !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  display: block;
  visibility: visible !important;
  opacity: 1 !important;
}

#weather-container .card-body {
  position: relative;
  overflow: hidden;
}

#weather-container h5, 
#weather-container h3 {
  color: white !important;
  font-weight: 600;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

#weather-container p {
  color: rgba(255, 255, 255, 0.9) !important;
}

#weather-icon {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#weather-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(1px 1px 2px rgba(0, 0, 0, 0.3));
}

#weather-forecast {
  display: flex;
  overflow-x: auto;
  gap: 10px;
  padding: 5px 0;
}

.forecast-item {
  flex: 0 0 auto;
  text-align: center;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 6px;
  min-width: 60px;
}

.forecast-item img {
  width: 30px;
  height: 30px;
  object-fit: contain;
  filter: drop-shadow(1px 1px 1px rgba(0, 0, 0, 0.2));
}



.forecast-item .forecast-temp {
  font-weight: bold;
  font-size: 1.1rem;
}

.forecast-item .forecast-time {
  font-size: 0.8rem;
  opacity: 0.8;
}

#weather-details {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 10px 5px;
}

#weather-details i {
  font-size: 1.2rem;
}

@media (max-width: 768px) {
  .category-btn {
    font-size: 14px;
    padding: 5px;
  }
  
  #weather-container .card {
    margin-bottom: 15px;
  }
  
  #weather-icon img {
    width: 50px;
    height: 50px;
  }
  
  #weather-temp {
    font-size: 1.5rem;
  }
  
  /* Stack search inputs on mobile */
  .search-inputs {
    flex-direction: column;
  }
  
  .search-field {
    width: 100%;
    border-bottom: 1px solid var(--border-color);
  }
  
  .search-field:last-of-type {
    border-bottom: none;
  }
  
  .search-divider {
    display: none;
  }
  
  .unified-search-bar {
    border-radius: var(--radius-md);
  }
  
  /* Action buttons - space evenly on mobile */
  .action-buttons-row {
    justify-content: space-evenly;
    gap: 8px;
    padding: 0 8px;
  }
  
  .action-btn {
    padding: 8px 12px;
    font-size: 13px;
  }
  
  /* Compact mobile cards */
  .restaurant-card .card-img-top,
  .place-card .card-img-top {
    height: 180px;
  }
  
  .restaurant-card .card-body,
  .place-card .card-body {
    padding: 16px;
  }
  
  /* Brand title smaller on mobile */
  .brand-title {
    font-size: 2.5rem;
  }
  
  .brand-tagline {
    font-size: 0.9rem;
  }
}

/* Search This Area Button - White pill with brand green text */
.search-area-btn {
  position: absolute;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  font-weight: 600;
  font-size: 14px;
  padding: 10px 20px;
  border-radius: 25px;
  color: #1B4D3E;
  cursor: pointer;
  transition: all 0.2s ease;
}

.search-area-btn:hover {
  background: #ffffff;
  transform: translateX(-50%) scale(1.02);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.search-area-btn i {
  margin-right: 6px;
}

/* Map Control Buttons */
.map-control-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.map-control-btn:hover {
  background: rgba(255, 255, 255, 1);
  transform: scale(1.1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.map-control-btn.active {
  background: rgba(13, 110, 253, 0.9);
  color: white;
}

/* Glassmorphism for floating panels */
.search-radius-control {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

body.dark-mode .search-radius-control {
  background: rgba(30, 30, 30, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

body.dark-mode .search-area-btn {
  background: rgba(45, 45, 45, 0.95);
  color: #4CAF50;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

body.dark-mode .search-area-btn:hover {
  background: rgba(55, 55, 55, 0.98);
}

body.dark-mode .map-control-btn {
  background: rgba(45, 45, 45, 0.9);
  color: #e0e0e0;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

body.dark-mode .map-control-btn.active {
  background: rgba(13, 110, 253, 0.9);
  color: white;
}


/* Skeleton Loading */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton-pulse 1.5s ease-in-out infinite;
  border-radius: 4px;
}

body.dark-mode .skeleton {
  background: linear-gradient(90deg, #2d2d2d 25%, #3d3d3d 50%, #2d2d2d 75%);
  background-size: 200% 100%;
}

@keyframes skeleton-pulse {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.skeleton-card {
  pointer-events: none;
}

.skeleton-title {
  height: 24px;
  width: 70%;
  margin-bottom: 12px;
}

.skeleton-text {
  height: 16px;
  width: 100%;
  margin-bottom: 8px;
}

.skeleton-text.short {
  width: 60%;
}

.skeleton-badge {
  height: 22px;
  width: 70px;
  border-radius: 12px;
}

.skeleton-button {
  height: 32px;
  width: 90px;
  border-radius: 6px;
}

.skeleton-button.small {
  width: 40px;
}

/* Favorites Button */
.favorites-btn {
  position: relative;
}

.favorites-btn .badge {
  position: absolute;
  top: -5px;
  right: -5px;
  font-size: 10px;
  min-width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

/* Mobile Bottom Sheet */
@media (max-width: 768px) {
  body.mobile-sheet-active {
    overflow: hidden;
  }
  
  body.mobile-sheet-active #map-container {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    height: 100vh !important;
    z-index: 1;
    margin: 0;
    border: none;
    border-radius: 0;
  }
  
  body.mobile-sheet-active #map {
    height: 100% !important;
  }
  
  body.mobile-sheet-active .mobile-bottom-sheet {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 45vh;
    background: white;
    z-index: 1000;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    transition: height 0.3s ease;
  }
  
  body.mobile-sheet-active.dark-mode .mobile-bottom-sheet {
    background: #1e1e1e;
  }
  
  .mobile-bottom-sheet .sheet-handle {
    width: 40px;
    height: 5px;
    background: #ccc;
    border-radius: 3px;
    margin: 10px auto;
    cursor: grab;
  }
  
  body.dark-mode .mobile-bottom-sheet .sheet-handle {
    background: #555;
  }
  
  .mobile-bottom-sheet .sheet-content {
    height: calc(100% - 25px);
    overflow-y: auto;
    padding: 10px 15px;
    -webkit-overflow-scrolling: touch;
  }
  
  body.mobile-sheet-active .container {
    display: none;
  }
  
  body.mobile-sheet-active .mobile-search-bar {
    position: fixed;
    top: 10px;
    left: 10px;
    right: 10px;
    z-index: 1001;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 10px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.15);
  }
  
  body.mobile-sheet-active.dark-mode .mobile-search-bar {
    background: rgba(30, 30, 30, 0.95);
  }
  
  .mobile-bottom-sheet.expanded {
    height: 85vh;
  }
  
  .mobile-bottom-sheet.collapsed {
    height: 15vh;
  }
}

/* Card hover effects for favorites */
.card .btn-danger i.fas.fa-heart {
  color: white;
}

.card .btn-outline-danger i.far.fa-heart {
  color: #dc3545;
}

.card .btn-outline-danger:hover i.far.fa-heart {
  color: white;
}

/* Cluster Helper Tooltip */
.cluster-helper-tooltip {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(52, 73, 94, 0.95);
  color: white;
  padding: 12px 20px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  z-index: 1050;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 90%;
  animation: slideUp 0.3s ease-out;
}

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

.cluster-helper-tooltip .helper-icon {
  font-size: 24px;
}

.cluster-helper-tooltip .helper-text {
  flex: 1;
}

.cluster-helper-tooltip .helper-text strong {
  display: block;
  margin-bottom: 2px;
}

.cluster-helper-tooltip .helper-text small {
  opacity: 0.8;
}

.cluster-helper-tooltip .helper-dismiss {
  background: none;
  border: none;
  color: white;
  opacity: 0.7;
  cursor: pointer;
  padding: 4px 8px;
  font-size: 18px;
}

.cluster-helper-tooltip .helper-dismiss:hover {
  opacity: 1;
}

/* Cluster place list items */
.cluster-place-item:hover {
  background-color: #f8f9fa;
}

body.dark-mode .cluster-place-item:hover {
  background-color: #2d2d2d;
}

/* Share Toast Notification */
.share-toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #333;
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 2000;
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0;
  transition: all 0.3s ease;
}

.share-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.share-toast-success {
  background: #28a745;
}

.share-toast-error {
  background: #dc3545;
}

.share-toast i {
  font-size: 18px;
}

/* Share button styling */
#share-btn:hover {
  background: #f8f9fa;
  transform: scale(1.05);
}

body.dark-mode #share-btn {
  background: #444;
  color: white;
  border-color: #555;
}

body.dark-mode #share-btn:hover {
  background: #555;
}

/* ==================== MODERN UI TYPOGRAPHY & CARD ENHANCEMENTS ==================== */

/* Modern Card Typography */
.place-card .card-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
  line-height: 1.3;
}

.place-card .card-text {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

/* Smart snippet styling for search matches */
.place-card .smart-snippet {
  font-style: italic;
  color: #666;
  background: linear-gradient(to right, #f8f9fa, transparent);
  padding: 8px 12px;
  border-left: 3px solid #1B4D3E;
  border-radius: 0 4px 4px 0;
  font-size: 13px;
  line-height: 1.5;
}

.place-card .smart-snippet i {
  color: #1B4D3E;
  font-size: 10px;
  margin-right: 6px;
  opacity: 0.7;
}

body.dark-mode .place-card .smart-snippet {
  background: linear-gradient(to right, #2a2a2a, transparent);
  color: #aaa;
  border-left-color: #2E7D5A;
}

body.dark-mode .place-card .smart-snippet i {
  color: #2E7D5A;
}

/* Premium Date Spot Badge */
.premium-date-badge {
  background: linear-gradient(135deg, #8E44AD, #9B59B6) !important;
  color: #fff !important;
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  animation: premium-glow 2s ease-in-out infinite alternate;
}

.premium-date-badge i {
  font-size: 9px;
  margin-right: 4px;
}

@keyframes premium-glow {
  from {
    box-shadow: 0 0 5px rgba(142, 68, 173, 0.3);
  }
  to {
    box-shadow: 0 0 12px rgba(142, 68, 173, 0.6);
  }
}

body.dark-mode .premium-date-badge {
  background: linear-gradient(135deg, #9B59B6, #BB8FCE) !important;
}

/* Modern Rating Display */
.place-card .rating {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
}

.place-card .rating .rating-value {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
}

.place-card .rating .rating-stars {
  color: #FFB400;
  font-size: 13px;
}

.place-card .rating .rating-count {
  font-size: 13px;
  color: var(--text-secondary);
}

/* Modern Type Badges */
.place-card .type-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.place-card .type-badge {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: var(--bg-secondary);
  color: var(--text-secondary);
  font-weight: 500;
}

/* Modern Action Buttons */
.place-card .card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.place-card .action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background: var(--bg-primary);
  color: var(--text-secondary);
  transition: all 0.2s ease;
}

.place-card .action-btn:hover {
  background: var(--bg-secondary);
  color: var(--text-primary);
  border-color: var(--text-muted);
}

.place-card .view-details-btn {
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: var(--text-primary);
  color: white;
  border: none;
  font-weight: 500;
  font-size: 14px;
  transition: all 0.2s ease;
}

.place-card .view-details-btn:hover {
  background: #000;
  transform: translateY(-1px);
}

/* TripAdvisor On-Demand Rating Section */
.ta-rating-container {
  margin: 8px 0;
}

.ta-show-rating-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 4px;
  background: transparent;
  color: #00AA6C;
  border: 1px solid #00AA6C;
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ta-show-rating-btn:hover {
  background: #00AA6C;
  color: #fff;
}

.ta-show-rating-btn:disabled {
  opacity: 0.7;
  cursor: wait;
}

.ta-owl-icon {
  width: 16px;
  height: 16px;
}

.ta-icon {
  font-size: 16px;
  color: #00AA6C;
}

.ta-loading-spinner {
  display: inline-block;
  width: 12px;
  height: 12px;
  border: 2px solid #ddd;
  border-top-color: #00aa6c;
  border-radius: 50%;
  animation: ta-spin 0.8s linear infinite;
}

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

.ta-rating-display {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 4px;
  background: #fff;
  border: 1px solid #e0e0e0;
  text-decoration: none;
  color: #333;
  font-size: 12px;
  transition: all 0.2s ease;
}

.ta-rating-display:hover {
  background: #f9f9f9;
  border-color: #00aa6c;
  text-decoration: none;
  color: #333;
}

.ta-bubbles-img {
  height: 14px;
  width: auto;
}

.ta-rating-text {
  font-weight: 600;
  color: #00aa6c;
}

.ta-review-count {
  color: #666;
  font-size: 11px;
}

.ta-attribution {
  font-size: 10px;
  color: #999;
  margin-left: 4px;
}

.ta-no-data {
  background: linear-gradient(135deg, #00aa6c 0%, #00795c 100%);
  border: none;
  color: #fff;
  padding: 8px 14px;
  font-weight: 500;
  box-shadow: 0 2px 4px rgba(0, 170, 108, 0.2);
}

.ta-no-data:hover {
  background: linear-gradient(135deg, #00c47d 0%, #00aa6c 100%);
  color: #fff;
  border: none;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 170, 108, 0.3);
}

.ta-no-data .ta-owl-icon {
  filter: brightness(0) invert(1);
  opacity: 1;
}

.ta-no-data span {
  color: #fff;
}

/* Dark mode TripAdvisor styles - outline style matching light mode */
body.dark-mode .ta-show-rating-btn {
  background: transparent;
  border-color: #00AA6C;
  color: #00AA6C;
}

body.dark-mode .ta-show-rating-btn:hover {
  background: #00AA6C;
  color: #fff;
}

body.dark-mode .ta-rating-display {
  background: #2d2d2d;
  border-color: #444;
  color: #e0e0e0;
}

body.dark-mode .ta-rating-display:hover {
  background: #3d3d3d;
  border-color: #00aa6c;
}

body.dark-mode .ta-no-data {
  background: linear-gradient(135deg, #00aa6c 0%, #007a5c 100%);
}

body.dark-mode .ta-no-data:hover {
  background: linear-gradient(135deg, #00c47d 0%, #00aa6c 100%);
}

body.dark-mode .ta-review-count {
  color: #aaa;
}

body.dark-mode .ta-attribution {
  color: #777;
}

/* Open Now Badge */
.badge-open {
  background: #00A699 !important;
  font-size: 11px;
  font-weight: 500;
  padding: 4px 8px;
  border-radius: var(--radius-full);
}

.badge-closed {
  background: var(--brand-color) !important;
  font-size: 11px;
  font-weight: 500;
  padding: 4px 8px;
  border-radius: var(--radius-full);
}

/* Price Level Styling */
.place-card .price-level {
  font-size: 14px;
  font-weight: 600;
  color: #00A699;
}

/* Modern Search Box */
.search-box-modern {
  background: var(--bg-primary);
  border-radius: var(--radius-lg);
  padding: 8px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
}

.search-box-modern .form-control {
  border: none;
  box-shadow: none;
  font-size: 15px;
  padding: 12px 16px;
}

.search-box-modern .form-control:focus {
  box-shadow: none;
}

.search-box-modern .btn-primary {
  border-radius: var(--radius-sm);
  padding: 12px 24px;
  font-weight: 500;
}

/* Modern Container Styling */
.container {
  max-width: 1400px;
}

/* Header Styling */
h1.text-center {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

/* Radius Control Modern */
.search-radius-control {
  background: var(--bg-primary);
  border: none;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 20px;
}

/* Weather Card Modern */
#weather-container .card {
  border: none;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  box-shadow: var(--shadow-md);
}

/* Dark Mode Adjustments for Modern UI */
body.dark-mode {
  --bg-primary: #1e1e1e;
  --bg-secondary: #121212;
  --text-primary: #FFFFFF;
  --text-secondary: #B0B0B0;
  --text-muted: #666666;
  --border-color: #333333;
}

body.dark-mode .place-card {
  background: #1e1e1e;
}

body.dark-mode .categories-section {
  background: transparent;
}

body.dark-mode .category-btn {
  background: #2d2d2d;
  color: #e0e0e0;
  border-color: #444;
}

body.dark-mode .category-btn:hover {
  background: #3d3d3d;
  border-color: #555;
}

body.dark-mode .category-btn.active {
  background: #1B4D3E;
  color: #fff;
  border-color: #1B4D3E;
}

body.dark-mode .category-btn.hotel-active {
  background: #8E44AD !important;
  color: #fff !important;
  border-color: #8E44AD !important;
}

body.dark-mode .filter-divider {
  background: #444;
}

body.dark-mode .vibe-btn {
  border-color: #5B2C6F !important;
}

body.dark-mode .vibe-btn i {
  color: #BB8FCE;
}

body.dark-mode .vibe-btn:hover {
  background: #2C1445;
  border-color: #7D3C98 !important;
}

body.dark-mode .vibe-btn.active {
  background: #8E44AD !important;
  border-color: #8E44AD !important;
}

body.dark-mode .category-btn i {
  color: #888;
}

body.dark-mode .category-btn.active i {
  color: #fff;
}

body.dark-mode .content-container.results-section {
  background: #121212;
}

body.dark-mode .search-radius-control {
  background: #2d2d2d;
}

body.dark-mode .place-card .type-badge {
  background: #333;
  color: #aaa;
}

body.dark-mode .place-card .view-details-btn {
  background: #e0e0e0;
  color: #1e1e1e;
}

body.dark-mode .place-card .favorite-btn {
  background: rgba(30, 30, 30, 0.95);
}

/* ============================================
   MODERN MODAL STYLES - Airbnb/Google Maps inspired
   ============================================ */

/* Modern Modal Container - Full-width hero image */
.modern-modal,
.modal-content.modern-modal {
  padding: 0 !important;
  overflow: visible;
  border-radius: 16px;
  border: none;
}

/* Override Bootstrap modal-content default padding */
.modal-content.modern-modal {
  padding: 0 !important;
}

/* Hero section - First child, edge-to-edge image */
.modern-modal .hero-section {
  width: 100% !important;
  height: 400px;
  margin: 0 !important;
  padding: 0 !important;
  display: block;
  position: relative;
}

.modern-modal .hero-section .hero-carousel {
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

.modern-modal .hero-section .hero-carousel .carousel-inner {
  width: 100% !important;
  height: 100% !important;
  border-radius: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

.modern-modal .hero-section .hero-carousel .carousel-item {
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

.modern-modal .hero-section .hero-carousel .carousel-item img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  margin: 0 !important;
  padding: 0 !important;
  display: block;
}

/* Modal body - Add padding back for text content */
.modern-modal .modal-body {
  padding: 24px;
  overflow-y: auto;
  max-height: calc(100vh - 450px);
}

/* Hero Section with Carousel */
.hero-section {
  position: relative;
  background: #f0f0f0;
  border-radius: 16px 16px 0 0;
  overflow: hidden;
}

.hero-carousel {
  margin: 0 !important;
  padding: 0 !important;
  width: 100%;
}

.hero-carousel .carousel-inner {
  border-radius: 16px 16px 0 0;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden;
  width: 100%;
}

.hero-carousel .carousel-item {
  margin: 0 !important;
  padding: 0 !important;
}

.hero-carousel .carousel-item img {
  margin: 0 !important;
  padding: 0 !important;
  width: 100%;
  display: block;
  height: 400px;
  object-fit: cover;
}

.hero-img {
  height: 400px !important;
  object-fit: cover !important;
}

.hero-placeholder {
  height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
}

/* Overlay Close Button with backdrop blur */
.btn-close-overlay {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 100;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s, background 0.2s;
}

.btn-close-overlay:hover {
  background: rgba(0, 0, 0, 0.6);
  transform: scale(1.08);
}

.btn-close-overlay i {
  font-size: 16px;
  color: #fff;
}

/* Photo Count Badge */
.photo-count-badge {
  position: absolute;
  bottom: 16px;
  right: 16px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 500;
}

/* "View All Photos" Slide - Premium CTA */
.view-all-slide {
  background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
  height: 400px;
  display: flex !important;
  align-items: center;
  justify-content: center;
}

.view-all-content {
  text-align: center;
  padding: 40px;
}

.view-all-content i.fa-images {
  font-size: 48px;
  color: #888;
  margin-bottom: 16px;
  display: block;
}

.view-all-content h5 {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  font-weight: 600;
  color: #333;
  margin-bottom: 8px;
}

.view-all-content p {
  color: #666;
  font-size: 14px;
  margin-bottom: 20px;
}

.view-all-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  background: #1B4D3E;
  color: #fff;
  border-radius: 12px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(27, 77, 62, 0.25);
}

.view-all-btn:hover {
  background: #153d31;
  color: #fff;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(27, 77, 62, 0.35);
}

/* Dark mode "View All" slide */
body.dark-mode .view-all-slide {
  background: linear-gradient(135deg, #2a2a2a 0%, #1e1e1e 100%);
}

body.dark-mode .view-all-content i.fa-images {
  color: #666;
}

body.dark-mode .view-all-content h5 {
  color: #e0e0e0;
}

body.dark-mode .view-all-content p {
  color: #999;
}

/* Carousel Photo Attribution */
.carousel-item {
  position: relative;
}

.carousel-photo-attribution {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 6px 12px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  color: rgba(255, 255, 255, 0.9);
  font-size: 11px;
  text-align: left;
}

.carousel-photo-attribution a {
  color: rgba(255, 255, 255, 0.95);
  text-decoration: none;
}

.carousel-photo-attribution a:hover {
  text-decoration: underline;
}

/* Title Section - Magazine Editorial Style */
.title-section {
  margin-bottom: 16px;
}

.place-title {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Compact Metadata Row - Rating, Price, Status */
.place-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 14px;
  flex-wrap: wrap;
}

.place-meta .meta-separator {
  color: var(--text-tertiary);
  font-weight: 300;
}

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

.rating-inline i {
  color: #F59E0B;
  font-size: 13px;
}

.rating-inline .review-count {
  font-weight: 400;
  color: var(--text-secondary);
  font-size: 13px;
}

.price-inline {
  color: #059669;
  font-weight: 600;
}

.status-inline {
  font-weight: 500;
}

.status-inline.open {
  color: #059669;
}

.status-inline.closed {
  color: #DC2626;
}

/* Legacy rating-badge kept for backwards compatibility */
.rating-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #FFF8E1;
  color: #F57C00;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 14px;
}

.rating-badge i {
  font-size: 12px;
}

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

.price-badge {
  color: #2E7D32;
  font-weight: 600;
  font-size: 14px;
}

.place-address {
  color: var(--text-secondary);
  font-size: 13px;
  margin: 0;
  line-height: 1.4;
}

/* Action Buttons Row - Compact Icon Pills */
.action-buttons-row {
  display: flex;
  gap: 8px;
  padding: 12px 0;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

/* Icon Pill Style Action Buttons */
.action-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: #F5F5F5;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  text-decoration: none;
  color: #333;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.action-pill:hover {
  background: #E8E8E8;
  color: #1a1a1a;
  text-decoration: none;
  transform: translateY(-1px);
}

.action-pill i {
  font-size: 14px;
  color: #555;
}

.action-pill.disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

/* Dark mode for action pills */
body.dark-mode .action-pill {
  background: #2d2d2d;
  color: #e0e0e0;
}

body.dark-mode .action-pill:hover {
  background: #3d3d3d;
  color: #fff;
}

body.dark-mode .action-pill i {
  color: #b0b0b0;
}

/* Mobile responsiveness for pills */
@media (max-width: 768px) {
  .action-buttons-row {
    gap: 6px;
    padding: 10px 0;
    justify-content: flex-start;
    flex-wrap: wrap;
  }
  
  .action-pill {
    padding: 6px 10px;
    font-size: 12px;
    flex-shrink: 0;
  }
  
  .action-pill i {
    font-size: 13px;
  }
  
  /* Hero image on mobile */
  .modern-modal .hero-section {
    height: 280px !important;
  }
  
  .modern-modal .hero-section .hero-carousel .carousel-item img {
    height: 280px !important;
    min-height: 280px !important;
    object-fit: cover !important;
  }
}

/* Extra small screens - stack pills */
@media (max-width: 400px) {
  .action-buttons-row {
    gap: 8px;
  }
  
  .action-pill {
    flex: 1 1 calc(50% - 4px);
    justify-content: center;
    min-width: 0;
  }
}

/* Legacy action button styles for backwards compatibility */
.action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: none;
  color: var(--text-primary);
  padding: 8px 16px;
  border-radius: var(--radius-md);
  transition: background 0.2s;
}

.action-btn:hover {
  background: var(--bg-secondary);
  color: var(--text-primary);
  text-decoration: none;
}

.action-btn.disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

.action-btn-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
}

.action-btn:hover .action-btn-icon {
  background: var(--border-color);
  transform: scale(1.05);
}

.action-btn-icon i {
  font-size: 18px;
  color: var(--text-primary);
}

.action-btn-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
}

/* Collapsible Hours Section */
.hours-section {
  padding: 16px 0;
  border-bottom: 1px solid var(--border-color);
}

.hours-summary {
  padding: 8px 0;
}

.hours-summary:hover {
  opacity: 0.8;
}

.hours-chevron {
  transition: transform 0.3s ease;
}

.hours-summary[aria-expanded="true"] .hours-chevron {
  transform: rotate(180deg);
}

.hours-list {
  padding: 0;
}

.hours-row {
  border-bottom: 1px solid var(--border-color);
}

.hours-row:last-child {
  border-bottom: none;
}

/* Review Cards in Modal - Magazine Editorial Style */
.modern-modal .review-card {
  background: transparent;
  padding: 14px 0;
  border-radius: 0;
  margin-bottom: 0;
  border: none;
  border-bottom: 1px solid #eaeaea;
}

.modern-modal .review-card:last-child {
  border-bottom: none;
}

.modern-modal .review-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #f0f0f0;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

body.dark-mode .modern-modal .review-avatar {
  border-color: #3d3d3d;
}

/* Truncated Review Text with Read More */
.modern-modal .review-text {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.5;
  margin-bottom: 4px;
  color: var(--text-primary);
  font-size: 14px;
}

.modern-modal .review-text.expanded {
  -webkit-line-clamp: unset;
  overflow: visible;
}

.modern-modal .review-read-more {
  color: #1B4D3E;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  display: inline-block;
  margin-top: 2px;
}

.modern-modal .review-read-more:hover {
  text-decoration: underline;
}

body.dark-mode .modern-modal .review-read-more {
  color: #4ade80;
}

/* TripAdvisor Section in Modal */
.modern-modal .tripadvisor-section .card {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: none;
}

/* TripAdvisor Data Card - Magazine Style */
.tripadvisor-data-card {
  padding: 16px;
  background: #f9f9f9;
  border-radius: 12px;
  border: 1px solid #e5e5e5;
}

body.dark-mode .tripadvisor-data-card {
  background: #2a2a2a;
  border-color: #3d3d3d;
}

/* Dark Mode for Modern Modal */
body.dark-mode .modern-modal {
  background: #1e1e1e;
}

body.dark-mode .btn-close-overlay {
  background: rgba(40, 40, 40, 0.95);
}

body.dark-mode .btn-close-overlay i {
  color: #fff;
}

body.dark-mode .rating-badge {
  background: #3d3000;
  color: #FFB74D;
}

body.dark-mode .price-badge {
  color: #81C784;
}

body.dark-mode .action-btn-icon {
  background: #2d2d2d;
}

body.dark-mode .action-btn:hover .action-btn-icon {
  background: #3d3d3d;
}

body.dark-mode .action-btn-icon i {
  color: #e0e0e0;
}

body.dark-mode .hero-placeholder {
  background: linear-gradient(135deg, #2d2d2d 0%, #1e1e1e 100%);
}

body.dark-mode .modern-modal .review-card {
  background: transparent;
  border-bottom-color: #3d3d3d;
}

/* TripAdvisor Button in Modal - Solid Brand Green CTA */
.tripadvisor-section .btn-tripadvisor-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px 24px;
  background: #1B4D3E;
  border: none;
  border-radius: 12px;
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(27, 77, 62, 0.25);
}

.tripadvisor-section .btn-tripadvisor-cta:hover {
  background: #153d31;
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(27, 77, 62, 0.35);
}

.tripadvisor-section .btn-tripadvisor-cta i {
  font-size: 18px;
}

/* Legacy outlined style (keep for backwards compatibility) */
.tripadvisor-section .btn-tripadvisor-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 20px;
  background: #fff;
  border: 1px solid #00AA6C;
  border-radius: var(--radius-md);
  color: #00AA6C;
  font-weight: 500;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.tripadvisor-section .btn-tripadvisor-link:hover {
  background: linear-gradient(135deg, rgba(0, 170, 108, 0.08) 0%, rgba(0, 170, 108, 0.15) 100%);
  color: #008a58;
  text-decoration: none;
}

.tripadvisor-section .btn-tripadvisor-link .ta-owl {
  width: 20px;
  height: 20px;
}

.tripadvisor-section .btn-tripadvisor-link .fa-tripadvisor,
.tripadvisor-section .btn-tripadvisor-link .fab.fa-tripadvisor {
  font-size: 18px;
  color: #00AA6C;
}

body.dark-mode .tripadvisor-section .btn-tripadvisor-cta {
  background: #1B4D3E;
}

body.dark-mode .tripadvisor-section .btn-tripadvisor-cta:hover {
  background: #153d31;
}

body.dark-mode .tripadvisor-section .btn-tripadvisor-link {
  background: #2d2d2d;
  border-color: #00AA6C;
  color: #00cc80;
}

body.dark-mode .tripadvisor-section .btn-tripadvisor-link:hover {
  background: linear-gradient(135deg, rgba(0, 170, 108, 0.15) 0%, rgba(0, 170, 108, 0.25) 100%);
}

/* ==================== HOTEL BOOKING CTA ==================== */
.hotel-booking-section {
  text-align: center;
  padding: 16px;
  background: linear-gradient(135deg, rgba(0, 53, 128, 0.05) 0%, rgba(0, 53, 128, 0.1) 100%);
  border-radius: var(--radius-md);
  margin-top: 16px;
}

.btn-booking-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  background-color: #003580;
  color: white !important;
  border: none;
  border-radius: var(--radius-md);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none !important;
  transition: all 0.2s ease;
}

.btn-booking-cta:hover {
  background-color: #00224f;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 53, 128, 0.3);
  color: white !important;
}

.affiliate-disclosure {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 8px;
  margin-bottom: 0;
}

body.dark-mode .hotel-booking-section {
  background: linear-gradient(135deg, rgba(0, 53, 128, 0.15) 0%, rgba(0, 53, 128, 0.25) 100%);
}

body.dark-mode .btn-booking-cta {
  background-color: #003580;
}

body.dark-mode .btn-booking-cta:hover {
  background-color: #0052b3;
}

/* ==================== RESTAURANT LISTS STYLES ==================== */

/* Toast notification animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translate(-50%, 20px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

/* List modal styling */
.list-item.card {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  transition: box-shadow 0.2s ease;
}

.list-item.card:hover {
  box-shadow: var(--shadow-md);
}

/* Restaurant list items */
.restaurant-list-item {
  background: var(--bg-secondary);
  transition: background-color 0.2s ease;
}

.restaurant-list-item:hover {
  background: var(--bg-primary);
}

.restaurant-list-item img {
  border: 1px solid var(--border-color);
}

/* Add to list button styling */
.add-to-list-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
  color: white !important;
  border: none !important;
}

.add-to-list-btn:hover {
  background: linear-gradient(135deg, #5a6fd6 0%, #6a4391 100%) !important;
  transform: scale(1.05);
}

/* My Lists button styling */
#my-lists-button {
  position: relative;
}

#my-lists-button .badge {
  position: absolute;
  top: -5px;
  right: -5px;
  font-size: 10px;
  padding: 4px 6px;
  border-radius: var(--radius-full);
}

/* Add to list modal */
#add-to-list-options .btn {
  text-align: left;
}

/* Dark mode for lists */
body.dark-mode .list-item.card {
  background: #2d2d2d;
  border-color: #444;
}

body.dark-mode .restaurant-list-item {
  background: #1e1e1e;
  border-color: #444;
}

body.dark-mode .restaurant-list-item:hover {
  background: #2d2d2d;
}

/* Restaurant search input styling */
#restaurant-search-input {
  border-left: none;
}

.input-group-text {
  background: var(--bg-primary);
  border-right: none;
}

body.dark-mode .input-group-text {
  background: #2d2d2d;
  border-color: #444;
  color: #e0e0e0;
}


/* ==================== Travel Essentials Modal ==================== */
.essentials-card {
  display: flex;
  align-items: center;
  padding: 16px;
  margin-bottom: 12px;
  border-radius: var(--radius-md);
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  text-decoration: none;
  color: var(--text-primary);
  transition: all 0.2s ease;
}

.essentials-card:hover {
  background: var(--bg-primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  color: var(--text-primary);
  text-decoration: none;
}

.essentials-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--brand-color) 0%, #2a6b55 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 16px;
  flex-shrink: 0;
}

.essentials-icon i {
  font-size: 20px;
  color: white;
}

.essentials-icon.insurance-icon {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.essentials-content {
  flex: 1;
}

.essentials-content h6 {
  margin: 0 0 4px 0;
  font-weight: 600;
  font-size: 15px;
}

.essentials-content p {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.4;
}

.essentials-arrow {
  color: var(--text-muted);
  font-size: 12px;
}

/* Dark mode for essentials */
body.dark-mode .essentials-card {
  background: #2d2d2d;
  border-color: #444;
}

body.dark-mode .essentials-card:hover {
  background: #3a3a3a;
}

body.dark-mode .essentials-content h6 {
  color: #e0e0e0;
}

body.dark-mode .essentials-content p {
  color: #aaa;
}

/* ==================== GUIDEBOOK DRAWER ==================== */
.lists-drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 1050;
}

.lists-drawer-overlay.active {
  opacity: 1;
  visibility: visible;
}

.lists-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 420px;
  max-width: 90vw;
  height: 100vh;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.15);
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1051;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.lists-drawer.open {
  transform: translateX(0);
}

body.dark-mode .lists-drawer {
  background: rgba(30, 30, 30, 0.92);
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.4);
}

.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

body.dark-mode .drawer-header {
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

.drawer-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
}

body.dark-mode .drawer-title {
  color: #e0e0e0;
}

.drawer-title i {
  color: var(--brand-color);
}

.drawer-close-btn {
  width: 36px;
  height: 36px;
  border: none;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.drawer-close-btn:hover {
  background: rgba(0, 0, 0, 0.1);
}

body.dark-mode .drawer-close-btn {
  background: rgba(255, 255, 255, 0.1);
  color: #e0e0e0;
}

body.dark-mode .drawer-close-btn:hover {
  background: rgba(255, 255, 255, 0.15);
}

.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}

.create-list-section {
  margin-bottom: 24px;
}

.create-list-input-group {
  display: flex;
  gap: 8px;
}

.drawer-input {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  font-size: 14px;
  background: rgba(255, 255, 255, 0.6);
  transition: all 0.2s ease;
}

.drawer-input:focus {
  outline: none;
  border-color: var(--brand-color);
  background: white;
}

body.dark-mode .drawer-input {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  color: #e0e0e0;
}

body.dark-mode .drawer-input:focus {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--brand-color);
}

.create-list-btn {
  width: 44px;
  height: 44px;
  border: none;
  background: var(--brand-color);
  color: white;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.create-list-btn:hover {
  background: var(--brand-hover);
  transform: scale(1.05);
}

/* Guidebook List Cards */
.lists-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.guidebook-card {
  position: relative;
  height: 160px;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
}

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

.guidebook-card-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.7);
  transition: filter 0.3s ease;
}

.guidebook-card:hover .guidebook-card-bg {
  filter: brightness(0.6);
}

.guidebook-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0.1) 100%);
}

.guidebook-card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px;
  color: white;
  z-index: 2;
}

.guidebook-card-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 4px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.guidebook-card-count {
  font-size: 13px;
  opacity: 0.85;
}

.guidebook-card-actions {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  gap: 8px;
  opacity: 0;
  transition: opacity 0.2s ease;
  z-index: 3;
}

.guidebook-card:hover .guidebook-card-actions {
  opacity: 1;
}

.guidebook-action-btn {
  width: 32px;
  height: 32px;
  border: none;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  color: #333;
  font-size: 12px;
}

.guidebook-action-btn:hover {
  background: white;
  transform: scale(1.1);
}

.guidebook-action-btn.share-btn:hover {
  color: var(--brand-color);
}

.guidebook-action-btn.delete-btn:hover {
  color: #dc3545;
}

/* Empty State */
.lists-empty-state {
  text-align: center;
  padding: 48px 24px;
  color: var(--text-muted);
}

.lists-empty-state i {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.4;
}

.lists-empty-state h4 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 18px;
  margin-bottom: 8px;
  color: var(--text-secondary);
}

body.dark-mode .lists-empty-state h4 {
  color: #ccc;
}

.lists-empty-state p {
  font-size: 14px;
}

/* Expanded Guidebook View */
.guidebook-expanded {
  padding: 8px;
}

.guidebook-back-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  margin-bottom: 16px;
  border: none;
  background: none;
  color: var(--brand-color);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.guidebook-back-btn:hover {
  opacity: 0.7;
}

.guidebook-expanded-header {
  margin-bottom: 20px;
}

.guidebook-expanded-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 4px;
}

body.dark-mode .guidebook-expanded-title {
  color: #e0e0e0;
}

.guidebook-expanded-count {
  color: var(--text-muted);
  font-size: 14px;
}

.guidebook-places-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.guidebook-place-item {
  display: flex;
  gap: 12px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.guidebook-place-item:hover {
  background: rgba(255, 255, 255, 0.8);
  transform: translateX(4px);
}

body.dark-mode .guidebook-place-item {
  background: rgba(255, 255, 255, 0.08);
}

body.dark-mode .guidebook-place-item:hover {
  background: rgba(255, 255, 255, 0.12);
}

.guidebook-place-image {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.guidebook-place-info {
  flex: 1;
  min-width: 0;
}

.guidebook-place-name {
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.dark-mode .guidebook-place-name {
  color: #e0e0e0;
}

.guidebook-place-address {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.guidebook-place-remove {
  width: 28px;
  height: 28px;
  border: none;
  background: rgba(220, 53, 69, 0.1);
  color: #dc3545;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  align-self: center;
  opacity: 0;
  transition: all 0.2s ease;
}

.guidebook-place-item:hover .guidebook-place-remove {
  opacity: 1;
}

.guidebook-place-remove:hover {
  background: #dc3545;
  color: white;
}

/* Save to List Popup */
.save-to-list-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 320px;
  max-width: 90vw;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  z-index: 1060;
  overflow: hidden;
}

body.dark-mode .save-to-list-popup {
  background: rgba(30, 30, 30, 0.95);
}

.popup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  font-weight: 600;
  font-size: 15px;
}

body.dark-mode .popup-header {
  border-bottom-color: rgba(255, 255, 255, 0.1);
  color: #e0e0e0;
}

.popup-close-btn {
  width: 28px;
  height: 28px;
  border: none;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

body.dark-mode .popup-close-btn {
  background: rgba(255, 255, 255, 0.1);
  color: #e0e0e0;
}

.popup-body {
  padding: 16px;
  max-height: 300px;
  overflow-y: auto;
}

#save-to-list-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.save-list-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: rgba(0, 0, 0, 0.03);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  width: 100%;
  text-align: left;
}

.save-list-option:hover {
  background: rgba(0, 0, 0, 0.06);
}

.save-list-option.saved {
  background: rgba(27, 77, 62, 0.1);
  color: var(--brand-color);
}

body.dark-mode .save-list-option {
  background: rgba(255, 255, 255, 0.08);
}

body.dark-mode .save-list-option:hover {
  background: rgba(255, 255, 255, 0.12);
}

body.dark-mode .save-list-option.saved {
  background: rgba(27, 77, 62, 0.3);
}

.save-list-option i {
  font-size: 16px;
  width: 20px;
  text-align: center;
}

.save-list-option-name {
  flex: 1;
  font-weight: 500;
}

body.dark-mode .save-list-option-name {
  color: #e0e0e0;
}

.popup-create-new {
  display: flex;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

body.dark-mode .popup-create-new {
  border-top-color: rgba(255, 255, 255, 0.1);
}

.popup-input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  font-size: 14px;
  background: white;
}

body.dark-mode .popup-input {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.15);
  color: #e0e0e0;
}

.popup-create-btn {
  width: 40px;
  height: 40px;
  border: none;
  background: var(--brand-color);
  color: white;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.popup-create-btn:hover {
  background: var(--brand-hover);
}

/* Save Button in Place Card/Modal */
.btn-save-to-list {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1px solid var(--brand-color);
  background: transparent;
  color: var(--brand-color);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-save-to-list:hover {
  background: var(--brand-color);
  color: white;
}

.btn-save-to-list.saved {
  background: var(--brand-color);
  color: white;
}

.btn-save-to-list.saved i {
  color: #4ade80;
}

/* Toast notification for share */
.share-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: rgba(30, 30, 30, 0.95);
  color: white;
  padding: 12px 24px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 2000;
}

.share-toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}
