/* =========================
   CSS Variables & Base Styles
   ========================= */
   :root {
    --primary-blue: #0f172a;
    --accent-teal: #06b6d4;
    --warm-orange: #f59e0b;
    --soft-green: #10b981;
    --danger-red: #ef4444;
    
    --bg-primary: #fafbfc;
    --bg-card: #ffffff;
    --bg-overlay: rgba(15, 23, 42, 0.95);
    
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --text-light: #f8fafc;
    
    --border-light: #e2e8f0;
    --border-medium: #cbd5e1;
    
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 16px -2px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 0 40px rgba(6, 182, 212, 0.15);
    
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 32px;
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Inter', -apple-system, system-ui, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: linear-gradient(135deg, var(--bg-primary) 0%, #f1f5f9 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

/* =========================
   Hero Section
   ========================= */
.hero-section {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #334155 100%);
    position: relative;
    overflow: hidden;
    padding: 2rem 1.5rem 3rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 200%;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.1) 0%, transparent 70%);
    transform: rotate(15deg);
    pointer-events: none;
}

.hero-top-bar {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
}

.hero-text {
    max-width: 600px;
}

.hero-brand {
    font-family: 'Inter', -apple-system, system-ui, sans-serif;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.brand-nomad {
    color: #ffffff;
}

.brand-scout {
    color: var(--accent-teal);
}

.hero-controls {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: flex-end;
    flex: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    width: 100%;
}

.hero-title {
    font-family: 'Inter', -apple-system, system-ui, sans-serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
    line-height: 1.1;
    order: 2;
    background: linear-gradient(135deg, #ffffff 0%, var(--accent-teal) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
    font-size: 1.1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.location-display {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.12);
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius-lg);
    font-size: 0.875rem;
    color: var(--text-light);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(15px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    font-weight: 500;
    white-space: nowrap;
    min-height: 44px;
    cursor: pointer;
}

.location-display:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.radius-control-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    width: auto;
    min-width: 200px;
    background: rgba(255, 255, 255, 0.08);
    padding: 1rem 1.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.radius-slider-container {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    width: 100%;
}

.radius-slider {
    flex-grow: 1;
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    border-radius: 3px;
    background: linear-gradient(90deg, 
        rgba(255, 255, 255, 0.3) 0%, 
        rgba(6, 182, 212, 0.6) 50%, 
        rgba(255, 255, 255, 0.3) 100%);
    outline: none;
    cursor: pointer;
    transition: var(--transition);
    min-height: 44px;
}

.radius-slider:hover {
    background: linear-gradient(90deg, 
        rgba(255, 255, 255, 0.4) 0%, 
        rgba(6, 182, 212, 0.8) 50%, 
        rgba(255, 255, 255, 0.4) 100%);
}

.radius-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25), 0 2px 4px rgba(6, 182, 212, 0.3);
    border: 2px solid rgba(6, 182, 212, 0.4);
    transition: var(--transition);
}

.radius-slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3), 0 3px 6px rgba(6, 182, 212, 0.5);
}

.radius-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    border: 2px solid rgba(6, 182, 212, 0.4);
    transition: var(--transition);
}

.radius-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    font-weight: 500;
    text-align: center;
    letter-spacing: 0.025em;
}

.radius-value {
    font-size: 0.9rem;
    color: #ffffff;
    min-width: 50px;
    text-align: center;
    font-weight: 600;
    background: rgba(6, 182, 212, 0.2);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(6, 182, 212, 0.3);
}

@media (prefers-contrast: high) {
    .hero-title {
        background: none;
        -webkit-background-clip: unset;
        background-clip: unset;
        -webkit-text-fill-color: unset;
        color: #ffffff;
    }
}

.location-icon {
    width: 18px;
    height: 18px;
    opacity: 0.9;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

/* =========================
   Services Section
   ========================= */
.services-section {
    background: var(--bg-card);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    margin-top: -2rem;
    position: relative;
    z-index: 3;
    box-shadow: var(--shadow-lg);
    padding: 2rem 1.5rem 1rem;
}

.services-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.service-btn {
    background: linear-gradient(135deg, var(--bg-card) 0%, #f8fafc 100%);
    border: 2px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 1.5rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    min-height: 120px;
    color: var(--text-primary);
}

.service-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(6, 182, 212, 0.1), transparent);
    transition: left 0.6s ease;
}

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

.service-btn:hover {
    border-color: var(--accent-teal);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md), var(--shadow-glow);
}

.service-btn.active {
    background: linear-gradient(135deg, var(--accent-teal) 0%, #0891b2 100%);
    border-color: var(--accent-teal);
    color: var(--text-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.service-title {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.service-description {
    font-size: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.service-btn.active .service-description {
    color: rgba(255, 255, 255, 0.9);
}

/* =========================
   Status Messages
   ========================= */
.status-message {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-overlay);
    color: var(--text-light);
    padding: 1rem 2rem;
    border-radius: var(--radius-lg);
    font-size: 0.875rem;
    font-weight: 500;
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    transition: var(--transition);
    opacity: 0;
    visibility: hidden;
    max-width: 90vw;
}

.status-message.visible {
    opacity: 1;
    visibility: visible;
}

.status-message.info {
    background: linear-gradient(135deg, var(--accent-teal) 0%, #0891b2 100%);
}

.status-message.error {
    background: linear-gradient(135deg, var(--danger-red) 0%, #dc2626 100%);
}

/* =========================
   Controls Bar
   ========================= */
.controls-bar {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-light);
    padding: 0.5rem;
    position: sticky;
    top: 0;
    z-index: 500;
    box-shadow: var(--shadow-sm);
}

.controls-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.5rem;
}

.filter-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0;
    padding-left: 1rem;
    border-left: 1px solid var(--border-light);
}

.filter-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
    white-space: nowrap;
    margin: 0;
}

.filter-options {
    display: flex;
    gap: 0.5rem;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 0.25rem;
    scrollbar-width: thin;
    scrollbar-color: var(--border-medium) transparent;
}

.filter-options::-webkit-scrollbar {
    height: 4px;
}

.filter-options::-webkit-scrollbar-thumb {
    background-color: var(--border-medium);
    border-radius: 2px;
}

.filter-btn, .sort-btn {
    background: none;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.filter-btn:hover, .sort-btn:hover {
    background: var(--accent-teal);
    color: white;
    border-color: var(--accent-teal);
}

.filter-btn.active, .sort-btn.active {
    background: var(--accent-teal);
    color: white;
    border-color: var(--accent-teal);
    box-shadow: var(--shadow-sm);
}

.sort-options {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.sort-label {
    font-weight: 500;
    color: var(--text-primary);
    font-size: 0.875rem;
}

.filter-select {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    font-size: 0.875rem;
    cursor: pointer;
    min-width: 140px;
}

/* =========================
   Results Section
   ========================= */
.results-section {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem 2rem;
}

.results-container {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.results-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.results-table th {
    background: linear-gradient(135deg, var(--bg-primary) 0%, #f1f5f9 100%);
    padding: 1rem;
    text-align: center;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.results-table th:first-child {
    text-align: left;
}

.results-table th:first-child {
    width: 25%;
}

.results-table th:not(:first-child) {
    width: calc(75% / 6);
}

.results-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-light);
    vertical-align: middle;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: center;
}

.results-table td:first-child {
    text-align: left;
}

.results-table td:first-child {
    white-space: normal;
    word-break: break-word;
}

.results-table td:not(:first-child) {
    width: calc(75% / 6);
}

.results-table tr:hover {
    background: var(--bg-primary);
    cursor: pointer;
}

.place-name {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    color: var(--text-primary);
    text-align: left;
    justify-content: flex-start;
}

.place-icon {
    width: 24px;
    height: 24px;
    border-radius: var(--radius-sm);
    object-fit: contain;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-lg);
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.status-badge.open {
    background: rgba(16, 185, 129, 0.1);
    color: var(--soft-green);
}

.status-badge.closed {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger-red);
}

.status-badge.unknown {
    background: rgba(148, 163, 184, 0.1);
    color: var(--text-muted);
}

.rating-display {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-weight: 600;
}

.price-display {
    color: var(--warm-orange);
    font-weight: 600;
}

.bayesian-score {
    text-align: center;
    font-weight: 600;
}

.bayesian-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
}

.bayesian-value {
    color: var(--accent-teal);
    font-weight: 700;
    font-size: 1.1em;
    line-height: 1;
}

.bayesian-star {
    color: var(--warm-orange);
    font-size: 1em;
    line-height: 1;
    display: inline-block;
    margin-left: 2px;
}

/* Responsive adjustments for tablets and small laptops */
@media (max-width: 768px) {
    .bayesian-display {
        flex-direction: row;
        gap: 0.25rem;
        justify-content: center;
    }

    .hero-section {
        padding: 2rem 1rem 3rem;
        min-height: 50vh;
    }
    
    .hero-content {
        padding: 1rem;
        gap: 1.25rem;
    }
    
    .hero-title {
        font-size: clamp(2rem, 8vw, 2.5rem);
    }
    
    .hero-subtitle {
        font-size: clamp(0.9rem, 3vw, 1.125rem);
    }
    
    .hero-top-bar {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        padding: 1rem;
    }
    
    .hero-controls {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .location-display {
        padding: 0.875rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .radius-control-hero {
        padding: 1.25rem 1.5rem;
        max-width: 320px;
    }
  
    .services-section {
        padding: 1.5rem 1rem 1rem;
    }
  
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }
  
    .service-btn {
        padding: 0.75rem 0.25rem;
        min-height: 90px;
    }
  
    .service-icon {
        font-size: 1.5rem;
        margin-bottom: 0.25rem;
    }
  
    .service-title {
        font-size: 0.875rem;
    }
  
    .service-description {
        font-size: 0.7rem;
    }
  
    .controls-bar {
        padding: 1rem;
    }
  
    .results-section {
        padding: 0 1rem 2rem;
    }
  
    .results-table {
        font-size: 0.875rem;
    }
  
    .results-table th,
    .results-table td {
        padding: 0.75rem 0.5rem;
        width: auto !important;
    }
    
    .results-table {
        table-layout: auto;
    }
  
    .details-body {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .details-map {
        width: 100%;
        order: -1;
    }
    
    .map-container {
        height: 250px;
    }
    
    .details-content {
        padding: 1rem;
    }
    
    .photos-container {
        min-height: 120px;
    }
    
    .photo-wrapper {
        flex: 0 0 120px;
        height: 120px;
    }
    
    .map-legend {
        flex-direction: row;
        justify-content: center;
        gap: 1rem;
    }
}

/* Large screens */
@media (max-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    }
    
    .details-body {
        grid-template-columns: 1fr 350px;
    }
    
    .details-map {
        width: 350px;
    }
}

/* =========================
   Enhanced Details Row
   ========================= */
.details-row {
    display: none;
    background: var(--bg-primary);
    box-sizing: border-box;
}

.details-row.expanded {
    display: table-row;
    max-height: 800px;
    opacity: 1;
    padding: 1rem;
    border-top: 1px solid var(--border-light);
    animation: fadeIn 0.2s ease-out;
}

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

.details-content {
    padding: 1.5rem;
    width: 100%;
    overflow-x: hidden;
}

.merged-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
}

.details-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--border-light);
    flex-wrap: wrap;
    gap: 0.75rem;
}

.section-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    word-break: break-word;
}

.details-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

.distance-badge {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.1), rgba(6, 182, 212, 0.05));
    color: var(--accent-teal);
    padding: 0.375rem 1rem;
    border-radius: var(--radius-lg);
    font-size: 0.875rem;
    font-weight: 600;
    white-space: nowrap;
    border: 1px solid rgba(6, 182, 212, 0.2);
}

.details-body {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 2rem;
    min-height: 250px;
    width: 100%;
}

.details-columns {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    min-width: 0;
}

.details-about {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
}

.section-subtitle {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-light);
}

.about-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 0.75rem;
    word-break: break-word;
}

.about-item:last-child {
    margin-bottom: 0;
}

.about-item strong {
    color: var(--text-primary);
    min-width: 80px;
    font-weight: 600;
    flex-shrink: 0;
}

.about-item a {
    color: var(--accent-teal);
    text-decoration: none;
    font-weight: 500;
}

.about-item a:hover {
    text-decoration: underline;
}

.details-photos {
    flex: 1;
}

.photos-container {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    padding-bottom: 0.75rem;
    scrollbar-width: thin;
    scrollbar-color: var(--border-medium) transparent;
    min-height: 160px;
}

.photos-container::-webkit-scrollbar {
    height: 8px;
}

.photos-container::-webkit-scrollbar-track {
    background: var(--bg-primary);
    border-radius: 4px;
}

.photos-container::-webkit-scrollbar-thumb {
    background-color: var(--border-medium);
    border-radius: 4px;
}

.photos-container::-webkit-scrollbar-thumb:hover {
    background-color: var(--accent-teal);
}

.photo-wrapper {
    flex: 0 0 160px;
    height: 160px;
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}

.photo-wrapper:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
}

.photo-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.details-map {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 400px;
    flex-shrink: 0;
}

.map-container {
    height: 300px;
    border: 2px solid var(--border-light);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    background: var(--bg-primary);
    flex: 1;
    width: 100%;
    position: relative;
}

.map-legend {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    background: var(--bg-card);
    padding: 0.75rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 500;
    flex: 1;
    justify-content: center;
}

.legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
}

.current-dot {
    background: linear-gradient(135deg, #06b6d4, #0891b2);
}

.place-dot {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.no-content {
    color: var(--text-muted);
    text-align: center;
    padding: 2rem 1rem;
    font-style: italic;
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    border: 2px dashed var(--border-medium);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.no-content::before {
    content: '📍';
    font-size: 2rem;
    opacity: 0.5;
}

/* =========================
   Map Loading States
   ========================= */
.map-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text-muted);
    font-size: 14px;
    background: linear-gradient(45deg, #f8fafc 25%, transparent 25%), 
                linear-gradient(-45deg, #f8fafc 25%, transparent 25%), 
                linear-gradient(45deg, transparent 75%, #f8fafc 75%), 
                linear-gradient(-45deg, transparent 75%, #f8fafc 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
    animation: loading-pattern 2s linear infinite;
}

@keyframes loading-pattern {
    0% { background-position: 0 0, 0 10px, 10px -10px, -10px 0px; }
    100% { background-position: 20px 20px, 20px 30px, 30px 10px, 10px 20px; }
}

.map-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text-muted);
    font-size: 14px;
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, #fef7f7 0%, #fef2f2 100%);
}

.map-error::before {
    content: '🗺️';
    font-size: 32px;
    margin-bottom: 8px;
    opacity: 0.5;
}

/* =========================
   Map-specific enhancements
   ========================= */
.leaflet-container {
    font-family: 'Inter', -apple-system, system-ui, sans-serif;
}

.leaflet-popup-content-wrapper {
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
}

.leaflet-popup-content {
    margin: 12px 16px;
    line-height: 1.4;
}

.leaflet-control-zoom {
    border: none !important;
    box-shadow: var(--shadow-md) !important;
}

.leaflet-control-zoom a {
    border-radius: var(--radius-sm) !important;
    background: var(--bg-card) !important;
    color: var(--text-primary) !important;
    border: 1px solid var(--border-light) !important;
    transition: var(--transition) !important;
}

.leaflet-control-zoom a:hover {
    background: var(--accent-teal) !important;
    color: white !important;
    border-color: var(--accent-teal) !important;
}

.current-location-marker {
    position: relative;
    z-index: 1000;
}

.destination-marker {
    position: relative;
    z-index: 999;
}

@keyframes pulse-ring {
    0% {
        box-shadow: 0 0 0 0 rgba(6, 182, 212, 0.7);
    }
    70% {
        box-shadow: 0 0 0 20px rgba(6, 182, 212, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(6, 182, 212, 0);
    }
}

.route-info {
    z-index: 998;
}

/* =========================
   Utilities
   ========================= */
.hidden { 
    display: none !important; 
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .hero-title {
        background: none;
        -webkit-background-clip: unset;
        background-clip: unset;
        -webkit-text-fill-color: unset;
        color: #ffffff;
    }
    
    .service-btn {
        border-width: 3px;
    }
    
    .service-btn.active {
        border-width: 4px;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .service-btn::before {
        display: none;
    }
    
    .map-loading {
        animation: none;
        background: var(--bg-primary);
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-primary: #1e293b;
        --bg-card: #334155;
        --text-primary: #f8fafc;
        --text-secondary: #cbd5e1;
        --text-muted: #94a3b8;
        --border-light: #475569;
        --border-medium: #64748b;
    }
}

/* =========================
   Privacy Request Form
   ========================= */
.privacy-section {
  max-width: 600px;
  margin: 3rem auto;
  padding: 2rem;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.privacy-section h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-primary);
  text-align: center;
}

.privacy-form label {
  display: block;
  margin-bottom: 1rem;
  font-weight: 500;
  color: var(--text-primary);
}

.privacy-form input,
.privacy-form select,
.privacy-form textarea {
  width: 100%;
  padding: 0.75rem;
  margin-top: 0.4rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  background: var(--bg-card);
  color: var(--text-primary);
  transition: var(--transition);
}

.privacy-form input:focus,
.privacy-form select:focus,
.privacy-form textarea:focus {
  border-color: var(--accent-teal);
  outline: none;
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.2);
}

.privacy-form button {
  display: inline-block;
  background: var(--accent-teal);
  color: white;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
}

.privacy-form button:hover {
  background: #0891b2;
}
.site-footer {
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  background: var(--bg-card);
  margin-top: 3rem;
}

.site-footer a {
  color: var(--accent-teal);
  text-decoration: none;
  font-weight: 500;
}

.site-footer a:hover {
  text-decoration: underline;
}