/* ==========================================================================
   1. VARIABILE ȘI RESET
   ========================================================================== */
:root {
    --cub-blue: #003366;
    --cub-green: #2ecc71;
    --cub-yellow: #ffcc00;
    --snow-white: #ffffff;
    --text-dark: #333333;
    --text-muted: #666666;
    --border-color: #eeeeee;
    --font-main: 'Inter', 'Segoe UI', Roboto, sans-serif;
    
    
    
    
    /* CULORILE PENTRU BUTOANELE DIN BARA STICKY */
    --cub-red: #e63946;        /* Roșu Rezervă */
    --cub-green-wa: #25d366;   /* Verde WhatsApp */
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body { 
    font-family: var(--font-main); 
    line-height: 1.6; 
    color: var(--text-dark); 
    background-color: var(--snow-white) !important; 
}

/* ==========================================================================
   2. LAYOUT ȘI MENTINEA FUNDALULUI ALB
   ========================================================================== */
header, nav, main, footer, section {
    background-color: var(--snow-white) !important;
}

.container { 
    width: 90%; 
    max-width: 1200px; 
    margin: 0 auto; 
}

/* Layout special pentru pagini cu decor lateral (Instructori) */
.page-main-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 1600px;
    margin: 0 auto;
    padding: 40px 20px;
}

.content-center {
    flex: 1;
    max-width: 800px;
    padding: 0 40px;
}

.side-decoration {
    flex: 0 0 250px;
    position: sticky;
    top: 100px;
}

.side-decoration img {
    width: 100%;
    border-radius: 8px;
    filter: grayscale(10%);
}

/* ==========================================================================
   3. ELEMENTE DE DESIGN (Separatoare, Titluri)
   ========================================================================== */
h1 { 
    font-size: 2.5rem;
color: var(--cub-blue); 
margin-bottom: 10px;
    text-align: center;
}
}
h2 { font-size: 1.8rem; color: var(--cub-blue); margin-bottom: 20px; }

.separator-cub {
    width: 600px;
    height: 4px;
    background: var(--cub-yellow);
    margin: 20px 0 30px 0;
}

/* Stil pentru liniile care încadrează "Ski in Poiana Brașov" */
.title-wrap-lined {
    border-top: 2px solid var(--border-color);
    border-bottom: 2px solid var(--border-color);
    padding: 20px 0;
    margin: 20px 0;
    width: 100%; /* Ocupă toată lățimea containerului intro-centered */
}

/* Stil pentru liniile care încadrează "Mic ghid..." */
.guide-wrap-lined {
    border-top: 2px solid var(--border-color);
    border-bottom: 2px solid var(--border-color);
    padding: 25px 0;
    margin: 40px 0 20px 0;
    width: 100%;
}

.guide-wrap-lined .guide-title {
    margin: 0; /* Resetăm marginea pentru a lăsa padding-ul containerului să lucreze */
    font-size: 1.8rem;
    color: var(--cub-blue);
}

/* Centrarea și dimensiunea separatorului galben (cub) */
.separator-cub {
    width: 60px;
    height: 4px;
    background: var(--cub-yellow);
    margin: 30px auto !important; /* Forțăm centrarea între secțiuni */
}

/* Asigurăm că textele ocupă spațiul corect */
.intro-centered {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}
/* ==========================================================================
   4. TABELE SITE-WIDE (Stil Unificat Skipass)
   ========================================================================== */
.table-wrapper, .table-container, .table-responsive {
    width: 100%;
    overflow-x: auto; /* Permite scroll pe mobil */
    margin: 25px 0;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

/* Aplicăm stilul pe ambele clase folosite în site */
.cub-table, .cub-table-clean {
    width: 100%;
    border-collapse: collapse;
    background: var(--snow-white);
    font-family: var(--font-main);
}

/* Antetul albastru (ca la skipass) */
.cub-table th, .cub-table-clean th {
    background-color: var(--cub-blue);
    color: var(--snow-white) !important;
    padding: 15px;
    text-align: center;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    border: none;
}

/* Celulele cu date */
.cub-table td, .cub-table-clean td {
    padding: 14px;
    border-bottom: 1px solid var(--border-color);
    text-align: center; /* Centrare exact ca la skipass */
    font-weight: 600;
    color: var(--text-dark);
}

/* Efect de rând alternativ sau hover */
.cub-table tr:nth-child(even), .cub-table-clean tr:nth-child(even) {
    background-color: #fcfcfc;
}

.cub-table tr:hover, .cub-table-clean tr:hover {
    background-color: #f5f8ff;
}

/* Celula specială pentru "Cel mai bun preț" */
.best-price {
    background-color: #78e08f !important;
    color: #111 !important;
}

/* Notă sub tabel */
.table-footer-note {
    font-style: italic;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 10px;
    text-align: left;
}

/* ==========================================================================
   5. ACORDEOANE (Varianta Total White + Verde Activ)
   ========================================================================== */
.accordion-white { border-top: 1px solid var(--border-color); }

.acc-item { border-bottom: 1px solid var(--border-color); }

.acc-trigger {
    width: 100%;
    background: none;
    border: none;
    padding: 20px;
    text-align: left;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--cub-blue);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    transition: all 0.3s ease;
}

/* Starea ACTIVĂ - Fundal Verde conform cerinței */
.acc-trigger.active {
    background-color: var(--cub-green) !important;
    color: var(--snow-white) !important;
}

.acc-panel {
    display: none;
    padding: 20px;
    color: var(--text-dark);
    animation: fadeIn 0.4s ease;
}

/* ==========================================================================
   6. BUTOANE
   ========================================================================== */
.btn-cub-simple {
    display: inline-block;
    padding: 15px 40px;
    border: 2px solid var(--cub-blue);
    color: var(--cub-blue);
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    transition: 0.3s;
}

.btn-cub-simple:hover {
    background: var(--cub-blue);
    color: var(--snow-white);
}

.cta-final { text-align: center; margin: 40px 0; }

/* ==========================================================================
   7. RESPONSIVE
   ========================================================================== */
@media (max-width: 1100px) {
    .side-decoration { display: none; }
    .content-center { padding: 0; }
}

@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    .page-main-wrapper { padding: 20px 10px; }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
 /* ==========================================================================
   HEADER & NAV (Versiune Finală cu Logo WebP)
   ========================================================================== */
header {
    background: var(--snow-white) !important;
    padding: 0.8rem 0; /* Puțin mai compact pentru a lăsa loc logo-ului */
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05); /* Umbră discretă pentru profunzime */
}

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

/* Container Logo */
.logo {
    display: flex;
    align-items: center;
}

.logo img.main-logo {
    height: 60px; /* Înălțime optimă pentru vizibilitate */
    width: auto;
    display: block;
    transition: transform 0.3s ease;
}

.logo img.main-logo:hover {
    transform: scale(1.05); /* Efect subtil la hover pe logo */
}

/* Meniu Navigație */
.menu { 
    display: flex; 
    list-style: none; 
    gap: 30px; 
    margin: 0;
    padding: 0;
    align-items: center;
}

.menu a { 
    color: var(--cub-blue) !important; /* Albastrul oficial din logo */
    text-decoration: none; 
    font-weight: 700; 
    font-size: 0.9rem; 
    text-transform: uppercase;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

.menu a:hover { 
    color: var(--cub-green) !important; /* Verdele tău de accent */
}

/* Starea activă pentru pagina curentă */
.menu a.active {
    color: var(--cub-green) !important;
    position: relative;
}

.menu a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--cub-green);
}

/* Mobile Menu Fix */
@media (max-width: 768px) {
    header {
        padding: 0.5rem 0;
    }
    .main-logo {
        height: 45px; /* Logo mai mic pe mobil */
    }
    .menu { 
        display: none; /* Pregătit pentru meniul hamburger */
    }
}
/* Limitarea conținutului principal la ~60% pe desktop */
.main-container-limited {
    max-width: 1200px; 
    margin: 0 auto;
    padding: 40px 20px;
}

/* Centrarea textelor de introducere */
.intro-centered {
    text-align: center;
    max-width: 800px; /* O limitare extra pentru textul de intro să nu fie prea lat */
    margin: 0 auto 50px auto;
}

/* Flexbox pentru cele două coloane */
.columns-wrapper {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

/* 2 Treimi pentru Acordeon */
.column-main-content {
    flex: 2;
}

/* 1 Treime pentru Poze + Buton */
.column-sidebar {
    flex: 1;
}


.img-placeholder {
    width: 100%;
    background: #f0f0f0;
    border-radius: 8px;
    overflow: hidden;
    min-height: 200px;
}

.img-placeholder img {
    width: 100%;
    display: block;
    filter: grayscale(10%);
}

.sidebar-cta {
    background: #f9f9f9;
    padding: 25px;
    text-align: center;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.sidebar-cta p {
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--cub-blue);
}

/* Resetare/Ajustare butoane să fie full width în sidebar */
.sidebar-cta .btn-cub-simple {
    width: 100%;
    text-align: center;
}

/* Responsive: Coloane sub coloane pe mobil */
@media (max-width: 992px) {
    .columns-wrapper {
        flex-direction: column;
    }
    .column-sidebar {
      
        width: 100%;
    }
}

/* Buton Rezervare - ROȘU */
.btn-rezerva-rosu {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #e63946; /* Roșu intens */
    color: #ffffff !important;
    padding: 15px 25px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 800;
    text-transform: uppercase;
    transition: background 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-rezerva-rosu:hover {
    background-color: #c1272d;
}

/* Buton WhatsApp - VERDE */
.btn-whatsapp-verde {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px; /* Spațiu între iconiță și text */
    background-color: #25D366; /* Verde WhatsApp */
    color: #ffffff !important;
    padding: 15px 25px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 800;
    text-transform: uppercase;
    transition: background 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-whatsapp-verde:hover {
    background-color: #128C7E;
}

/* Container pentru butoane alăturate */
/* Container pentru butoane */
.cta-group {
    display: flex;
    gap: 15px;
    flex-wrap: wrap; 
    margin-top: 20px;
    /* Aceasta este linia cheie: centrează pe orizontală când sunt 2, 
       dar și pe verticală când se rup pe două rânduri */
    justify-content: center; 
}

/* Asigurăm că butoanele ocupă lățimea optimă pe mobil */
@media (max-width: 480px) {
    .btn-rezerva-rosu, 
    .btn-whatsapp-verde {
        width: 100%; /* Pe ecrane foarte mici, ocupă tot rândul */
        max-width: 300px; /* Dar nu le lăsăm să devină gigantice */
    }
}

/* Iconiță WhatsApp */
.wa-icon {
    width: 20px;
    height: 20px;
    fill: white;
}

/* Definire iconiță WhatsApp universală */
.icon-wa {
    display: inline-block;
    width: 20px;
    height: 20px;
    background-color: currentColor; /* Iconița va lua culoarea textului din buton */
    /* Mască SVG pentru a putea schimba culoarea ușor */
    -webkit-mask: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath d='M380.9 97.1C339 55.1 283.2 32 223.9 32c-122.4 0-222 99.6-222 222 0 39.1 10.2 77.3 29.6 111L0 480l117.7-30.9c32.4 17.7 68.9 27 106.1 27h.1c122.3 0 224.1-99.6 224.1-222 0-59.3-25.2-115-67.1-157zm-157 341.6c-33.1 0-65.6-8.9-94-25.7l-6.7-4-69.8 18.3L72 359.2l-4.4-7c-18.5-29.4-28.2-63.3-28.2-98.2 0-101.7 82.8-184.5 184.6-184.5 49.3 0 95.6 19.2 130.4 54.1 34.8 34.9 56.2 81.2 56.1 130.5 0 101.8-84.9 184.6-186.6 184.6zm101.2-138.2c-5.5-2.8-32.8-16.2-37.9-18-5.1-1.9-8.8-2.8-12.5 2.8-3.7 5.6-14.3 18-17.6 21.8-3.2 3.7-6.5 4.2-12 1.4-5.5-2.8-23.2-8.5-44.2-27.1-16.4-14.6-27.4-32.7-30.6-38.2-3.2-5.6-.3-8.6 2.5-11.3 2.5-2.5 5.6-6.5 8.3-9.8 2.8-3.3 3.7-5.6 5.5-9.3 1.8-3.7.9-6.9-.5-9.8-1.4-2.8-12.5-30.1-17.1-41.2-4.5-10.8-9.1-9.3-12.5-9.5-3.2-.2-6.9-.2-10.6-.2-3.7 0-9.7 1.4-14.8 6.9-5.1 5.6-19.4 19-19.4 46.3 0 27.3 19.9 53.7 22.6 57.4 2.8 3.7 39.1 59.7 94.8 83.8 13.2 5.8 23.5 9.2 31.5 11.8 13.3 4.2 25.4 3.6 35 2.2 10.7-1.5 32.8-13.4 37.4-26.4 4.6-13 4.6-24.1 3.2-26.4-1.3-2.5-5-3.9-10.5-6.6z'/%3E%3C/svg%3E") no-repeat center;
    mask: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath d='M380.9 97.1C339 55.1 283.2 32 223.9 32c-122.4 0-222 99.6-222 222 0 39.1 10.2 77.3 29.6 111L0 480l117.7-30.9c32.4 17.7 68.9 27 106.1 27h.1c122.3 0 224.1-99.6 224.1-222 0-59.3-25.2-115-67.1-157zm-157 341.6c-33.1 0-65.6-8.9-94-25.7l-6.7-4-69.8 18.3L72 359.2l-4.4-7c-18.5-29.4-28.2-63.3-28.2-98.2 0-101.7 82.8-184.5 184.6-184.5 49.3 0 95.6 19.2 130.4 54.1 34.8 34.9 56.2 81.2 56.1 130.5 0 101.8-84.9 184.6-186.6 184.6zm101.2-138.2c-5.5-2.8-32.8-16.2-37.9-18-5.1-1.9-8.8-2.8-12.5 2.8-3.7 5.6-14.3 18-17.6 21.8-3.2 3.7-6.5 4.2-12 1.4-5.5-2.8-23.2-8.5-44.2-27.1-16.4-14.6-27.4-32.7-30.6-38.2-3.2-5.6-.3-8.6 2.5-11.3 2.5-2.5 5.6-6.5 8.3-9.8 2.8-3.3 3.7-5.6 5.5-9.3 1.8-3.7.9-6.9-.5-9.8-1.4-2.8-12.5-30.1-17.1-41.2-4.5-10.8-9.1-9.3-12.5-9.5-3.2-.2-6.9-.2-10.6-.2-3.7 0-9.7 1.4-14.8 6.9-5.1 5.6-19.4 19-19.4 46.3 0 27.3 19.9 53.7 22.6 57.4 2.8 3.7 39.1 59.7 94.8 83.8 13.2 5.8 23.5 9.2 31.5 11.8 13.3 4.2 25.4 3.6 35 2.2 10.7-1.5 32.8-13.4 37.4-26.4 4.6-13 4.6-24.1 3.2-26.4-1.3-2.5-5-3.9-10.5-6.6z'/%3E%3C/svg%3E") no-repeat center;
}

.acc-trigger {
    /* Ajustează valoarea 80px în funcție de înălțimea header-ului tău */
    scroll-margin-top: 80px; 
}

/* Containerul fixat la baza paginii */
.cta-sticky-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.9); /* Fundal alb semi-transparent */
    backdrop-filter: blur(10px); /* Efect de sticlă mată */
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    padding: 12px 0;
}

/* Aliniere butoane în interiorul lățimii site-ului */
.cta-container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    gap: 15px;
    padding: 0 20px;
}

/* Stiluri Butoane */
.btn-sticky-reserve, .btn-sticky-whatsapp {
    flex: 1;
    max-width: 300px;
    padding: 14px 20px;
    text-align: center;
    text-decoration: none;
    font-weight: 800;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: transform 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-sticky-reserve {
    background-color: #e63946;
    color: white !important;
}

.btn-sticky-whatsapp {
    background-color: #25d366;
    color: white !important;
}

.btn-sticky-reserve:hover, .btn-sticky-whatsapp:hover {
    transform: translateY(-3px);
}

/* IMPORTANT: Spatiu la baza paginii ca butoanele sa nu acopere ultimul text */
body {
    padding-bottom: 80px; 
}

/* Ajustări Mobil */
@media (max-width: 600px) {
    .btn-sticky-reserve, .btn-sticky-whatsapp {
        font-size: 0.85rem;
        padding: 12px 10px;
    }
    .cta-container {
        gap: 8px;
    }
}

/* HEADER STYLING */
header {
    background-color: var(--snow-white) !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 10px 0;
}

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

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 10px;
    color: var(--cub-blue);
    font-weight: 800;
    font-size: 1.2rem;
}

.main-logo { height: 50px; width: auto; }

.menu {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 25px;
}

.menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.menu a:hover { color: var(--cub-blue); }

.btn-nav-reserve {
    background-color: var(--cub-yellow) !important; /* Fundal Galben CUB */
    color: var(--cub-blue) !important;             /* Text Albastru CUB */
    padding: 10px 20px !important;
    border-radius: 5px;
    font-weight: 800 !important;
    text-transform: uppercase;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    border: 2px solid var(--cub-yellow); /* Border pentru a menține dimensiunea la hover */
}

.btn-nav-reserve:hover {
    background-color: var(--cub-blue) !important; /* Se schimbă în Albastru la hover */
    color: var(--snow-white) !important;         /* Textul devine alb */
    border-color: var(--cub-blue);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* MOBILE MENU (3 LINII) */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.menu-toggle .bar {
    width: 30px;
    height: 3px;
    background-color: var(--cub-blue);
    border-radius: 3px;
    transition: 0.3s;
}

/* RESPONSIVE */
@media (max-width: 992px) {
    .menu-toggle { display: flex; }

    .menu {
        display: none; /* Ascuns implicit pe mobil */
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 20px;
        gap: 20px;
        box-shadow: 0 10px 10px rgba(0,0,0,0.1);
    }

    .menu.active {
        display: flex; /* Apare când butonul e apăsat */
    }
}

.lang-flags {
    display: flex;
    gap: 8px;
    padding: 0 10px;
    align-items: center;
}

.flag-link {
    text-decoration: none;
    font-size: 1.4rem; /* Mărimea steagului */
    transition: transform 0.2s, opacity 0.2s;
    filter: grayscale(40%); /* Le facem puțin mai șterse pe cele inactive */
}

.flag-link:hover {
    transform: scale(1.2);
    filter: grayscale(0%);
}

.flag-link.active {
    filter: grayscale(0%);
    border-bottom: 2px solid #28a745; /* Linie sub steagul activ */
}

/* Ajustare pentru mobil (meniul burger) */
@media (max-width: 768px) {
    .lang-flags {
        justify-content: center;
        padding: 20px 0;
    }
}