/* =========================================================
   PRENOTA — A.G.E. PROJECT
========================================================= */

.booking-page {
    overflow: hidden;
    background: #070707;
}

.booking-container {
    width: min(1440px, calc(100% - 96px));
    margin: 0 auto;
}

.booking-section-heading {
    max-width: 1000px;
    margin-bottom: 64px;
}

.booking-section-heading h2,
.booking-engine-heading h2,
.booking-help h2 {
    margin: 0;
    color: #fff;
    font-size: clamp(3.2rem, 6vw, 6.6rem);
    font-weight: 500;
    line-height: 0.92;
    letter-spacing: -0.055em;
    text-wrap: balance;
}

.booking-section-heading-split {
    max-width: none;
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
    gap: 72px;
    align-items: end;
}

.booking-section-heading-split > p {
    max-width: 520px;
    margin: 0 0 8px;
    color: rgba(255, 255, 255, 0.58);
    font-size: 1.04rem;
    line-height: 1.75;
}

/* HERO */

.booking-hero {
    position: relative;
    min-height: min(900px, 100svh);

    display: flex;
    align-items: flex-end;

    padding: 150px clamp(24px, 6vw, 96px) 90px;

    background: #060606;
    overflow: hidden;
    isolation: isolate;
}

.booking-hero-media,
.booking-hero-overlay {
    position: absolute;
    inset: -2px;
}

.booking-hero-media {
    z-index: -2;
}

.booking-hero-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1.03);
}

.booking-hero-overlay {
    z-index: -1;
    background:
        radial-gradient(circle at 72% 42%, rgba(130, 0, 0, 0.16), transparent 36%),
        linear-gradient(90deg, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0.46) 54%, rgba(0, 0, 0, 0.22)),
        linear-gradient(0deg, rgba(0, 0, 0, 0.84), transparent 48%);
}

.booking-hero-content {
    width: min(900px, 100%);
}

.booking-hero h1 {
    max-width: 900px;
    margin: 18px 0 28px;
    color: #fff;
    font-size: clamp(4.4rem, 9vw, 9rem);
    font-weight: 550;
    line-height: 0.84;
    letter-spacing: -0.07em;
}

.booking-hero-content > p:not(.section-kicker) {
    max-width: 650px;
    margin: 0 0 38px;
    color: rgba(255, 255, 255, 0.76);
    font-size: clamp(1.05rem, 1.5vw, 1.25rem);
    line-height: 1.65;
}

/* PROCESSO */

.booking-process {
    padding: 130px 0;
    background:
        radial-gradient(circle at 15% 5%, rgba(255, 255, 255, 0.045), transparent 28%),
        #090909;
}

.booking-process-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.booking-process-card {
    min-height: 330px;
    padding: 38px;
    display: flex;
    flex-direction: column;
    border-right: 1px solid rgba(255, 255, 255, 0.12);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.012);
}

.booking-process-card > span {
    margin-bottom: auto;
    color: var(--accent);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.18em;
}

.booking-process-card h3 {
    margin: 48px 0 15px;
    color: #fff;
    font-size: clamp(1.65rem, 2.2vw, 2.25rem);
    font-weight: 560;
    line-height: 1.04;
    letter-spacing: -0.04em;
}

.booking-process-card p {
    margin: 0;
    color: rgba(255, 255, 255, 0.58);
    line-height: 1.7;
}

/* STANZE */

.booking-rooms {
    padding: 140px 0;
    background: #060606;
}

.booking-room-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.booking-room-card {
    position: relative;
    min-height: 470px;
    overflow: hidden;
    padding: 0;
    color: #fff;
    background: #111;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 22px;
    text-align: left;
    cursor: pointer;
    isolation: isolate;
    transition:
        transform 300ms cubic-bezier(.22, 1, .36, 1),
        border-color 240ms ease,
        box-shadow 240ms ease;
}

.booking-room-card img,
.booking-room-overlay {
    position: absolute;
    inset: 0;
}

.booking-room-card img {
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 700ms cubic-bezier(.22, 1, .36, 1);
}

.booking-room-overlay {
    z-index: -1;
    background:
        linear-gradient(0deg, rgba(0, 0, 0, 0.96), rgba(0, 0, 0, 0.18) 72%),
        linear-gradient(120deg, rgba(0, 0, 0, 0.44), transparent 52%);
}

.booking-room-content {
    position: absolute;
    inset: auto 0 0;
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.booking-room-content small {
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.7rem;
    font-weight: 750;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.booking-room-content strong {
    color: #fff;
    font-size: clamp(2rem, 3vw, 3.4rem);
    font-weight: 560;
    line-height: 0.95;
    letter-spacing: -0.05em;
}

.booking-room-content em {
    margin-top: 24px;
    min-height: 42px;
    padding: 0 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #080808;
    background: #fff;
    border-radius: 999px;
    font-size: 0.76rem;
    font-style: normal;
    font-weight: 850;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.booking-room-card:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 255, 255, 0.26);
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.4);
}

.booking-room-card:hover img {
    transform: scale(1.055);
}

.booking-room-card.is-selected,
.booking-room-card[aria-pressed="true"] {
    border-color: var(--accent);
    box-shadow:
        0 0 0 1px var(--accent),
        0 28px 70px rgba(0, 0, 0, 0.48);
}

.booking-room-card.is-selected .booking-room-content em,
.booking-room-card[aria-pressed="true"] .booking-room-content em {
    color: #fff;
    background: var(--accent);
}

/* ENGINE */

.booking-engine-section {
    padding: 0 0 150px;
    background: #060606;
}

.booking-engine-shell {
    padding: clamp(28px, 5vw, 72px);
    background:
        radial-gradient(circle at 100% 0%, rgba(255, 255, 255, 0.045), transparent 30%),
        #0c0c0c;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 28px;
}

.booking-engine-heading {
    margin-bottom: 54px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 36px;
}

.booking-selection-status {
    max-width: 360px;
    padding: 12px 16px;
    color: rgba(255, 255, 255, 0.68);
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
    text-align: center;
}

.booking-selection-status.has-selection {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.26);
}

.booking-widget-placeholder {
    min-height: 520px;
    padding: 48px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.58);
    background:
        repeating-linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.018) 0,
            rgba(255, 255, 255, 0.018) 1px,
            transparent 1px,
            transparent 18px
        ),
        rgba(0, 0, 0, 0.18);
    border: 1px dashed rgba(255, 255, 255, 0.18);
    border-radius: 20px;
    text-align: center;
}

.booking-widget-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    font-size: 2rem;
    font-weight: 200;
}

.booking-widget-placeholder h3 {
    margin: 0 0 14px;
    color: #fff;
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    font-weight: 560;
    letter-spacing: -0.04em;
}

.booking-widget-placeholder p {
    max-width: 600px;
    margin: 0;
    line-height: 1.7;
}

.booking-live-note {
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.52);
    font-size: 0.82rem;
}

.booking-live-note span {
    width: 8px;
    height: 8px;
    background: #56d487;
    border-radius: 50%;
    box-shadow: 0 0 18px rgba(86, 212, 135, 0.7);
}

/* ASSISTENZA */

.booking-help {
    padding: 130px 0;
    background:
        radial-gradient(circle at 15% 30%, rgba(140, 0, 0, 0.14), transparent 32%),
        #0a0a0a;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.booking-help-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
    gap: 80px;
    align-items: end;
}

.booking-help-copy > p {
    max-width: 540px;
    margin: 0 0 30px;
    color: rgba(255, 255, 255, 0.62);
    font-size: 1.06rem;
    line-height: 1.75;
}

.booking-help-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* RESPONSIVE */

@media (max-width: 1080px) {
    .booking-container {
        width: min(100% - 48px, 1240px);
    }

    .booking-room-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .booking-section-heading-split,
    .booking-help-layout {
        grid-template-columns: 1fr;
        gap: 34px;
    }
}

@media (max-width: 820px) {
    .booking-hero {
        min-height: 820px;
        padding: 128px 22px 54px;
    }

    .booking-hero h1 {
        font-size: clamp(4rem, 18vw, 6.4rem);
    }

    .booking-process,
    .booking-rooms,
    .booking-help {
        padding: 90px 0;
    }

    .booking-engine-section {
        padding-bottom: 90px;
    }

    .booking-process-grid {
        grid-template-columns: 1fr;
    }

    .booking-process-card {
        min-height: 260px;
    }

    .booking-engine-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .booking-selection-status {
        max-width: none;
        width: 100%;
    }
}

@media (max-width: 640px) {
    .booking-container {
        width: calc(100% - 32px);
    }

    .booking-section-heading {
        margin-bottom: 42px;
    }

    .booking-section-heading h2,
    .booking-engine-heading h2,
    .booking-help h2 {
        font-size: clamp(2.9rem, 14vw, 4.6rem);
    }

    .booking-room-grid {
        grid-template-columns: 1fr;
    }

    .booking-room-card {
        min-height: 430px;
    }

    .booking-room-content {
        padding: 24px;
    }

    .booking-engine-shell {
        padding: 22px;
        border-radius: 20px;
    }

    .booking-widget-placeholder {
        min-height: 420px;
        padding: 28px 20px;
    }

    .booking-help-actions .btn {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .booking-room-card,
    .booking-room-card img {
        transition: none;
    }
}

/* =========================================================
   SIMPLYBOOK
========================================================= */

.booking-widget-container {
    width: 100%;
    min-height: 700px;
}

.booking-widget-container #sb-main-container {
    width: 100% !important;
    max-width: 1000px !important;
    margin: 0 auto !important;
}

.booking-widget-container iframe {
    width: 100% !important;
    min-height: 700px;
    border: 0;
}

@media (max-width: 768px) {
    .booking-widget-container,
    .booking-widget-container iframe {
        min-height: 850px;
    }
}

/* =========================================================
   BOOKING INFO
========================================================= */

.booking-info{
    margin:2rem 0;
}

.booking-info h3{
    margin-bottom:1.5rem;
    text-align:center;
    font-size:1.5rem;
}

.booking-info-grid{
    display:grid;
    gap:1rem;
}

.booking-info-card{
    padding:1.4rem 1.5rem;
    border:1px solid rgba(255,255,255,.08);
    border-radius:18px;
    background:rgba(255,255,255,.03);
}

.booking-info-card strong{
    display:block;
    margin-bottom:.5rem;
    color:var(--color-text);
}

.booking-info-card p{
    margin:0;
    line-height:1.6;
    color:var(--color-text-secondary);
}

.booking-info-card a{
    color:var(--color-primary);
    font-weight:600;
    text-decoration:none;
}

.booking-info-card a:hover{
    text-decoration:underline;
}

@media (min-width:992px){

    .booking-info-grid{
        grid-template-columns:repeat(3,1fr);
    }

}
/* =========================================================
   TITOLO CALENDARIO + CAMBIO STANZA RAPIDO
========================================================= */

.booking-calendar-heading {
    margin: clamp(48px, 6vw, 82px) 0 30px;
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
    gap: 48px;
    align-items: end;
}

.booking-calendar-title h2 {
    margin: 0;
    color: #fff;
    font-size: clamp(2.8rem, 5.4vw, 5.8rem);
    font-weight: 520;
    line-height: 0.92;
    letter-spacing: -0.055em;
    text-wrap: balance;
}

.booking-calendar-controls {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 16px;
}

.booking-room-switcher {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.booking-room-switcher button {
    min-height: 42px;
    padding: 0 15px;
    color: rgba(255, 255, 255, 0.68);
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    font: inherit;
    font-size: 0.76rem;
    font-weight: 780;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition:
        color 180ms ease,
        background 180ms ease,
        border-color 180ms ease,
        transform 180ms ease;
}

.booking-room-switcher button:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.32);
    transform: translateY(-1px);
}

.booking-room-switcher button.is-selected,
.booking-room-switcher button[aria-pressed="true"] {
    color: #fff;
    background: var(--accent);
    border-color: var(--accent);
}

@media (max-width: 900px) {
    .booking-calendar-heading {
        grid-template-columns: 1fr;
        gap: 24px;
        align-items: stretch;
    }

    .booking-calendar-controls {
        align-items: stretch;
    }

    .booking-room-switcher {
        justify-content: flex-start;
    }
}

@media (max-width: 640px) {
    .booking-calendar-heading {
        margin-top: 42px;
        gap: 18px;
    }

    .booking-calendar-title h2 {
        font-size: clamp(2.35rem, 12.5vw, 3.8rem);
        line-height: 0.94;
    }

    .booking-selection-status {
        order: 1;
        width: 100%;
        max-width: none;
        padding: 14px 16px;
        text-align: left;
    }

    .booking-room-switcher {
        order: 2;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .booking-room-switcher button {
        width: 100%;
        min-height: 46px;
        padding: 0 10px;
        justify-content: center;
    }
}
