:root {
    --cookie-bg: rgba(255, 255, 255, 0.95);
    --cookie-text: #333333;
    --cookie-border: #e0e0e0;
    --cookie-primary: #1B4D3E;
    --cookie-primary-hover: #143a2f;
    --cookie-accent: #d9534f;
    --cookie-secondary: #f8f9fa;
    --cookie-shadow: 0 -4px 20px rgba(0,0,0,0.15);
    --cookie-radius: 12px;
    --cookie-font: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

#cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    background-color: var(--cookie-bg);
    box-shadow: var(--cookie-shadow);
    z-index: 2147483647;
    padding: 25px;
    display: none; /* Hidden by default, shown via JS */
    border-radius: var(--cookie-radius);
    border: 1px solid rgba(255,255,255,0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    font-family: var(--cookie-font);
}


.cookie-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.cookie-text {
    flex: 1;
    min-width: 300px;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--cookie-text);
}

.cookie-text h3 {
    margin-top: 0;
    margin-bottom: 8px;
    color: var(--cookie-primary);
    font-size: 1.2rem;
    font-weight: 700;
}

.cookie-text a {
    color: var(--cookie-primary);
    text-decoration: none;
    border-bottom: 1px solid currentColor;
    transition: opacity 0.2s;
}

.cookie-text a:hover {
    opacity: 0.8;
}

.cookie-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    font-size: 0.95rem;
    font-family: inherit;
    letter-spacing: 0.5px;
}

.cookie-btn:active {
    transform: scale(0.96);
}

.cookie-btn-accept {
    background-color: var(--cookie-primary);
    color: white;
    box-shadow: 0 4px 12px rgba(27, 77, 62, 0.3);
}

.cookie-btn-accept:hover {
    background-color: var(--cookie-primary-hover);
    box-shadow: 0 6px 16px rgba(27, 77, 62, 0.4);
    transform: translateY(-1px);
}

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

.cookie-btn-settings:hover {
    background-color: var(--cookie-secondary);
    color: var(--cookie-primary-hover);
}

.cookie-btn-reject {
    background-color: #f1f1f1;
    color: #666;
    border: 1px solid transparent;
}

.cookie-btn-reject:hover {
    background-color: #e4e4e4;
    color: #333;
}

/* Settings Modal */
#cookie-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 20px;
}

.cookie-modal-content {
    background-color: #ffffff;
    width: 100%;
    max-width: 600px;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    max-height: 85vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    animation: cookieFadeInScale 0.3s cubic-bezier(0.19, 1, 0.22, 1);
    font-family: var(--cookie-font);
}

@keyframes cookieFadeInScale {
    from { 
        opacity: 0; 
        transform: scale(0.9);
    }
    to { 
        opacity: 1; 
        transform: scale(1);
    }
}

.cookie-modal-header {
    padding: 24px;
    border-bottom: 1px solid var(--cookie-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #fcfcfc;
    border-radius: 16px 16px 0 0;
}

.cookie-modal-header h3 {
    margin: 0;
    color: var(--cookie-primary);
    font-size: 1.3rem;
    font-weight: 700;
}

.cookie-close {
    background: none;
    border: none;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    color: #999;
    transition: color 0.2s;
    padding: 0 8px;
}

.cookie-close:hover {
    color: var(--cookie-accent);
}

.cookie-modal-body {
    padding: 24px;
}

.cookie-category {
    background-color: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
    transition: border-color 0.2s;
}

.cookie-category:hover {
    border-color: #d0d0d0;
}

.cookie-category:last-child {
    margin-bottom: 0;
}

.cookie-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.cookie-category-title {
    font-weight: 700;
    font-size: 1.05rem;
    color: #222;
}

.cookie-category-desc {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
}

/* Toggle Switch */
.cookie-switch {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 28px;
}

.cookie-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .3s cubic-bezier(0.4, 0.0, 0.2, 1);
    border-radius: 34px;
}

.cookie-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .3s cubic-bezier(0.4, 0.0, 0.2, 1);
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

input:checked + .cookie-slider {
    background-color: var(--cookie-primary);
}

input:focus + .cookie-slider {
    box-shadow: 0 0 0 3px rgba(27, 77, 62, 0.2);
}

input:checked + .cookie-slider:before {
    transform: translateX(24px);
}

input:disabled + .cookie-slider {
    background-color: #e0e0e0;
    opacity: 0.6;
    cursor: not-allowed;
}

.cookie-modal-footer {
    padding: 24px;
    border-top: 1px solid var(--cookie-border);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    background-color: #fcfcfc;
    border-radius: 0 0 16px 16px;
}

/* Responsive */
@media (max-width: 768px) {
    #cookie-banner {
        bottom: 0;
        width: 100%;
        max-width: none;
        border-radius: 16px 16px 0 0;
        padding: 20px;
    }

    .cookie-container {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .cookie-text {
        text-align: center;
    }

    .cookie-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .cookie-btn {
        width: 100%;
        text-align: center;
        padding: 14px;
    }
}

/* Placeholder for Google Maps */
.map-placeholder {
    width: 100%;
    height: 100%;
    min-height: 400px;
    background-color: #f4f6f5;
    background-image: radial-gradient(#e0e0e0 1px, transparent 1px);
    background-size: 20px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 30px;
    border-radius: 12px;
    color: #555;
    border: 2px dashed #d0d0d0;
    transition: all 0.3s ease;
}

.map-placeholder:hover {
    border-color: var(--cookie-primary);
    background-color: #f0fdf9;
}

.map-placeholder h3 {
    margin-bottom: 15px;
    color: var(--cookie-primary);
    font-size: 1.5rem;
}

.map-placeholder p {
    margin-bottom: 25px;
    max-width: 450px;
    font-size: 1.05rem;
    color: #666;
}

.map-placeholder .cookie-btn {
    min-width: 200px;
    font-size: 1rem;
    padding: 15px 30px;
}

/* Icon for map placeholder (CSS only) */
.map-icon {
    width: 60px;
    height: 60px;
    background-color: #e0e0e0;
    border-radius: 50%;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    font-size: 30px;
    position: relative;
}

.map-icon::before {
    content: "📍"; 
    font-size: 30px;
}
