/*!
 * Cal Bosch: estils propis (s'apliquen per sobre de theme-1.css)
 * Version: 1.0
 * Author: Jordi Cortina
 */

/* =====================================================================
   1. Variables
   ===================================================================== */
:root {
    --cb-gold: #b98d36;          /* decoratiu: icones, línies */
    --cb-gold-text: #86651f;     /* text i enllaços (contrast AA sobre blanc i crema) */
    --cb-gold-btn: #8c6a22;      /* fons de botons (text blanc, contrast AA) */
    --cb-gold-btn-hover: #73561a;
    --cb-ink: #2f2b26;           /* títols */
    --cb-text: #3d3a36;          /* text */
    --cb-muted: #5f5a53;         /* text secundari */
    --cb-cream: #f6f3ee;         /* fons de seccions alternes */
    --cb-line: #e7e1d7;
    --cb-dark: #1f1d1a;          /* peu de pàgina */
    --cb-radius: 14px;
    --cb-shadow: 0 1px 2px rgba(31, 29, 26, 0.05), 0 10px 30px rgba(31, 29, 26, 0.07);
    --cb-shadow-hover: 0 2px 4px rgba(31, 29, 26, 0.06), 0 18px 40px rgba(31, 29, 26, 0.12);
    --cb-section-y: clamp(64px, 9vw, 112px);
    --font-serif: 'Fraunces', Georgia, 'Times New Roman', serif;
    --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}

/* =====================================================================
   2. Base i tipografia
   ===================================================================== */
body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.65;
    color: var(--cb-text);
}

p {
    line-height: 1.65;
}

a {
    color: var(--cb-gold-text);
}

a:hover,
a:focus {
    color: var(--cb-gold-btn-hover);
}

a:focus-visible,
button:focus-visible,
.btn:focus-visible {
    outline: 3px solid var(--cb-gold);
    outline-offset: 3px;
}

h1, h2, h3, h4 {
    color: var(--cb-ink);
}

.svg-inline--fa {
    display: inline-block;
    height: 1em;
    width: auto;
    overflow: visible;
    vertical-align: -0.125em;
    fill: currentColor;
}

.lang_icon {
    width: 16px;
    height: 16px;
}

/* Etiqueta petita sobre els títols */
.eyebrow {
    display: block;
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--cb-gold-text);
}

/* Títols de secció */
:is(.menus-section, .news-section, .services-section, .entorn-section, .contact-section) .section-title,
.modal-reserve .modal-title {
    font-family: var(--font-serif);
    font-size: clamp(30px, 4vw, 44px);
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: -0.01em;
    color: var(--cb-ink);
    margin-top: 0;
    margin-bottom: 24px;
}

:is(.menus-section, .news-section, .services-section, .entorn-section, .contact-section) .section-title span,
.modal-reserve .modal-title span {
    display: block;
}

:is(.menus-section, .news-section, .services-section, .entorn-section, .contact-section) .section-title .eyebrow,
.modal-reserve .modal-title .eyebrow {
    margin-bottom: 10px;
}

/* La línia ornamental de la plantilla es substitueix per una línia fina */
:is(.menus-section, .news-section, .services-section, .entorn-section, .contact-section) .section-title .title-border,
.modal-reserve .modal-title .title-border {
    background: var(--cb-gold);
    width: 48px;
    height: 2px;
    margin: 20px auto 0;
    opacity: 1;
}

.subheading {
    font-family: var(--font-serif);
    font-size: 24px;
    font-weight: 500;
    color: var(--cb-ink);
    margin: 0 0 6px;
}

:is(.menus-section, .entorn-section) .intro {
    max-width: 720px;
    color: var(--cb-muted);
    font-size: 18px;
    margin-bottom: 48px;
}

/* =====================================================================
   3. Botons i formularis
   ===================================================================== */
a.btn-theme-primary,
.btn-theme-primary {
    background: var(--cb-gold-btn);
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: 13px 30px;
    font-family: var(--font-sans);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: none;
    transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

a.btn-theme-primary:hover,
a.btn-theme-primary:focus,
a.btn-theme-primary:active,
.btn-theme-primary:hover,
.btn-theme-primary:focus,
.btn-theme-primary:active {
    background: var(--cb-gold-btn-hover);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(140, 106, 34, 0.3);
}

.form-control {
    border-color: var(--cb-line);
    border-radius: 10px;
    height: 48px;
    font-size: 15px;
}

.form-control::placeholder {
    color: #857f76;
}

.form-control:focus {
    border-color: var(--cb-gold);
    box-shadow: 0 0 0 3px rgba(185, 141, 54, 0.18);
}

.datepicker-cell.selected,
.datepicker-cell.selected:hover {
    background-color: var(--cb-gold-btn);
}

/* =====================================================================
   4. Capçalera i portada
   ===================================================================== */
.nav .nav-link {
    font-family: var(--font-sans);
    font-size: 15px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
}

.header-scrolled {
    background: rgba(31, 29, 26, 0.92);
    backdrop-filter: blur(6px);
}

/* Degradat fosc sobre les fotos perquè el text es llegeixi bé */
.bg-slider-wrapper::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0.2) 45%, rgba(0, 0, 0, 0.55) 100%);
}

.hero-section .eyebrow {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 14px;
}

.hero-section .tagline .list li {
    font-size: 15px;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.9);
}

.hero-section .promo-line {
    font-family: var(--font-serif);
    font-size: clamp(32px, 5vw, 58px);
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -0.015em;
    color: #fff;
    max-width: 820px;
    margin: 22px auto 32px;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}

.hero-section .btn {
    font-size: 16px;
    padding: 15px 34px;
}

.hero-section .scroll-link {
    font-size: 13px;
    letter-spacing: 0.08em;
}

/* =====================================================================
   5. Allotjaments
   ===================================================================== */
.menus-section {
    padding-top: var(--cb-section-y);
    padding-bottom: var(--cb-section-y);
    background: #fff;
}

.menus-section .price-note {
    color: var(--cb-muted);
    margin-bottom: 32px;
}

.unit-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    background: #fff;
    border-radius: var(--cb-radius);
    overflow: hidden;
    box-shadow: var(--cb-shadow);
    transition: box-shadow 0.3s ease;
}

.unit-card:hover {
    box-shadow: var(--cb-shadow-hover);
}

/* --- Carrusel de fotos: es llisca amb el dit (scroll-snap natiu) --- */
.unit-photo {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--cb-cream);
}

.unit-slides {
    display: flex;
    height: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.unit-slides::-webkit-scrollbar {
    display: none;
}

.unit-slides:focus-visible {
    outline: 3px solid var(--cb-gold);
    outline-offset: -3px;
}

.unit-slide {
    flex: 0 0 100%;
    height: 100%;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    overflow: hidden;
}

.unit-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.unit-slide:hover img {
    transform: scale(1.04);
}

.unit-badge {
    position: absolute;
    left: 14px;
    top: 14px;
    background: rgba(255, 255, 255, 0.94);
    color: var(--cb-ink);
    font-size: 13px;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 999px;
    pointer-events: none;
}

.unit-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: var(--cb-ink);
    font-size: 14px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
    opacity: 0;
    transition: opacity 0.2s ease, background-color 0.2s ease;
    cursor: pointer;
}

.unit-prev {
    left: 12px;
}

.unit-next {
    right: 12px;
}

.unit-photo:hover .unit-nav,
.unit-nav:focus-visible {
    opacity: 1;
}

.unit-nav:hover {
    background: #fff;
}

.unit-photo .unit-nav:disabled {
    opacity: 0;
    pointer-events: none;
}

/* Pantalles tàctils: es llisca amb el dit, sense fletxes */
@media (hover: none) {
    .unit-nav {
        display: none;
    }
}

.unit-dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 12px;
    display: flex;
    justify-content: center;
    gap: 6px;
    pointer-events: none;
}

.unit-dots span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.55);
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.3);
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.unit-dots span.active {
    background: #fff;
    transform: scale(1.25);
}

/* --- Text de la targeta --- */
.unit-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 22px 24px 24px;
}

.unit-house {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--cb-gold-text);
    margin-bottom: 6px;
}

.unit-title {
    font-family: var(--font-serif);
    font-size: 22px;
    font-weight: 500;
    line-height: 1.25;
    color: var(--cb-ink);
    margin: 0 0 10px;
}

.unit-desc {
    color: var(--cb-muted);
    font-size: 15px;
    margin: 0 0 18px;
}

.unit-footer {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--cb-line);
}

.unit-price {
    font-family: var(--font-serif);
    font-size: 24px;
    font-weight: 600;
    color: var(--cb-ink);
}

.unit-price small {
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 400;
    color: var(--cb-muted);
}

.unit-more {
    border: none;
    background: none;
    padding: 4px 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--cb-gold-text);
    cursor: pointer;
}

.unit-more:hover {
    color: var(--cb-gold-btn-hover);
    text-decoration: underline;
}

/* =====================================================================
   6. Serveis
   ===================================================================== */
.services-section {
    padding-top: var(--cb-section-y);
    padding-bottom: var(--cb-section-y);
    background: var(--cb-cream);
}

.services-list {
    max-width: 980px;
    margin: 24px auto 16px;
}

.service-item {
    margin-bottom: 32px;
}

.service-item .service-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: #fff;
    color: var(--cb-gold);
    font-size: 26px;
    margin-bottom: 12px;
    box-shadow: var(--cb-shadow);
}

.service-item .service-label {
    display: block;
    font-weight: 500;
    color: var(--cb-text);
    max-width: 200px;
    margin: 0 auto;
}

.services-section .schedule {
    display: inline-block;
    font-size: 16px;
    color: var(--cb-text);
    background: #fff;
    border-radius: 999px;
    padding: 10px 22px;
    margin: 0;
}

.services-section .schedule .svg-inline--fa {
    color: var(--cb-gold);
    margin-right: 6px;
}

/* =====================================================================
   7. Entorn i activitats
   ===================================================================== */
.entorn-section {
    padding-top: var(--cb-section-y);
    background: #fff;
}

.entorn-section .activities-heading {
    margin-bottom: 4px;
}

.entorn-section .activities-note {
    color: var(--cb-muted);
    font-size: 14px;
    margin-bottom: 28px;
}

.entorn-section .activities {
    margin-bottom: var(--cb-section-y);
}

.entorn-section .activity {
    height: 100%;
    background: var(--cb-cream);
    padding: 26px 26px 24px;
    border-radius: var(--cb-radius);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.entorn-section .activity:hover {
    background: #fff;
    box-shadow: var(--cb-shadow-hover);
    transform: translateY(-3px);
}

.entorn-section .activity-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #fff;
    color: var(--cb-gold);
    font-size: 22px;
}

.entorn-section .activity-title {
    font-family: var(--font-serif);
    font-size: 20px;
    font-weight: 500;
    line-height: 1.3;
    color: var(--cb-ink);
    margin: 16px 0 8px;
}

.entorn-section .activity p {
    margin: 0;
    color: var(--cb-muted);
    font-size: 15px;
}

/* Mòbils: targetes d'activitat compactes (icona al costat del títol) i llista plegable */
.entorn-section .activities-more {
    margin-top: -24px;
    margin-bottom: var(--cb-section-y);
}

@media (max-width: 767.98px) {
    .entorn-section .activity {
        display: grid;
        grid-template-columns: 40px 1fr;
        column-gap: 14px;
        align-items: center;
        padding: 18px 18px 16px;
    }

    .entorn-section .activity-icon {
        width: 40px;
        height: 40px;
        border-radius: 10px;
        font-size: 18px;
    }

    .entorn-section .activity-title {
        font-size: 18px;
        margin: 0;
    }

    .entorn-section .activity p {
        grid-column: 1 / -1;
        margin-top: 10px;
    }

    .entorn-section .activities.is-collapsed > :nth-child(n+6) {
        display: none;
    }

    /* L'última targeta visible s'esvaeix per indicar que la llista continua */
    .entorn-section .activities.is-collapsed > :nth-child(5) {
        -webkit-mask-image: linear-gradient(to bottom, #000 40%, transparent);
        mask-image: linear-gradient(to bottom, #000 40%, transparent);
        max-height: 130px;
        overflow: hidden;
    }
}

@media (min-width: 768px) {
    .entorn-section .activities-more {
        display: none;
    }
}

.entorn-section .carousel-item img {
    height: 70vh;
    min-height: 320px;
    max-height: 720px;
    object-fit: cover;
}

@media (max-width: 767px) {
    .entorn-section .carousel-item img {
        height: auto;
        min-height: 0;
        aspect-ratio: 4 / 3;
    }
}

/* =====================================================================
   8. Contacte i mapa
   ===================================================================== */
.contact-section {
    padding-top: var(--cb-section-y);
    padding-bottom: var(--cb-section-y);
    background: var(--cb-cream);
}

.contact-section .contact-content {
    background: #fff;
    border-radius: 20px;
    padding: clamp(20px, 3vw, 36px);
    box-shadow: var(--cb-shadow);
}

.contact-section .general .title {
    font-family: var(--font-serif);
    font-size: 22px;
    font-weight: 500;
}

.contact-section .general .subtitle {
    font-size: 15px;
    font-weight: 600;
}

.contact-section address {
    margin-bottom: 15px;
}

.contact-section .svg-inline--fa {
    color: var(--cb-gold);
}

.contact-section .map-container {
    padding-bottom: 0;
    height: 340px; /* mòbils: alçada fixa (4:3 + alçada mínima feia el mapa més ample que la pantalla) */
    border: none;
    border-radius: var(--cb-radius);
}

@media (min-width: 576px) {
    .contact-section .map-container {
        height: auto;
        aspect-ratio: 4 / 3;
    }
}

.contact-section .map-consent {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 20px;
    text-align: center;
    background: var(--cb-cream);
}

.contact-section .map-consent .map-consent-icon {
    font-size: 36px;
    margin: 0;
}

.contact-section .map-consent p {
    margin: 0;
}

.contact-section .map-consent-title {
    font-family: var(--font-serif);
    font-size: 19px;
    color: var(--cb-ink);
}

.contact-section .map-consent-text {
    font-size: 14px;
    max-width: 340px;
    color: var(--cb-muted);
}

.contact-section .map-consent .map-external {
    font-size: 14px;
}

.contact-section .phone a,
.modal-reserve .phone a {
    color: inherit;
}

/* =====================================================================
   9. Finestra de reserves
   ===================================================================== */
.modal-dialog .modal-content {
    border: none;
    border-radius: 20px;
}

.modal-reserve .modal-title {
    padding-top: 30px;
}

.modal-reserve .phone {
    color: var(--cb-gold-text);
}

.modal-reserve .form-check {
    margin-bottom: 5px;
}

.modal-reserve .form-check-input:checked {
    background-color: var(--cb-gold-btn);
    border-color: var(--cb-gold-btn);
}

.modal-reserve .privacy-note {
    font-size: 12px;
    color: var(--cb-muted);
    margin-bottom: 0;
}

.modal-reserve textarea.form-control {
    height: auto;
}

.modal-dialog .btn-close {
    color: var(--cb-gold-text);
}

/* =====================================================================
   10. Peu de pàgina
   ===================================================================== */
.footer {
    background: var(--cb-dark);
    color: rgba(255, 255, 255, 0.72);
}

.footer .footer-col .title {
    font-family: var(--font-serif);
    font-size: 20px;
    font-weight: 500;
    color: #fff;
}

.footer a {
    color: rgba(255, 255, 255, 0.8);
}

.footer a:hover {
    color: #fff;
}

.bottom-bar {
    background: #171512;
    color: rgba(255, 255, 255, 0.6);
}

.bottom-bar a {
    color: rgba(255, 255, 255, 0.7);
}

.footer .social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    font-size: 18px;
    background: rgba(255, 255, 255, 0.08);
    transition: background-color 0.2s ease;
}

.footer .social-icons a:hover {
    background: var(--cb-gold-btn);
    color: #fff;
}

/* =====================================================================
   11. WhatsApp i barra de contacte al mòbil
   ===================================================================== */
.whatsapp-float {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 1030;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #1f9e53;   /* verd WhatsApp prou fosc per al contrast */
    color: #fff;
    font-size: 30px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.whatsapp-float:hover,
.whatsapp-float:focus {
    background: #188043;
    color: #fff;
    transform: scale(1.06);
}

.mobile-cta {
    display: none;
}

/* El botó "tornar a dalt" se situa per sobre del de WhatsApp */
#back-to-top {
    right: 35px !important;
    bottom: 96px !important;
    background: var(--cb-gold-btn);
    border-radius: 50%;
}

@media (max-width: 767.98px) {
    body {
        padding-bottom: calc(64px + env(safe-area-inset-bottom));
    }

    .whatsapp-float {
        display: none;
    }

    .mobile-cta {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1030;
        display: grid;
        grid-template-columns: 1fr 1fr 1.3fr;
        gap: 8px;
        padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
        background: rgba(255, 255, 255, 0.97);
        border-top: 1px solid var(--cb-line);
        box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.08);
    }

    .mobile-cta-item {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        height: 48px;
        border: 1px solid var(--cb-line);
        border-radius: 999px;
        background: #fff;
        color: var(--cb-ink);
        font-size: 15px;
        font-weight: 600;
        text-decoration: none;
    }

    .mobile-cta-item:hover,
    .mobile-cta-item:focus {
        color: var(--cb-ink);
        text-decoration: none;
    }

    .mobile-cta-item .svg-inline--fa {
        font-size: 18px;
        color: var(--cb-gold);
    }

    .mobile-cta-item[href^="https://wa.me"] .svg-inline--fa {
        color: #1f9e53;
    }

    .mobile-cta-primary {
        background: var(--cb-gold-btn);
        border-color: var(--cb-gold-btn);
        color: #fff;
    }

    .mobile-cta-primary .svg-inline--fa {
        color: #fff;
    }

    #back-to-top {
        right: 16px !important;
        bottom: calc(80px + env(safe-area-inset-bottom)) !important;
    }
}

/* =====================================================================
   12. Animació d'entrada (només si el navegador ho permet)
   ===================================================================== */
.reveal-ready .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-ready .reveal.is-visible {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* =====================================================================
   13. Pàgines legals
   ===================================================================== */
.legal-header {
    background: var(--cb-dark);
    padding: 16px 0;
}

.legal-header a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
}

.legal-header a:hover {
    color: #fff;
}

.legal-header .brand {
    font-family: var(--font-serif);
    font-weight: 500;
    font-size: 24px;
    color: #fff;
}

.legal-page {
    padding-top: 60px;
    padding-bottom: 60px;
    max-width: 820px;
}

.legal-page h1 {
    font-family: var(--font-serif);
    font-size: clamp(30px, 4vw, 40px);
    font-weight: 500;
    margin-bottom: 10px;
}

.legal-page .updated {
    color: var(--cb-muted);
    margin-bottom: 40px;
}

.legal-page h2 {
    font-family: var(--font-serif);
    font-size: 22px;
    font-weight: 500;
    margin-top: 40px;
    margin-bottom: 15px;
}

.legal-page h3 {
    font-size: 16px;
    font-weight: 600;
    margin-top: 25px;
}

.legal-page .placeholder-text {
    background: #fff3cd;
    padding: 0 4px;
}

.legal-page table {
    font-size: 15px;
}

/* =====================================================================
   14. Ajustos finals
   ===================================================================== */
.hero-section .promo-line,
.section-title .title-text,
.unit-title,
.activity-title {
    text-wrap: balance;
}

.contact-section .general {
    margin-bottom: 20px;
}

.contact-section .info-col {
    padding-top: 8px;
}

/* La foto de portada no pot sortir del seu espai */
.bg-slider-wrapper {
    overflow: hidden;
}

@media (max-width: 767.98px) {
    .hero-section,
    .bg-slider-wrapper {
        height: calc(100svh - 64px - env(safe-area-inset-bottom));
        min-height: 560px;
    }
}

/* Subtítol "Pallars Sobirà" sota el logotip */
.hero-section .logo {
    margin-bottom: 4px;
}

.hero-section .hero-subtitle {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: clamp(20px, 2.4vw, 26px);
    font-weight: 400;
    letter-spacing: 0.02em;
    color: rgba(255, 255, 255, 0.95);
    margin: 0 0 18px;
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
}

/* =====================================================================
   15. Serveis en dos grups i enllaços de les targetes
   ===================================================================== */
.services-section .services-subheading {
    margin: 28px 0 0;
}

.unit-title a {
    color: inherit;
    text-decoration: none;
}

.unit-title a:hover {
    color: var(--cb-gold-text);
}

a.unit-more {
    text-decoration: none;
}

a.unit-more:hover {
    text-decoration: underline;
}

/* =====================================================================
   16. Pàgina de cada allotjament
   ===================================================================== */
.page-unit .header {
    background: var(--cb-dark);
}

.unit-page {
    padding-top: 96px;
}

.unit-breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
    font-size: 14px;
    color: var(--cb-muted);
}

.unit-breadcrumb li + li::before {
    content: "›";
    margin-right: 6px;
    color: var(--cb-muted);
}

.unit-breadcrumb a {
    color: var(--cb-muted);
}

.unit-page-header {
    margin-bottom: 24px;
}

.unit-page-title {
    font-family: var(--font-serif);
    font-size: clamp(30px, 4.5vw, 48px);
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -0.01em;
    margin: 8px 0 8px;
    text-wrap: balance;
}

.unit-page-lead {
    color: var(--cb-muted);
    margin: 0;
}

/* Galeria: 1 foto gran + 4 petites (ordinador), carrusel lliscant (mòbil) */
.unit-gallery {
    position: relative;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: 220px 220px;
    gap: 10px;
    border-radius: 18px;
    overflow: hidden;
}

.unit-gallery-wrap {
    position: relative;
    margin-bottom: 28px;
}

.unit-gallery-item {
    display: block;
    overflow: hidden;
    background: var(--cb-cream);
}

.unit-gallery-item:first-child {
    grid-row: 1 / span 2;
}

.unit-gallery-item:nth-child(n + 6) {
    display: none;
}

.unit-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease, filter 0.3s ease;
}

.unit-gallery-item:hover img {
    transform: scale(1.03);
    filter: brightness(0.92);
}

/* Si hi ha menys de 5 fotos, la graella s'adapta */
.unit-gallery-3 {
    grid-template-columns: 2fr 1fr;
}

.unit-gallery-all {
    position: absolute;
    right: 16px;
    bottom: 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
    border-radius: 999px;
    padding: 9px 16px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--cb-ink);
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}

.unit-gallery-all:hover {
    background: #fff;
}

@media (max-width: 767.98px) {
    .unit-gallery {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        border-radius: var(--cb-radius);
        gap: 0;
        aspect-ratio: 4 / 3;
    }

    .unit-gallery::-webkit-scrollbar {
        display: none;
    }

    .unit-gallery-item,
    .unit-gallery-item:nth-child(n + 6) {
        display: block;
        flex: 0 0 100%;
        scroll-snap-align: start;
    }

    .unit-gallery-all {
        right: 12px;
        bottom: 12px;
        padding: 7px 13px;
        font-size: 13px;
    }

    .unit-booking {
        position: static;
        margin-bottom: 8px;
    }
}

/* Dades clau */
.unit-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 28px;
    list-style: none;
    padding: 18px 0;
    margin: 0 0 32px;
    border-top: 1px solid var(--cb-line);
    border-bottom: 1px solid var(--cb-line);
    font-weight: 500;
}

.unit-facts li {
    display: flex;
    align-items: center;
    gap: 10px;
}

.unit-facts .svg-inline--fa {
    color: var(--cb-gold);
    font-size: 20px;
}

/* Seccions de contingut */
.unit-section {
    margin-bottom: 40px;
}

.unit-section h2 {
    font-family: var(--font-serif);
    font-size: 26px;
    font-weight: 500;
    margin-bottom: 16px;
}

.unit-section p {
    font-size: 17px;
}

.unit-amenities {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 14px 24px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.unit-amenities li {
    display: flex;
    align-items: center;
    gap: 14px;
}

.unit-amenities .svg-inline--fa {
    flex: 0 0 auto;
    width: 22px;
    font-size: 20px;
    color: var(--cb-gold);
}

.unit-link-more {
    font-weight: 600;
}

/* Caixa de reserva (enganxada al costat en ordinador) */
.unit-booking {
    position: sticky;
    top: 96px;
    background: #fff;
    border: 1px solid var(--cb-line);
    border-radius: 18px;
    padding: 26px;
    box-shadow: var(--cb-shadow);
}

.unit-booking-price {
    font-family: var(--font-serif);
    font-size: 34px;
    font-weight: 600;
    color: var(--cb-ink);
    margin: 0;
}

.unit-booking-price small {
    font-family: var(--font-sans);
    font-size: 16px;
    font-weight: 400;
    color: var(--cb-muted);
}

.unit-booking-note {
    color: var(--cb-muted);
    font-size: 14px;
    margin: 0 0 18px;
}

.unit-rules {
    list-style: none;
    padding: 16px 0;
    margin: 0 0 20px;
    border-top: 1px solid var(--cb-line);
    border-bottom: 1px solid var(--cb-line);
    font-size: 15px;
}

.unit-rules li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 0;
}

.unit-rules .svg-inline--fa {
    color: var(--cb-gold);
    width: 16px;
}

.unit-booking-contact {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 16px;
    font-size: 15px;
}

.unit-booking-contact a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    font-weight: 500;
}

.unit-booking-contact a[href^="https://wa.me"] .svg-inline--fa {
    color: #1f9e53;
}

/* Altres allotjaments */
.unit-others {
    background: var(--cb-cream);
    padding: var(--cb-section-y) 0;
    margin-top: 40px;
}

.unit-others-title {
    font-family: var(--font-serif);
    font-size: clamp(26px, 3.5vw, 34px);
    font-weight: 500;
    margin-bottom: 28px;
}

.other-unit {
    display: block;
    height: 100%;
    background: #fff;
    border-radius: var(--cb-radius);
    overflow: hidden;
    color: inherit;
    text-decoration: none;
    box-shadow: var(--cb-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.other-unit:hover {
    color: inherit;
    text-decoration: none;
    transform: translateY(-3px);
    box-shadow: var(--cb-shadow-hover);
}

.other-unit img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.other-unit-body {
    display: flex;
    flex-direction: column;
    padding: 16px 18px 18px;
}

.other-unit-title {
    font-family: var(--font-serif);
    font-size: 18px;
    line-height: 1.3;
    color: var(--cb-ink);
    margin-bottom: 8px;
}

.other-unit-price {
    font-weight: 600;
}

.other-unit-price small {
    font-weight: 400;
    color: var(--cb-muted);
}

/* =====================================================================
   17. Selector d'idioma
   ===================================================================== */
.nav .lang-current {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    vertical-align: middle;
}

.legal-header-links {
    display: flex;
    align-items: center;
    gap: 24px;
}

.legal-langs {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
}

.legal-langs a {
    font-weight: 600;
    letter-spacing: 0.04em;
}

.legal-langs a[aria-current="page"] {
    color: var(--cb-gold);
}

@media (max-width: 575.98px) {
    .legal-header-links {
        gap: 14px;
        font-size: 14px;
    }
}

/* Números del Registre de Turisme al peu */
.footer .footer-registre {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 12px;
}

/* Camp parany antispam del formulari (invisible per a les persones) */
.hp-field {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
