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

html {
    max-width: 100%;
    overflow-x: hidden;
    height: 100%;
    scrollbar-gutter: stable;
}

html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    overflow-y: scroll;
    position: relative;
    -ms-overflow-style: scrollbar; /* Edge/IE */
}

:root {
    --nav-height: 56px;
    --primary: #4F46E5;
    --primary-dark: #4338CA;
    --primary-light: #6366F1;
    --secondary: #10B981;
    --accent: #F59E0B;
    --background: #FFFFFF;
    --surface: #F9FAFB;
    --text-primary: #111827;
    --text-secondary: #6B7280;
    --text-tertiary: #9CA3AF;
    --border: #E5E7EB;
    --error: #EF4444;
    --success: #10B981;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --radius: 12px;
    --radius-sm: 8px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    color: var(--text-primary);
    background: var(--background);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-tap-highlight-color: transparent;
    padding-top: calc(var(--nav-height, 56px) + env(safe-area-inset-top, 0));
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    z-index: 0;
}

body.home-page {
    background: transparent;
}

body.home-page::before {
    content: "";
    position: fixed;
    inset: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    z-index: -1;
}

body.home-page .hero {
    background: transparent;
}

body.modal-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

.container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 24px;
    min-width: 0;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid rgba(229, 231, 235, 0.5);
    padding: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border-bottom: 1px solid rgba(229, 231, 235, 0.8);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: calc(4px + env(safe-area-inset-top, 0));
    padding-bottom: 6px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
}

.logo-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    transition: var(--transition);
}

.logo-link:hover {
    opacity: 0.8;
    transform: scale(1.02);
}

.logo-text {
    cursor: pointer;
}

.logo-icon {
    width: 32px;
    height: 32px;
    color: var(--primary);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--primary);
}

/* User Menu */
.user-menu {
    position: relative;
}

.user-menu-btn {
    padding: 10px 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.user-menu-btn:hover {
    background: white;
    border-color: var(--primary);
    color: var(--primary);
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    min-width: 200px;
    padding: 8px 0;
    display: none;
    z-index: 1000;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.2s ease;
}

.user-dropdown.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.user-dropdown a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition);
    position: relative;
}

.user-dropdown a:hover {
    background: var(--surface);
    color: var(--primary);
}

.user-dropdown-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    border-bottom: 1px solid var(--border);
    font-weight: 700;
    color: var(--text-primary);
}

.user-dropdown-close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: var(--text-secondary);
    line-height: 1;
}

.user-dropdown-primary {
    font-weight: 700;
    color: var(--primary);
}

/* Notification Badge */
.notification-badge {
    position: static;
    background: #EF4444;
    color: white;
    font-size: 12px;
    font-weight: 700;
    min-width: 24px;
    height: 24px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 8px;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.5), 0 0 0 2px white;
    margin-left: 8px;
    animation: badge-pulse 2s ease-in-out infinite;
}

@keyframes badge-pulse {
    0%, 100% {
        box-shadow: 0 2px 8px rgba(239, 68, 68, 0.5), 0 0 0 2px white;
    }
    50% {
        box-shadow: 0 2px 12px rgba(239, 68, 68, 0.8), 0 0 0 2px white, 0 0 20px rgba(239, 68, 68, 0.3);
    }
}

.user-menu-btn .notification-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    margin-left: 0;
}

/* Buttons */
.btn {
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 16px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    min-height: 44px;
    touch-action: manipulation;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

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

.btn-secondary {
    background: var(--surface);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: white;
    border-color: var(--primary);
    color: var(--primary);
}

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

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

.btn-large {
    padding: 16px 32px;
    font-size: 16px;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

/* Hero Section */
.hero {
    padding: 20px 0 100px 0;
    background: transparent;
    color: white;
    overflow: hidden;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.hero-title {
    font-size: 56px;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.gradient-text {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    display: inline-block;
    text-shadow: 0 4px 30px rgba(251, 191, 36, 0.3);
}

.hero-description {
    font-size: 20px;
    line-height: 1.6;
    margin-bottom: 40px;
    opacity: 0.97;
    letter-spacing: -0.01em;
    font-weight: 400;
}

.hero-cta {
    display: flex;
    gap: 16px;
    margin-bottom: 60px;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 14px;
    opacity: 0.9;
}

/* Phone Mockup */
.phone-mockup {
    position: relative;
    width: 240px;
    height: 480px;
    background: #1F2937;
    border-radius: 40px;
    padding: 8px;
    box-shadow: var(--shadow-xl);
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: white;
    border-radius: 32px;
    overflow: hidden;
}

.app-preview {
    width: 100%;
    height: 100%;
    position: relative;
}

.map-preview {
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 30%, #ede9fe, #d4d4ff 40%, #c7d2fe 80%);
    background-size: cover;
    background-position: center 35%;
    position: relative;
}

.booking-modal-preview {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    width: 85%;
    background: white;
    padding: 13px;
    border-radius: 13px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
}

.close-btn-preview {
    position: absolute;
    top: 6px;
    right: 6px;
    background: none;
    border: none;
    font-size: 19px;
    color: #6B7280;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 22px;
    height: 22px;
}

.booking-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 3px 0;
}

.booking-address {
    font-size: 10px;
    color: #6B7280;
    margin: 0 0 8px 0;
}

.booking-price-large {
    font-size: 19px;
    font-weight: 700;
    color: var(--primary);
    margin: 0 0 6px 0;
}

.booking-ev-charging {
    font-size: 10px;
    color: #10B981;
    margin: 0 0 10px 0;
    display: flex;
    align-items: center;
    gap: 3px;
}

.book-btn-preview {
    width: 100%;
    padding: 10px;
    background: linear-gradient(135deg, #4F46E5 0%, #7C3AED 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.booking-card {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: white;
    padding: 20px;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
}

.booking-location {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.booking-price {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
}

/* Features Section */
.feature-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: var(--surface);
    border-radius: 20px;
    font-size: 13px;
    color: var(--text-secondary);
    width: auto;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}
}

.section-description {
    font-size: 18px;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 60px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.feature-card {
    background: white;
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.feature-icon svg {
    width: 28px;
    height: 28px;
    color: white;
}

.feature-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* How It Works Section */
.how-it-works {
    padding: 100px 0;
}

.steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    margin-top: 60px;
}

.step {
    flex: 1;
    max-width: 300px;
    text-align: center;
}

.step-number {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 800;
    margin: 0 auto 24px;
    box-shadow: var(--shadow-lg);
}

.step-content h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
}

.step-content p {
    color: var(--text-secondary);
}

.step-arrow {
    font-size: 48px;
    color: var(--primary);
    font-weight: 300;
}

/* Parkings Section */
.parkings-section {
    padding: 100px 0;
    background: var(--surface);
}

.section-header {
    margin-bottom: 40px;
}

.section-title {
    text-align: center;
}

.search-controls {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin: 0 auto;
    margin-top: 32px;
}

.search-input {
    flex: 1;
    padding: 14px 20px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 16px;
    transition: var(--transition);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.parkings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    grid-auto-rows: 1fr;
    align-items: stretch;
    gap: 32px;
}

.parking-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    cursor: pointer;
}

.parking-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.parking-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
}

.parking-status {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--success);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.parking-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 24px;
}

.parking-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.parking-address {
    color: var(--text-secondary);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.parking-features {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    align-items: center;
}

.feature-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: var(--surface);
    border-radius: 20px;
    font-size: 13px;
    color: var(--text-secondary);
}

.parking-content > .feature-badge {
    display: inline-flex;
    align-self: flex-start;
    width: auto;
    min-width: 0;
    max-width: 100%;
}

.parking-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.parking-price {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
}

.parking-price span {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
}

.loading {
    text-align: center;
    padding: 60px;
    color: var(--text-secondary);
    font-size: 18px;
}

/* Footer */
.footer {
    background: var(--text-primary);
    color: white;
    padding: 60px 0 30px;
    padding-bottom: calc(30px + env(safe-area-inset-bottom, 0));
    margin-top: auto;
}

.footer .container {
    padding-left: 24px;
    padding-right: 24px;
    width: 100%;
    max-width: 1200px;
    box-sizing: border-box;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-section {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

.footer-section h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
}

.footer-section a {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    margin-bottom: 12px;
    transition: var(--transition);
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
}

/* Modals */
.modal {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.22s ease, visibility 0.22s ease;
}

/* ============================================
   Flatpickr – App-style calendar
   ============================================ */
.flatpickr-calendar {
    z-index: 2600;
}

@keyframes flatpickrSlideDown {
    from { opacity: 0; transform: translateY(-8px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0)   scale(1);    }
}

/* Kill flatpickr's tooltip-arrow triangles — they're positioned with top:-10px
   so they escape overflow:hidden and appear as a white shape above the calendar.
   Must cover all specificity variants the CDN stylesheet uses. */
.flatpickr-calendar::before,
.flatpickr-calendar::after,
.flatpickr-calendar.open::before,
.flatpickr-calendar.open::after,
.flatpickr-calendar.arrowTop::before,
.flatpickr-calendar.arrowTop::after,
.flatpickr-calendar.arrowBottom::before,
.flatpickr-calendar.arrowBottom::after {
    display: none !important;
    content: none !important;
    border: none !important;
    visibility: hidden !important;
}

/* Base shell */
.flatpickr-calendar {
    font-family: 'Inter', -apple-system, sans-serif;
    background: #ffffff;
    border: none;
    border-radius: 20px 20px 0 0;
    padding: 0;
    box-shadow:
        0 0 0 1px rgba(79, 70, 229, 0.12),
        0 20px 60px rgba(17, 24, 39, 0.22),
        0 8px 24px  rgba(79, 70, 229, 0.10);
    animation: flatpickrSlideDown 0.18s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

/* ── Header ── */
.flatpickr-months {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 52px;  /* side padding = arrow width + gap */
    margin-bottom: 0;
    border-radius: 20px 20px 0 0;
    min-height: 52px;
}

.flatpickr-months .flatpickr-month {
    background: transparent;
    color: #ffffff;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
}

.flatpickr-current-month {
    position: static !important;
    width: auto !important;
    left: auto !important;
    padding: 0 !important;
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff !important;
    line-height: 1;
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    justify-content: center;
    flex-wrap: nowrap;
    white-space: nowrap;
}

/* Month shown as plain non-interactive text */
.flatpickr-current-month .flatpickr-monthDropdown-months {
    background: transparent !important;
    color: #ffffff;
    font-weight: 700;
    font-size: 1.05rem;
    border: none;
    pointer-events: none;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    background-image: none !important;
    padding: 0;
    margin: 0;
    cursor: default;
    vertical-align: middle;
    line-height: 1;
}

.flatpickr-current-month input.cur-year {
    color: #ffffff;
    font-weight: 700;
    font-size: 1.05rem;
    vertical-align: middle;
    line-height: 1;
    padding: 0;
    margin: 0;
}


/* Year numInputWrapper – clean up arrows so they don't look like close buttons */
.flatpickr-current-month .numInputWrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.flatpickr-current-month .numInputWrapper span {
    border: none;
    background: transparent;
    width: 14px;
    height: 14px;
    opacity: 0;
    pointer-events: none;
}

.flatpickr-current-month .numInputWrapper:hover span {
    opacity: 1;
    pointer-events: auto;
}

.flatpickr-current-month .numInputWrapper span::after {
    border: none !important;
}

.flatpickr-current-month .numInputWrapper span.arrowUp::after {
    content: '';
    display: block;
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-bottom: 5px solid rgba(255,255,255,0.7);
    margin: auto;
}

.flatpickr-current-month .numInputWrapper span.arrowDown::after {
    content: '';
    display: block;
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid rgba(255,255,255,0.7);
    margin: auto;
}

/* Remove browser native spin/clear buttons from year input */
.flatpickr-current-month input.cur-year::-webkit-inner-spin-button,
.flatpickr-current-month input.cur-year::-webkit-outer-spin-button,
.flatpickr-current-month input.cur-year::-webkit-clear-button {
    -webkit-appearance: none;
    display: none;
}

/* Prev / next arrows — absolutely pinned to left and right edges */
.flatpickr-months .flatpickr-prev-month,
.flatpickr-months .flatpickr-next-month {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.28);
    border: 1.5px solid rgba(255, 255, 255, 0.5);
    color: #ffffff !important;
    fill: #ffffff !important;
    transition: background 0.15s ease, transform 0.12s ease;
    padding: 0;
}

.flatpickr-months .flatpickr-prev-month {
    left: 8px !important;
}

.flatpickr-months .flatpickr-next-month {
    right: 8px !important;
}

.flatpickr-months .flatpickr-prev-month:hover,
.flatpickr-months .flatpickr-next-month:hover {
    background: rgba(255, 255, 255, 0.50);
    border-color: rgba(255, 255, 255, 0.8);
    transform: translateY(-50%) scale(1.1);
}

.flatpickr-months .flatpickr-prev-month svg,
.flatpickr-months .flatpickr-next-month svg {
    fill: #ffffff;
    width: 18px;
    height: 18px;
}

/* ── Day grid ── */
.flatpickr-rContainer {
    padding: 10px 12px 8px;
}

.flatpickr-weekdays {
    border-bottom: 1px solid var(--border);
    padding-bottom: 8px;
    margin-bottom: 4px;
}

.flatpickr-weekday {
    color: var(--text-tertiary);
    font-weight: 700;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
}

.flatpickr-day {
    border-radius: 10px;
    height: 38px;
    line-height: 38px;
    margin: 2px 0;
    font-weight: 500;
    font-size: 0.875rem;
    color: var(--text-primary);
    transition: background 0.12s ease, color 0.12s ease, transform 0.1s ease;
    border: none;
}

.flatpickr-day:hover,
.flatpickr-day:focus {
    background: #eef2ff;
    color: var(--primary);
    font-weight: 600;
    transform: scale(1.08);
    box-shadow: none;
}

.flatpickr-day.today {
    border: 2px solid var(--primary);
    color: var(--primary);
    font-weight: 700;
    background: transparent;
}

.flatpickr-day.today:hover {
    background: #eef2ff;
}

.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-color: var(--primary);
    color: #ffffff;
    font-weight: 700;
    transform: scale(1.08);
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.40);
}

.flatpickr-day.inRange {
    background: rgba(79, 70, 229, 0.1);
    border-color: transparent;
    color: var(--primary);
}

.flatpickr-day.prevMonthDay,
.flatpickr-day.nextMonthDay {
    color: var(--text-tertiary);
    opacity: 0.6;
}

.flatpickr-day.flatpickr-disabled {
    color: var(--text-tertiary);
    opacity: 0.4;
    font-weight: 400;
    position: relative;
    pointer-events: none;
}

.flatpickr-day.flatpickr-disabled::after {
    content: '';
    position: absolute;
    left: 8px;
    right: 8px;
    top: 50%;
    height: 1.5px;
    background: rgba(107, 114, 128, 0.55);
    border-radius: 2px;
    transform: translateY(-50%);
}

/* ── Time section ── */
.flatpickr-time {
    border-top: 1px solid var(--border);
    margin-top: 0;
    padding: 10px 12px;
    background: var(--surface);
    display: flex;
    align-items: center;
    gap: 4px;
}

.flatpickr-time .numInputWrapper {
    flex: 1;
}

.flatpickr-time input {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--text-primary);
    background: #ffffff;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    text-align: center;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.flatpickr-time input:hover,
.flatpickr-time input:focus {
    background: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
}

.flatpickr-time .flatpickr-time-separator {
    color: var(--text-secondary);
    font-weight: 700;
    font-size: 1.1rem;
    padding: 0 2px;
    align-self: center;
}

/* Hide AM/PM (always 24h) */
.flatpickr-time .flatpickr-am-pm {
    display: none !important;
}

/* Scroll arrows on time inputs */
.flatpickr-time .numInputWrapper span.arrowUp,
.flatpickr-time .numInputWrapper span.arrowDown {
    border-color: rgba(79, 70, 229, 0.2);
}

.flatpickr-time .numInputWrapper span.arrowUp:hover,
.flatpickr-time .numInputWrapper span.arrowDown:hover {
    background: #eef2ff;
}

/* ── Confirm button ── */
.flatpickr-confirm-bar {
    display: flex;
    justify-content: stretch;
    padding: 10px 12px 14px;
    background: var(--surface);
    border-top: 1px solid var(--border);
    border-radius: 0 0 20px 20px;
}

.flatpickr-confirm-btn {
    flex: 1;
    border: none;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
    padding: 11px 16px;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.30);
    transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
}

.flatpickr-confirm-btn:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.40);
}

.flatpickr-confirm-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.25);
}

/* Clear / Today footer links */
.flatpickr-calendar .flatpickr-innerContainer .flatpickr-rContainer + * a,
.flatpickr-calendar a.flatpickr-clear,
.flatpickr-calendar a.flatpickr-today {
    color: var(--primary);
    font-weight: 600;
}

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

/* ── Mobile overrides ── */
@media (max-width: 768px), (pointer: coarse) {
    .flatpickr-calendar {
        /* Bottom-sheet: fixed in viewport, anchored to bottom edge */
        position: fixed !important;
        bottom: 0 !important;
        top: auto !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        border-radius: 20px 20px 0 0 !important;
        z-index: 9999 !important;
        animation: flatpickrSlideUp 0.22s cubic-bezier(0.4, 0, 0.2, 1);
        padding: 0;
    }

    .flatpickr-calendar.flatpickr-confirm {
        width: 100% !important;
    }

    .flatpickr-current-month {
        font-size: 1.05rem;
    }

    .flatpickr-day {
        height: 42px;
        line-height: 42px;
        font-size: 0.9rem;
    }

    .flatpickr-time {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 10px 12px;
        background: var(--surface);
        border-top: 1px solid var(--border);
    }

    .flatpickr-time-select {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        padding: 12px 12px 0;
        background: var(--surface);
        border-top: 1px solid var(--border);
    }

    .flatpickr-time-select select {
        width: 100%;
        padding: 10px 12px;
        border: 1.5px solid var(--border);
        border-radius: 10px;
        background: #ffffff;
        font-weight: 700;
        color: var(--text-primary);
        font-size: 0.95rem;
        appearance: none;
        -webkit-appearance: none;
        background-image: linear-gradient(45deg, transparent 50%, var(--primary) 50%),
            linear-gradient(135deg, var(--primary) 50%, transparent 50%);
        background-position: calc(100% - 18px) calc(50% - 2px), calc(100% - 12px) calc(50% - 2px);
        background-size: 6px 6px, 6px 6px;
        background-repeat: no-repeat;
        padding-right: 32px;
    }

    .flatpickr-confirm-bar {
        background: var(--surface);
        border-top: 1px solid var(--border);
        padding: 10px 12px 14px;
    }
}

/* Mobile calendar backdrop — sits behind the bottom-sheet calendar */
#flatpickr-mobile-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 9998;
    touch-action: none;
}
#flatpickr-mobile-backdrop.active {
    display: block;
}

.modal.active {
    background: rgba(0, 0, 0, 0.55);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

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

.modal-content {
    background: white;
    border-radius: var(--radius);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
    transform: translateY(14px);
    opacity: 0;
    transition: transform 0.22s ease, opacity 0.22s ease;
}

.modal.active .modal-content {
    transform: translateY(0);
    opacity: 1;
}

.modal-large {
    max-width: 700px;
}

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

.modal-header {
    padding: 32px 32px 24px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    font-size: 24px;
    font-weight: 700;
}

.modal-close {
    width: 32px;
    height: 32px;
    border: none;
    background: var(--surface);
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: var(--transition);
}

.modal-close:hover {
    background: var(--error);
    color: white;
}

.modal-body {
    padding: 32px;
}

.form-group {
    margin-bottom: 24px;
}

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

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 16px;
    font-family: inherit;
    transition: var(--transition);
    min-height: 44px;
    touch-action: manipulation;
    -webkit-appearance: none;
    appearance: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.form-group input[type="date"],
.form-group input[type="datetime-local"],
.search-field input[type="datetime-local"] {
    -webkit-appearance: auto;
    appearance: auto;
    background-image: none;
}

.search-field input[type="datetime-local"]::-webkit-calendar-picker-indicator {
    opacity: 1;
}

#searchStartTimeDisplay,
#searchEndTimeDisplay {
    color: var(--text-primary);
    font-weight: 500;
    cursor: pointer;
}

#searchEndTimeDisplay::placeholder {
    color: var(--text-secondary);
    font-weight: 400;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.booking-time-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 12px;
    align-items: end;
    margin-bottom: 24px;
}

.booking-time-group {
    margin-bottom: 0;
}

.booking-time-arrow {
    font-size: 26px;
    font-weight: 700;
    color: var(--text-tertiary);
    align-self: center;
    padding-bottom: 6px;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.checkbox-group label {
    margin: 0;
    cursor: pointer;
    user-select: none;
}

.pricing-option input[type="radio"] {
    accent-color: var(--primary);
}

.pricing-option-active {
    border-color: var(--primary) !important;
    background: #eff6ff !important;
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.12);
}

.availability-windows {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.availability-window {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    padding: 12px;
    background: #f9fafb;
    border: 1px solid var(--border);
    border-radius: 8px;
}

.availability-window input[type="datetime-local"] {
    flex: 1 1 240px;
    min-width: 220px;
}

.plate-quick-actions {
    margin-top: 8px;
    background: #f9fafb;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px;
}

.plate-quick-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.plate-add-btn {
    background: none;
    border: none;
    color: var(--primary);
    font-weight: 700;
    cursor: pointer;
}

.plate-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.plate-chip {
    border: 1px solid var(--border);
    background: #eef2ff;
    color: #4338ca;
    padding: 6px 10px;
    border-radius: 9999px;
    font-weight: 600;
    cursor: pointer;
}

.plate-chip:hover {
    border-color: var(--primary);
}

.unavailable-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.unavailable-chip {
    background: #f3f4f6;
    color: #4b5563;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    font-weight: 600;
}

.availability-remove {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecdd3;
    border-radius: 6px;
    padding: 8px 12px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.availability-remove:hover {
    background: #fee2e2;
}

.add-availability-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

.add-availability-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(79, 70, 229, 0.1);
    color: var(--primary);
    font-weight: 800;
}

.verification-help {
    margin-top: 16px;
    padding: 14px;
    border: 1px solid #fcd34d;
    border-radius: var(--radius-sm);
    background: #fffbeb;
}

.verification-help p {
    color: #92400e;
    font-size: 14px;
    margin: 0;
}

.verification-help .btn {
    margin-top: 12px;
}

.modal-footer-text {
    text-align: center;
    margin-top: 24px;
    color: var(--text-secondary);
}

.modal-footer-text a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

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

.price-estimate {
    background: var(--surface);
    padding: 20px;
    border-radius: var(--radius-sm);
    margin-bottom: 24px;
    text-align: center;
}

.price-estimate:empty {
    display: none;
}

.price-estimate strong {
    font-size: 32px;
    color: var(--primary);
}

.booking-price-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
    flex-wrap: wrap;
    gap: 1rem;
}

.booking-price-actions > div:first-child {
    flex: 1;
    min-width: 150px;
}

.booking-actions-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* Chat Input - Prevent zoom on mobile */
#chatInput {
    font-size: 16px !important;
}

/* Responsive */
@media (max-width: 968px) {
    .hero .container {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .hero-image {
        display: flex;
        justify-content: center;
    }

    .hero-title {
        font-size: 42px;
    }

    .nav-menu {
        gap: 16px;
    }

    .nav-link {
        display: none;
    }

    body.home-page .navbar:not(.scrolled) {
        background: transparent;
        border-bottom-color: transparent;
        box-shadow: none;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }

    .steps {
        flex-direction: column;
    }

    .step-arrow {
        transform: rotate(90deg);
    }
}

@media (max-width: 640px) {
    .hero-cta {
        flex-direction: column;
    }

    .btn-large {
        width: 100%;
        justify-content: center;
    }

    .hero-stats {
        grid-template-columns: 1fr;
    }

    .features-grid,
    .parkings-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .search-controls {
        flex-direction: column;
        gap: 0.75rem !important;
        padding: 0 !important;
    }
    
    .container {
        padding: 0 16px;
    }
    
    .hero {
        padding: 100px 0 60px 0;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .hero-description {
        font-size: 16px;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .booking-time-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .booking-time-arrow {
        transform: rotate(90deg);
        justify-self: center;
        padding: 0;
    }
    
    /* Større touch targets på mobil */
    .btn {
        min-height: 48px;
        padding: 14px 24px;
    }

    .hero-secondary-cta {
        padding: 7px 12px;
    }
    
    .modal-close {
        width: 36px;
        height: 36px;
        min-width: 36px;
        min-height: 36px;
    }

    .modal-header {
        position: sticky;
        top: 0;
        background: white;
        z-index: 5;
    }
    
    /* Responsiv navbar */
    .navbar {
        padding: 12px 0;
    }
    
    .nav-menu .btn {
        padding: 10px 16px;
        font-size: 14px;
    }

    .booking-price-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .booking-actions-buttons {
        width: 100%;
        justify-content: stretch;
    }

    .booking-actions-buttons .btn {
        flex: 1;
    }

    .parking-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .parking-footer .btn {
        width: 100%;
    }

    .parking-price {
        font-size: 22px;
        line-height: 1.1;
        white-space: normal;
    }

    .parking-price span {
        font-size: 13px;
    }

    #searchLocation:focus,
    .unified-search-box input:focus {
        box-shadow: none !important;
        border-color: transparent !important;
    }
}

/* Map Section */
.map-section {
    padding: 0;
    background: var(--surface);
}

.container-fluid {
    width: 100%;
    padding: 0;
    margin-bottom: 40px;
}

.map-container {
    position: relative;
    width: 100%;
    height: 600px;
    max-height: 60vh;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    touch-action: pan-x pan-y;
}

/* Desktop: remove max-height constraint for better map display */
@media (min-width: 969px) {
    .map-container {
        max-height: none;
        height: 650px;
    }
}

.map-view {
    width: 100%;
    height: 100%;
}

.map-controls {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 12px;
    z-index: 1000;
}

.map-controls .btn {
    display: flex;
    align-items: center;
    gap: 8px;
}

.map-info-window {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    padding: 16px 24px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-xl);
    z-index: 1001;
    display: flex;
    align-items: center;
    gap: 12px;
}

.map-info-window p {
    margin: 0;
    font-weight: 500;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 14px;
}

/* Hidden state for map */
.map-section.hidden {
    display: none;
}

.parkings-section.hidden {
    display: none;
}

/* Google Places Autocomplete Styling */
.pac-container {
    background-color: #fff;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-xl);
    margin-top: 8px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    border: 1px solid var(--border);
    z-index: 2000;
}

.pac-container:after {
    display: none;
}

.pac-item {
    padding: 12px 16px;
    cursor: pointer;
    border: none;
    font-size: 14px;
    line-height: 1.5;
    transition: var(--transition);
}

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

.pac-item-selected {
    background-color: var(--surface);
}

.pac-icon {
    margin-top: 3px;
    margin-right: 12px;
    width: 20px;
    height: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234F46E5' stroke-width='2'%3E%3Cpath d='M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z'%3E%3C/path%3E%3Ccircle cx='12' cy='10' r='3'%3E%3C/circle%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}

.pac-item-query {
    color: var(--text-primary);
    font-weight: 500;
}

.pac-matched {
    color: var(--primary);
    font-weight: 600;
}

.pac-item .pac-item-query .pac-matched {
    color: var(--primary);
}

/* Search input focus state */
#searchLocation:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

/* Star Rating */
.star {
    cursor: pointer;
    color: #d1d5db;
    transition: color 0.2s;
    user-select: none;
}

.star:hover,
.star.active {
    color: #fbbf24;
}

.star.active {
    text-shadow: 0 0 8px rgba(251, 191, 36, 0.5);
}

/* Rating display */
.rating-display {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.875rem;
}

.rating-stars {
    color: #fbbf24;
    font-size: 1rem;
}

.rating-count {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* Search field hover effect */
.search-field:hover {
    background-color: #f3f4f6;
}

.search-field:active {
    background-color: #e5e7eb;
}
/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .unified-search-box {
        flex-direction: column !important;
        border-radius: 16px !important;
        min-width: auto !important;
    }
    
    .search-field {
        border-right: none !important;
        border-bottom: 1px solid var(--border) !important;
        padding: 1rem !important;
    }
    
    .search-field:last-child {
        border-bottom: none !important;
    }
    
    .search-controls {
        flex-direction: column !important;
        width: 100% !important;
        padding: 0 1rem;
    }
    
    .search-controls button {
        width: 100% !important;
        justify-content: center;
    }
    
    .section-title {
        font-size: 1.75rem !important;
    }
    
    /* Mine plasser - wrap buttons on mobile */
    #myParkingsList .btn {
        font-size: 0.875rem !important;
        padding: 0.625rem 0.75rem !important;
    }
    
    /* Force buttons to wrap and take full width on very small screens */
    @media (max-width: 480px) {
        #myParkingsList > div > div > div > div:last-child {
            flex-wrap: wrap;
        }
        
        #myParkingsList .btn {
            flex: 1 1 calc(50% - 0.25rem) !important;
            min-width: 0;
        }
    }
}

/* Date picker overlays - better cross-browser compatibility */
@media (hover: hover) and (pointer: fine) {
    .date-overlay {
        display: block;
        z-index: 1;
        pointer-events: all;
    }
    
    /* Ensure datetime inputs are above overlays and clickable in Edge */
    input[type="datetime-local"] {
        position: relative;
        z-index: 5;
        pointer-events: all;
    }
}

/* Hide overlays on touch devices - allow native input interaction */
@media (hover: none) or (pointer: coarse) {
    .date-overlay {
        display: none !important;
        pointer-events: none !important;
    }
    
    /* Make datetime inputs easier to tap on mobile */
    input[type="datetime-local"] {
        min-height: 44px !important;
        cursor: pointer !important;
        pointer-events: auto !important;
        -webkit-tap-highlight-color: rgba(79, 70, 229, 0.1);
        touch-action: manipulation;
    }
    
    /* Ensure parent containers don't block touches */
    .search-field, .form-group > div {
        pointer-events: auto !important;
    }
    
    /* Make sure labels don't block input interaction */
    label {
        pointer-events: none !important;
    }

    /* But keep filter toggles tappable */
    .ev-filter-checkbox,
    .ev-filter-checkbox * {
        pointer-events: auto !important;
    }
}

/* Compact Filter */
.filter-compact {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.sort-toggle {
    display: inline-flex;
    background: #F3F4F6;
    border-radius: 8px;
    padding: 4px;
    cursor: pointer;
}

.toggle-option {
    padding: 0.5rem 1.25rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
    transition: all 0.2s;
    user-select: none;
}

.toggle-option.active {
    background: white;
    color: var(--primary);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.ev-filter-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #F3F4F6;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
    transition: all 0.2s;
    user-select: none;
}

.ev-filter-checkbox:hover {
    background: #E5E7EB;
}

.ev-filter-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary);
}

.ev-filter-checkbox input[type="checkbox"]:checked {
    accent-color: #10B981;
}

.ev-filter-checkbox svg {
    vertical-align: middle;
}

/* Ensure modal scrolling works */
.modal-content {
    -webkit-overflow-scrolling: touch;
    touch-action: auto;
}

/* Spinner */
@keyframes spin {
    to { transform: rotate(360deg); }
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e5e7eb;
    border-top-color: #ff5b24;
    border-radius: 50%;
    animation: spin 0.75s linear infinite;
}
