/* =========================================================
   BETA EXTRAS — popup idioma + imatges mòbil
   ========================================================= */

/* --- Footer mòbil: centrat complet ---------------------- */
@media only screen and (max-width: 767px) {
    .tp-footer-widget .direccion,
    .tp-footer-widget .telefono {
        justify-content: center;
    }
}

/* --- Imatges en mòbil (Hotels i Gastronomia) ----------- */
@media only screen and (max-width: 767px) {
    .tp-portfolio-slicer-thumb {
        height: auto !important;
        transform: none !important;
        perspective: none;
        display: flex !important;
        flex-direction: column;
    }
    .tp-portfolio-slicer-thumb img {
        display: block !important;
        position: relative !important;
        top: auto !important;
        height: 260px !important;
        width: 100% !important;
        object-fit: cover;
        border-radius: 20px 20px 0 0;
        backface-visibility: visible;
    }
    .tp-portfolio-slicer-thumb .reverso {
        position: relative !important;
        transform: none !important;
        backface-visibility: visible;
        border-radius: 0 0 20px 20px;
        padding: 28px 20px;
        height: auto !important;
    }
}

/* --- Popup selector d'idioma --------------------------- */
#gn-lang-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0, 0, 0, 0.82);
    align-items: center;
    justify-content: center;
    padding: 20px;
}
#gn-lang-overlay.is-visible {
    display: flex;
}
#gn-lang-modal {
    background: #1b1b1d;
    border: 1px solid rgba(170, 132, 83, 0.35);
    border-radius: 16px;
    padding: 48px 40px 40px;
    max-width: 480px;
    width: 100%;
    text-align: center;
}
#gn-lang-modal .gn-lang-logo {
    width: 180px;
    margin: 0 auto 28px;
    display: block;
}
#gn-lang-modal h2 {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 32px;
    line-height: 1.5;
}
.gn-lang-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}
.gn-lang-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 18px 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    text-decoration: none !important;
    transition: border-color 0.25s, background 0.25s;
    cursor: pointer;
}
.gn-lang-btn:hover {
    border-color: #AA8453;
    background: rgba(170, 132, 83, 0.12);
}
.gn-lang-btn .gn-lang-code {
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.gn-lang-btn .gn-lang-name {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.55);
    letter-spacing: 0.04em;
    line-height: 1;
}
.gn-lang-btn.is-featured {
    border-color: #AA8453;
    background: rgba(170, 132, 83, 0.08);
}
.gn-lang-btn.is-featured .gn-lang-code {
    color: #AA8453;
}
.gn-lang-flag {
    width: 40px;
    height: auto;
    border-radius: 3px;
    margin-bottom: 6px;
    display: block;
}
@media only screen and (max-width: 480px) {
    #gn-lang-modal {
        padding: 36px 24px 32px;
    }
    .gn-lang-grid {
        grid-template-columns: 1fr 1fr;
    }
}
