/**
 * Rooms Styles
 * Stiluri pentru camere separate în secțiuni
 */

/* --- HEADER CAMERE --- */
#rooms {
    background-color: #fdfdfd;
    padding-bottom: 40px;
}

/* --- SECȚIUNI CAMERE --- */
.room-section {
    padding: 60px 0;
    background: white;
}

.room-section-alt {
    background: #f9f9f9;
}

.room-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: flex-start;
}

/* Info cameră - versiune normală pentru DESKTOP */
.room-info-desktop {
    padding: 20px 0;
}

/* Accordion pentru cameră - ascuns pe DESKTOP */
.room-info-mobile {
    display: none;
}

.room-info-desktop h3 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    font-weight: 600;
    color: #1a1a1a;
}

.room-subtitle {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 1.5rem;
    font-style: italic;
}

/* Lista de facilități */
.facilities-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0 0;
}

.facilities-list li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: #555;
    line-height: 1.6;
}

.facilities-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #a07d50;
    font-weight: bold;
    font-size: 1.1rem;
}

/* --- GALERIE MINI în celula grid --- */
.room-gallery {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 300px;
    position: relative;
}

/* ASCUNDE dots și navigation arrows pe desktop */
.gallery-dots,
.gallery-nav {
    display: none;
}

.room-gallery-main {
    flex: 1;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    background: #f5f5f5;
}

.room-gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.room-gallery-main img.loading {
    opacity: 0.5;
}

.room-gallery-main:hover img {
    transform: scale(1.05);
}

/* Thumbnails din galeria mini */
.room-gallery-thumbs {
    display: flex;
    gap: 5px;
    padding: 10px;
    background: #f5f5f5;
}

.room-gallery-thumbs img {
    flex: 1;
    height: 60px;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.room-gallery-thumbs img:hover {
    border-color: #a07d50;
    transform: scale(1.05);
}

.room-gallery-thumbs img.active {
    border-color: #a07d50;
}

/* --- DETALII CAMERE & FACILITĂȚI --- */
/* #room-details {
    background-color: #fdfdfd;
} */

.room-details-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px auto;
}

.room-types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.room-type-item {
    background-color: #fff;
    border: 1px solid #eee;
    border-radius: 5px;
    padding: 30px;
    transition: all 0.3s ease;
}

.room-type-item:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transform: translateY(-5px);
}

.room-type-item h3 {
    font-size: 1.8rem;
    color: #a07d50;
    margin-bottom: 15px;
}

.room-type-item ul {
    list-style: none;
    padding-left: 0;
}

.room-type-item li {
    margin-bottom: 10px;
    color: #4a4a4a;
    position: relative;
    padding-left: 25px;
}

.room-type-item li::before {
    content: '✓';
    color: #a07d50;
    position: absolute;
    left: 0;
    font-weight: 600;
}

/* Facilități split layout */
.facilities-split {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 40px;
    align-items: center;
}

.facilities-split h3 {
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.facilities-split ul {
    list-style: none;
    padding-left: 0;
}

.facilities-split li {
    font-size: 1.1rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.facilities-split li i {
    color: #a07d50;
    margin-right: 15px;
    width: 20px;
    text-align: center;
}

.family-blurb {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 5px;
    border-left: 4px solid #a07d50;
}

.family-blurb h4 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

/* --- ÎMPREJURIMI (GRID) --- */
.grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

@media (max-width: 768px) {
    .grid-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

.grid-item {
    text-align: center;
}

.grid-img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    margin-bottom: 20px;
    border-radius: 5px;
    filter: grayscale(10%);
    transition: all 0.4s ease;
}

.grid-item:hover .grid-img {
    filter: grayscale(0%);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    transform: translateY(-5px);
}

.grid-item h4 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.6rem;
    margin-bottom: 10px;
}

/* --- CONTACT --- */
.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
    margin-top: 50px;
    align-items: flex-start;
}

.contact-info {
    flex: 1;
    min-width: 300px;
}

.contact-info h3 {
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.contact-info p {
    line-height: 2;
}

.map-container {
    flex: 1.2;
    min-width: 300px;
    height: 400px;
    border-radius: 5px;
    overflow: hidden;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* --- RATINGS SECTION --- */
.ratings-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 40px 0;
    border-top: 1px solid #dee2e6;
    border-bottom: 1px solid #dee2e6;
}

.ratings-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.rating-item {
    text-align: center;
    padding: 30px 40px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    min-width: 260px;
    flex: 0 1 auto;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.rating-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.rating-platform {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: #495057;
    margin-bottom: 10px;
}

.rating-score {
    font-size: 3rem;
    font-weight: 700;
    color: #a07d50;
    margin: 10px 0;
    line-height: 1;
}

.rating-stars {
    font-size: 1.5rem;
    color: #ffc107;
    margin: 15px 0;
}

.rating-stars i {
    margin: 0 2px;
}

.rating-label {
    font-size: 1.1rem;
    color: #6c757d;
    font-weight: 500;
    margin-top: 10px;
}

/* --- COOKIE BANNER --- */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(33, 37, 41, 0.98);
    color: white;
    padding: 20px;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.2);
    z-index: 10000;
    display: none;
    animation: slideUp 0.4s ease-out;
}

.cookie-banner.show {
    display: block;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideDown {
    from {
        transform: translateY(0);
        opacity: 1;
    }
    to {
        transform: translateY(100%);
        opacity: 0;
    }
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.cookie-content p {
    margin: 0;
    flex: 1;
    line-height: 1.6;
    min-width: 300px;
}

.cookie-content i.fa-cookie-bite {
    color: #ffc107;
    margin-right: 10px;
    font-size: 1.2rem;
}

.cookie-content a {
    color: #a07d50;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.cookie-content a:hover {
    color: #c9a673;
}

.cookie-btn {
    background: #a07d50;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
    white-space: nowrap;
}

.cookie-btn:hover {
    background: #8b6a43;
    transform: translateY(-2px);
}

.cookie-btn i {
    margin-right: 8px;
}

@media (max-width: 768px) {
    .cookie-banner {
        padding: 15px;
    }

    .cookie-content {
        gap: 15px;
    }

    .cookie-content p {
        min-width: auto;
        font-size: 0.9rem;
    }

    .cookie-btn {
        width: 100%;
        padding: 12px 20px;
    }
}

/* Ratings responsive - listă compactă pe mobile */
@media (max-width: 768px) {
    .ratings-section {
        padding: 30px 0;
    }

    .ratings-container {
        gap: 15px;
        padding: 0 15px;
    }

    .rating-item {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 15px 20px;
        min-width: auto;
        width: 100%;
        text-align: left;
    }

    .rating-item:hover {
        transform: none;
    }

    .rating-platform {
        font-size: 1.1rem;
        margin-bottom: 0;
        flex: 1;
    }

    .rating-score {
        font-size: 1.8rem;
        margin: 0 15px;
    }

    .rating-stars {
        font-size: 1rem;
        margin: 0;
        display: flex;
        flex-direction: row;
        align-items: flex-end;
    }

    .rating-stars i {
        margin: 0 1px;
    }

    .rating-label {
        display: none;
    }
}

/* --- RESPONSIVE ROOMS --- */
@media (max-width: 768px) {
    .room-container {
        display: flex;
        flex-direction: column;
        gap: 0;
    }

    .room-section {
        padding: 30px 0;
    }

    .room-gallery {
        min-height: 350px;
        margin: 0;
        order: 2; /* Galeria mereu dedesubt */
    }

    /* ACCORDION PENTRU INFO CAMERA PE MOBILE - folosește clasele de la facilități */

    /* Ascunde versiunea desktop */
    .room-info-desktop {
        display: none;
    }

    /* Arată DOAR accordion-ul pe mobile */
    .room-info-mobile {
        display: block !important;
        order: 1; /* Info mereu deasupra galeriei */
        margin-bottom: 0 !important;
        width: 100%; /* Force full width regardless of DOM order */
    }

    /* Spacing pentru subtitle în acordeonul camerelor */
    .room-info-mobile .room-subtitle {
        margin: 0 0 15px 0;
        font-size: 1rem;
        color: #666;
        font-style: italic;
        padding-top: 20px;
        padding-left: 20px;
    }

    /* === MOBILE GALLERY IMPROVEMENTS === */

    /* Poza principală mai mare și swipeable */
    .room-gallery-main {
        min-height: 350px;
        position: relative;
        touch-action: pan-y;
        cursor: default; /* Nu mai arată pointer pentru click */
    }

    .room-gallery-main img {
        height: 100%;
        object-fit: cover;
        pointer-events: none; /* Previne click pe imagine pe mobile */
    }

    /* Ascunde thumbnails pe mobile - folosim dots în schimb */
    .room-gallery-thumbs {
        display: none;
    }

    /* Dots indicator pentru galerie (ca pe Instagram/Booking) - DOAR PE MOBILE */
    .gallery-dots {
        display: flex !important;
        justify-content: center;
        align-items: center;
        gap: 8px;
        padding: 15px 10px;
        background: #f5f5f5;
    }

    .gallery-dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: #ccc;
        cursor: pointer;
        transition: all 0.3s ease;
        border: none;
        padding: 0;
    }

    .gallery-dot.active {
        background: #a07d50;
        width: 10px;
        height: 10px;
    }

    .contact-container {
        flex-direction: column;
    }
}
