/**
 * Enhanced Book Nearby Page Styles
 * Professional styling for the book nearby interface
 *
 * Version: 2024.01.20.002
 * Author: SwiftSpot Development Team
 */

/* ===== HERO HEADER ENHANCEMENTS ===== */
.book-nearby-page {
  position: relative;
  overflow: hidden;
}

/* ===== HERO SEARCH SECTION ===== */
.hero-search-section {
  position: relative;
  z-index: 10;
}

.hero-search-section .bg-white\/90 {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.hero-search-section .dark\:bg-gray-800\/90 {
  background: rgba(31, 41, 55, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.hero-search-section input {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-search-section input:focus {
  transform: translateY(-2px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Recent Searches Dropdown */
.recent-searches-dropdown {
  animation: slideDown 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: top;
}

.recent-searches-dropdown.hidden {
  display: none;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Hero Search Button */
.hero-search-section button[onclick*="performHeroSearch"] {
  background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-search-section button[onclick*="performHeroSearch"]:hover {
  background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
  transform: translateY(-2px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Quick Action Buttons */
.hero-search-section .bg-gray-100 {
  transition: all 0.2s ease-in-out;
}

.hero-search-section .bg-gray-100:hover {
  background-color: #e5e7eb;
  transform: translateY(-1px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.hero-search-section .dark .bg-gray-700:hover {
  background-color: #4b5563;
  transform: translateY(-1px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
}

/* Popular Locations Dropdown */
.popular-locations-dropdown {
  animation: slideDown 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: top;
}

.popular-locations-dropdown button {
  transition: all 0.2s ease-in-out;
}

/* ===== FAVORITE BUTTON ENHANCEMENTS ===== */
.favorite-btn {
  position: relative;
  overflow: hidden;
}

.favorite-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: radial-gradient(circle, rgba(239, 68, 68, 0.3) 0%, transparent 70%);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.favorite-btn:hover::before {
  width: 100px;
  height: 100px;
}

.favorite-btn[data-favorited="true"] {
  animation: heartBeat 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes heartBeat {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
}

/* ===== QUICK VIEW MODAL ENHANCEMENTS ===== */
#quickViewModal {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

#quickViewContent {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#quickViewContent.scale-100 {
  transform: scale(1);
  opacity: 1;
}

#quickViewContent.scale-95 {
  transform: scale(0.95);
  opacity: 0;
}

/* Modal backdrop animation */
#quickViewModal .bg-black\/50 {
  animation: fadeIn 0.3s ease-out;
}

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

/* ===== ENHANCED SPOT CARD ANIMATIONS ===== */
.spot-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.spot-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.spot-card .card-enhanced {
  position: relative;
}

.spot-card .card-enhanced::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
  border-radius: 1rem;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.spot-card:hover .card-enhanced::after {
  opacity: 1;
}

/* Enhanced hover effects for action buttons */
.spot-action-btn {
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.spot-action-btn:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

/* ===== ENHANCED SEARCH ANIMATIONS ===== */
.hero-search-section input:focus {
  animation: searchFocus 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes searchFocus {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
  100% {
    transform: translateY(-2px);
  }
}

/* Enhanced button hover effects */
.hero-search-section button[onclick*="performHeroSearch"]:hover {
  animation: buttonHover 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes buttonHover {
  0% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-3px) scale(1.02);
  }
  100% {
    transform: translateY(-2px) scale(1);
  }
}

/* ===== ENHANCED FILTER INTERFACE ===== */
.filter-section {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(229, 231, 235, 0.5);
  transition: all 0.3s ease;
}

.filter-section:hover {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

.dark .filter-section {
  background: rgba(31, 41, 55, 0.95);
  border-color: rgba(75, 85, 99, 0.5);
}

.dark .filter-section:hover {
  background: rgba(31, 41, 55, 0.98);
}

/* Filter chips styling */
.filter-chip {
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.filter-chip::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.filter-chip:hover::before {
  left: 100%;
}

.filter-chip:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

/* ===== ENHANCED SPOT CARD GRID ===== */
.spots-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}

@media (min-width: 640px) {
  .spots-grid {
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  }
}

@media (min-width: 1024px) {
  .spots-grid {
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  }
}

/* ===== ENHANCED LOADING STATES ===== */
.loading-skeleton {
  background: linear-gradient(90deg, #f3f4f6 25%, #e5e7eb 50%, #f3f4f6 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

.dark .loading-skeleton {
  background: linear-gradient(90deg, #374151 25%, #4b5563 50%, #374151 75%);
}

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

/* ===== ENHANCED RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
  .hero-search-section .bg-white\/90 {
    padding: 1.5rem;
  }

  .spots-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .spot-card:hover {
    transform: translateY(-4px) scale(1.01);
  }
}

/* ===== ACCESSIBILITY ENHANCEMENTS ===== */
.favorite-btn:focus,
.spot-action-btn:focus,
.filter-chip:focus {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .spot-card {
    border: 2px solid #000;
  }

  .dark .spot-card {
    border-color: #fff;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .spot-card,
  .favorite-btn,
  .spot-action-btn,
  .filter-chip {
    transition: none;
  }

  .spot-card:hover {
    transform: none;
  }
}

.popular-locations-dropdown button:hover {
  background-color: #f3f4f6;
  transform: translateX(2px);
}

.dark .popular-locations-dropdown button:hover {
  background-color: #4b5563;
}

.book-nearby-page::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 80%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
              radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
  animation: float 20s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(30px, -30px) rotate(120deg); }
  66% { transform: translate(-20px, 20px) rotate(240deg); }
}

/* ===== ENHANCED PAGE HEADER ===== */
.page-header {
  position: relative;
  overflow: hidden;
}

.page-header h1 {
  background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeInUp 0.6s ease-out;
}

.page-header p {
  animation: fadeInUp 0.6s ease-out 0.2s both;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(2rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== ENHANCED SEARCH RESULTS HEADER ===== */
.search-results-header {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid #e2e8f0;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.search-results-header:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.search-results-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6, #06b6d4);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.search-results-header:hover::before {
  transform: scaleX(1);
}

/* ===== ENHANCED FILTER BADGES ===== */
.filter-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  margin: 0.25rem;
  color: white;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  transition: all 0.3s ease-in-out;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(4px);
  transform: translateY(0);
  animation: fadeInScale 0.3s ease-out;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

/* Filter Badge Categories for Visual Hierarchy */
.filter-badge.location-filter {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  border-color: rgba(59, 130, 246, 0.3);
}

.filter-badge.amenity-filter {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border-color: rgba(16, 185, 129, 0.3);
}

.filter-badge.price-filter {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  border-color: rgba(245, 158, 11, 0.3);
}

.filter-badge.duration-filter {
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
  border-color: rgba(139, 92, 246, 0.3);
}

.filter-badge.policy-filter {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  border-color: rgba(239, 68, 68, 0.3);
}

.filter-badge.verification-filter {
  background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
  border-color: rgba(6, 182, 212, 0.3);
}

.filter-badge::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.6s ease;
}

.filter-badge:hover::before {
  left: 100%;
}

.filter-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.8) translateY(1rem);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.filter-badge .remove-filter {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  cursor: pointer;
  opacity: 0.8;
  transition: all 0.2s ease-in-out;
  border-radius: 50%;
  margin-left: 0.5rem;
}

.filter-badge .remove-filter:hover {
  opacity: 1;
  transform: scale(1.1);
  background-color: rgba(255, 255, 255, 0.2);
}

/* ===== ENHANCED MAP SECTION ===== */
.map-section {
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: top;
  position: relative;
  overflow: hidden;
}

.map-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6, #06b6d4);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.map-section.expanded::before {
  transform: scaleX(1);
}

.map-section.collapsed {
  opacity: 0;
  max-height: 0;
  overflow: visible;
  transform: scaleY(0);
  margin-bottom: 0;
}

.map-section.expanded {
  opacity: 1;
  max-height: 600px;
  transform: scaleY(1);
  margin-bottom: 1.5rem;
}

/* ===== ENHANCED MAP CONTAINER ===== */
#map-container {
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  transition: all 0.3s ease;
}

#map-container:hover {
  transform: translateY(-2px);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* ===== ENHANCED MAP CONTROLS ===== */
.map-controls {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* Add expand map button positioning */
.map-expand-controls {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.map-control-btn {
  background: white;
  border: 2px solid #e2e8f0;
  border-radius: 0.75rem;
  padding: 0.75rem;
  cursor: pointer;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  font-size: 0.75rem;
  min-width: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #374151;
  transition: all 0.2s ease-in-out;
  backdrop-filter: blur(10px);
}

.map-control-btn:hover {
  background: #f8fafc;
  border-color: #3b82f6;
  transform: translateY(-2px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.map-control-btn.active {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  color: white;
  border-color: #3b82f6;
}

/* ===== ENHANCED FILTERS SECTION ===== */
.filters-section {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: top;
  position: relative;
  overflow: hidden;
}

.filters-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #8b5cf6, #06b6d4, #3b82f6);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.filters-section.expanded::before {
  transform: scaleX(1);
}

.filters-section.collapsed {
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transform: scaleY(0);
  margin-bottom: 0;
}

.filters-section.expanded {
  opacity: 1;
  max-height: 1000px;
  transform: scaleY(1);
  margin-bottom: 2rem;
}

/* ===== ENHANCED FILTER FORM STYLES ===== */
.filters-section form {
  position: relative;
}

.filters-section label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
  margin-bottom: 0.5rem;
  transition: color 0.2s ease;
}

.filters-section input,
.filters-section select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid #d1d5db;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  transition: all 0.2s ease;
  background-color: white;
  color: #111827;
}

.filters-section input:focus,
.filters-section select:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
  transform: translateY(-1px);
}

.filters-section input::placeholder {
  color: #9ca3af;
}

/* ===== ENHANCED CHECKBOX STYLES ===== */
.filters-section input[type="checkbox"] {
  width: auto;
  margin-right: 0.5rem;
  accent-color: #3b82f6;
}

.filters-section input[type="checkbox"]:checked {
  background-color: #3b82f6;
  border-color: #3b82f6;
}

/* ===== ENHANCED BUTTON STYLES ===== */
.view-map-btn {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  color: #fff !important;
  position: relative;
  overflow: hidden;
}

.view-map-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.6s ease;
}

.view-map-btn:hover::before {
  left: 100%;
}

.view-map-btn.map-hidden {
  background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  color: #fff !important;
}

.view-map-btn.map-visible {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: #fff !important;
}

.view-map-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* ===== ENHANCED SPOT CARDS ===== */
.spot-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid #e2e8f0;
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.spot-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6, #06b6d4);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.spot-card:hover::before {
  transform: scaleX(1);
}

.spot-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* ===== ENHANCED SPOT IMAGE ===== */
.spot-card .relative.h-48 {
  position: relative;
  overflow: hidden;
}

.spot-card img {
  transition: all 0.5s ease;
}

.spot-card:hover img {
  transform: scale(1.1);
}

.spot-card img.loaded {
  animation: fadeIn 0.5s ease-out;
}

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

/* ===== ENHANCED SPOT STATUS BADGES ===== */
.spot-card .inline-flex {
  transition: all 0.2s ease;
}

.spot-card .inline-flex:hover {
  transform: scale(1.05);
}

/* ===== ENHANCED AMENITY TAGS ===== */
.amenity-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.5rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.amenity-tag:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* ===== ENHANCED PRICING DISPLAY ===== */
.pricing-info {
  transition: all 0.2s ease;
}

.pricing-info:hover {
  transform: scale(1.02);
}

/* ===== ENHANCED ACTION BUTTONS ===== */
.spot-card .bg-gradient-to-r {
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.spot-card .bg-gradient-to-r::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.6s ease;
}

.spot-card .bg-gradient-to-r:hover::before {
  left: 100%;
}

.spot-card .bg-gradient-to-r:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* ===== ENHANCED QUICK ACTION OVERLAY ===== */
.spot-card .absolute.inset-0 {
  transition: all 0.3s ease;
}

.spot-card:hover .absolute.inset-0 {
  background-color: rgba(0, 0, 0, 0.3);
}

.spot-action-btn {
  transition: all 0.2s ease;
  backdrop-filter: blur(10px);
}

.spot-action-btn:hover {
  transform: scale(1.05);
}

/* ===== ENHANCED ADVANCED FILTERS TOGGLE ===== */
#advanced-filters-toggle {
  transition: all 0.2s ease;
}

#advanced-filters-toggle:hover {
  color: #1d4ed8;
}

#advanced-filters-toggle .toggle-icon {
  transition: transform 0.3s ease;
}

/* ===== ENHANCED LOCATION BUTTON ===== */
#location-btn {
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

#location-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.1), transparent);
  transition: left 0.6s ease;
}

#location-btn:hover::before {
  left: 100%;
}

#location-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* ===== ENHANCED MAP NOTIFICATION ===== */
.map-notification {
  position: fixed;
  top: 1rem;
  right: 1rem;
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  color: white;
  padding: 1rem 1.5rem;
  border-radius: 0.75rem;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  z-index: 50;
  transform: translateX(100%);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
}

.map-notification.show {
  transform: translateX(0);
}

/* ===== ENHANCED TOAST NOTIFICATIONS ===== */
.toast-notification {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
}

/* ===== ENHANCED LOADING STATES ===== */
.filter-loading {
  opacity: 0.7;
  pointer-events: none;
}

.filter-loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  border: 2px solid transparent;
  border-top: 2px solid #3b82f6;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

/* ===== ENHANCED RESPONSIVE DESIGN ===== */
@media (max-width: 640px) {
  .book-nearby-page h1 {
    font-size: 2rem;
  }

  .book-nearby-page p {
    font-size: 1rem;
  }

  .spot-card {
    margin: 0.5rem;
  }

  .map-controls {
    top: 0.5rem;
    left: 0.5rem;
  }

  .map-expand-controls {
    top: 0.5rem;
    right: 0.5rem;
  }

  .map-control-btn {
    padding: 0.5rem;
    min-width: 40px;
    font-size: 0.625rem;
  }
}

@media (max-width: 768px) {
  .search-results-header {
    flex-direction: column;
    text-align: center;
  }

  .filters-section .grid {
    grid-template-columns: 1fr;
  }

  .spot-card .flex.gap-3 {
    flex-direction: column;
  }
}

/* ===== ENHANCED DARK MODE SUPPORT ===== */
@media (prefers-color-scheme: dark) {
  .search-results-header {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    border-color: #374151;
  }

  .spot-card {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    border-color: #374151;
  }

  .filters-section input,
  .filters-section select {
    background-color: #1f2937;
    border-color: #4b5563;
    color: #f9fafb;
  }

  .map-control-btn {
    background-color: #1f2937;
    border-color: #4b5563;
    color: #f9fafb;
  }

  .map-control-btn:hover {
    background-color: #374151;
    border-color: #6b7280;
  }
}

/* ===== ENHANCED ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
  .book-nearby-page::before,
  .search-results-header::before,
  .map-section::before,
  .filters-section::before,
  .spot-card::before,
  .view-map-btn::before,
  .spot-card .bg-gradient-to-r::before,
  #location-btn::before {
    animation: none;
  }

  .spot-card:hover,
  .view-map-btn:hover,
  #location-btn:hover {
    transform: none;
  }
}

/* ===== ENHANCED FOCUS VISIBILITY ===== */
.filters-section input:focus-visible,
.filters-section select:focus-visible,
.view-map-btn:focus-visible,
#location-btn:focus-visible,
.spot-card .bg-gradient-to-r:focus-visible {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}

/* ===== ENHANCED ANIMATIONS ===== */
.animate-fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

.animate-fade-in-up[style*="animation-delay"] {
  animation-fill-mode: both;
}

/* ===== ENHANCED CARD ENHANCEMENTS ===== */
.card-enhanced {
  position: relative;
  overflow: hidden;
}

.card-enhanced::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6, #06b6d4);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.card-enhanced:hover::before {
  transform: scaleX(1);
}

/* ===== ENHANCED LINE CLAMP UTILITIES ===== */
.line-clamp-1 {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-clamp: 1;
}

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-clamp: 2;
}

/* ===== ENHANCED USER LOCATION MARKER ===== */
.user-location-marker {
  width: 16px;
  height: 16px;
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  border: 3px solid white;
  border-radius: 50%;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  position: relative;
}

.user-location-marker::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  background: white;
  border-radius: 50%;
}

/* ===== ENHANCED PULSE ANIMATION ===== */
.animate-pulse-slow {
  animation: pulse 3s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 0.1;
  }
  50% {
    opacity: 0.2;
  }
}
