/* ============================================
   COOKIE CONSENT STYLES
   ============================================ */

/* Cookie Banner */
#cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--black, #1a1a1a);
    color: var(--white, #ffffff);
    z-index: 9999;
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.3s ease-out;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
}

#cookie-banner.show {
    transform: translateY(0);
}

.cookie-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
    justify-content: space-between;
}

.cookie-banner-text {
    flex: 1;
    min-width: 280px;
}

.cookie-banner-text h3 {
    color: var(--gold, #C9A227);
    margin: 0 0 10px 0;
    font-size: 1.2rem;
    font-family: 'Playfair Display', serif;
}

.cookie-banner-text p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}

.cookie-banner-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

/* Cookie Buttons */
.cookie-btn {
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid transparent;
    font-family: 'Inter', sans-serif;
}

.cookie-btn-accept {
    background: var(--gold, #C9A227);
    color: var(--black, #1a1a1a);
    border-color: var(--gold, #C9A227);
}

.cookie-btn-accept:hover {
    background: transparent;
    color: var(--gold, #C9A227);
}

.cookie-btn-necessary {
    background: transparent;
    color: var(--white, #ffffff);
    border-color: rgba(255, 255, 255, 0.5);
}

.cookie-btn-necessary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--white, #ffffff);
}

.cookie-btn-settings {
    background: transparent;
    color: rgba(255, 255, 255, 0.8);
    border-color: transparent;
    text-decoration: underline;
}

.cookie-btn-settings:hover {
    color: var(--white, #ffffff);
}

/* Cookie Settings Modal */
#cookie-settings-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

#cookie-settings-modal.show {
    opacity: 1;
    visibility: visible;
}

.cookie-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.cookie-modal-content {
    position: relative;
    background: var(--white, #ffffff);
    border-radius: 12px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

#cookie-settings-modal.show .cookie-modal-content {
    transform: scale(1);
}

.cookie-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.cookie-modal-header h3 {
    margin: 0;
    color: var(--black, #1a1a1a);
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
}

.cookie-modal-close {
    background: none;
    border: none;
    font-size: 1.8rem;
    color: rgba(0, 0, 0, 0.5);
    cursor: pointer;
    padding: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.cookie-modal-close:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--black, #1a1a1a);
}

.cookie-modal-body {
    padding: 24px;
    overflow-y: auto;
    max-height: 400px;
}

.cookie-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 20px 24px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    background: rgba(0, 0, 0, 0.02);
}

/* Cookie Options */
.cookie-option {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.cookie-option:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.cookie-option-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.cookie-option-header strong {
    color: var(--black, #1a1a1a);
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cookie-option p {
    margin: 0;
    font-size: 0.9rem;
    color: rgba(0, 0, 0, 0.6);
    line-height: 1.5;
}

/* Badges */
.cookie-badge-required,
.cookie-badge-optional {
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cookie-badge-required {
    background: rgba(0, 0, 0, 0.1);
    color: rgba(0, 0, 0, 0.6);
}

.cookie-badge-optional {
    background: var(--gold, #C9A227);
    color: white;
}

/* Toggle Switch */
.cookie-toggle {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
    cursor: pointer;
}

.cookie-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-toggle-slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 26px;
    transition: background 0.3s ease;
}

.cookie-toggle-slider::before {
    content: '';
    position: absolute;
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.cookie-toggle input:checked + .cookie-toggle-slider {
    background: var(--gold, #C9A227);
}

.cookie-toggle input:checked + .cookie-toggle-slider::before {
    transform: translateX(24px);
}

.cookie-toggle input:disabled + .cookie-toggle-slider {
    background: rgba(0, 0, 0, 0.1);
    cursor: not-allowed;
}

.cookie-toggle input:disabled + .cookie-toggle-slider::before {
    background: rgba(255, 255, 255, 0.5);
}

/* Maps Placeholder (shown when no consent) */
.maps-placeholder {
    background: var(--cream, #F5F0E8);
    border: 2px dashed rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 40px;
    text-align: center;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.maps-placeholder i {
    font-size: 3rem;
    color: var(--gold, #C9A227);
    opacity: 0.5;
}

.maps-placeholder h4 {
    margin: 0;
    color: var(--black, #1a1a1a);
    font-family: 'Playfair Display', serif;
}

.maps-placeholder p {
    margin: 0;
    color: rgba(0, 0, 0, 0.6);
    font-size: 0.9rem;
    max-width: 300px;
}

.maps-placeholder .cookie-btn {
    margin-top: 8px;
}

/* Responsive */
@media (max-width: 768px) {
    .cookie-banner-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-banner-text {
        text-align: left;
    }
    
    .cookie-btn {
        padding: 10px 16px;
        font-size: 0.85rem;
    }
    
    .cookie-modal-content {
        width: 95%;
        max-height: 95vh;
    }
    
    .cookie-modal-body {
        padding: 20px;
    }
    
    .cookie-modal-footer {
        flex-direction: column-reverse;
    }
    
    .cookie-modal-footer .cookie-btn {
        width: 100%;
    }
    
    .cookie-option-header {
        flex-wrap: wrap;
        gap: 12px;
    }
}

/* Dark mode support (if system prefers) */
@media (prefers-color-scheme: dark) {
    .cookie-modal-content {
        background: #242424;
        color: #ffffff;
    }
    
    .cookie-modal-header h3,
    .cookie-option-header strong {
        color: #ffffff;
    }
    
    .cookie-option p {
        color: rgba(255, 255, 255, 0.7);
    }
    
    .cookie-modal-header,
    .cookie-modal-footer,
    .cookie-option {
        border-color: rgba(255, 255, 255, 0.1);
    }
    
    .cookie-badge-required {
        background: rgba(255, 255, 255, 0.1);
        color: rgba(255, 255, 255, 0.7);
    }
    
    .maps-placeholder {
        background: #1a1a1a;
        border-color: rgba(255, 255, 255, 0.1);
    }
    
    .maps-placeholder h4 {
        color: #ffffff;
    }
    
    .maps-placeholder p {
        color: rgba(255, 255, 255, 0.6);
    }
}
