/* Cookie consent interface — Hotel Les Comtes de Pardiac */
.cookie-consent-panel {
    position: fixed;
    z-index: 10000;
    right: 1rem;
    bottom: 1rem;
    width: min(560px, calc(100vw - 2rem));
    color: var(--color-text);
}

.cookie-consent-card {
    padding: 1.5rem;
    background: var(--color-card-strong, #fff);
    border: 1px solid var(--color-border);
    border-radius: 22px;
    box-shadow: 0 20px 55px rgba(4, 27, 45, 0.25);
}

.cookie-consent-heading {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: start;
    gap: .5rem;
}

.cookie-consent-kicker {
    grid-column: 1;
    margin: 0 0 .25rem;
    color: var(--color-gold);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.cookie-consent-heading h2 {
    grid-column: 1;
    margin: 0;
    font-size: clamp(1.45rem, 4vw, 1.9rem);
    line-height: 1.15;
}

.cookie-consent-close {
    grid-column: 2;
    grid-row: 1 / span 2;
    width: 2rem;
    height: 2rem;
    border: 0;
    border-radius: 50%;
    background: var(--color-surface-alt);
    color: var(--color-heading);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
}

.cookie-consent-intro,
.cookie-consent-more {
    margin: 1rem 0 0;
    color: var(--color-muted);
    font-size: .93rem;
    line-height: 1.55;
}

.cookie-consent-more a {
    color: var(--color-link);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: .18em;
}

.cookie-consent-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .7rem;
    margin-top: 1.25rem;
}

.cookie-consent-actions .btn,
.cookie-consent-customise {
    min-height: 2.8rem;
    padding: .65rem 1rem;
    font-size: .84rem;
}

.cookie-consent-customise {
    border: 0;
    background: transparent;
    color: var(--color-link);
    font-family: inherit;
    font-weight: 700;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: .2em;
}

.cookie-consent-settings {
    display: grid;
    gap: .65rem;
    margin-top: 1rem;
}

.cookie-choice {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .85rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: 14px;
    background: var(--color-surface);
}

.cookie-choice strong,
.cookie-choice span span {
    display: block;
}

.cookie-choice strong {
    color: var(--color-heading);
    font-size: .9rem;
}

.cookie-choice p,
.cookie-choice span span {
    margin: .18rem 0 0;
    color: var(--color-muted);
    font-size: .78rem;
    line-height: 1.4;
}

.cookie-choice input {
    width: 1.25rem;
    height: 1.25rem;
    accent-color: var(--color-gold);
}

.cookie-required {
    flex: 0 0 auto;
    color: var(--color-gold) !important;
    font-size: .72rem !important;
    font-weight: 700;
    white-space: nowrap;
}

.cookie-consent-manage {
    position: fixed;
    z-index: 9999;
    left: 1rem;
    bottom: 1rem;
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    min-height: 2.7rem;
    padding: .55rem .85rem;
    border: 1px solid var(--color-border);
    border-radius: 999px;
    background: var(--color-card-strong, #fff);
    box-shadow: var(--shadow-soft);
    color: var(--color-heading);
    font-family: inherit;
    font-size: .78rem;
    font-weight: 700;
    cursor: pointer;
}

.cookie-consent-manage span:first-child {
    color: var(--color-gold);
    font-size: 1.35rem;
    line-height: 0;
}

.map-consent-placeholder {
    display: grid;
    place-items: center;
    min-height: 280px;
    padding: 2rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-surface-alt);
    color: var(--color-text);
    text-align: center;
}

.map-consent-placeholder p {
    max-width: 34rem;
    margin: 0 0 1rem;
}

@media (max-width: 640px) {
    .cookie-consent-panel {
        right: .7rem;
        bottom: .7rem;
        width: calc(100vw - 1.4rem);
    }

    .cookie-consent-card { padding: 1.15rem; }
    .cookie-consent-actions .btn { flex: 1 1 11rem; justify-content: center; }
    .cookie-consent-customise { width: 100%; padding-inline: 0; }
    .cookie-consent-manage { left: .7rem; bottom: .7rem; }
}

/* Bottom privacy banner: compact on desktop, stacked on small screens. */
.cookie-consent-panel {
    left: 50%;
    right: auto;
    bottom: max(1.15rem, env(safe-area-inset-bottom));
    width: min(1180px, calc(100vw - 2.5rem));
    transform: translateX(-50%);
}

.cookie-consent-card {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
        "heading actions"
        "intro actions"
        "more actions"
        "settings settings";
    gap: .35rem 2rem;
    padding: 1.2rem 1.45rem 1.1rem;
    overflow: hidden;
    border-color: rgba(8, 43, 71, .18);
    border-radius: 18px;
    background:
        radial-gradient(circle at top left, rgba(201, 130, 26, .13), transparent 28rem),
        var(--color-card-strong, #fff);
    box-shadow: 0 18px 45px rgba(4, 27, 45, .2);
    max-height: calc(100dvh - 2.3rem - env(safe-area-inset-bottom));
    overflow-y: auto;
    overscroll-behavior: contain;
}

.cookie-consent-card::before {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-gold), var(--color-heading));
    content: "";
}

.cookie-consent-heading {
    grid-area: heading;
    padding-top: .15rem;
}

.cookie-consent-kicker {
    margin-bottom: .1rem;
}

.cookie-consent-heading h2 {
    font-size: clamp(1.3rem, 2.4vw, 1.65rem);
}

.cookie-consent-intro {
    grid-area: intro;
    max-width: 43rem;
    margin: 0;
}

.cookie-consent-more {
    grid-area: more;
    margin: .1rem 0 0;
    font-size: .8rem;
}

.cookie-consent-actions {
    grid-area: actions;
    align-self: center;
    justify-content: flex-end;
    max-width: 24rem;
    margin: 0;
}

.cookie-consent-actions .btn {
    min-width: 9.5rem;
    justify-content: center;
}

.cookie-consent-customise {
    width: 100%;
    padding: .15rem 0;
    text-align: right;
}

.cookie-consent-settings {
    grid-area: settings;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: .85rem;
}

body.cookie-panel-open .cookie-consent-manage {
    visibility: hidden;
}

@media (min-width: 761px) and (max-width: 1024px) {
    .cookie-consent-panel {
        width: min(920px, calc(100vw - 2rem));
    }

    .cookie-consent-card {
        gap: .45rem 1.25rem;
        padding: 1.1rem 1.2rem 1rem;
    }

    .cookie-consent-actions {
        max-width: 20.5rem;
    }

    .cookie-consent-actions .btn {
        min-width: 9rem;
    }
}

@media (max-width: 760px) {
    .cookie-consent-panel {
        right: .75rem;
        bottom: max(.75rem, env(safe-area-inset-bottom));
        left: .75rem;
        width: auto;
        transform: none;
    }

    .cookie-consent-card {
        display: block;
        padding: 1.2rem;
        border-radius: 16px;
    }

    .cookie-consent-intro,
    .cookie-consent-more { margin-top: .75rem; }
    .cookie-consent-actions { justify-content: stretch; margin-top: 1rem; max-width: none; }
    .cookie-consent-actions .btn { flex: 1 1 100%; }
    .cookie-consent-customise { text-align: center; }
    .cookie-consent-settings { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .cookie-consent-card {
        padding: 1.05rem .95rem .95rem;
    }

    .cookie-consent-heading h2 {
        font-size: 1.25rem;
    }

    .cookie-consent-intro {
        font-size: .86rem;
        line-height: 1.48;
    }

    .cookie-consent-more {
        font-size: .76rem;
    }

    .cookie-choice {
        align-items: flex-start;
        padding: .75rem .8rem;
    }

    .cookie-choice input {
        flex: 0 0 auto;
        margin-top: .15rem;
    }

    .cookie-consent-manage {
        left: max(.7rem, env(safe-area-inset-left));
        bottom: max(.7rem, env(safe-area-inset-bottom));
        min-height: 2.75rem;
    }
}

@media (max-width: 760px) and (max-height: 740px) {
    .cookie-consent-panel {
        top: max(.5rem, env(safe-area-inset-top));
        bottom: max(.5rem, env(safe-area-inset-bottom));
    }

    .cookie-consent-card {
        max-height: calc(100dvh - 1rem - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    }
}

@media (pointer: coarse) {
    .cookie-consent-close {
        min-width: 2.75rem;
        min-height: 2.75rem;
    }
}
