/* #region 1. Clean-Up */

/* Import Font Professional */
/* @import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700;900&display=swap'); */
@import url('https://fonts.googleapis.com/css2?family=Anta&family=Roboto:ital,wght@0,100..900;1,100..900&family=Zen+Maru+Gothic&display=swap');

/* Resetare și Setări Generale */
:root {
    --mov: #7865a5;
    --mov-d: #351d67;
    --mov-l: #f0eef5;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
}

body {
    background-color: #ffffff;
    color: #1a1a1a;
    line-height: 1.2;
}

/*main {*/
/*    flex: 1;*/
/*}*/

img {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    /* Aceasta taie marginile pozei pentru a umple spațiul fără a o deforma */
}

.container {
    max-width: 1260px;
    margin: 0 auto;
    padding: 0 20px;
}

/* MOBIL */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
}

/* #endregion */

/* #region 2. Header & Navigare */

/* Bara de navigare standard */
.main-header {
    position: relative;
    width: 100%;
    background-color: #7865A5;
    height: 60px;
    display: flex;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(132, 0, 255, 0.1);
    /* Opțional: adaugă o umbră fină ca să se delimiteze de restul conținutului când dai scroll */
    animation: none;
}

/* Bara navigare cand se da scroll */
.main-header.scrolled {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: auto;
    height: 30px;
    z-index: 1000;
    animation: slideShrink 0.4s ease forwards;
}

@keyframes slideShrink {
    0% {
        /* Up-slide peak */
        transform: translateY(-100%);
    }

    100% {
        transform: translateY(0);
        /* Down */
    }
}

.main-header .container {
    width: 100%;
    height: 100%;
    display: flex;
    z-index: 1001;
    justify-content: space-between;
    align-items: center;
}

/* Stilul general pentru logo */
.logo {
    display: flex;
    align-items: center;
    height: 100%;
    /* Se adaptează la înălțimea header-ului */
    text-decoration: none;
}

.logo-img {
    height: 44px;
    width: auto;
    /* Păstrează proporțiile */
    display: block;
    transition: transform 0.3s ease;
}

.main-header.scrolled .logo-img {
    height: 22px;
    width: auto;
    /* Păstrează proporțiile */
    display: block;
}

/* Efect la trecerea mouse-ului peste logo*/
.logo-img:hover {
    transform: scale(0.95);
}

/* Ascunde textul pentru oameni, dar lasă-l pentru Google (SEO) */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* ADAPTARE LOGO PENTRU MOBIL */
@media (max-width: 768px) {
    .logo-img {
        height: 40px;
        /* Mai mic pe mobil pentru a lăsa loc meniului burger */
    }

    .main-header.scrolled {
        height: 40px;
    }

    .main-header.scrolled .logo-img {
        height: 28px;
    }
}

/* Meniu si Navigare */
.main-nav ul {
    display: flex;
    list-style: none;
}

.main-nav ul li a {
    color: white;
    text-decoration: none;
    margin-left: 20px;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.main-nav ul li a:hover {
    color: #351D67;
}

.menu-checkbox,
.hamburger-btn {
    display: none;
    /* Ascuns pe desktop */
}

/* ADAPTARE NAVIGARE PENTRU MOBIL */
@media (max-width: 1024px) {
    .main-header .container {
        position: relative;
    }

    /* Afișăm butonul hamburger pe mobil */
    .hamburger-btn {
        display: flex;
        flex-direction: column;
        gap: 5px;
        cursor: pointer;
        z-index: 1100;
    }

    .hamburger-btn span {
        display: block;
        width: 25px;
        height: 3px;
        background-color: white;
        transition: 0.3s ease;
    }

    /* Transformăm navigarea în panou lateral */
    .main-nav {
        display: block !important;
        /* Suprascriem display:none dacă exista */
        position: fixed;
        top: 0;
        right: -100%;
        /* Începe din afara ecranului */
        width: 260px;
        height: 100vh;
        background-color: #7865A5;
        transition: 0.4s ease-in-out;
        z-index: 1010;

    }

    .nav-wrapper {
        position: relative;
        /* Stacking context for buttons */
        background-color: #7865A5;
        z-index: 1;
        /* Above pseudo */
        height: 100%;
        /* Full nav height */
        padding: 80px 20px;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.5);
    }

    .main-nav ul {
        flex-direction: column;
    }

    .main-nav ul li {
        margin: 0 0 20px 0;
    }

    .main-nav ul li a {
        font-size: 18px;
        display: block;
        padding: 10px 0;
    }

    /* LOGICA DE DESCHIDERE: Când checkbox e bifat, meniul vine la dreapta: 0 */
    .menu-checkbox:checked~.main-nav {
        right: 0;
    }

    /* Animăm hamburger-ul să devină X când e deschis */
    .menu-checkbox:checked~.hamburger-btn span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .menu-checkbox:checked~.hamburger-btn span:nth-child(2) {
        opacity: 0;
    }

    .menu-checkbox:checked~.hamburger-btn span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    /*Blocam scroll-ul paginii cand meniul e deschis*/
    .menu-checkbox:checked~.body,
    .menu-checkbox:checked+.body {
        overflow: hidden;
    }

    /* Stilul pentru Overlay */
    .main-nav::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        backdrop-filter: blur(1px);
        background-color: rgba(53, 29, 103, 0.7);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
        z-index: -1;
        /* Behind nav content */
    }

    .main-nav .overlay-close {
        position: fixed;
        top: 0;
        left: 0;
        right: 260px;
        bottom: 0;
        height: 100vh;
        display: block !important;
        z-index: -1;
        /* Behind nav content but above ::before */
        margin: 0;
        padding: 0;
    }

    /* LOGICA: Când meniul e deschis, arătăm overlay-ul */
    .menu-checkbox:checked~.main-nav::before {
        opacity: 1;
        visibility: visible;
    }

    /* Hide menu*/
    .menu-checkbox:not(:checked)~.main-nav .overlay-close {
        display: none !important;
    }
}

/* Breaking news bar */
.breaking-news {
    background: #F0EEF5;
    border-bottom: 1px solid #ddd;
    padding: 8px 0;
}

/* Link-ul care cuprinde totul */
/* 1. Ajustăm link-ul părinte */
.breaking-link {
    text-decoration: none;
    display: block;
    line-height: 1.2;
    /* Distanța dorită de tine */
    overflow: hidden;
    /* Curăță eventualele suprapuneri */
}

.breaking-news .container {
    display: flex;
    align-items: center;
}

/* 2. Ajustăm Eticheta Mov */
.breaking-news .label {
    background: #7865A5;
    color: white;
    border-radius: 50px;
    padding: 0.25em 1em;
    font-weight: 900;
    font-size: 14px;
    margin-right: 0.5em;
    display: inline-flex;
    white-space: nowrap;
    vertical-align: middle;
    line-height: 1;
    margin-bottom: 0;
    transition: 0.3s ease;
}

/* 3. Ajustăm Textul */
.breaking-text {
    font-size: 14px;
    font-weight: 700;
    color: #222;
    display: inline;
    vertical-align: baseline;
    transition: 0.3s ease;
}

/* Efect la trecerea mouse-ului */
.breaking-link:hover .breaking-text {
    color: #351D67;
}

.breaking-link:hover .label {
    background: #351D67;
}

/* #endregion */

/* #region 2. Footer */
.main-footer {
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: center;
    justify-content: center;
    padding: 32px 16px;
    background: var(--mov);
    text-align: center;
    color: #fff;
    font-size: 14px;
}

.main-footer .logo-img {
    width: 200px;
    height: auto;
    margin-bottom: 8px;
}

.main-footer ul {
    display: flex;
    flex-direction: column;
    gap: 8px;
    list-style: none;
}

.main-footer ul li a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.main-footer ul li a:hover {
    color: #351D67;
}

/* #endregion */


/* #region 3. Layout Principal (2 Coloane) */
.main-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    --grid-ratio: 2/3;
    /* tine minte sa schimbi si --grid-ratio daca modificam proportiile */
    gap: 24px;
    margin-top: 30px;
    margin-bottom: 24px;
    padding-bottom: 72px;
}


/* Coloana stanga */
.column-left {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

/* Separare intre elementele de sub imagine si buton whatsapp */
.detalii-cazare {
    display: block;
    gap: 20px;
    align-items: start;
    overflow: visible;
    --width-booking-toggle: 250px;
    /*definim un width pe care sa il mosteneasca toate butoanele*/
}

/* Coloana dreapta */
.column-right {
    border-left: 1px solid #eee;
    padding-left: 24px;
}

/* TABLETĂ (Lățime sub 1024px) */
@media screen and (min-width: 769px) and (max-width: 1024px) {
    .main-layout {
        /* Schimbăm proporția: */
        grid-template-columns: 3fr 1fr;
        --grid-ratio: 3/4;
        gap: 16px;
    }

    .column-right {
        padding-left: 16px;
    }
}

/* MOBIL (Lățime sub 768px) */
@media (max-width: 768px) {
    .main-layout {
        display: flex;
        flex-direction: column;
        gap: 32px;
        padding-bottom: 60px;
    }

    .column-left {
        order: 1;
    }

    /* Coloana din dreapta se mută sub articol */
    .column-right {
        order: 2;
        border-left: none;
        padding-left: 0;
    }
}

/* #endregion */

/* #region 4. Stiluri Index */
.stire-hero {
    margin-bottom: 32px;
}

.img-hero {
    width: 100%;
    border-radius: 16px;
}

.stire-hero .content {
    margin-top: 16px;
}

.label-breaking {
    display: inline-flex;
    background: #7865A5;
    color: white;
    padding: 0.3em 1.2em;
    border-radius: 50px;
    font-weight: 900;
    font-size: 14px;
    margin-right: 0.5em;
    text-transform: uppercase;
    vertical-align: middle;
    transition: 0.3s ease;
}

.stire-hero h2 {
    display: inline;
    font-size: 20px;
    font-weight: 900;
    line-height: 1.3;
    color: #222;
    vertical-align: middle;
}

.stire-hero p {
    font-size: 16px;
    color: #444;
    margin-top: 0.5em;
}

/* Opțional: Efect de hover pentru un aspect mai interactiv */
.stire-hero:hover img {
    opacity: 0.9;
    transition: 0.3s ease;
}

.stire-hero:hover .label-breaking {
    background: #351D67;
}

/* MOBIL */
@media (max-width: 768px) {
    .stire-hero p {
        display: -webkit-box;
        /* Forțăm afișarea textului */
        font-size: 16px;
        /* Micșorăm puțin fontul față de desktop pentru a nu ocupa tot ecranul */
        color: #444;
        line-height: 1.2;
        line-clamp: 3;
        -webkit-line-clamp: 3;
        /* Arată doar primele 3 rânduri */
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
}

/* Separator Recomandări */
.separator-text {
    border-top: 4px solid #7865A5;
    border-bottom: 1px solid #eee;
    padding: 0.75em 0;
    margin-bottom: 24px;
    font-weight: 900;
    font-size: 16px;
    color: #1a1a1a;
    text-transform: uppercase;
}

.stire-tertiana {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
}

.stire-tertiana img {
    width: 300px;
    /* Forțăm lățimea */
    height: auto;
    /* Forțăm înălțimea fixă (16:9 din 280px) */
    aspect-ratio: 16 / 9;
    object-fit: cover;
    /* Taie surplusul, nu deformează */
    flex-shrink: 0;
    /* Interzice micșorarea pozei sub 280px */
    border-radius: 16px;
    transition: 0.3s ease;
}

.stire-tertiana .txt {
    flex: 1;
    /* Permite textului să ocupe restul spațiului, fără a împinge poza */
    display: -webkit-box;
    line-clamp: 7;
    -webkit-line-clamp: 7;
    /* adjust number of lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
    align-self: flex-start;
    margin: 4px 0;
}

.stire-tertiana .cat {
    color: #7865A5;
    font-weight: 900;
    font-size: 16px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 0.25em;
    transition: 0.3s ease;
}

.stire-tertiana h3 {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.5em;
}

/* Opțional: Efect de hover pentru un aspect mai interactiv */
.stire-tertiana:hover img {
    opacity: 0.9;
}

.stire-tertiana:hover .cat {
    color: #351D67;
}

/* MOBIL (Lățime sub 768px) */
@media (max-width: 768px) {
    .stire-tertiana {
        flex-direction: column;
        /* Imaginea sus, titlul jos */
        align-items: flex-start;
        padding-bottom: 12px;
        border-bottom: 1px solid #f0f0f0;
        gap: 12px;
    }

    .stire-tertiana:last-child {
        padding-bottom: 0;
        border-bottom: none;
        margin-bottom: 0;
    }

    .stire-tertiana img {
        /* Folosim !important pentru a anula valorile de desktop care au și ele !important */
        width: 100%;
        height: auto;
    }

    .stire-tertiana .txt {
        margin: unset;
    }
}

/* #endregion */

/* #region 5. Stiluri Articol */
.articol-complet .cat-label {
    color: #351D67;
    font-weight: 900;
    font-size: 16px;
    text-transform: uppercase;
    margin-bottom: 0.5em;
}

.titlu-articol {
    font-size: 28px;
    font-weight: 900;
    line-height: 1.2;
    margin: 0.25em 0 0.75em 0;
}

/* TABLETĂ (Lățime sub 1024px) */
@media screen and (min-width: 769px) and (max-width: 1024px) {
    .titlu-articol {
        font-size: 24px;
    }
}

/* MOBIL (Lățime sub 768px) */
@media (max-width: 768px) {
    .titlu-articol {
        font-size: 20px;
        line-height: 1.3;
    }

    .articol-complet .cat-label {
        font-size: 14px;
    }
}

.img-full {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 16px;
    margin-bottom: 24px;
}

.body-text {
    font-size: 18px;
    line-height: 1.3;
    /* Sfat: 1.2 e puțin cam înghesuit pentru justify, 1.4 arată mai aerisit */
    margin-bottom: 24px;
    color: #222;
    hyphens: auto;
    /* Opțional: ajută la cuvintele lungi care lasă spații mari între ele */
}

.body-text p {
    margin-bottom: 0.5em !important;
}

@media (max-width: 768px) {
    .body-text {
        font-size: 16px;
    }
}

/* Redirect sursa*/
.sursa-container {
    padding: 20px;
    background: #F0EEF5;
    border-left: 4px solid #7865A5;
    border-right: 4px solid #7865A5;
    border-radius: 16px;
}

.sursa-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-align: center;
}

.sursa-info {
    display: inline-block;
    text-align: center;
    color: #555;
    font-size: 14px;
}

.sursa-info p {
    display: inline;
}

.sursa-icon {
    height: 17px;
    width: auto;
    flex-shrink: 0;
    display: inline;
    vertical-align: text-top;
    margin-right: 0.2em;
}

.btn-sursa {
    display: inline-block;
    background: #7865A5;
    color: white;
    padding: 0.8em 1.6em;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    font-size: 15px;
    transition: 0.3s ease;
    box-shadow: 0 4px 15px rgba(120, 101, 165, 0.2);
}

.btn-sursa:hover {
    background: #351D67;
    transform: scale(0.98);
    box-shadow: 0 6px 20px rgba(53, 29, 103, 0.3);
}

/* Footer */
.articol-footer {
    display: flex;
    flex-direction: column;
    gap: 8px;
    border-top: 1px solid #eee;
    padding: 16px 0 0;
    margin-top: 32px;
    font-size: 12px;
    color: #666;
}

.back-btn {
    width: fit-content;
    font-size: 14px;
    font-weight: 500;
    color: #351D67;
    text-decoration: none;
    margin-top: 16px;
    transition: 0.3s ease;
}

.back-btn:hover {
    color: #7865A5;
}

/* #endregion */

/* #region 6. Stiluri Unitate Cazare */

/* Titlurile cardurilor din detalli-cazare */
.section-title {
    display: inline-block;
    font-size: 20px;
    color: #333;
    margin: 0 0 0.25em 0;
}

/* #region a. Header */
.stele-unitate {
    color: #7865A5;
    font-family: "Zen Maru Gothic", sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 1.4em;
    letter-spacing: 2px;
    text-shadow: 1px 1px 0px rgba(120, 101, 165, 0.50);
}

/* Badges Nibiru si Plaja*/
.badge-unitate {
    display: inline-flex;
    /*align-content: center;*/
    /*align-items: center;*/
    vertical-align: text-bottom;
    gap: 0.5em;
    color: white;
    padding: 0.2em 1em;
    font-size: 0.60em;
    font-weight: 800;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-nibiru {
    background-color: #351D67;
    box-shadow: 0 2px 4px rgba(53, 29, 103, 0.3);
}

.badge-plaja {
    background-color: #7865A5;
    /* Un mov deschis pentru plajă */
    box-shadow: 0 2px 4px rgba(120, 101, 165, 0.3);
}

.badge-icon {
    height: 0.80em;
    width: auto;
    /* ← Fixed icon size */
    flex-shrink: 0;
    /* ← Prevents icon squish */
    align-self: center;
}

/* #endregion */

/* #region b. Slider poze */
.slider-wrapper {
    width: 100%;
    margin-bottom: 32px;
    border-radius: 16px;
    overflow: hidden;

}

.slider-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    /* Forțează formatul 16:9 */
    overflow: hidden;
}

.main-slider {
    display: flex;
    height: 100%;
    /*/width: 100%;
    object-fit: cover;*/
    transition: transform 0.5s ease-in-out;
}

/* Stil pentru placeholder-ul de încărcare */
.slide {
    min-width: 100%;
    height: 100%;
    background: #1a1a1a linear-gradient(to right, #1a1a1a 0%, #333 50%, #1a1a1a 100%);
    background-size: 800px 100%;
    animation: shimmer 2s infinite linear;
}

@keyframes shimmer {
    0% {
        background-position: -400px 0;
    }

    100% {
        background-position: 400px 0;
    }
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Imaginile umplu spațiul fără a se deforma */
    opacity: 0;
    transition: opacity 0.5s ease-in;
}

.slide img.loaded {
    opacity: 1;
}

/* Săgeți Navigare poze */
.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(120, 101, 165, 0.5);
    color: white;
    border: none;
    padding: 15px 20px;
    cursor: pointer;
    font-size: 24px;
    z-index: 10;
    transition: 0.3s;
}

.nav-btn:hover {
    background: rgba(120, 101, 165, 0.8);
}

.next {
    right: 0;
}

.prev {
    left: 0;
}

/* Miniaturi (Thumbnails) */
.thumbnails-bar {
    display: flex;
    max-height: 80px;
    min-height: 60px;
    height: 8vw;
    background: #F0EEF5;
    padding: 4px 0;
    gap: 4px;
    overflow-x: auto;
    scrollbar-width: auto;
    /* scrollbar-color: rgba(120,101,165,0.5) transparent; */
}

.thumbnails-bar img {
    width: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    opacity: 0.6;
    cursor: pointer;
    transition: 0.3s;
    flex-shrink: 0;
    border: 1px solid transparent;
}

.thumbnails-bar img.active {
    opacity: 1;
    border-color: #7865A5;
}

.thumbnails-bar::-webkit-scrollbar {
    height: 6px;
}

.thumbnails-bar::-webkit-scrollbar-thumb {
    background: rgba(120, 101, 165, 0.5);
    border-radius: 10px;
}

.thumbnails-bar::-webkit-scrollbar-thumb:hover {
    background: rgba(120, 101, 165, 0.8);
}

.thumbnails-bar::-webkit-scrollbar-track {
    margin: 16px;
    background: transparent;
}

/* TABLETĂ (Lățime sub 1024px) */
@media screen and (min-width: 769px) and (max-width: 1024px) {
    .thumbnails-bar::-webkit-scrollbar {
        height: 4px;
    }
}

/* MOBIL (Lățime sub 768px) */
@media (max-width: 768px) {
    .thumbnails-bar {
        padding: 2px 0 4px;
        gap: 2px;
        scrollbar-width: none;
        -ms-overflow-style: none;
        /* Ascunde scrollbar pe IE/Edge */
    }

    .thumbnails-bar::-webkit-scrollbar {
        display: none;
        /* Ascunde scrollbar pe Chrome/Safari */
    }
}

/* #endregion */

/* #region c. Booking Fallback Button in pagina unitatii de cazare*/
.booking-section {
    background: #F0EEF5;
    padding: 20px;
    border-radius: 16px;
    text-align: center;
    font-size: 16px;
    margin-bottom: 24px;
    border-left: 4px solid #7865A5;
    border-right: 4px solid #7865A5;
}

.btn-reserve {
    display: inline-block;
    background: #7865A5;
    color: #fff;
    font-size: 18px;
    padding: 0.5em 2em;
    text-decoration: none;
    font-weight: 600;
    border-radius: 50px;
    transition: 0.3s ease;
    border: 1px solid #7865A5;
}

.btn-reserve:hover {
    background: #351D67;
    transform: scale(0.98);
}

/* #endregion */

/* #region d. Facilități */
.facilities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin-bottom: 24px;
    padding: 16px 24px;
    background: #ffffff;
    border: 1px solid #F0EEF5;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(240, 238, 245, 0.9);
}

.fac-label {
    color: #351D67;
    font-weight: 900;
    font-size: 16px;
    text-transform: uppercase;
    margin-bottom: 0.5em;
}

.facility-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
    padding: 0.5em;
    border-radius: 50px;
    transition: background 0.2s ease;
}

/* Efect discret la trecerea mouse-ului */
.facility-item:hover {
    background: #F0EEF5;
}

.facility-item span {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #F0EEF5;
    border-radius: 50px;
    flex-shrink: 0;
    /* transform: translateY(-2px); */
}

.facility-item p {
    transform: translateY(0.06em);
}

.facility-icon {
    width: 32px;
    height: auto;
}

@media (max-width: 768px) {
    .facilities-grid {
        display: flex;
        /* Aliniere pe un singur rând */
        position: relative;
        overflow-x: auto;
        /* Permite scroll orizontal */
        white-space: nowrap;
        padding: 12px;

        border-radius: 0;
        scrollbar-width: none;
        /* Ascunde scrollbar pe Firefox */
        -ms-overflow-style: none;
        /* Ascunde scrollbar pe IE/Edge */
        -webkit-overflow-scrolling: touch;
        -webkit-mask: linear-gradient(to right, transparent 0px, #000 24px, #000 calc(100% - 24px), transparent 100%);
        mask: linear-gradient(to right, transparent 0px, #000 24px, #000 calc(100% - 24px), transparent 100%);
    }

    .facilities-grid::-webkit-scrollbar {
        display: none;
    }

    /* Ascunde pe Chrome */

    .fac-label {
        font-size: 14px;
    }

    .facility-item {
        flex: 0 0 auto;
        /* Nu permite comprimarea */
        background: #F0EEF5;
        padding-right: 1.2em;
        gap: 8px;
    }
}

/* #endregion */

/* #region e. Descriere */
.fade-wrapper {
    position: relative;
    overflow: hidden;
}

/* Efectul de estompare propriu-zis */
.fade-wrapper::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40px;
    /* Înălțimea zonei de estompare */
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 1));
    pointer-events: none;
    /* Permite click-ul prin acest strat către buton */
    transition: opacity 0.3s ease;
}

/* Când textul este extins, ascundem efectul de estompare */
.desc-expanded .fade-wrapper::after {
    opacity: 0;
}

.read-more-btn {
    display: table;
    /* Se strânge pe lățimea textului */
    margin: 12px auto;
    /* Îl centrează orizontal */
    background: none;
    border: none;
    color: #7865A5;
    font-weight: bold;
    cursor: pointer;
    font-size: 14px;
    text-decoration: none;
    /* Arată mai curat fără underline acum că avem fade */
}

/* #endregion */

/* #region f. Contact si Navigatie*/
.contact-quick-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 0 24px 24px;
    /*/direction: rtl; /* Inversează ordinea coloanelor */
    /* --- LOGICA STICKY --- */
    /*/position: -webkit-sticky; /* Pentru Safari */
    /*/position: sticky;
    bottom: 0px;          /* Distanța față de marginea de jos când se lipește */
    /*/z-index: 1000;         /* Se asigură că butoanele trec peste alte elemente */
    /*/background: rgba(255, 255, 255, 0.9); /* Fundal ușor transparent ca să nu se suprapună urât */
    /*/padding: 10px;
    border-radius: 12px;
    box-shadow: 0 -5px 15px rgba(0,0,0,0.1); /* O umbră discretă să pară că "plutește" */
}

.btn-contact {
    /*/direction: rtl; /* Inversează ordinea coloanelor */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 12px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    color: white;
    transition: 0.3s ease;
    font-size: 16px;
}

.btn-call {
    /*/order: 2; /* Va fi primul (deci în stânga) */
    background-color: #7865A5;
}

.btn-whatsapp {
    /*/order: 1; /* Va fi primul (deci în stânga) */
    background-color: #351D67;
}

.btn-contact:hover {
    transform: scale(0.98);
    opacity: 0.9;
}

.location-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 16px 24px;
    background: #F0EEF5;
    border-top: 4px solid #7865A5;
    border-bottom: 4px solid #7865A5;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 24px;
}

.location-icon {
    display: inline;
    height: 20px;
    width: auto;
    margin-right: 0.2em;
    vertical-align: text-top;
}

.address-text {
    color: #666;
    font-size: 16px;
    margin-top: -12px;
}

.map-container {
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #eee;
}

.navigation-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.btn-nav {
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 12px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s ease;
    font-size: 16px;
}

.btn-maps {
    background: #7865A5;
}

.btn-waze {
    background: #351D67;
}

.btn-nav:hover {
    transform: scale(0.98);
    opacity: 0.9;
}

.btn-icon {
    display: inline-flex;
    height: 20px;
    width: auto;
    vertical-align: middle;
}

@media (max-width: 768px) {
    .contact-quick-actions {
        margin: 0 0 24px;
    }

    .navigation-buttons {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

/* #endregion */

/* #region g. Recenzii */
.rating-section-wrapper {
    width: 100%;
    max-width: 100%;
    padding: 16px 0 8px;
    overflow: hidden;
    /* Foarte important: taie ce iese în afară */
    background: #ffffff;
    border-top: 1px solid #F0EEF5;
    border-bottom: 1px solid #F0EEF5;
    margin-bottom: 24px;
}

.rating-section-wrapper h4 {
    text-align: center;
}

.rating-section-wrapper p {
    font-size: 12px;
    color: #666;
    max-width: 300px;
    justify-self: center;
    text-align: center;
    margin-bottom: 16px;
}

/* Nota */
.trophy-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    gap: 8px;
    text-align: center;
    width: fit-content;
    justify-self: center;
}

.laur-img {
    width: 50px;
    height: auto;
    flex-shrink: 0;
}

.trophy-center {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.nota-mare {
    font-size: 48px;
    font-family: "Anta", sans-serif;
    font-weight: 800;
    font-style: normal;
    letter-spacing: 2px;
    color: #222;
    margin-bottom: -5px;
}

.stars-outer {
    position: relative;
    display: inline-block;
    font-size: 20px;
    letter-spacing: 1px;
    color: #ccc;
}

.stars-inner {
    position: absolute;
    top: 0;
    left: 0;
    white-space: nowrap;
    overflow: hidden;
    color: #222;
}

.stars-outer,
.stars-inner {
    font-family: "Zen Maru Gothic", sans-serif;
    font-weight: 400;
    font-style: normal;
}

/* Dropdown pentru sortare */
.source-picker {
    margin-bottom: 16px;
    text-align: right;
}

.elegant-dropdown {
    position: relative;
    min-width: 170px;
    height: 36px;
    padding: 8px 40px 8px 20px;
    /* Spațiu pentru săgeată */
    border-radius: 50px;
    border: 1px solid #7865A5;
    font-size: 14px;
    color: #333;
    background: rgba(240, 238, 245, 0.3);
    outline: none;
    transition: all 0.2s ease;
    font-weight: bold;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.elegant-dropdown {
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' width='28' height='28' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='%237865A5' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 28px 28px;
}

.elegant-dropdown:hover {
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' width='28' height='28' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='%23351D67' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
}

/* Sliderul de recenzii */
.reviews-slider {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    /* Forțează oprirea pe fiecare card */
    gap: 20px;
    padding: 0 10px 8px;
    width: 100%;
    /* Ocupă 100% din cele 2/3 ale coloanei main */
    -webkit-overflow-scrolling: touch;
    /* Slide fin pe iOS */
    scrollbar-width: auto;
    transition: all 0.3s ease;
}

.reviews-slider::-webkit-scrollbar {
    height: 6px;
}

.reviews-slider::-webkit-scrollbar-thumb {
    background: rgba(120, 101, 165, 0.5);
    border-radius: 10px;
}

.reviews-slider::-webkit-scrollbar-thumb:hover {
    background: rgba(120, 101, 165, 0.8);
}

.reviews-slider::-webkit-scrollbar-track {
    background: transparent;
}

/* TABLETĂ (Lățime sub 1024px) */
@media screen and (min-width: 769px) and (max-width: 1024px) {
    .reviews-slider::-webkit-scrollbar {
        height: 4px;
    }
}

@media (max-width: 768px) {
    .reviews-slider {
        scrollbar-width: none;
        /* Ascunde scrollbar pe mobil/tableta */
        -ms-overflow-style: none;
        /* Ascunde scrollbar pe IE/Edge */
    }

    .reviews-slider::-webkit-scrollbar {
        display: none;
        /* Ascunde scrollbar pe Chrome/Safari */
    }
}

/* Cardul individual de recenzie */
.review-card {
    flex: 0 0 calc(50% - 20px);
    /* Lățime fixă pe mobil/desktop */
    scroll-snap-align: start;
    /* Alinierea la începutul containerului */
    min-width: 290px;
    background: #F0EEF5;
    border: 1px solid #eee;
    border-radius: 32px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    /* justify-content: space-between; */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

@media (min-width: 769px) and (max-width: 939px) {
    .review-card {
        flex: 0 0 calc(100% - 20px);
    }
}

@media (min-width: 769px) and (max-width: 939px) {
    .review-card {
        flex: 0 0 calc(100% - 20px);
    }
}

@media (min-width: 690px) and (max-width: 768px) {
    .review-card {
        flex: 0 0 calc(50% - 20px);
    }
}

@media (max-width: 689px) {
    .review-card {
        flex: 0 0 calc(100% - 20px);
    }
}

/* Zona de sus a recenziei: Stele mov și Data */
.review-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 15px;
    color: #333;
    margin-bottom: 12px;
}

.review-top .stars-outer {
    font-size: 18px;
    margin-bottom: 4px;
}

.review-top .stars-inner {
    color: #351D67;
}

/* Textul recenziei - Limitat la 5 rânduri */
.review-text-content {
    font-size: 16px;
    line-height: 1.5;
    color: #222;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-clamp: 5;
    -webkit-line-clamp: 5;
    /* Limitează la 5 rânduri */
    margin-bottom: 8px;
}

.show-more-link {
    display: flex;
    color: #555;
    font-style: italic;
    font-size: 12px;
    cursor: pointer;
    margin-bottom: 12px;
    margin-top: auto;
    /* Împinge linkul în jos dacă cardul are spațiu suplimentar */
    transition: 0.3s ease;
}

.show-more-link:hover {
    color: #222;
}

/* Placheta mov de jos */
.review-plaque {
    background-color: #7865A5;
    padding: 12px 24px;
    max-height: 75px;
    margin: 0 -24px 8px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.plaque-score {
    background: #F0EEF5;
    color: #351D67;
    width: 51px;
    height: 51px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 32px;
    font-weight: 900;
    font-size: 22px;
    letter-spacing: -0.5px;
    flex-shrink: 0;
}

.plaque-info {
    color: #351D67;
    line-height: 1;
}

.plaque-info strong {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    font-size: 15px;
    color: #fff;
    margin-bottom: 4px;
}

.plaque-info small {
    font-size: 12px;
    /* opacity: 0.9; */
}

/*Ultimul card - toate recenziile*/
.see-all-reviews {
    display: block;
    font-size: 16px;
    line-height: 1.5;
    color: #222;
    margin-bottom: auto;
    margin-top: 0;
    /* Împinge linkul în jos dacă cardul are spațiu suplimentar */

}

.btn-main-reviews {
    display: flex;
    background: #7865A5;
    color: #fff;
    font-size: 15px;
    height: 75px;
    align-items: center;
    justify-content: center;
    padding-right: 24px;
    padding-left: 24px;
    margin: 0 -24px 10px;
    border: none;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s ease;
}

.btn-main-reviews:hover {
    background: #351D67;
    opacity: 0.9;
}

/* Cardul Vezi Arhiva */
.archive-btn-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    text-align: center;
    text-wrap: balanced;
    color: #666;
    padding: 36px 24px;
    background: rgba(240, 238, 245, 0.3);
    border-radius: 32px;
    border: 1px dashed rgba(120, 101, 165, 0.3);
    margin-top: 32px;
}

.btn-archive {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 300px;
    text-decoration: none;
    background: #7865A5;
    color: white;
    font-size: 15px;
    border: none;
    padding: 12px 16px;
    border-radius: 50px;
    font-weight: bold;
    transition: 0.3s ease;
}

.btn-archive:hover {
    background: #351D67;
}

@media (max-width: 768px) {
    .archive-btn-container {
        padding: 16px;
    }
}

/* #region Layerul pentru recenzii care se intinde peste orice altceva*/
/* Containerul Modalului - Ascuns implicit */
.full-screen-modal {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fff;
    z-index: 10000;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    /* Previne interacțiunea când e invizibil */
    transform: translateY(100%);
    /* Pornim de jos pentru efectul de slide */
    transition: opacity 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), visibility 0.4s ease, transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.full-screen-modal.active {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    /* Revenim la poziția normală */
    pointer-events: auto;
    /* Permite interacțiunea când e vizibil */
}

/* Header-ul fix al modalului (cu buton de închidere și sortare) */
.modal-header {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: fit-content;
    background: #fff;
    border-bottom: 1px solid #eee;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.modal-header-container {
    position: relative;
    display: flex;
    max-width: 800px;
    width: 100%;
    padding: 12px 20px;
    align-items: start;
    justify-content: space-between;
    gap: 12px;
}

.modal-sorting {
    display: flex;
    column-gap: 12px;
    row-gap: 4px;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.close-modal {
    font-size: 20px;
    cursor: pointer;
    color: #666;
    background: none;
    border: none;
    font-family: inherit;
    /* Matches ✕ glyph */
    text-decoration: none;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.close-modal:hover {
    color: #7865A5;
}

@media (max-width: 768px) {
    .modal-sorting .elegant-dropdown {
        position: relative;
        min-width: 155px;
        height: 32px;
        padding: 8px 36px 8px 16px;
        /* Spațiu pentru săgeată */
        border-radius: 50px;
        border: 1px solid #7865A5;
        color: #333;
        font-size: 12px;
        background: rgba(240, 238, 245, 0.3);
        outline: none;
        transition: all 0.2s ease;
        font-weight: bold;
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
    }

    .modal-sorting .elegant-dropdown {
        background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' width='28' height='28' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='%237865A5' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: right 10px center;
        background-size: 28px 28px;
    }

    .modal-sorting .elegant-dropdown:hover {
        background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' width='28' height='28' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='%23351D67' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    }
}

/* Containerul de conținut unde vom "vărsa" recenziile */
.modal-content-body {
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-width: 800px;
    height: 100vh;
    /* Ocupă toată înălțimea pentru a permite scroll */
    margin: 0 auto;
    padding: 84px 20px 24px;
    /* Padding top pentru a nu fi acoperit de header */
    overflow-y: auto;
    /* Permite scroll în interiorul modalului */
    scrollbar-width: none;
    /* Ascunde scrollbar pe Firefox */
    -ms-overflow-style: none;
    /* Ascunde scrollbar pe IE/Edge */
}

.modal-content-body::-webkit-scrollbar {
    display: none;
}

/* Stil pentru recenziile din modal (varianta extinsă) */
.full-review-item {
    padding: 32px 24px;
    background: #F0EEF5;
    border-radius: 32px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid #f0f0f0;
    scroll-margin-top: 80px;
    /* Important pentru "saltul" la recenzia selectată */
    transition: background 0.3s ease;
}

.full-review-text-content {
    margin: 16px 0;
    font-size: 16px;
    line-height: 1.5;
    color: #222;
}

.modal-content-body .review-plaque {
    max-height: fit-content;
    margin-bottom: 0;
}

.modal-content-body .plaque-info strong {
    display: block;
    font-size: 16px;
}

/* Buton "SUS" in pagina de recenzii*/
.back-to-top-modal {
    display: flex;
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #F0EEF5;
    color: #351D67;
    width: 48px;
    height: 48px;
    border-radius: 50px;
    /* Formă de pastilă, arată mai bine cu text */
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    visibility: hidden;
    /* Ascuns implicit */
    opacity: 0;
    pointer-events: none;
    /* Previne interacțiunea când e invizibil */
    transform: translateY(100%);
    /* Pornim de jos pentru efectul de slide */
    transition: opacity 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), visibility 0.4s ease, transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 11;
}

.back-to-top-modal.active {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    /* Permite interacțiunea când e vizibil */
    transform: translateY(0);
    /* Revenim la poziția normală */
}

/* La dimensiuni mici ale ecranului cele 2 filtre se muta unul sub altul, asa ca marim marginea de sus a paginii si distanta la care sare recenzia selectata */
@media (max-width: 403px) {
    .modal-content-body {
        padding-top: 116px;
    }

    .full-review-item {
        scroll-margin-top: 112px;
    }
}

/* #endregion */
/* #endregion */

/* #region 7. Buton WhatsApp */
/* #region i. Buton + Container */
.booking-toggle {
    position: fixed;
    bottom: 24px;
    right: 15px;
    /*alinierea pe mobil */
    width: var(--width-booking-toggle);
    height: 48px;
    background: #351D67;
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 500;
    z-index: 100;
    transition: transform 0.3s ease;
}

.booking-toggle:hover {
    transform: scale(0.98);
}

.booking-container {
    display: flex;
    position: fixed;
    bottom: 0;
    z-index: 1110;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    /* Previne interacțiunea când e invizibil */
    transition: opacity 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), visibility 0.4s ease;
}

.booking-box {
    position: relative;
    width: calc(50px + var(--width-booking-toggle));
    /* Adaugă padding-ul orizontal (24) si border radius (1) la lățime */
    height: fit-content;
    padding: 48px 24px 20px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 32px 32px 0 0;
    align-items: center;
    justify-content: space-between;
    align-content: center;
    opacity: 0;
    transform: translateY(100%);
    transition: opacity 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.booking-container.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.booking-container.active .booking-box {
    opacity: 1;
    transform: translateY(0);
}

/* Aliniem butonul la dreapta coloanei stanga - din cauza position: fixed trebuie calculata alinierea manual la fiecare definitie de container+padding+gap*/
@media (min-width: 769px) and (max-width: 1024px) {
    .booking-toggle {
        left: calc(20px + var(--grid-ratio) * (100% - 40px - 16px) - var(--width-booking-toggle));
        /* Position next to the right edge of the left column */
        right: auto;
    }

    .booking-container {
        left: calc(20px + var(--grid-ratio) * (100% - 40px - 16px) - var(--width-booking-toggle) - 25px);
        /* same as toggle but move to the left by the container padding + border radius so the inner button matches the toggle */
        right: auto;
    }
}

@media (min-width: 1025px) and (max-width: 1260px) {
    .booking-toggle {
        left: calc(20px + var(--grid-ratio) * (100% - 40px - 24px) - var(--width-booking-toggle));
        /* Position next to the right edge of the left column */
        right: auto;
    }

    .booking-container {
        left: calc(20px + var(--grid-ratio) * (100% - 40px - 24px) - var(--width-booking-toggle) - 25px);
        right: auto;
    }
}

@media (min-width: 1261px) {
    .booking-toggle {
        left: calc(50% - 630px + 20px + var(--grid-ratio) * 1196px - var(--width-booking-toggle));
        /* Position next to the right edge of the left column */
        right: auto;
    }

    .booking-container {
        left: calc(50% - 630px + 20px + var(--grid-ratio) * 1196px - var(--width-booking-toggle) - 25px);
        right: auto;
    }
}

/* Buton interior */
.btn-toggle-whatsapp {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: center;
    height: 48px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    color: white;
    font-size: 16px;
    background: #351D67;
    transition: 0.3s ease;
}

.btn-toggle-whatsapp:hover {
    transform: scale(0.98);
    opacity: 0.9;
}

/* Inchidere overlay x */
.close-btn {
    position: absolute;
    top: 12px;
    right: 20px;
    font-size: 20px;
    cursor: pointer;
    color: #666;
    background: none;
    border: none;
    font-family: inherit;
    /* Matches ✕ glyph */
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.close-btn:hover {
    color: #7865A5;
}

/* #endregion */

/* #region ii. Row 1: dates */
.dates-row {
    display: flex;
    flex-wrap: nowrap;
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 8px 8px 0 0;
    overflow: hidden;
    margin-bottom: 0;
}

.field-group {
    padding: 8px;
    border-right: 1px solid #eee;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    background: #fff;
}

.dates-row .field-group {
    flex: 1 1 0;
    /* grow and shrink, base 0 so they share space evenly */
    min-width: 0;
    /* allow shrinking below content width */
}

.dates-row input {
    width: 100%;
    /* fill each field-group */
    max-width: 100%;
    /* never exceed the field-group width */
}

.field-group:last-of-type {
    border-right: none;
}

.field-group label {
    font-size: 10px;
    text-transform: uppercase;
    color: #888;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

.dates-row input::placeholder {
    color: #333;
    /* match the selected guests text color */
    opacity: 1;
    /* full opacity (Firefox default is lower) */
    font-weight: 400;
}

.dates-row:focus-within {
    border-color: #7865A5;
    box-shadow: 0 0 0 1px rgba(53, 29, 103, 0.3);
}

.dates-row input:focus {
    outline: none;
}

.field-group input,
.field-group select {
    border: none;
    outline: none;
    font-size: 16px;
    color: #333;
    font-weight: 400;
    padding: 0;
    background: transparent;
    cursor: pointer;
}

/* #endregion*/

/* #region iii. Row 2: guests */
.guests-row {
    border: 1px solid #ddd;
    border-radius: 0 0 8px 8px;
    padding: 8px;
    margin-bottom: 12px;
}

.guests-row:focus-within {
    border-color: #7865A5;
    box-shadow: 0 0 0 1px rgba(53, 29, 103, 0.3);
}

.guests-selector {
    position: relative;
    width: 100%;
    cursor: pointer;
}

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

.guests-total {
    font-size: 16px;
    font-weight: 400;
    color: #333;
    opacity: 1;
}

.dropdown-icon {
    transition: transform 0.2s ease;
}

.guests-selector.active .dropdown-icon {
    transform: rotate(180deg);
}

.guests-panel {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 24px 12px;
    z-index: 10;
    opacity: 0;
    transform: translateY(50px);
    pointer-events: none;
    /* Previne interacțiunea când e invizibil */
    transition: opacity 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.guests-selector.active .guests-panel {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.counter-group {
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin-bottom: 12px;
}

.counter-group label {
    flex: 1;
    display: flex;
    flex-direction: column;
    font-size: 14px;
    color: #555;
    letter-spacing: 0.05em;
    line-height: 1.2;
    margin-bottom: 0;

}

.counter-group span {
    font-size: 12px;
    color: #888;
}

.counter {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-shrink: 0;
    margin-top: -4px;
}

.counter-value {
    font-size: 16px !important;
    font-weight: 500;
    min-width: 16px;
    color: #333 !important;
    text-align: center;
}

.btn-minus,
.btn-plus {
    height: 28px;
    width: 28px;
    border: 1px solid #F0EEF5;
    background: white;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 600;
    color: #7865A5;
    transition: all 0.1s ease;
}

.btn-minus:hover,
.btn-plus:hover {
    background: #F0EEF5;
    border-color: #7865A5;
}

.btn-minus:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.confirm-btn {
    width: 100%;
    padding: 12px;
    margin-top: 8px;
    background: #351D67;
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: 0.3s ease;
}

.confirm-btn:hover {
    transform: scale(0.98);
    opacity: 0.9;
}

/* Text line */
.availability-text {
    font-size: 14px;
    color: #222;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 768px) {

    .booking-container {
        top: 0;
        left: 0;
        right: 0;
        height: 100dvh;
        backdrop-filter: blur(1px);
        background: rgba(53, 29, 103, 0.7);
    }

    .booking-box {
        width: 100%;
        margin: auto 0 0 0;
        overflow-y: visible;
    }

    .field-group,
    .guests-row {
        padding: 12px;
    }

    .field-group label {
        font-size: 12px;
    }

    .field-group input,
    .field-group select,
    .guests-total {
        font-size: 16px;
    }

    .guests-panel {
        padding: 24px;
        max-width: 350px;
        width: 100%;
        /* Fill available space up to max-width */
        right: 0;
        left: auto;
    }

    .counter-group label {
        font-size: 14px;
    }

    .counter-group span {
        font-size: 12px;
    }

    .counter {
        margin-top: -2px;
    }

    .counter-value {
        font-size: 16px !important;
    }

    .btn-minus,
    .btn-plus {
        width: 30px;
        height: 30px;
        font-size: 20px;
    }

    .confirm-btn {
        font-size: 16px;
    }

    .availability-text {
        display: none;
    }
}

/*#region Calendar Flatpickr */
.flatpickr-calendar {
    background: #fff;
    -webkit-box-shadow: 1px 0 0 #F0EEF5, -1px 0 0 #F0EEF5, 0 1px 0 #F0EEF5, 0 -1px 0 #F0EEF5, 0 3px 13px rgba(0, 0, 0, 0.08);
    box-shadow: 1px 0 0 #F0EEF5, -1px 0 0 #F0EEF5, 0 1px 0 #F0EEF5, 0 -1px 0 #F0EEF5, 0 3px 13px rgba(0, 0, 0, 0.08);
}

.flatpickr-calendar.multiMonth .flatpickr-days .dayContainer:nth-child(n+2) .flatpickr-day.inRange:nth-child(7n+1) {
    -webkit-box-shadow: -2px 0 0 #F0EEF5, 5px 0 0 #F0EEF5;
    box-shadow: -2px 0 0 #F0EEF5, 5px 0 0 #F0EEF5;
}

.flatpickr-calendar.multiMonth .flatpickr-days .dayContainer:nth-child(n+2) {
    -webkit-box-shadow: -1px 0 0 rgba(0, 0, 0, 0.1);
}

.flatpickr-calendar.arrowTop:before {
    border-bottom-color: #F0EEF5;
}

.flatpickr-calendar.arrowTop:after {
    border-bottom-color: #F0EEF5;
}

.flatpickr-calendar.arrowBottom:before {
    border-top-color: #F0EEF5;
}

.flatpickr-calendar.arrowBottom:after {
    border-top-color: #F0EEF5;
}

.flatpickr-months .flatpickr-month {
    background: #fff;
    color: #111;
}

.flatpickr-months .flatpickr-prev-month,
.flatpickr-months .flatpickr-next-month {
    fill: #aaa;
}

.flatpickr-months .flatpickr-prev-month:hover,
.flatpickr-months .flatpickr-next-month:hover {
    color: #7865A5;
}

.flatpickr-months .flatpickr-prev-month:hover svg,
.flatpickr-months .flatpickr-next-month:hover svg {
    fill: #7865A5;
}

.flatpickr-current-month .numInputWrapper span.arrowUp:after {
    border-bottom-color: #7865A5;
}

.flatpickr-current-month .numInputWrapper span.arrowDown:after {
    border-top-color: #7865A5;
}

.flatpickr-month .flatpickr-monthDropdown-months,
.flatpickr-current-month .flatpickr-monthDropdown-months .flatpickr-monthDropdown-month {
    background: #fff;
}


span.flatpickr-weekday {
    background: #fff;
    color: #111;
}

.flatpickr-day.inRange,
.flatpickr-day.prevMonthDay.inRange,
.flatpickr-day.nextMonthDay.inRange,
.flatpickr-day.today.inRange,
.flatpickr-day.prevMonthDay.today.inRange,
.flatpickr-day.nextMonthDay.today.inRange,
.flatpickr-day:hover,
.flatpickr-day.prevMonthDay:hover,
.flatpickr-day.nextMonthDay:hover,
.flatpickr-day:focus,
.flatpickr-day.prevMonthDay:focus,
.flatpickr-day.nextMonthDay:focus {
    cursor: pointer;
    outline: 100;
    background: #F0EEF5;
    border-color: #F0EEF5;
}

.flatpickr-day.inRange {
    border-radius: 0;
    -webkit-box-shadow: -5px 0 0 #F0EEF5, 5px 0 0 #F0EEF5;
    box-shadow: -5px 0 0 #F0EEF5, 5px 0 0 #F0EEF5;
}

.flatpickr-day.today {
    border-color: #7865A5;
}

.flatpickr-day.today:hover,
.flatpickr-day.today:focus {
    border-color: #7865A5;
    background: #F0EEF5;
}

.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange,
.flatpickr-day.selected.inRange,
.flatpickr-day.startRange.inRange,
.flatpickr-day.endRange.inRange,
.flatpickr-day.selected:focus,
.flatpickr-day.startRange:focus,
.flatpickr-day.endRange:focus,
.flatpickr-day.selected:hover,
.flatpickr-day.startRange:hover,
.flatpickr-day.endRange:hover,
.flatpickr-day.selected.prevMonthDay,
.flatpickr-day.startRange.prevMonthDay,
.flatpickr-day.endRange.prevMonthDay,
.flatpickr-day.selected.nextMonthDay,
.flatpickr-day.startRange.nextMonthDay,
.flatpickr-day.endRange.nextMonthDay {
    background: #7865A5;
    color: #fff;
    border-color: #7865A5;
}

.flatpickr-day {
    color: rgba(0, 0, 0, 0.95);
}

.flatpickr-day.flatpickr-disabled,
.flatpickr-day.flatpickr-disabled:hover,
.flatpickr-day.prevMonthDay,
.flatpickr-day.nextMonthDay,
.flatpickr-day.notAllowed,
.flatpickr-day.notAllowed.prevMonthDay,
.flatpickr-day.notAllowed.nextMonthDay {
    color: rgba(0, 0, 0, 0.3);
}

.flatpickr-day.flatpickr-disabled,
.flatpickr-day.flatpickr-disabled:hover {
    cursor: not-allowed;
    color: rgba(0, 0, 0, 0.1);
}

.flatpickr-day.selected.startRange+.endRange:not(:nth-child(7n+1)),
.flatpickr-day.startRange.startRange+.endRange:not(:nth-child(7n+1)),
.flatpickr-day.endRange.startRange+.endRange:not(:nth-child(7n+1)) {
    -webkit-box-shadow: -10px 0 0 #F0EEF5;
    box-shadow: -10px 0 0 #F0EEF5;
}

.flatpickr-day.selected.startRange.endRange,
.flatpickr-day.startRange.startRange.endRange,
.flatpickr-day.endRange.startRange.endRange {
    border-radius: 50px;
}

.flatpickr-weekwrapper span.flatpickr-day,
.flatpickr-weekwrapper span.flatpickr-day:hover {
    color: rgba(0, 0, 0, 0.3);
}

/* #endregion */
/* #endregion */

/* #region Coloana Dreaptă - Sidebar */
.top-citite-header {
    border-top: 4px solid #7865A5;
    border-bottom: 1px solid #eee;
    padding: 0.75em 0 0.25em;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.top-item {
    padding-bottom: 12px;
    margin-bottom: 24px;
    border-bottom: 1px solid #f0f0f0;
}

.img-container {
    position: relative;
    width: 100%;
    line-height: 0;
    margin-bottom: 8px;
}

.img-container img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
    border-radius: 16px;
    transition: 0.3s ease;
}

/* Stil pentru cifra top citite */
.top-number-box {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 48px;
    height: 32px;
    background: #7865A5;
    border-radius: 0 16px 0 16px;
    /* Centrare cifra */
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    color: #ffffff;
    font-size: 24px;
    font-family: "Anta", sans-serif;
    font-weight: 800;
    font-style: normal;

    z-index: 10;
    transition: 0.3s ease;
}

.top-item h3 {
    font-size: 16px;
    color: #222;
    line-height: 1.2;
    font-weight: 700;
    text-decoration: none;
}

.cat-side {
    color: #7865A5;
    font-weight: 900;
    text-transform: uppercase;
    transition: 0.3s ease;
}

.top-item p {
    font-size: 15px;
    color: #666;
    margin-top: 4px;
}

.top-item a {
    text-decoration: none;
}

/* Opțional: Efect de hover pentru un aspect mai interactiv */
.top-item:hover img {
    opacity: 0.9;
}

.top-item:hover .top-number-box {
    background: #351D67;
}

.top-item:hover .cat-side {
    color: #351D67;
}

/* TABLETĂ (Lățime sub 1024px) */
@media screen and (min-width: 769px) and (max-width: 1024px) {
    .top-number-box {
        font-size: 20px;
    }
}

/* MOBIL (Lățime sub 768px) */
@media (max-width: 768px) {

    /* TOP CITITE: Listă verticală, un singur rând */
    .top-list {
        display: flex;
        flex-direction: column;
        /* Forțează așezarea unul sub altul */
        gap: 24px;
        /* Spațiu între articolele din top */
    }

    .top-item {
        margin-bottom: 0;
        /* Resetăm marginea veche pentru a folosi gap-ul */
    }

    /* Opțional: Putem mări puțin titlurile în top pe mobil pentru lizibilitate */
    .top-item h3 {
        font-size: 18px;
    }

    .img-container {
        margin-bottom: 12px;
    }
}

/* #endregion */