/**
 * RAF-52: My Profile & Garage Section Styles
 * Styles for garage carousel, car profile form, mapbox widget, and address management
 */

/* ========================================================================
   Garage Panel Container (In Sidebar)
   ======================================================================== */

#garagePanel {
    max-width: 100%;
    overflow-x: hidden;
    padding: 0 !important;
}

#garageCarouselContainer {
    margin: 0;
    padding: 0;
}

/* Add padding to sections AFTER carousel */
.car-profile-section,
.garage-address-section,
#garageCarProfileSection,
#garageAddressSection {
    padding: 0 16px 16px 16px;
}

/* ========================================================================
   Garage Carousel Styles - Instagram Stories Style
   ======================================================================== */

.garage-carousel-wrapper {
    position: relative;
    width: 100%;
    max-width: 100%;
    height: 400px;
    overflow: hidden;
    border-radius: 0;
    background: #000;
    margin-bottom: 0;
    min-height: 300px;
}

/* Progress Bars (Instagram Stories Style) */
.carousel-progress-bars {
    position: absolute;
    top: 12px;
    left: 12px;
    right: 12px;
    display: flex;
    gap: 4px;
    z-index: 25;
}

.progress-bar {
    flex: 1;
    height: 3px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    transition: background 0.3s ease;
}

.progress-bar.active {
    background: rgba(75, 196, 81, 0.9);
}

.progress-bar.completed {
    background: rgba(255, 255, 255, 0.8);
}

/* Main Image Container */
.carousel-image-container {
    width: 100%;
    height: 100%;
    position: relative;
    background: #000;
}

.carousel-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
    animation: fadeIn 0.3s ease;
    z-index: 2; /* Behind door (3) but above black background (1) */
}

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

/* Placeholder State - Must fill entire container like an image */
.carousel-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    pointer-events: none; /* Allow clicks through to image */
    justify-content: center;
    color: #9ca3af;
    text-align: center;
    padding: 40px 20px;
    background: #1a1a1a;
    overflow: hidden;
}

/* Animated Garage Door */
.garage-door {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #2a2a2a 0%, #1a1a1a 100%);
    display: flex;
    flex-direction: column;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2;
}

/* Garage door panels (horizontal lines) */
.garage-door-panel {
    flex: 1;
    border-bottom: 2px solid #4BC451;
    background: linear-gradient(90deg, #2a2a2a 0%, #1f1f1f 50%, #2a2a2a 100%);
    position: relative;
}

.garage-door-panel:last-child {
    border-bottom: none;
}

/* Garage door handle (bottom panel) */
.garage-door-handle {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 8px;
    background: #4BC451;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(75, 196, 81, 0.5);
}

/* Ridy logo on door */
.garage-door-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: #4BC451; /* Ridy green */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    font-weight: bold;
    color: #ffffff; /* White R */
    font-family: 'Josefin Sans', sans-serif;
    z-index: 1;
}

/* Door opens when class is added via JavaScript */
.garage-door.door-opening {
    transform: translateY(-100%);
    transition: transform 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Loading text */
.garage-door-text {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    color: #4BC451;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    z-index: 3;
    animation: pulse 2s ease-in-out infinite;
    opacity: 1;
    transition: opacity 0.6s ease;
}

@keyframes pulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

@keyframes logoGlow {
    0%, 100% { 
        box-shadow: 
            0 0 20px rgba(75, 196, 81, 0.6),
            0 0 40px rgba(0, 168, 232, 0.4),
            0 0 60px rgba(75, 196, 81, 0.3);
    }
    50% { 
        box-shadow: 
            0 0 30px rgba(75, 196, 81, 0.8),
            0 0 60px rgba(0, 168, 232, 0.6),
            0 0 90px rgba(75, 196, 81, 0.4);
    }
}

.placeholder-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-placeholder svg {
    margin-bottom: 16px;
    opacity: 0.5;
}

.carousel-placeholder p {
    margin: 8px 0;
    font-size: 16px;
    font-weight: 600;
}

.carousel-placeholder .placeholder-hint {
    font-size: 14px;
    font-weight: 400;
    color: #6b7280;
}

/* Processing Overlay (appears ON TOP, doesn't replace content) */
.carousel-processing-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    z-index: 25;
}

.processing-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top-color: #4BC451;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 16px;
}

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

.carousel-processing-overlay p {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: white;
}

/* Disabled button state */
.carousel-action-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* Overlay Action Buttons - Small, upper corner */
.carousel-overlay-buttons {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    gap: 8px;
    z-index: 30;
}

.carousel-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 10px;
    width: 44px;
    height: 44px;
    background: rgba(75, 196, 81, 0.95);
    backdrop-filter: blur(8px);
    color: white;
    border: none;
    border-radius: 50%;
    font-family: 'Josefin Sans', sans-serif;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.carousel-action-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(75, 196, 81, 0.5);
    background: rgba(75, 196, 81, 1);
}

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

.carousel-action-btn svg {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
}

.carousel-action-btn span {
    display: none; /* Hide text, show icons only */
}

/* Navigation Arrows */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 20;
}

.carousel-nav:hover {
    background: rgba(0, 0, 0, 0.7);
    transform: translateY(-50%) scale(1.1);
}

.carousel-nav-prev {
    left: 12px;
}

.carousel-nav-next {
    right: 12px;
}

/* Angle Label */
.carousel-angle-label {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 15;
}

/* Full-Screen Image Preview Modal */
.garage-image-preview-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preview-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 1;
}

.preview-content {
    position: relative;
    z-index: 2;
    width: 95vw;
    height: 95vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preview-image-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    cursor: grab;
}

.preview-image-container:active {
    cursor: grabbing;
}

.preview-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
    transition: transform 0.1s ease-out;
    user-select: none;
    -webkit-user-drag: none;
}

.preview-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: white;
    z-index: 10;
}

.preview-close:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: #4BC451;
}

.preview-angle-label {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-family: 'Josefin Sans', sans-serif;
    font-size: 14px;
    font-weight: 600;
}

.preview-zoom-controls {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: flex;
    gap: 8px;
    z-index: 10;
}

.preview-zoom-btn {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: white;
    font-size: 20px;
    font-weight: bold;
    font-family: 'Josefin Sans', sans-serif;
}

.preview-zoom-btn:hover {
    background: rgba(75, 196, 81, 0.3);
    border-color: #4BC451;
    transform: scale(1.1);
}

.preview-zoom-btn:active {
    transform: scale(0.95);
}

.preview-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: white;
    z-index: 10;
}

.preview-nav:hover {
    background: rgba(75, 196, 81, 0.3);
    border-color: #4BC451;
}

.preview-nav-prev {
    left: 20px;
}

.preview-nav-next {
    right: 20px;
}

/* Scroll Hint Animation */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translate(-50%, -20px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

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

/* Notification Toast (Success/Error messages) */
.garage-notification {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    padding: 16px 20px;
    z-index: 10000;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 300px;
    max-width: 90vw;
    animation: slideDown 0.3s ease-out;
    font-family: 'Josefin Sans', sans-serif;
}

.garage-notification-success {
    border-left: 4px solid #4BC451;
}

.garage-notification-error {
    border-left: 4px solid #ef4444;
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.notification-icon {
    font-size: 20px;
    font-weight: bold;
}

.garage-notification-success .notification-icon {
    color: #4BC451;
}

.garage-notification-error .notification-icon {
    color: #ef4444;
}

.notification-message {
    font-size: 14px;
    color: #1f2937;
    font-weight: 500;
}

.notification-retry-btn {
    background: #4BC451;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    font-family: 'Josefin Sans', sans-serif;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.notification-retry-btn:hover {
    background: #3da842;
    transform: translateY(-1px);
}

.notification-close-btn {
    background: none;
    border: none;
    font-size: 24px;
    color: #9ca3af;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.notification-close-btn:hover {
    color: #1f2937;
}

.notification-fade-out {
    animation: fadeOut 0.3s ease-out forwards;
}

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

/* Form Loading Overlay (appears above form during N8N requests) */
.form-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    border-radius: 12px;
}

.form-loading-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: #1f2937;
}

.form-loading-content .loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e5e7eb;
    border-top-color: #4BC451;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.form-loading-content p {
    margin: 0;
    font-family: 'Josefin Sans', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #4BC451;
}

/* Mobile Responsive - Carousel */
@media (max-width: 768px) {
    .garage-carousel-wrapper {
        height: 350px;
        max-width: 100%;
    }

    .carousel-overlay-buttons {
        top: 12px;
        right: 12px;
        gap: 6px;
    }

    .carousel-action-btn {
        padding: 10px;
        border-radius: 50%;
        width: 40px;
        height: 40px;
    }

    .carousel-action-btn svg {
        width: 20px;
        height: 20px;
    }

    .carousel-action-btn span {
        display: none; /* Hide text on mobile, show icons only */
    }

    .carousel-nav {
        width: 36px;
        height: 36px;
    }
}

/* Car Properties Overlay (Top-left) */
.garage-car-properties {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 15;
}

.car-props-toggle {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    color: white;
    border: 1px solid rgba(75, 196, 81, 0.3);
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.car-props-toggle:hover {
    background: rgba(0, 0, 0, 0.85);
    border-color: rgba(75, 196, 81, 0.6);
}

.car-props-toggle.active svg {
    transform: rotate(45deg);
}

.car-props-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 8px;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(75, 196, 81, 0.3);
    border-radius: 8px;
    padding: 12px;
    min-width: 200px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.car-prop-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.car-prop-item:last-child {
    border-bottom: none;
}

.car-prop-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
}

.car-prop-value {
    font-size: 13px;
    color: white;
    font-weight: 600;
}

/* Action Buttons (Top-right) */
.garage-actions {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 15;
    display: flex;
    gap: 8px;
}

.garage-action-btn {
    background: rgba(75, 196, 81, 0.9);
    backdrop-filter: blur(8px);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.garage-action-btn:hover {
    background: rgba(75, 196, 81, 1);
    transform: translateY(-2px);
}

.garage-action-btn svg {
    opacity: 0.9;
}

/* Angle Badge */
.image-angle-badge {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.garage-carousel-track {
    display: flex;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.garage-carousel-slide {
    min-width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.garage-carousel-slide.active {
    opacity: 1;
}

.garage-image-container {
    width: 100%;
    padding: 40px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 280px; /* Ensure visible height */
}

.garage-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: 240px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    object-fit: contain; /* Changed from cover to contain */
}

/* Navigation Buttons */
.garage-carousel-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(75, 196, 81, 0.9);
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s ease;
    color: white;
}

.garage-carousel-nav-btn:hover {
    background: rgba(75, 196, 81, 1);
    transform: translateY(-50%) scale(1.1);
}

.garage-carousel-nav-btn.garage-prev {
    left: 12px;
}

.garage-carousel-nav-btn.garage-next {
    right: 12px;
}

/* Indicators with Auto-play Control */
.garage-carousel-indicators {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 10;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    padding: 8px 12px;
    border-radius: 20px;
}

.autoplay-toggle {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(75, 196, 81, 0.9);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    margin-right: 4px;
    color: white;
}

.autoplay-toggle:hover {
    background: rgba(75, 196, 81, 1);
    transform: scale(1.1);
}

.autoplay-toggle .play-icon,
.autoplay-toggle .pause-icon {
    transition: opacity 0.2s ease;
}

.garage-carousel-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.2s ease;
}

.garage-carousel-indicator.active {
    width: 24px;
    border-radius: 4px;
    background: #4BC451;
}

/* Loading and Error States */
.garage-carousel-loading,
.garage-carousel-error {
    padding: 60px 20px;
    text-align: center;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.garage-carousel-loading .spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(75, 196, 81, 0.2);
    border-top-color: #4BC451;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 16px;
}

.garage-carousel-loading p,
.garage-carousel-error p {
    color: #ffffff;
    font-size: 14px;
    margin-top: 12px;
}

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

.btn-retry {
    margin-top: 12px;
    padding: 10px 24px;
    background: #4BC451;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
}

.btn-retry:hover {
    background: #3da843;
}

/* ========================================================================
   Collapsible Section Styles
   ======================================================================== */

.collapsible-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: white;
    border-radius: 12px;
    margin-bottom: 8px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.collapsible-header:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.collapsible-header h4 {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
    flex: 1;
}

.collapse-toggle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f3f4f6;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    margin-left: 8px;
}

.collapse-toggle:hover {
    background: #e5e7eb;
}

.collapse-toggle.collapsed svg {
    transform: rotate(-90deg);
}

.collapsible-content {
    max-height: 2000px;
    opacity: 1;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease;
}

.collapsible-content.collapsed {
    max-height: 0;
    opacity: 0;
}

/* ========================================================================
   Car Profile Form Styles
   ======================================================================== */

.car-profile-section {
    background: white;
    border-radius: 12px;
    padding: 0;
    margin-bottom: 12px;
}

.car-profile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.car-profile-header h4 {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
}

.generate-image-btn {
    padding: 8px 16px;
    background: linear-gradient(135deg, #4BC451 0%, #3da843 100%);
    color: white !important;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.generate-image-btn svg {
    flex-shrink: 0;
}

.generate-image-btn span {
    color: white !important;
}

.generate-image-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(75, 196, 81, 0.3);
}

.generate-image-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Color Palette Picker - Compact with Custom Picker */
.color-palette {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 8px 0;
    align-items: center;
}

.color-swatch {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.color-swatch:hover {
    transform: scale(1.15);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.color-swatch.selected {
    border: none;
    transform: scale(1.2);
    filter: drop-shadow(0 0 12px rgba(75, 196, 81, 0.9))
            drop-shadow(0 0 20px rgba(75, 196, 81, 0.6)) !important;
}

.color-swatch .checkmark {
    color: white;
    font-size: 16px;
    font-weight: bold;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

/* Divider */
.color-palette-divider {
    width: 2px;
    height: 32px;
    background: #e5e7eb;
    margin: 0 4px;
}

/* Custom Color Picker Button (Rainbow) */
.color-picker-wrapper {
    position: relative;
    display: inline-flex;
}

.color-picker-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid #9ca3af;
    cursor: pointer;
    background: conic-gradient(
        from 0deg,
        red 0deg,
        yellow 60deg,
        lime 120deg,
        cyan 180deg,
        blue 240deg,
        magenta 300deg,
        red 360deg
    );
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    position: relative;
}

.color-picker-btn:hover {
    transform: scale(1.15);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    border-color: #4BC451;
}

.color-picker-btn::before {
    content: '🎨';
    font-size: 16px;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5));
}

/* When custom color is selected - Keep rainbow, add green glow */
.color-picker-btn.selected {
    border: none !important;
    transform: scale(1.2);
    z-index: 10;
    filter: drop-shadow(0 0 12px rgba(75, 196, 81, 0.9))
            drop-shadow(0 0 20px rgba(75, 196, 81, 0.6)) !important;
}

/* Keep rainbow and emoji visible when selected */
.color-picker-btn.selected::before {
    content: '🎨';
}

.color-picker-btn .checkmark {
    color: white;
    font-size: 16px;
    font-weight: bold;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
    position: absolute;
}

/* Hide native input but keep functional */
.color-picker-input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    top: 0;
    left: 0;
}

/* ========================================================================
   Pickr Custom Color Picker - Ridy Branding
   ======================================================================== */

/* Main Pickr container - Prevent sidebar close */
.pcr-app {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15) !important;
    border-radius: 12px !important;
    border: 2px solid #4BC451 !important;
    font-family: 'Josefin Sans', sans-serif !important;
    z-index: 9999 !important;
    position: fixed !important;
    overflow: hidden !important; /* Ensure inner elements respect rounded corners */
}

/* Hide Pickr's button completely - we use our own */
.pcr-button {
    display: none !important;
}

/* Save button - Ridy green */
.pcr-save {
    background: linear-gradient(135deg, #4BC451 0%, #3da843 100%) !important;
    color: white !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    padding: 8px 16px !important;
    border: none !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    font-family: 'Josefin Sans', sans-serif !important;
}

.pcr-save:hover {
    background: linear-gradient(135deg, #3da843 0%, #2d8a32 100%) !important;
    box-shadow: 0 4px 12px rgba(75, 196, 81, 0.4) !important;
    transform: translateY(-1px) !important;
}

/* Hide hex input and HEXA button - but keep Save button */
.pcr-interaction .pcr-result,
.pcr-interaction .pcr-type.active,
.pcr-interaction input {
    display: none !important;
}

/* Show interaction container (for Save button) */
.pcr-interaction {
    padding: 12px !important;
    display: flex !important;
    justify-content: center !important;
}

/* Keep Save button visible */
.pcr-interaction .pcr-save {
    display: block !important;
}

/* Swatches container */
.pcr-swatches {
    margin-top: 12px !important;
}

.pcr-swatches > button {
    border-radius: 50% !important;
    margin: 4px !important;
    border: none !important;
    transition: all 0.2s ease !important;
    position: relative !important;
    z-index: 1 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2) !important;
}

.pcr-swatches > button:hover {
    transform: scale(1.1) !important;
}

/* Remove ALL default borders from Pickr swatches */
.pcr-swatches > button,
.pcr-swatches > button::before,
.pcr-swatches > button::after {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

/* Selected swatch - Pure green glow ONLY */
.pcr-swatches > button.pcr-active,
.pcr-swatches > button.pcr-active::before,
.pcr-swatches > button.pcr-active::after {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    transform: scale(1.2) !important;
    z-index: 10 !important;
    position: relative !important;
}

/* Apply glow ONLY via filter (no borders/shadows) */
.pcr-swatches > button.pcr-active {
    filter: drop-shadow(0 0 12px rgba(75, 196, 81, 0.9)) 
            drop-shadow(0 0 20px rgba(75, 196, 81, 0.6)) 
            drop-shadow(0 0 30px rgba(75, 196, 81, 0.4)) !important;
}

/* Color picker area */
.pcr-picker {
    border-radius: 8px !important;
    overflow: hidden !important;
}

/* Hue slider */
.pcr-color-chooser,
.pcr-color-opacity {
    border-radius: 8px !important;
}

/* Interaction area */
.pcr-interaction {
    padding: 12px !important;
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .pcr-app {
        max-width: 90vw !important;
    }
    
    .pcr-save {
        width: 100% !important;
        padding: 12px !important;
    }
}

/* Custom color indicator (shows selected custom color) */
.custom-color-indicator {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid #9ca3af;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    position: relative;
    display: none; /* Hidden by default */
    align-items: center;
    justify-content: center;
    background: #000000; /* Will be updated via JS */
}

.custom-color-indicator.visible {
    display: flex;
}

.custom-color-indicator.selected {
    border: none !important;
    transform: scale(1.2);
    filter: drop-shadow(0 0 12px rgba(75, 196, 81, 0.9))
            drop-shadow(0 0 20px rgba(75, 196, 81, 0.6)) !important;
}

.custom-color-indicator .checkmark {
    color: white;
    font-size: 16px;
    font-weight: bold;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.custom-color-indicator.selected .checkmark {
    opacity: 1;
}

/* White swatch needs special handling */
.color-swatch[data-color="White"] .checkmark,
.color-swatch[data-color="Yellow"] .checkmark {
    color: #000000;
    text-shadow: none;
}

.car-profile-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    padding: 16px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-field-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 12px;
}

@media (max-width: 600px) {
    .form-field-group {
        grid-template-columns: 1fr;
    }
}

.form-field label {
    font-size: 14px;
    font-weight: 500;
    color: #4a4a4a;
    display: flex;
    align-items: center;
    gap: 6px;
}

.optional-label {
    font-size: 12px;
    font-weight: 400;
    color: #9ca3af;
    font-style: italic;
}

.form-field input,
.form-field select {
    padding: 10px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.2s ease;
}

/* Input with unit label */
.input-with-unit {
    position: relative;
    display: flex;
    align-items: center;
}

.input-with-unit input {
    flex: 1;
    padding-right: 60px; /* Make room for unit label */
}

.input-with-unit .unit-label {
    position: absolute;
    right: 12px;
    font-size: 13px;
    font-weight: 500;
    color: #6b7280;
    pointer-events: none;
}

/* Input with unit dropdown */
.input-with-unit-dropdown {
    display: flex;
    gap: 8px;
    align-items: center;
}

.input-with-unit-dropdown input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.2s ease;
}

.input-with-unit-dropdown input:focus {
    outline: none;
    border-color: #4BC451;
}

/* Custom Dropdown Component */
.custom-dropdown {
    position: relative;
    min-width: 90px;
}

.custom-dropdown-btn {
    width: 100%;
    padding: 10px 12px;
    padding-right: 32px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 500;
    color: #4a4a4a;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
}

.custom-dropdown-value {
    color: #1a1a1a; /* Darker for better contrast */
    font-weight: 600;
}

.custom-dropdown-btn:hover {
    border-color: #4BC451;
}

.custom-dropdown.open .custom-dropdown-btn {
    border-color: #4BC451;
    box-shadow: 0 0 0 3px rgba(75, 196, 81, 0.1);
}

.custom-dropdown-arrow {
    position: absolute;
    right: 10px;
    color: #6b7280;
    transition: transform 0.2s ease;
}

.custom-dropdown.open .custom-dropdown-arrow {
    transform: rotate(180deg);
}

.custom-dropdown-menu {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.2s ease;
    overflow: hidden;
}

.custom-dropdown.open .custom-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.custom-dropdown-option {
    padding: 10px 12px;
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 500;
    font-size: 14px;
    color: #4a4a4a;
    cursor: pointer;
    transition: all 0.15s ease;
}

.custom-dropdown-option:hover {
    background: rgba(75, 196, 81, 0.1);
    color: #4BC451;
}

.custom-dropdown-option:active {
    background: rgba(75, 196, 81, 0.2);
}

.form-field input:focus,
.form-field select:focus {
    outline: none;
    border-color: #4BC451;
}

.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.btn-save-profile {
    flex: 1;
    padding: 12px 24px;
    background: #4BC451;
    color: white !important;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.btn-save-profile svg {
    flex-shrink: 0;
    stroke: white;
}

.btn-save-profile span {
    color: white !important;
}

.btn-save-profile:hover {
    background: #3da843;
    box-shadow: 0 4px 12px rgba(75, 196, 81, 0.3);
}

/* ========================================================================
   Profile Completion Progress
   ======================================================================== */

.profile-completion {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
}

.profile-completion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.profile-completion-title {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
}

.profile-completion-percentage {
    font-size: 18px;
    font-weight: 700;
    color: #4BC451;
}

.profile-completion-bar {
    width: 100%;
    height: 8px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.profile-completion-fill {
    height: 100%;
    background: linear-gradient(90deg, #4BC451 0%, #3da843 100%);
    transition: width 0.3s ease;
    border-radius: 4px;
}

.profile-completion-reward {
    margin-top: 12px;
    padding: 10px;
    background: rgba(75, 196, 81, 0.1);
    border-radius: 8px;
    text-align: center;
    font-size: 13px;
    color: #2a7a2e;
}

.profile-completion-reward.claimed {
    background: rgba(75, 196, 81, 0.2);
    font-weight: 600;
}

/* ========================================================================
   Mapbox Widget Styles
   ======================================================================== */

.garage-address-section {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.garage-address-section h4 {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 16px;
}

.mapbox-widget {
    width: 100%;
    height: 300px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 16px;
    border: 2px solid #4BC451;
    box-shadow: 0 2px 8px rgba(75, 196, 81, 0.2);
}

/* Selected Address Display */
#selectedAddressDisplay {
    background: #f0fdf4;
    border: 1px solid #86efac;
    border-radius: 8px;
}

#selectedAddressDisplay .text-sm {
    color: #166534;
}

#selectedAddressDisplay .font-semibold {
    color: #15803d;
    font-weight: 600;
}

.bg-green-50 {
    background-color: #f0fdf4;
}

.border-green-200 {
    border-color: #bbf7d0;
}

.rounded-lg {
    border-radius: 0.5rem;
}

.p-3 {
    padding: 0.75rem;
}

.border {
    border-width: 1px;
}

.address-search-container {
    position: relative;
    margin-bottom: 12px;
}

.address-search-input {
    width: 100%;
    padding: 12px 40px 12px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
}

.address-search-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
}

.address-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-top: 4px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 20;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.address-suggestion-item {
    padding: 12px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.address-suggestion-item:hover {
    background: #f3f4f6;
}

.map-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.btn-map-action {
    flex: 1;
    padding: 10px 16px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
    color: #374151 !important;
}

.btn-map-action svg {
    flex-shrink: 0;
    stroke: #4BC451;
}

.btn-map-action span {
    color: #374151 !important;
}

.btn-map-action:hover {
    background: #f0fdf4;
    border-color: #4BC451;
    color: #15803d !important;
}

.btn-map-action:hover span {
    color: #15803d !important;
}

.location-type-toggle {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.location-type-toggle button {
    flex: 1 1 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 14px;
    border: 2px solid #9ca3af;
    border-radius: 10px;
    background: linear-gradient(135deg, #ffffff 0%, #f3f4f6 100%);
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s ease;
    color: #1f2937;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.location-type-toggle button .type-icon {
    font-size: 18px;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.15));
}

.location-type-toggle button .type-label {
    font-weight: 600;
    color: #374151;
}

.location-type-toggle button.active {
    border-color: #4BC451;
    border-width: 3px;
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    color: #15803d;
    box-shadow: 0 4px 12px rgba(75, 196, 81, 0.4),
                inset 0 1px 0 rgba(255, 255, 255, 0.6);
    transform: translateY(-2px);
}

.location-type-toggle button.active .type-icon {
    filter: drop-shadow(0 2px 4px rgba(75, 196, 81, 0.4));
    transform: scale(1.15);
}

.location-type-toggle button.active .type-label {
    color: #15803d;
    font-weight: 700;
}

.location-type-toggle button.disabled {
    opacity: 0.35;
    cursor: not-allowed;
    background: #f9fafb;
    border-color: #d1d5db;
}

/* Primary location type button (Garage) - more prominent when NOT active */
.location-type-toggle button.location-type-btn-primary:not(.active) {
    flex: 1 1 100%;
    border: 2px solid #9ca3af;
    background: linear-gradient(135deg, #ffffff 0%, #f3f4f6 100%);
}

.location-type-toggle button.location-type-btn-primary:not(.active) .type-icon {
    font-size: 18px;
}

.location-type-toggle button.location-type-btn-primary:not(.active) .type-label {
    color: #374151;
    font-weight: 600;
}

/* Garage button takes full width regardless of active state */
.location-type-toggle button.location-type-btn-primary {
    flex: 1 1 100%;
}

.location-type-toggle button:hover:not(.disabled):not(.active) {
    border-color: #4BC451;
    background: linear-gradient(135deg, #f9fafb 0%, #f0fdf4 100%);
    box-shadow: 0 3px 8px rgba(75, 196, 81, 0.25);
    transform: translateY(-1px);
}

/* Mobile: Stack buttons */
@media (max-width: 768px) {
    .location-type-toggle button {
        flex: 1 1 calc(50% - 4px);
        padding: 10px 12px;
        font-size: 12px;
    }
    
    .location-type-toggle button .type-icon {
        font-size: 16px;
    }
}

.btn-save-location {
    width: 100%;
    margin-top: 8px;
    background: #4BC451;
    color: white !important;
    border: none;
    border-radius: 8px;
    padding: 12px;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-save-location svg {
    stroke: white;
}

.btn-save-location:hover {
    background: #3da843;
    box-shadow: 0 4px 12px rgba(75, 196, 81, 0.3);
}

/* Current Location Marker - Blue Circle (like WhatsApp/Messenger) */
.current-location-marker {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #3b82f6;
    border: 3px solid #ffffff;
    box-shadow: 0 0 0 8px rgba(59, 130, 246, 0.3), 0 2px 8px rgba(0, 0, 0, 0.3);
    animation: pulse-current-location 2s infinite;
}

@keyframes pulse-current-location {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.4), 0 2px 8px rgba(0, 0, 0, 0.3);
    }
    50% {
        box-shadow: 0 0 0 15px rgba(59, 130, 246, 0), 0 2px 8px rgba(0, 0, 0, 0.3);
    }
}

/* Pending Location Marker - Red Flag (where user clicked) */
.pending-location-marker {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    animation: flag-bounce-in 0.4s ease;
}

.pending-location-marker::before {
    content: '🚩';
    font-size: 32px;
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.4));
}

@keyframes flag-bounce-in {
    0% {
        transform: scale(0) translateY(-30px);
        opacity: 0;
    }
    60% {
        transform: scale(1.15) translateY(-3px);
    }
    100% {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

/* Saved Location Markers - Emoji Icons with Colored Borders */
.saved-location-marker {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: white;
    border-radius: 50%;
    border: 3px solid #e5e7eb;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
}

.saved-location-marker:hover {
    transform: scale(1.2);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    z-index: 10;
}

.saved-location-marker .marker-icon {
    font-size: 22px;
}

/* Color-coded borders by type */
.saved-location-marker[data-type="garage"] {
    border-color: #4BC451;
}

.saved-location-marker[data-type="home"] {
    border-color: #3b82f6;
}

.saved-location-marker[data-type="work"] {
    border-color: #8b5cf6;
}

.saved-location-marker[data-type="safe_zone"] {
    border-color: #10b981;
}

.saved-location-marker[data-type="preferred"] {
    border-color: #f59e0b;
}

.saved-location-marker[data-type="other"] {
    border-color: #6b7280;
}

/* ========================================================================
   Address List Styles
   ======================================================================== */

.preferred-locations-section {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.preferred-locations-section h4 {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 16px;
}

/* Vertical Address List (Unified) */
.address-list-vertical {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.address-item-vertical {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    background: #f9fafb;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    transition: all 0.2s ease;
}

.address-item-vertical:hover {
    background: #f3f4f6;
    border-color: #4BC451;
    box-shadow: 0 2px 8px rgba(75, 196, 81, 0.1);
}

.address-item-header {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

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

.address-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f9fafb;
    border-radius: 8px;
    transition: background 0.2s ease;
}

.address-item:hover {
    background: #f3f4f6;
}

.address-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.address-details {
    flex: 1;
}

.address-details-vertical {
    flex: 1;
}

.address-label {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 2px;
}

.address-line {
    font-size: 12px;
    color: #6b7280;
}

.address-type-badge {
    display: inline-block;
    padding: 2px 8px;
    background: rgba(75, 196, 81, 0.1);
    color: #2a7a2e;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 4px;
    margin-top: 4px;
}

.address-actions {
    display: flex;
    gap: 8px;
}

.address-actions-vertical {
    display: flex;
    gap: 6px;
    align-items: center;
}

/* Icon-only action buttons */
.btn-icon-action {
    width: 32px;
    height: 32px;
    padding: 0;
    background: white;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.btn-icon-action:hover {
    background: #f3f4f6;
    border-color: #4BC451;
}

.btn-icon-action.delete:hover {
    background: #fee2e2;
    border-color: #ef4444;
}

.btn-icon-action.delete:hover svg {
    stroke: #ef4444;
}

.btn-icon-action.focus:hover {
    background: #dbeafe;
    border-color: #3b82f6;
}

.btn-icon-action.focus:hover svg {
    stroke: #3b82f6;
}

.btn-icon-action svg {
    stroke: #6b7280;
    transition: stroke 0.2s ease;
}

.btn-address-action {
    padding: 6px 12px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-address-action:hover {
    background: #f3f4f6;
    border-color: #4BC451;
}

.btn-add-location {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #4BC451 0%, #3da843 100%);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: transform 0.2s ease;
}

.btn-add-location:hover {
    transform: translateY(-2px);
}

.address-list-empty {
    text-align: center;
    padding: 40px 20px;
    color: #9ca3af;
}

.address-list-empty-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.load-more-addresses {
    width: 100%;
    padding: 10px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    margin-top: 12px;
    transition: all 0.2s ease;
}

.load-more-addresses:hover {
    background: #f3f4f6;
}

/* ========================================================================
   Mobile Responsive
   ======================================================================== */

@media (max-width: 768px) {
    .car-profile-form {
        grid-template-columns: 1fr;
    }
    
    .garage-image {
        max-width: 100%;
    }
    
    .mapbox-widget {
        height: 250px;
    }
    
    .map-actions {
        flex-direction: column;
    }
    
    .garage-carousel-nav-btn {
        width: 36px;
        height: 36px;
    }
    
    .garage-carousel-nav-btn.garage-prev {
        left: 8px;
    }
    
    .garage-carousel-nav-btn.garage-next {
        right: 8px;
    }
    
    /* Mobile carousel overlays */
    .garage-car-properties {
        top: 12px;
        left: 12px;
    }
    
    .garage-actions {
        top: 12px;
        right: 12px;
    }
    
    .garage-action-btn span {
        display: none; /* Hide text on mobile, show icons only */
    }
    
    .garage-action-btn {
        padding: 8px;
    }
    
    .car-props-dropdown {
        min-width: 180px;
    }
    
    .autoplay-toggle {
        width: 24px;
        height: 24px;
    }
}

/* ========================================================================
   Utilities
   ======================================================================== */

.hidden {
    display: none !important;
}

.text-success {
    color: #4BC451;
}

.text-error {
    color: #ef4444;
}

.text-muted {
    color: #9ca3af;
}

/* Spacing utilities (Tailwind-like) */
.mt-3 {
    margin-top: 0.75rem;
}

.mb-3 {
    margin-bottom: 0.75rem !important;
}

.mb-4 {
    margin-bottom: 1rem !important;
}

.mb-1 {
    margin-bottom: 0.25rem !important;
}

.text-sm {
    font-size: 0.875rem !important;
    line-height: 1.25rem !important;
}

.text-gray-600 {
    color: #4b5563 !important;
}

.text-gray-700 {
    color: #374151 !important;
}

.font-semibold {
    font-weight: 600 !important;
}

/* ========================================================================
   Mandatory Address Field Styling
   ======================================================================== */

/* Mandatory address - always visible, cannot be deleted */
.address-mandatory {
    border: 2px solid #4BC451 !important;
    background: linear-gradient(135deg, #f0fdf4 0%, #f9fafb 100%) !important;
}

.address-mandatory .address-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

/* "Required" badge */
.badge-required {
    display: inline-block;
    padding: 2px 8px;
    background: #4BC451;
    color: white;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 12px;
    letter-spacing: 0.5px;
}

/* Empty mandatory address - grayed out but clickable */
.address-empty {
    border: 2px dashed #d1d5db !important;
    background: #f9fafb !important;
    opacity: 0.8;
}

.address-empty.address-clickable {
    cursor: pointer;
    transition: all 0.3s ease;
}

.address-empty.address-clickable:hover {
    opacity: 1;
    border-color: #4BC451 !important;
    background: linear-gradient(135deg, #f0fdf4 0%, #f9fafb 100%) !important;
    box-shadow: 0 2px 8px rgba(75, 196, 81, 0.15);
}

.address-empty.address-clickable:active {
    transform: scale(0.98);
}

.address-empty .address-icon {
    opacity: 0.5;
    font-size: 24px;
    transition: opacity 0.3s ease;
}

.address-empty.address-clickable:hover .address-icon {
    opacity: 1;
}

.address-empty .address-label {
    color: #6b7280;
}

.address-empty.address-clickable:hover .address-label {
    color: #374151;
}

.address-empty .address-placeholder {
    color: #9ca3af;
    font-style: italic;
    font-size: 13px;
}

.address-empty.address-clickable:hover .address-placeholder {
    color: #4BC451;
}

.address-empty .badge-required {
    background: #9ca3af;
}

.address-empty.address-clickable:hover .badge-required {
    background: #4BC451;
}

/* Disabled button for empty address */
.btn-icon-action.disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

