/* =========================================================
   ALOLDAL HERO
========================================================= */

.page-hero {
    height: 430px;
    position: relative;

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

    background:
        linear-gradient(
            90deg,
            rgba(2, 18, 13, 0.205),
            rgba(2, 18, 13, 0)
        ),
        url("../images/relax-wellness-apartman-drone-matra-foglalas-hero.webp");


    background-size: cover;
    background-position: center;

    color: white;
}

.page-hero-content {
    width: min(1500px, 88%);
    margin: 0 auto;
    padding-bottom: 60px;
}

.page-eyebrow {
    color: var(--gold-light);

    font-size: 10px;
    font-weight: 600;
    letter-spacing: 3px;
}

.page-hero h1 {
    margin: 7px 0 5px;

    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 68px;
    font-weight: 500;
    line-height: 1;
}

.page-hero-content > p:last-child {
    font-size: 16px;
}


/* =========================================================
   FOGLALÁS ALAP
========================================================= */

.booking-main {
    min-height: 800px;

    padding: 65px 20px 100px;

    background: var(--cream);
    color: var(--text-dark);
}

.booking-intro {
    max-width: 760px;

    margin: 0 auto 28px;

    text-align: center;
}

.booking-small-title {
    margin-bottom: 7px;

    color: #a7773f;

    font-size: 9px;
    font-weight: 700;
    letter-spacing: 3px;
}

.booking-intro h2 {
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 38px;
    font-weight: 600;
}

.booking-intro > p:last-child {
    margin-top: 6px;

    font-size: 13px;
    color: #625c53;
}


/* =========================================================
   KÁRTYA
========================================================= */

.calendar-card,
.guest-card {
    width: min(760px, 100%);

    margin: 0 auto;

    padding: 38px 42px;

    background: #fffdf8;

    border: 1px solid #e5d8c5;
    border-radius: 16px;

    box-shadow:
        0 15px 40px rgba(62, 43, 22, .08);
}


/* =========================================================
   NAPTÁR FEJLÉC
========================================================= */

.calendar-header {
    display: grid;
    grid-template-columns: 45px 1fr 45px;
    align-items: center;

    margin-bottom: 24px;

    text-align: center;
}

.calendar-header > div > span {
    color: #a6773f;

    font-size: 9px;
    font-weight: 600;
    letter-spacing: 2px;
}

.calendar-header h3 {
    margin-top: 4px;

    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 27px;
    font-weight: 600;
}

.calendar-arrow {
    width: 40px;
    height: 40px;

    border: 0;
    border-radius: 50%;

    background: transparent;
    color: #a4773f;

    font-size: 28px;

    cursor: pointer;
}

.calendar-arrow:hover {
    background: #f5ecde;
}


/* =========================================================
   NAPTÁR
========================================================= */

.calendar-weekdays,
.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
}

.calendar-weekdays {
    margin-bottom: 8px;

    color: #a99983;

    font-size: 9px;
    font-weight: 600;
    text-align: center;
}

.calendar-day {
    aspect-ratio: 1.25;

    border: 0;
    border-radius: 7px;

    background: #faf7f1;
    color: #333;

    font-family: inherit;
    font-size: 11px;

    cursor: pointer;

    transition:
        background .15s ease,
        color .15s ease,
        transform .15s ease;
}

.calendar-day:hover:not(:disabled) {
    background: #efe1cb;

    transform: translateY(-1px);
}

.calendar-day.empty {
    background: transparent;

    pointer-events: none;
}

.calendar-day.past,
.calendar-day.booked {
    color: #c7c0b6;
    background: #f6f3ee;

    cursor: not-allowed;
}

.calendar-day.selected {
    background: #c89b59;
    color: #fff;
}

.calendar-day.in-range {
    background: #ead9be;
}

.calendar-day.today {
    box-shadow: inset 0 0 0 1px #b7894e;
}


/* =========================================================
   JELMAGYARÁZAT
========================================================= */

.calendar-legend {
    margin: 20px 0 28px;

    display: flex;
    justify-content: center;
    gap: 22px;

    color: #82786b;

    font-size: 9px;
}

.calendar-legend span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.calendar-legend i {
    width: 9px;
    height: 9px;

    border-radius: 50%;
}

.legend-free {
    background: #faf7f1;
    border: 1px solid #d9cbb8;
}

.legend-selected {
    background: #c89b59;
}

.legend-booked {
    background: #ded8cf;
}


/* =========================================================
   TARTÓZKODÁS
========================================================= */

.stay-selection {
    padding-top: 22px;

    border-top: 1px solid #e7dbc8;

    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.stay-item {
    min-height: 62px;

    padding: 11px 12px;

    border-radius: 7px;

    background: #f6f0e6;

    display: flex;
    flex-direction: column;
    justify-content: center;
}

.stay-item span,
.stay-item label {
    margin-bottom: 5px;

    color: #a77a42;

    font-size: 7px;
    font-weight: 700;
    letter-spacing: 1px;
}

.stay-item strong {
    font-size: 12px;
}

.stay-item select {
    border: 0;
    outline: 0;

    background: transparent;

    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
}


/* =========================================================
   ÁR
========================================================= */

.price-summary {
    min-height: 75px;

    margin-top: 20px;
    padding: 15px 18px;

    border-radius: 8px;

    background: #0d493b;
    color: white;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.price-summary > div {
    display: flex;
    flex-direction: column;
}

.price-summary span {
    margin-bottom: 5px;

    color: #e7b55e;

    font-size: 8px;
    font-weight: 700;
    letter-spacing: 1px;
}

.price-summary small {
    font-size: 10px;
    opacity: .85;
}

.price-summary strong {
    color: #f0c36e;

    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 25px;
}


/* =========================================================
   TOVÁBB GOMB
========================================================= */

.booking-continue,
.booking-submit {
    width: 100%;
    min-height: 45px;

    margin-top: 20px;

    border: 0;
    border-radius: 5px;

    background: #c99a57;
    color: white;

    font-size: 9px;
    font-weight: 700;
    letter-spacing: .5px;

    cursor: pointer;

    transition: background .2s ease;
}

.booking-continue:hover:not(:disabled),
.booking-submit:hover {
    background: #b58443;
}

.booking-continue:disabled {
    background: #dfcfb3;

    cursor: not-allowed;
}


/* =========================================================
   VENDÉGADATOK
========================================================= */

.guest-card {
    margin-top: 25px;
}

.guest-heading {
    margin-bottom: 25px;

    text-align: center;
}

.guest-heading > p {
    color: #a77940;

    font-size: 8px;
    font-weight: 700;
    letter-spacing: 2px;
}

.guest-heading h2 {
    margin: 5px 0;

    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 32px;
}

.guest-heading span {
    color: #746b60;

    font-size: 11px;
}


/* =========================================================
   ÖSSZEFOGLALÓ
========================================================= */

.booking-recap {
    margin-bottom: 25px;

    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.booking-recap div {
    padding: 12px;

    border-radius: 6px;

    background: #0d493b;
    color: white;

    display: flex;
    flex-direction: column;
}

.booking-recap span {
    margin-bottom: 5px;

    color: #e8b761;

    font-size: 7px;
    font-weight: 700;
    letter-spacing: .8px;
}

.booking-recap strong {
    font-size: 11px;
}


/* =========================================================
   FORM
========================================================= */

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

#bookingForm label {
    color: #815e34;

    display: flex;
    flex-direction: column;

    font-size: 8px;
    font-weight: 700;
    letter-spacing: .5px;
}

#bookingForm input,
#bookingForm textarea {
    width: 100%;

    margin-top: 6px;
    padding: 11px 12px;

    border: 1px solid #d8cbb9;
    border-radius: 5px;

    background: #faf8f3;

    color: #222;

    font-family: inherit;
    font-size: 12px;

    outline: none;
}

#bookingForm input:focus,
#bookingForm textarea:focus {
    border-color: #b6894e;
}

.message-field {
    margin-top: 15px;
}

#bookingForm textarea {
    resize: vertical;
}

.privacy-check {
    margin-top: 18px;

    flex-direction: row !important;
    align-items: center;
    gap: 8px;

    color: #645d54 !important;

    font-size: 9px !important;
    font-weight: 400 !important;
}

.privacy-check input {
    width: auto !important;
    margin: 0 !important;
}


/* =========================================================
   MOBIL
========================================================= */

@media (max-width: 800px) {

    .page-hero {
        height: 330px;
    }

    .page-hero-content {
        width: 100%;

        padding: 0 24px 40px;
    }

    .page-hero h1 {
        font-size: 53px;
    }

    .booking-main {
        padding: 45px 14px 70px;
    }

    .booking-intro h2 {
        font-size: 33px;
    }

    .calendar-card,
    .guest-card {
        padding: 27px 15px;

        border-radius: 12px;
    }

    .calendar-days {
        gap: 4px;
    }

    .calendar-day {
        aspect-ratio: 1;
        font-size: 10px;
    }

    .calendar-legend {
        gap: 12px;
        font-size: 8px;
    }

    .stay-selection {
        grid-template-columns: 1fr 1fr;
    }

    .price-summary {
        align-items: flex-start;
        gap: 12px;

        flex-direction: column;
    }

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

    .form-grid {
        grid-template-columns: 1fr;
    }

}

/* =========================================================
   FOGLALTSÁG – ÉRKEZÉS / TÁVOZÁS
========================================================= */

/* Teljesen foglalt köztes nap */
.calendar-day.booked-full {
    background: #ded8cf;
    color: #968e84;
    cursor: not-allowed;
}


/* 
   ÉRKEZÉSI NAP
   délelőtt még szabad → délutántól foglalt
*/
.calendar-day.booked-arrival {
    background: linear-gradient(
        90deg,
        #faf7f1 0%,
        #faf7f1 50%,
        #ded8cf 50%,
        #ded8cf 100%
    );
}


/*
   TÁVOZÁSI NAP
   délelőtt foglalt → délutántól szabad
*/
.calendar-day.booked-departure {
    background: linear-gradient(
        90deg,
        #ded8cf 0%,
        #ded8cf 50%,
        #faf7f1 50%,
        #faf7f1 100%
    );
}


/*
   VÁLTÓNAP
   Az egyik vendég távozik,
   a következő ugyanazon a napon érkezik.
*/
.calendar-day.booked-turnover {
    position: relative;
    background: #ded8cf;
    color: #968e84;
    cursor: not-allowed;
}

/* Finom választóvonal a két foglalás között */
.calendar-day.booked-turnover {
    position: relative;

    background: linear-gradient(
        90deg,
        #d8d2c9 0%,
        #d8d2c9 50%,
        #e3ddd5 50%,
        #e3ddd5 100%
    );

    color: #968e84;
    cursor: not-allowed;
}


/* A szám mindig jól látszódjon */
.calendar-day.booked-arrival,
.calendar-day.booked-departure {
    color: #423b33;
}


/* Hover csak a használható fél-napokon */
.calendar-day.booked-arrival:hover,
.calendar-day.booked-departure:hover {
    outline: 2px solid #c89b59;
    outline-offset: -2px;
}


/* Kiválasztott érkezés/távozás */
.calendar-day.booked-arrival.selected,
.calendar-day.booked-departure.selected {
    background: #c89b59;
    color: #ffffff;
}


/* Váltónap nem használható új érkezésre */
.calendar-day.booked-turnover {
    cursor: not-allowed;
}

/* =====================================================
   SIKERES FOGLALÁS MODAL
===================================================== */

.booking-modal[hidden] {
    display: none;
}

.booking-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 24px;
}

.booking-modal-backdrop {
    position: absolute;
    inset: 0;

    background: rgba(5, 18, 14, 0.72);
    backdrop-filter: blur(4px);
}

.booking-modal-card {
    position: relative;
    z-index: 1;

    width: min(560px, 100%);

    background: #fbf7ef;
    color: #111;

    padding: 48px 42px 38px;

    border-radius: 18px;

    text-align: center;

    box-shadow:
        0 25px 70px rgba(0, 0, 0, 0.28);
}

.booking-modal-close {
    position: absolute;

    top: 16px;
    right: 18px;

    border: 0;
    background: transparent;

    font-size: 28px;
    line-height: 1;

    cursor: pointer;

    color: #746b60;
}

.booking-modal-icon {
    width: 58px;
    height: 58px;

    margin: 0 auto 20px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #0b4c3d;
    color: #e7b75c;

    font-size: 27px;
    font-weight: 700;
}

.booking-modal-eyebrow {
    margin-bottom: 10px;

    color: #b47b2d;

    font-size: 11px;
    font-weight: 700;

    letter-spacing: 4px;
}

.booking-modal-card h2 {
    margin: 0 0 14px;

    font-family: Georgia, "Times New Roman", serif;

    font-size: 38px;
    font-weight: 400;

    line-height: 1.05;
}

.booking-modal-intro {
    margin: 0 auto 28px;

    max-width: 390px;

    line-height: 1.6;
}

.booking-modal-summary {
    display: grid;
    grid-template-columns: 1fr 1fr;

    gap: 10px;

    margin-bottom: 24px;
}

.booking-modal-summary > div {
    padding: 15px 12px;

    background: #f1eadc;

    border-radius: 9px;

    text-align: left;
}

.booking-modal-summary span {
    display: block;

    margin-bottom: 6px;

    color: #a56f2a;

    font-size: 9px;
    font-weight: 700;

    letter-spacing: 1.5px;
}

.booking-modal-summary strong {
    font-size: 15px;
}

.booking-modal-note {
    margin: 0 auto 25px;

    max-width: 430px;

    color: #625d55;

    font-size: 13px;
    line-height: 1.55;
}

.booking-modal-ok {
    min-width: 180px;

    padding: 15px 30px;

    border: 0;
    border-radius: 999px;

    background: #c79a54;
    color: #fff;

    font-weight: 700;
    font-size: 12px;

    letter-spacing: 0.8px;

    cursor: pointer;
}

.booking-modal-ok:hover {
    filter: brightness(0.95);
}


/* MOBIL */

@media (max-width: 600px) {

    .booking-modal {
        padding: 16px;
    }

    .booking-modal-card {
        padding: 42px 20px 28px;
        border-radius: 14px;
    }

    .booking-modal-card h2 {
        font-size: 31px;
    }

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

    .booking-modal-summary strong {
        font-size: 13px;
    }

}

/* =====================================================
   FOGLALÁS SIKERES - MODAL
===================================================== */

#bookingSuccessModal[hidden] {
    display: none !important;
}

#bookingSuccessModal {
    position: fixed;
    inset: 0;
    z-index: 99999;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 20px;
}

#bookingSuccessModal .booking-modal-backdrop {
    position: absolute;
    inset: 0;

    background: rgba(3, 20, 15, 0.78);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

#bookingSuccessModal .booking-modal-card {
    position: relative;
    z-index: 2;

    width: 100%;
    max-width: 560px;

    padding: 48px 42px 38px;

    background: #fbf7ef;
    color: #171713;

    border: 1px solid rgba(190, 145, 78, 0.25);
    border-radius: 18px;

    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.35);

    text-align: center;
}

#bookingSuccessModal .booking-modal-close {
    position: absolute;
    top: 15px;
    right: 18px;

    padding: 5px;

    border: 0;
    background: transparent;

    color: #887c6d;

    font-size: 27px;
    line-height: 1;

    cursor: pointer;
}

#bookingSuccessModal .booking-modal-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 58px;
    height: 58px;

    margin: 0 auto 20px;

    border-radius: 50%;

    background: #0b4c3d;
    color: #d7a44e;

    font-size: 27px;
    font-weight: 700;
}

#bookingSuccessModal .booking-modal-eyebrow {
    margin: 0 0 10px;

    color: #b47b2d;

    font-size: 10px;
    font-weight: 700;

    letter-spacing: 3px;
}

#bookingSuccessModal .booking-modal-card h2 {
    margin: 0 0 12px;

    color: #111;

    font-family: Georgia, "Times New Roman", serif;
    font-size: 38px;
    font-weight: 400;
    line-height: 1.1;
}

#bookingSuccessModal .booking-modal-intro {
    margin: 0 auto 27px;

    max-width: 410px;

    color: #625c53;

    font-size: 15px;
    line-height: 1.55;
}

#bookingSuccessModal .booking-modal-summary {
    display: grid;
    grid-template-columns: repeat(2, 1fr);

    gap: 10px;

    margin: 0 0 24px;
}

#bookingSuccessModal .booking-modal-summary > div {
    padding: 15px;

    background: #f1eadc;

    border-radius: 8px;

    text-align: left;
}

#bookingSuccessModal .booking-modal-summary span {
    display: block;

    margin-bottom: 6px;

    color: #a8732e;

    font-size: 9px;
    font-weight: 700;

    letter-spacing: 1.3px;
}

#bookingSuccessModal .booking-modal-summary strong {
    display: block;

    color: #173c32;

    font-size: 15px;
}

#bookingSuccessModal .booking-modal-note {
    max-width: 420px;

    margin: 0 auto 25px;

    color: #696158;

    font-size: 13px;
    line-height: 1.55;
}

#bookingSuccessModal .booking-modal-ok {
    min-width: 190px;

    padding: 15px 32px;

    border: 0;
    border-radius: 50px;

    background: #c99b55;
    color: #fff;

    font-size: 11px;
    font-weight: 700;

    letter-spacing: 1px;

    cursor: pointer;
}


/* MOBIL */

@media (max-width: 600px) {

    #bookingSuccessModal {
        padding: 15px;
    }

    #bookingSuccessModal .booking-modal-card {
        max-height: 90vh;
        overflow-y: auto;

        padding: 40px 20px 27px;

        border-radius: 14px;
    }

    #bookingSuccessModal .booking-modal-card h2 {
        font-size: 30px;
    }

    #bookingSuccessModal .booking-modal-summary {
        grid-template-columns: 1fr 1fr;
    }

    #bookingSuccessModal .booking-modal-summary > div {
        padding: 12px;
    }

    #bookingSuccessModal .booking-modal-summary strong {
        font-size: 13px;
    }
}

/* =========================================
   MOBIL – FOGLALÁS OLDAL ALSÓ TÉRKÖZ
   ========================================= */

@media (max-width: 768px) {

    .booking-main {
        padding-bottom: 20px;
    }

    .calendar-card {
        margin-bottom: 0;
    }

    .booking-page footer {
        margin-top: 0;
    }

}
/* Foglalási és adatkezelési hivatkozások */
.privacy-check a { color: #815e34; text-decoration: underline; text-underline-offset: 2px; }
.privacy-check a:hover { color: #b58443; }
.calendar-day:disabled { cursor: not-allowed; }
