/* --- COOKIE BANNER STYLES (NEW) --- */

/* Variables (using project defaults where possible) */
:root {
    --cb-green: #3EA647;
    --cb-dark: #333;
    --cb-light: #f9f9f9;
    --cb-border: #eee;
    --cb-overlay: rgba(0,0,0,0.6);
    --cb-shadow: 0 -10px 40px rgba(0,0,0,0.2);
}

/* 1. Trigger Button (Fingerprint) */
#cookie-settings-trigger {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 50px;
    height: 50px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    z-index: 9999;
    transition: 0.3s;
    color: var(--cb-dark);
    opacity: 0.8;
}
#cookie-settings-trigger:hover {
    transform: scale(1.1);
    background: var(--cb-green);
    color: white;
    border-color: var(--cb-green);
    opacity: 1;
}

/* 2. Overlay */
.cookie-banner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--cb-overlay);
    z-index: 10000;
    display: flex;
    align-items: flex-end; /* Mobile Default: Bottom */
    justify-content: center;
    backdrop-filter: blur(5px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.cookie-banner-overlay.is-visible {
    opacity: 1;
    visibility: visible;
}

/* 3. Modal Card */
.cookie-modal {
    background: white;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 20px 20px 0 0;
    box-shadow: var(--cb-shadow);
    transform: translateY(100%);
    transition: transform 0.3s ease-out;
    display: flex;
    flex-direction: column;
}

.cookie-banner-overlay.is-visible .cookie-modal {
    transform: translateY(0);
}

/* Desktop Styles */
@media (min-width: 768px) {
    .cookie-banner-overlay {
        align-items: center; /* Center on Desktop */
    }
    .cookie-modal {
        width: 500px;
        border-radius: 12px;
        max-height: 85vh;
        transform: scale(0.9);
        opacity: 0;
    }
    .cookie-banner-overlay.is-visible .cookie-modal {
        transform: scale(1);
        opacity: 1;
    }
}

/* 4. Header */
.cookie-header {
    padding: 20px;
    border-bottom: 1px solid var(--cb-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    background: white;
    z-index: 10;
}
.cookie-header h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
}
#close-cookie-banner {
    background: none;
    border: none;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    color: #999;
    padding: 0 10px;
}
#close-cookie-banner:hover { color: #333; }

/* 5. Body */
.cookie-body {
    padding: 20px;
    flex: 1;
    overflow-y: auto;
}
.cookie-body p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
    margin-bottom: 20px;
}

/* 6. Options List */
.cookie-options-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}
.cookie-option-item {
    background: var(--cb-light);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid var(--cb-border);
    transition: border-color 0.3s;
}
.cookie-option-item.highlight {
    border-color: #ff4444;
    animation: shake 0.5s;
}
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.option-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}
.option-title {
    font-weight: 700;
    font-size: 1rem;
}
.option-desc {
    font-size: 0.8rem;
    margin: 0 !important;
    opacity: 0.8;
}

/* 7. Switch Toggle */
.switch {
    position: relative;
    display: inline-block;
    width: 46px;
    height: 24px;
}
.switch input { opacity: 0; width: 0; height: 0; }
.slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 24px;
}
.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}
input:checked + .slider { background-color: var(--cb-green); }
input:checked + .slider:before { transform: translateX(22px); }
.slider.disabled { opacity: 0.6; cursor: not-allowed; }

/* 8. Links */
.cookie-links {
    font-size: 0.8rem;
    text-align: center;
    color: #999;
    margin-top: 10px;
}
.cookie-links a { color: #666; text-decoration: underline; }

/* 9. Footer Buttons */
.cookie-footer {
    padding: 20px;
    border-top: 1px solid var(--cb-border);
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: white;
    position: sticky;
    bottom: 0;
}
.cookie-footer button {
    width: 100%;
    justify-content: center;
    padding: 12px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}
.btn-primary { background: var(--cb-green); color: white; }
.btn-secondary { background: #eee; color: #333; }
.btn-secondary:hover { background: #ddd; }

@media (min-width: 768px) {
    .cookie-footer {
        flex-direction: row;
    }
}

/* 10. Map Placeholder */
.map-placeholder {
    width: 100%;
    height: 100%;
    min-height: 300px;
    background: #f9f9f9;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #eee;
}
