/* MotorhomeMaps - Modern Stylesheet */

/* Fonts loaded via preload in HTML for better performance */

:root {
    /* Brand Colors */
    --primary: #FF6B35;
    --primary-dark: #E85A2C;
    --secondary: #004E89;
    --accent: #FFA552;
    --success: #10b981;
    --danger: #ef4444;
    --dark: #1a1a2e;

    /* Text Colors */
    --text: #2d3748;
    --text-light: #64748b;
    --text-lighter: #94a3b8;

    /* Background Colors */
    --bg: #f8fafc;
    --bg-secondary: #f1f5f9;
    --white: #ffffff;

    /* Slate Color Palette (commonly used grays) */
    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-300: #cbd5e1;
    --slate-400: #94a3b8;
    --slate-500: #64748b;
    --slate-600: #475569;
    --slate-700: #334155;
    --slate-800: #1e293b;
    --slate-900: #0f172a;

    /* Border Colors */
    --border: #e2e8f0;
    --border-light: #f1f5f9;
    --border-dark: #cbd5e1;

    /* Shadow Styles */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    --gradient-secondary: linear-gradient(135deg, var(--secondary) 0%, #003d6b 100%);
    --gradient-success: linear-gradient(135deg, var(--success) 0%, #059669 100%);

    /* Alert Colors */
    --success-bg: #d1fae5;
    --success-text: #065f46;
    --danger-bg: #fee2e2;
    --danger-text: #991b1b;
    --warning-bg: #fef3c7;
    --warning-text: #92400e;

    /* Memory Colors */
    --memory-trip: #3b82f6;
    --memory-trip-light: #dbeafe;
    --memory-location: #10b981;
    --memory-location-light: #dcfce7;
    --memory-other: #ec4899;
    --memory-other-light: #fce7f3;

    /* Transitions */
    --transition-default: all 0.3s ease;
    --transition-fast: all 0.2s ease;
}

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

html,
body {
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    overscroll-behavior-y: none;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    /* Prevent layout shift during font load */
    font-display: swap;
    min-height: 100vh;
}

/* Prevent body from being wider than viewport */
body > * {
    max-width: 100vw;
    box-sizing: border-box;
}

/* Allow map to function normally */
#map-container, #map, #map *, .gm-style, .gm-style * {
    max-width: none !important;
}

/* Screen reader only - for accessibility and SEO */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Headings use Inter with tighter spacing */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--text);
    overflow-x: hidden;
}

/* Header & Navigation */
header {
    background: linear-gradient(135deg, var(--secondary) 0%, #003d6b 100%);
    box-shadow: var(--shadow-lg);
    position: sticky;
    top: 0;
    z-index: 10002;
    backdrop-filter: blur(10px);
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    box-sizing: border-box;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem clamp(1rem, 3vw, 2rem);
    width: 100%;
    box-sizing: border-box;
}

.logo {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--white);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

/* Logo text styling - Poppins for brand */
.logo-text {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    letter-spacing: -0.02em;
    /* Prevent layout shift during font load */
    font-display: swap;
}

/* Show/hide desktop vs mobile nav - switch at 1200px */
@media (min-width: 1201px) {
    .desktop-nav {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 0.5rem;
        margin: 0;
        padding: 0;
        flex-wrap: nowrap;
    }

    .desktop-nav li {
        white-space: nowrap;
    }

    .desktop-nav a {
        color: rgba(255, 255, 255, 0.9);
        text-decoration: none;
        font-weight: 500;
        transition: all 0.3s ease;
        padding: 0.5rem 0.9rem;
        border-radius: 0.5rem;
        font-size: 0.9rem;
        display: inline-block;
    }

    .desktop-nav a:hover {
        color: var(--white);
        background: rgba(255, 255, 255, 0.1);
    }

    .mobile-nav {
        display: none;
    }

    .mobile-menu-toggle {
        display: none;
    }
}

.nav-links {
    list-style: none;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.95rem;
}

.nav-links a:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.1);
}

/* Active page state with orange accent */
.nav-links a.active,
.nav-links a.nav-explore.active {
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    border-bottom: 3px solid #FF6B35;
}

/* Explore Icon Animation */
.explore-icon .map-left,
.explore-icon .map-right,
.explore-icon .pin {
    transform-origin: center;
}

/* Default state - visible */
.nav-explore .explore-icon .map-left,
.nav-explore .explore-icon .map-right,
.nav-explore .explore-icon .pin {
    transform: translateX(0) translateY(0);
    opacity: 1;
}

/* Hover state - animate both panels simultaneously */
.nav-explore:hover .explore-icon .map-left {
    animation: slideInLeft 0.4s ease;
}

.nav-explore:hover .explore-icon .map-right {
    animation: slideInRight 0.4s ease;
}

.nav-explore:hover .explore-icon .pin {
    animation: dropDown 0.5s ease 0.2s;
}

/* Pin turns orange on hover */
.nav-explore:hover .explore-icon .pin path {
    stroke: #FF6B35;
    transition: stroke 0.3s ease;
}

@keyframes slideInLeft {
    0% {
        transform: translateX(-20px);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInRight {
    0% {
        transform: translateX(20px);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes dropDown {
    0% {
        transform: translateY(-15px);
        opacity: 0;
    }
    60% {
        transform: translateY(2px);
        opacity: 1;
    }
    80% {
        transform: translateY(-1px);
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Trips Icon Animation - Motorhome drives in with orange wheels */
.trips-icon .motorhome-body {
    transform-origin: center;
}

a:hover .trips-icon .motorhome-body {
    animation: driveIn 0.5s ease;
}

/* Both wheels turn orange on hover */
a:hover .trips-icon .wheel-left path,
a:hover .trips-icon .wheel-right path {
    fill: #FF6B35;
    filter: drop-shadow(0 0 4px #FF6B35);
    transition: all 0.3s ease;
}

@keyframes driveIn {
    0% {
        transform: translateX(-25px);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Memories Icon Animation - Camera bounce, heart pulse with orange */
.memories-icon .camera-body,
.memories-icon .camera-heart {
    transform-origin: center;
}

a:hover .memories-icon .camera-body {
    animation: cameraBounce 0.5s ease;
}

a:hover .memories-icon .camera-heart {
    animation: heartPulse 0.6s ease;
}

/* Orange fill on heart */
a:hover .memories-icon .camera-heart path {
    fill: #FF6B35;
    transition: fill 0.3s ease;
}

@keyframes cameraBounce {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-3px) scale(1.05);
    }
}

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

/* Achievements Icon Animation - Trophy bounce with orange confetti */
.achievements-icon {
    position: relative;
}

.achievements-icon .trophy-star {
    transform-origin: center;
}

/* Orange fill on star with pulse animation */
a:hover .achievements-icon .trophy-star {
    animation: starPulse 1.5s ease-in-out infinite;
}

a:hover .achievements-icon .trophy-star path {
    fill: #FF6B35;
}

@keyframes starPulse {
    0% {
        transform: scale(1);
        opacity: 1;
        filter: drop-shadow(0 0 2px #FF6B35);
    }
    15% {
        transform: scale(1.3);
        opacity: 1;
        filter: drop-shadow(0 0 8px #FFA552);
    }
    30% {
        transform: scale(1);
        opacity: 1;
        filter: drop-shadow(0 0 2px #FF6B35);
    }
    65% {
        opacity: 0.7;
        filter: drop-shadow(0 0 6px #FFA552);
    }
    100% {
        transform: scale(1);
        opacity: 1;
        filter: drop-shadow(0 0 2px #FF6B35);
    }
}

/* Profile Icon Animation - Simple transform without orange */
.profile-icon {
    transform-origin: center;
}

a:hover .profile-icon {
    animation: avatarBob 0.5s ease;
}

@keyframes avatarBob {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-3px);
    }
}

/* Logout Icon Animation - Arrow slides out, turns orange */
.logout-icon .logout-arrow {
    transform-origin: center;
}

a:hover .logout-icon .logout-arrow {
    animation: slideOut 0.4s ease;
}

a:hover .logout-icon path {
    fill: #FF6B35;
    transition: fill 0.3s ease;
}

@keyframes slideOut {
    0% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(5px);
    }
    100% {
        transform: translateX(0);
    }
}

/* Buttons */
.btn {
    padding: 0.75rem 1.75rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    border: 2px solid transparent;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--success) 0%, #059669 100%);
    color: white;
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--slate-500);
    color: var(--slate-600);
    padding: 0.6rem 1.5rem;
    transition: var(--transition-fast);
}

.btn-outline:hover {
    background: var(--slate-100);
    border-color: var(--slate-600);
    color: var(--slate-800);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* Map Container */
#map-container {
    height: calc(100vh - 76px);
    position: relative;
    background: var(--bg);
    overscroll-behavior: contain;
    touch-action: pan-x pan-y;
    z-index: 1;
}

#map {
    height: 100%;
    width: 100%;
    position: relative;
    z-index: 0;
    overscroll-behavior: contain;
    touch-action: pan-x pan-y;
}

/* Ensure Google Maps elements are visible */
#map * {
    max-width: none !important;
}

#map img {
    max-width: none !important;
}

#map .gm-style {
    position: relative !important;
}


/* Map Address Search */
.map-address-search {
    position: absolute;
    top: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    width: 90%;
    max-width: 500px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

/* Mobile search bar */
@media (max-width: 1200px) {
    .map-address-search {
        top: 1rem;
        left: 50%;
        transform: translateX(-50%);
        width: calc(100% - 2rem);
        max-width: none;
        transition: opacity 0.3s ease;
    }

    /* Hide search bar when location detail is open */
    .map-address-search.hidden {
        opacity: 0;
        pointer-events: none;
    }

    #gps-location-btn {
        flex-shrink: 0;
    }
}

@media (min-width: 1201px) {
    #mobile-search-toggle {
        display: none !important;
    }
}

.map-address-search input,
.map-address-search gmp-place-autocomplete {
    flex: 1;
    padding: 1rem 1.25rem;
    border: none;
    border-radius: 2rem;
    font-size: 0.95rem;
    background: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.map-address-search input:focus {
    outline: none;
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.2);
}

/* Style the new PlaceAutocompleteElement */
gmp-place-autocomplete {
    width: 100%;
    margin: 0 !important;
    padding: 0 !important;
    display: block;
}

gmp-place-autocomplete * {
    margin: 0 !important;
    box-sizing: border-box;
}

gmp-place-autocomplete input {
    width: 100%;
    padding: 1rem 1.25rem !important;
    border: none;
    border-radius: 2rem;
    font-size: 0.95rem;
    background: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

gmp-place-autocomplete input:focus {
    outline: none;
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.2);
}

.map-address-search button {
    width: 2rem;
    height: 2rem;
    border: none;
    color: white;
    border-radius: 50%;
    font-size: 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

#clear-search {
    position: absolute;
    right: 3.5rem;
    background: var(--danger);
}

#clear-search:hover {
    background: #dc2626;
    transform: scale(1.1);
}

#gps-location-btn {
    background: white;
    width: 3rem;
    height: 3rem;
    border: 2px solid var(--border);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

#gps-location-btn svg {
    color: var(--secondary);
    transition: all 0.3s ease;
}

#gps-location-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(255, 107, 53, 0.3);
}

#gps-location-btn:hover svg {
    color: white;
}

#gps-location-btn:active {
    transform: translateY(0);
}

#gps-location-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

#gps-location-btn:disabled:hover {
    transform: none;
    background: white;
    border-color: var(--border);
}

#gps-location-btn:disabled:hover svg {
    color: var(--secondary);
}

/* Google Places Autocomplete styling */
.pac-container {
    z-index: 1051 !important;
    border-radius: 1rem;
    margin-top: 0.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border: none;
}

.pac-item {
    padding: 0.75rem 1rem;
    border-top: 1px solid var(--border);
    cursor: pointer;
}

.pac-item:hover {
    background: var(--bg);
}

.pac-item:first-child {
    border-top: none;
}

/* Sidebar */
.sidebar {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    width: 380px;
    height: calc(100% - 10rem);
    max-height: calc(100% - 10rem);
    background: var(--white);
    border-radius: 1rem;
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    z-index: 999;
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    transition: height 0.3s ease, max-height 0.3s ease;
}

.sidebar.collapsed {
    height: 100px;
    max-height: 100px;
}

.sidebar.collapsed .sidebar-body {
    max-height: 0;
    opacity: 0;
    padding: 0;
}

.sidebar.collapsed .location-list {
    max-height: 0;
    opacity: 0;
    padding: 0;
}

.sidebar-toggle-bottom {
    width: 100%;
    padding: 0.5rem;
    background: var(--primary);
    border: none;
    border-radius: 0 0 0.95rem 0.95rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    margin-top: auto;
}

.sidebar-toggle-bottom:hover {
    background: var(--primary-dark);
}

.toggle-icon-bottom {
    color: white;
    font-size: 0.9rem;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.sidebar.collapsed .toggle-icon-bottom {
    transform: rotate(180deg);
}

/* Bottom Left Action Buttons Container */
.bottom-left-buttons {
    position: absolute;
    bottom: 2rem;
    left: 1.5rem;
    z-index: 100;
    display: flex;
    flex-direction: row;
    gap: 0.75rem;
}

/* Action Button Styles */
.action-btn {
    background: white;
    border: 2px solid var(--border);
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    min-width: 140px;
}

.action-btn svg {
    flex-shrink: 0;
    color: var(--text);
    transition: all 0.3s ease;
}

.action-btn-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text);
    transition: all 0.3s ease;
    white-space: nowrap;
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
    background: var(--bg);
}

.action-btn:active {
    transform: translateY(0);
}

/* Active state for weather toggle (matches other buttons) */
.weather-active {
    background: var(--secondary) !important;
    border-color: var(--secondary) !important;
}

.weather-active .action-btn-label,
.weather-active svg {
    color: white !important;
}

.sidebar-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.sidebar-body {
    transition: max-height 0.3s ease, opacity 0.3s ease, padding 0.3s ease;
    max-height: 1000px;
}

.sidebar-header {
    padding: 0.75rem 2rem;
    background: linear-gradient(135deg, var(--secondary) 0%, #003d6b 100%);
    color: var(--white);
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.sidebar-header:hover {
    background: linear-gradient(135deg, #004d8c 0%, #002d4d 100%);
}

.sidebar-header.has-active-filters {
    animation: subtle-pulse 2s ease-in-out infinite;
    box-shadow: 0 0 20px rgba(255, 107, 53, 0.3);
}

@keyframes subtle-pulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(255, 107, 53, 0.3);
    }
    50% {
        box-shadow: 0 0 30px rgba(255, 107, 53, 0.5);
    }
}

@keyframes filter-pulse {
    0%, 100% {
        box-shadow: 0 0 15px rgba(255, 107, 53, 0.4);
    }
    50% {
        box-shadow: 0 0 25px rgba(255, 107, 53, 0.6);
    }
}

.sidebar.collapsed .sidebar-header {
    padding: 1rem 2rem;
}

.sidebar-header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.sidebar-header h2 {
    margin-bottom: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.result-count {
    font-size: 0.875rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.25rem 0.6rem;
    border-radius: 1rem;
    display: inline-block;
}

.collapse-chevron {
    flex-shrink: 0;
    transition: transform 0.3s ease;
    color: var(--white);
    opacity: 0.8;
}

.sidebar.collapsed .collapse-chevron {
    transform: rotate(-180deg);
}

.sidebar-header:hover .collapse-chevron {
    opacity: 1;
}

.search-box {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.75rem;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.95);
    transition: all 0.3s ease;
    color: var(--text);
}

.search-box:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.search-box::placeholder {
    color: var(--text-light);
}

/* Category Tabs */
.category-tabs {
    display: flex;
    gap: 0.35rem;
    margin-top: 0.5rem;
}

.category-tab {
    flex: 1;
    padding: 0.4rem 0.5rem;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--white);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.1rem;
}

.category-tab span:first-child {
    font-size: 1.1rem;
}

.category-tab:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
}

.category-tab.active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.4);
}

/* Filters Container */
.filters-container {
    margin-top: 0.5rem;
    position: relative;
}

.filters-toggle {
    width: 100%;
    padding: 0.6rem 0.85rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.15) 100%);
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-radius: 0.6rem;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--white);
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.filters-toggle.has-active-filters {
    animation: filter-pulse 2s ease-in-out infinite;
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(255, 107, 53, 0.4);
}

.filters-toggle:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.25) 100%);
    transform: translateY(-1px);
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.15);
}

.filters-toggle.active {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.9) 0%, rgba(255, 107, 53, 0.8) 100%);
    border-color: var(--primary);
}

.filter-icon {
    transition: transform 0.3s ease;
    font-size: 0.7rem;
}

.filters-toggle.active .filter-icon {
    transform: rotate(180deg);
}

.filters-panel {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease, opacity 0.3s ease;
    background: var(--secondary);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.6rem;
    margin-top: 0.4rem;
    backdrop-filter: blur(10px);
    z-index: 10;
    opacity: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
}

.filters-panel.active {
    max-height: 375px;
    padding: 0.8rem;
    overflow: visible;
    opacity: 1;
}

.filters-scrollable {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    margin-bottom: 0.6rem;
}

.filters-scrollable::-webkit-scrollbar {
    width: 6px;
}

.filters-scrollable::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.filters-scrollable::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.filters-scrollable::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* Accordion Filter Styles */
.filter-accordion-item {
    margin-bottom: 0.5rem;
    border-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

.filter-accordion-item:first-child {
    margin-top: 0.5rem;
}

.filter-accordion-header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.7rem 0.75rem;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--white);
    position: relative;
}

.filter-accordion-header::after {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 0;
    background: var(--primary);
    border-radius: 0 2px 2px 0;
    transition: height 0.3s ease;
}

.filter-accordion-header.has-active-filters::after {
    height: 60%;
}

.filter-accordion-header:hover {
    background: rgba(255, 255, 255, 0.08);
}

.filter-accordion-header.active {
    background: rgba(255, 255, 255, 0.1);
}

.filter-accordion-header.has-active-filters .filter-accordion-title {
    color: var(--primary);
    font-weight: 800;
}

.filter-accordion-title {
    font-size: 0.85rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-accordion-icon {
    font-size: 0.7rem;
    color: var(--primary);
    transition: transform 0.2s ease;
}

.filter-accordion-content {
    display: none;
    padding: 0 0.75rem 0.75rem 0.75rem;
    margin-top: 0.5rem;
}

.filter-options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.5rem;
}

/* Legacy filter styles - keep for backwards compatibility */
.filter-group {
    margin-bottom: 0.7rem;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0.4rem;
    border-left: 3px solid var(--primary);
}

.filter-group:last-of-type {
    margin-bottom: 0.5rem;
}

.filter-label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 0.4rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-label::before {
    content: "▸";
    color: var(--primary);
    font-size: 0.9rem;
}

.filter-options-horizontal {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.filter-checkbox {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    cursor: pointer;
    padding: 0.5rem 0.7rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(255, 255, 255, 0.15);
    position: relative;
    overflow: hidden;
    min-width: 140px;
    width: 100%;
    justify-content: flex-start;
}

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

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

.filter-checkbox:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.filter-checkbox input[type="checkbox"] {
    display: none;
}

.filter-checkbox input[type="checkbox"]:checked + span {
    font-weight: 700;
}

.filter-checkbox:has(input[type="checkbox"]:checked) {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    border-color: #f59e0b;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.4);
}

.filter-checkbox:has(input[type="checkbox"]:checked):hover {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.5);
}

.filter-checkbox span {
    color: var(--white);
    font-size: 0.8rem;
    font-weight: 600;
    position: relative;
    z-index: 1;
}

.btn-clear-filters {
    width: 100%;
    padding: 0.5rem;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.8) 0%, rgba(220, 38, 38, 0.8) 100%);
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    border-radius: 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--white);
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    flex-shrink: 0;
}

.btn-clear-filters:hover {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.95) 0%, rgba(220, 38, 38, 0.95) 100%);
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(239, 68, 68, 0.3);
}

.location-list {
    padding: 0.75rem;
    overflow-y: auto;
    flex: 1;
    transition: max-height 0.3s ease, opacity 0.3s ease;
}

.location-list::-webkit-scrollbar {
    width: 6px;
}

.location-list::-webkit-scrollbar-track {
    background: var(--bg);
}

.location-list::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 3px;
}

.location-list::-webkit-scrollbar-thumb:hover {
    background: var(--text-light);
}

.location-card {
    background: white;
    border-radius: 0.75rem;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 0.75rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border);
}

.location-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    border-color: var(--primary);
}

.location-card-image {
    width: 100%;
    height: 180px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.location-card-no-image {
    background: linear-gradient(135deg, var(--secondary) 0%, #003d6b 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.location-card-no-image span {
    font-size: 4rem;
    opacity: 0.6;
}

.location-card-content {
    padding: 1rem;
}

.location-card h3 {
    margin: 0 0 0.5rem 0;
    color: var(--secondary);
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.3;
}

.location-description {
    color: var(--text-light);
    font-size: 0.85rem;
    line-height: 1.5;
    margin: 0 0 0.75rem 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.location-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}

.location-card-meta {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.location-rating {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent);
}

.location-distance {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary);
    white-space: nowrap;
}

.cost-badge {
    padding: 0.25rem 0.6rem;
    border-radius: 0.4rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* Favorite button styles */
.favorite-btn.favorited {
    border-color: #34A853 !important;
    background: #f0fdf4 !important;
    animation: gleam 3s ease-in-out infinite;
}

.favorite-btn.favorited:hover {
    border-color: #2d8e47 !important;
    background: #e8f7ed !important;
    transform: scale(1.05) !important;
}

/* Gleaming animation */
@keyframes gleam {
    0%, 100% {
        box-shadow: 0 0 0 rgba(52, 168, 83, 0);
    }
    50% {
        box-shadow: 0 0 15px rgba(52, 168, 83, 0.6), 0 0 25px rgba(52, 168, 83, 0.3);
    }
}

.cost-free {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.cost-paid {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
}

.cost-donation {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
}

.location-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.875rem;
    color: var(--text-light);
    flex-wrap: wrap;
}

.rating {
    color: var(--accent);
    font-weight: 600;
}

/* Unified Modal System - Consolidates .modal-overlay and .custom-modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 5.5rem;
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal {
    background: var(--white);
    border-radius: 1rem;
    padding: 2rem;
    max-width: 1400px;
    width: 95%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
    transform: scale(0.9);
    transition: transform 0.3s ease;
    position: relative;
}

.modal-overlay.active .modal {
    transform: scale(1);
}

/* Compact modal variant for confirmations/alerts */
.modal-overlay.modal-compact .modal {
    max-width: 500px;
    padding: 0;
}

.modal-header {
    margin-bottom: 1.5rem;
}

.modal-header h3,
.modal-header h2 {
    font-size: 1.5rem;
    color: var(--secondary);
    margin-bottom: 0.5rem;
}

.modal-header p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Compact modal header */
.modal-compact .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 1.5rem 0 1.5rem;
    margin-bottom: 0;
}

.modal-compact .modal-header h2,
.modal-compact .modal-header h3 {
    margin: 0;
}

.modal-body {
    margin-bottom: 1.5rem;
}

/* Compact modal body */
.modal-compact .modal-body {
    padding: 1.5rem;
    margin-bottom: 0;
}

.modal-close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-light);
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    line-height: 1;
    padding: 0;
    z-index: 1;
}

.modal-close-btn:hover {
    background: var(--bg);
    color: var(--secondary);
    transform: rotate(90deg);
}

.modal-footer {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.modal-footer .btn {
    flex: 1;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text);
}

.form-control {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--border);
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--white);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

select.form-control {
    cursor: pointer;
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

/* Cards */
.card {
    background: var(--white);
    border-radius: 1rem;
    box-shadow: var(--shadow);
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid var(--border);
}

.card h2 {
    margin-bottom: 1.5rem;
    color: var(--secondary);
    font-size: 1.75rem;
}

/* Grid */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

/* Alert/Flash Messages */
.alert {
    padding: 1.25rem 1.75rem;
    border-radius: 0.75rem;
    margin-bottom: 1.5rem;
    border-left: 4px solid;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(-20px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.alert-success {
    background: var(--success-bg);
    color: var(--success-text);
    border-color: var(--success);
}

.alert-error {
    background: var(--danger-bg);
    color: var(--danger-text);
    border-color: var(--danger);
}

.alert-warning {
    background: var(--warning-bg);
    color: var(--warning-text);
    border-color: var(--accent);
}

/* Leaflet Popup Customization */
.leaflet-popup-content-wrapper {
    border-radius: 0.75rem;
    padding: 0;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.leaflet-popup-content {
    margin: 0;
    min-width: 250px;
}

.popup-content {
    padding: 1.25rem;
}

.popup-title {
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--secondary);
}

.popup-category {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    background: var(--bg);
    border-radius: 0.5rem;
    font-size: 0.8rem;
    margin-bottom: 0.75rem;
    color: var(--primary);
    font-weight: 600;
    text-transform: capitalize;
}

.popup-content p {
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.popup-content .btn {
    width: 100%;
    margin-top: 0.5rem;
}

/* Loading Spinner */
.spinner {
    border: 3px solid var(--border);
    border-top: 3px solid var(--primary);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 3rem auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Mobile Hamburger Menu */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.75rem;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 10001;
}

.mobile-menu-backdrop {
    display: none;
    position: fixed;
    top: 48px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu-backdrop.active {
    display: block;
    opacity: 1;
}

/* Responsive styles moved to mobile.css */

/* Utility Classes */
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.hidden { display: none; }

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

.fade-in {
    animation: fadeIn 0.3s ease;
}

/* Floating Action Button */
.fab {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: white;
    border: none;
    box-shadow: var(--shadow-xl);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    z-index: 999;
}

.fab:hover {
    transform: scale(1.1);
    box-shadow: 0 20px 30px -10px rgba(255, 107, 53, 0.5);
}

/* Button gleam/shine effect */
@keyframes buttonGleam {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

.btn-gleam {
    position: relative;
    overflow: hidden;
}

.btn-gleam::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg,
        transparent,
        rgba(255, 255, 255, 0.4),
        transparent);
    transform: skewX(-25deg);
}

.btn-gleam:hover::before {
    animation: buttonGleam 0.6s ease;
}

.fab:active {
    transform: scale(0.95);
}

/* Pin Drop Animations */
@keyframes pinDrop {
    0% {
        transform: translateY(-300px) scale(0.5);
        opacity: 0;
    }
    60% {
        transform: translateY(0) scale(1.1);
        opacity: 1;
    }
    80% {
        transform: translateY(-10px) scale(0.95);
    }
    100% {
        transform: translateY(0) scale(1);
    }
}

@keyframes pinPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.3);
        opacity: 0.5;
    }
}

.custom-marker {
    animation: pinDrop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.marker-pulse {
    animation: pinPulse 1s ease-out;
}

/* Add Location Card - Premium Design Below Marker */
.add-location-card {
    position: absolute;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    width: auto;
    max-width: 90vw;
    z-index: 10000;
    opacity: 0;
    /* NO transition on transform - position is controlled by JavaScript */
    transition: opacity 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: none;
    pointer-events: all;
}

.add-location-card.active {
    opacity: 1;
    /* Transform is controlled by JavaScript - no CSS transform here */
}

/* Premium arrow removed - card content has its own styling */

/* Premium styling for inputs */
.add-location-card input[type="text"],
.add-location-card textarea {
    transition: all 0.2s ease;
    border: 2px solid #e2e8f0;
}

.add-location-card input[type="text"]:focus,
.add-location-card textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.add-location-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

/* Auth dropdowns (Login & Sign Up) */
.auth-dropdown {
    position: fixed;
    top: 70px; /* Below header */
    z-index: 10001;
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
    /* Prevent layout shift */
    visibility: hidden;
    will-change: opacity, transform;
}

.auth-dropdown.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
    visibility: visible;
}

.auth-dropdown-content {
    background: #ffffff;
    border-radius: 0 0 1rem 1rem; /* Only round bottom corners */
    box-shadow: 0 20px 60px -15px rgba(0, 0, 0, 0.3),
                0 10px 30px -10px rgba(0, 0, 0, 0.2);
    padding: 1.75rem;
    width: 380px;
    max-width: 90vw;
    border: 3px solid var(--secondary);
    position: relative;
}

/* Arrow pointing up to the nav buttons - dynamically positioned via JS */
.auth-dropdown-content::before {
    content: '';
    position: absolute;
    top: -12px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 12px 12px 12px;
    border-color: transparent transparent var(--secondary) transparent;
}

.auth-dropdown-content::after {
    content: '';
    position: absolute;
    top: -8px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 10px 10px 10px;
    border-color: transparent transparent #ffffff transparent;
}

.auth-dropdown-content .close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 1;
}

.add-location-header h4 {
    font-size: 1.5rem;
    color: var(--secondary);
    margin: 0;
    font-weight: 700;
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--secondary);
    cursor: pointer;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    line-height: 1;
    padding: 0;
}

.close-btn:hover {
    background: var(--bg);
    color: var(--danger);
    transform: rotate(90deg);
}

.add-location-subtitle {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.add-location-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.875rem;
    margin-top: 1.5rem;
}

.location-type-btn {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 1.5rem 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.625rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
}

.location-type-btn:hover {
    background: white;
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px -6px rgba(255, 107, 53, 0.3);
}

.location-type-btn:active {
    transform: translateY(-1px);
}

.location-type-btn .icon {
    font-size: 2.5rem;
    line-height: 1;
}

.location-type-btn .label {
    text-align: center;
    line-height: 1.2;
    font-size: 0.95rem;
    color: var(--secondary);
}

.location-type-btn .sublabel {
    text-align: center;
    font-size: 0.75rem;
    font-weight: 500;
    color: #64748b;
    line-height: 1.2;
}

/* Category-specific colors */
.location-type-btn:nth-child(1) {
    /* Wild Stop - Green nature theme */
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-color: #86efac;
}

.location-type-btn:nth-child(1):hover {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    border-color: #4ade80;
    box-shadow: 0 8px 20px -6px rgba(34, 197, 94, 0.4);
}

.location-type-btn:nth-child(2) {
    /* Campsite - Blue facility theme */
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-color: #93c5fd;
}

.location-type-btn:nth-child(2):hover {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border-color: #60a5fa;
    box-shadow: 0 8px 20px -6px rgba(59, 130, 246, 0.4);
}

.location-type-btn:nth-child(3) {
    /* Discovery - Gold exploration theme */
    background: linear-gradient(135deg, #fefce8 0%, #fef9c3 100%);
    border-color: #fde047;
}

.location-type-btn:nth-child(3):hover {
    background: linear-gradient(135deg, #fef9c3 0%, #fef08a 100%);
    border-color: #facc15;
    box-shadow: 0 8px 20px -6px rgba(234, 179, 8, 0.4);
}

.location-type-btn:nth-child(4) {
    /* Petrol Station - Purple theme */
    background: linear-gradient(135deg, #faf5ff 0%, #f3e8ff 100%);
    border-color: #d8b4fe;
}

.location-type-btn:nth-child(4):hover {
    background: linear-gradient(135deg, #f3e8ff 0%, #e9d5ff 100%);
    border-color: #c084fc;
    box-shadow: 0 8px 20px -6px rgba(168, 85, 247, 0.4);
}

/* Mobile adjustments for add location card moved to mobile.css */

/* Gleam Animation */
@keyframes gleam {
    0% {
        background-position: -200% center;
    }
    100% {
        background-position: 200% center;
    }
}

.gleam-btn {
    position: relative;
    overflow: hidden;
    background-size: 200% 100%;
}

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

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

/* ========================================
   FORM HELPER STYLES
   Consistent form styling across the app
   ======================================== */

.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    color: var(--slate-800);
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border);
    border-radius: 0.5rem;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.2s ease;
    background: var(--white);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
}

.form-select {
    cursor: pointer;
}

.form-file {
    width: 100%;
    padding: 0.75rem;
    border: 2px dashed var(--border);
    border-radius: 0.5rem;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.form-file:hover {
    border-color: var(--primary);
    background: var(--bg);
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

/* ============================================
   MEMORIES PAGE STYLES
   ============================================ */

/* Memory Types Color System */
:root {
    --memory-trip-color: #3b82f6;
    --memory-trip-light: #dbeafe;
    --memory-location-color: #10b981;
    --memory-location-light: #dcfce7;
    --memory-other-color: #ec4899;
    --memory-other-light: #fce7f3;
}

/* Container & Layout */
.memories-container {
    max-width: 1400px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.memories-header {
    text-align: center;
    margin-bottom: 3rem;
}

.memories-header h1 {
    font-size: 2.5rem;
    color: var(--secondary);
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--memory-other-color) 0%, #d946ef 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.memories-header p {
    color: var(--text-light);
    font-size: 1.1rem;
}

/* Stats Banner */
.stats-banner {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.stats-banner .stat-card {
    background: linear-gradient(135deg, var(--memory-other-light) 0%, #fbcfe8 100%);
    padding: 1rem;
    border-radius: 0.75rem;
    text-align: center;
    border: 2px solid #fbcfe8;
}

.stats-banner .stat-number {
    font-size: 1.75rem;
    font-weight: 700;
    color: #831843;
    margin-bottom: 0.25rem;
}

.stats-banner .stat-label {
    color: #9f1239;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Tabs */
.memories-tabs {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--slate-200);
    padding-bottom: 0;
}

.tab-btn {
    padding: 0.75rem 2rem;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    color: var(--text-light);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    bottom: -2px;
}

.tab-btn:hover {
    color: var(--primary);
}

.tab-btn.active {
    color: var(--memory-other-color);
    border-bottom-color: var(--memory-other-color);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Filter Buttons */
.memory-filter-btn {
    padding: 0.65rem 1.25rem;
    background: var(--white);
    border: 2px solid var(--border);
    border-radius: 0.5rem;
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.memory-filter-btn:hover {
    border-color: var(--border-dark);
    background: var(--slate-50);
}

.memory-filter-btn.active {
    background: linear-gradient(135deg, var(--memory-other-color) 0%, #d946ef 100%);
    color: var(--white);
    border-color: var(--memory-other-color);
}

/* Timeline */
.timeline-wrapper {
    position: relative;
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--memory-other-color) 0%, #d946ef 100%);
    transform: translateX(-50%);
    border-radius: 2px;
}

.timeline-item {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 2rem;
    margin-bottom: 4rem;
    position: relative;
    align-items: stretch;
}

.timeline-card-wrapper {
    display: flex;
    align-items: center;
}

.timeline-card-wrapper.left {
    grid-column: 1;
    justify-content: flex-end;
}

.timeline-card-wrapper.right {
    grid-column: 3;
    justify-content: flex-start;
}

/* Memory Cards */
.memory-card {
    background: var(--white);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s;
    border: 3px solid var(--memory-other-light);
    width: 100%;
    max-width: 500px;
    position: relative;
}

/* Memory Type Colors */
.memory-card.trip {
    border-color: var(--memory-trip-light);
}

.memory-card.location {
    border-color: var(--memory-location-light);
}

.memory-card.other {
    border-color: var(--memory-other-light);
}

/* Memory Badge */
.memory-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 10;
    padding: 0.4rem 0.75rem;
    border-radius: 0.35rem;
    font-size: 0.75rem;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    color: var(--white);
}

.memory-badge.trip {
    background: linear-gradient(135deg, var(--memory-trip-color) 0%, #2563eb 100%);
}

.memory-badge.location {
    background: linear-gradient(135deg, var(--memory-location-color) 0%, #059669 100%);
}

.memory-badge.other {
    background: linear-gradient(135deg, var(--memory-other-color) 0%, #d946ef 100%);
}

/* Memory Image */
.memory-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    cursor: pointer;
}

.memory-img-placeholder {
    width: 100%;
    height: 250px;
    background: linear-gradient(135deg, var(--memory-other-light) 0%, #fbcfe8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Memory Content */
.memory-content {
    padding: 1.5rem;
    text-align: left;
}

.memory-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--slate-800);
    margin: 0 0 0.75rem 0;
}

.memory-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 0.75rem;
}

.memory-description {
    color: var(--slate-600);
    line-height: 1.6;
    margin: 0;
}

.memory-actions {
    display: flex;
    gap: 0.25rem;
}

/* Timeline Center Elements */
.timeline-dot {
    grid-column: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.timeline-dot-circle {
    width: 20px;
    height: 20px;
    background: var(--white);
    border: 4px solid var(--memory-other-color);
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(236, 72, 153, 0.2);
}

.timeline-date {
    display: flex;
    align-items: center;
}

.timeline-date.left {
    grid-column: 3;
    text-align: left;
    justify-content: flex-start;
}

.timeline-date.right {
    grid-column: 1;
    text-align: right;
    justify-content: flex-end;
}

.timeline-date-badge {
    background: linear-gradient(135deg, var(--memory-other-light) 0%, #fbcfe8 100%);
    padding: 0.75rem 1.25rem;
    border-radius: 2rem;
    border: 2px solid #fbcfe8;
    display: inline-block;
}

.timeline-date-text {
    font-size: 0.95rem;
    font-weight: 700;
    color: #831843;
}

/* Action Buttons */
.memory-icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.4rem;
    background: var(--white);
    border: 1.5px solid #fbcfe8;
    border-radius: 0.35rem;
    color: var(--memory-other-color);
    cursor: pointer;
    transition: all 0.2s;
}

.memory-icon-btn:hover {
    background: var(--slate-50);
    border-color: var(--slate-300);
}

.memory-icon-btn.delete {
    color: var(--text-light);
}

.memory-icon-btn.delete:hover {
    color: var(--slate-700);
}

/* Load More Button */
.load-more-btn {
    display: block;
    margin: 2rem auto;
    padding: 0.85rem 2rem;
    background: var(--white);
    border: 2px solid var(--memory-other-color);
    color: var(--memory-other-color);
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.load-more-btn:hover {
    background: linear-gradient(135deg, var(--memory-other-color) 0%, #d946ef 100%);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(236, 72, 153, 0.3);
}

/* Map */
#memories-map {
    height: 600px;
    border-radius: 1rem;
    box-shadow: var(--shadow-xl);
    margin-bottom: 2rem;
}

/* No Memories State */
.no-memories {
    text-align: center;
    padding: 6rem 2rem;
    color: var(--text-light);
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.no-memories svg {
    width: 120px;
    height: 120px;
    margin-bottom: 1.5rem;
    opacity: 0.2;
    stroke: var(--text-light);
}

.no-memories h2 {
    font-size: 1.75rem;
    color: var(--secondary);
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.no-memories p {
    font-size: 1.05rem;
    color: var(--text-light);
    max-width: 500px;
    line-height: 1.6;
}

/* Mobile Responsive styles moved to mobile.css */

/* Mobile bottom navigation & results panel styles moved to mobile.css */

/* Google Maps controls customization for mobile */
@media (max-width: 1200px) {
    /* Position map type controls above mobile nav */
    .gm-style .gm-style-mtc {
        margin-left: 10px !important;
        margin-bottom: 86px !important; /* Above mobile nav (76px) + spacing */
    }

    /* Make map type buttons more compact on mobile */
    .gm-style .gm-style-mtc button {
        font-size: 0.85rem !important;
        padding: 6px 12px !important;
        height: auto !important;
    }

    /* Hide fullscreen control on mobile */
    .gm-fullscreen-control {
        display: none !important;
    }
}
