/*////////////////////////////// CSS DETTAGLIO CAMERE //////////////////////////////*/
body {
    padding-top: 70px;
}

:root {
    --navy: #121d40;
    --navy-light: #2a3453;
    --cream: #faf8f4;
    --gold: #c9a96e;
    --gold-light: #e8d5a3;
    --white: #ffffff;
    --text: #2c2c2c;
    --muted: #7a7a8a;
    --border: #e5e2db;
    --radius: 14px;
    --shadow: 0 4px 24px rgba(18, 29, 64, .10);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    overflow-x: hidden;
}

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--cream);
    color: var(--text);
    overflow-x: hidden;
}

@media(max-width:960px) {
    body:has(.mobile-contact-bar) {
        padding-bottom: 90px;
    }
}

.page-wrap {
    max-width: 1180px;
    margin: 0 auto;
    padding: 24px 24px 60px;
}

/* MOSAIC */
.mosaic {
    margin-bottom: 24px;
    display: grid;
    grid-template-columns: 1.55fr 1fr;
    grid-template-rows: 160px 160px;
    gap: 8px;
    border-radius: 18px;
    overflow: hidden;
    position: relative;
}

.mosaic .main-img {
    grid-column: 1;
    grid-row: 1/3;
    overflow: hidden;
}

.mosaic .right-grid {
    grid-column: 2;
    grid-row: 1/3;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 8px;
}

.mosaic .main-img img, .mosaic .right-grid .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    cursor: pointer;
    transition: transform .4s ease;
}

.mosaic .main-img:hover img, .mosaic .right-grid .thumb:hover img {
    transform: scale(1.04);
}

.mosaic .right-grid .thumb {
    overflow: hidden;
}

.show-all-btn {
    position: absolute;
    bottom: 13px;
    right: 13px;
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: 30px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    color: var(--navy);
    display: flex;
    align-items: center;
    gap: 7px;
    box-shadow: var(--shadow);
    transition: all .2s;
}

.show-all-btn:hover {
    background: var(--navy);
    color: #fff;
    border-color: var(--navy);
}

/* SHARE */
.share-trigger {
    position: absolute;
    top: 13px;
    left: 13px;
    z-index: 20;
    background: rgba(255, 255, 255, .92);
    border: 1px solid var(--border);
    border-radius: 30px;
    padding: 7px 13px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    color: var(--navy);
    display: flex;
    align-items: center;
    gap: 7px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .15);
    backdrop-filter: blur(4px);
    transition: all .2s;
    user-select: none;
}

.share-trigger:hover {
    background: var(--white);
}

.share-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, .15);
    min-width: 210px;
    z-index: 30;
}

.share-dropdown.open {
    display: block;
}

.share-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 18px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    cursor: pointer;
    text-decoration: none;
    transition: background .15s;
    border-bottom: 1px solid var(--border);
}

.share-option:last-child {
    border-bottom: none;
}

.share-option:hover {
    background: var(--cream);
}

.share-option-icon {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.share-icon-wa {
    background: #e8f9ee;
}

.share-icon-mail {
    background: #eef2ff;
}

.share-icon-copy {
    background: #f5f5f5;
}

.share-copied {
    color: #25d366;
    font-size: 12px;
    padding: 8px 18px;
    text-align: center;
    display: none;
}

.share-copied.show {
    display: block;
}

/* MOBILE SLIDER */
.mosaic-slider {
    display: none;
    position: relative;
    margin-bottom: 20px;
    border-radius: 16px;
    overflow: hidden;
    height: 280px;
    background: #111;
}

.mosaic-slider .slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity .3s ease;
}

.mosaic-slider .slide.active {
    opacity: 1;
}

.mosaic-slider .slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.sl-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(255, 255, 255, .88);
    border: none;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .25);
    transition: background .2s;
    color: #333;
}

.sl-arrow:hover {
    background: #fff;
}

.sl-arrow.prev {
    left: 12px;
}

.sl-arrow.next {
    right: 12px;
}

.sl-counter {
    position: absolute;
    bottom: 12px;
    right: 14px;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    background: rgba(0, 0, 0, .45);
    padding: 3px 10px;
    border-radius: 20px;
}

.sl-all-btn {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, .9);
    border: none;
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    color: var(--navy);
    white-space: nowrap;
}

/* CONTENT GRID */
.content-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 48px;
    align-items: start;
}

/* LEFT */
.apt-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: space-between;
}

.apt-header-left h1 {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.2;
}

.apt-type {
    font-size: 14px;
    color: var(--muted);
    margin-top: 6px;
    font-weight: 500;
}

.apt-type strong {
    color: var(--navy);
    font-weight: 600;
}

/* RATING INLINE */
.rating-inline {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.rating-score-sm {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--navy);
}

.rating-stars-sm {
    color: #f4a823;
    font-size: 13px;
}

.rating-reviews {
    font-size: 12px;
    color: var(--muted);
}

/* SURFACE BADGE */
.surface-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--navy);
    color: #fff;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    margin-top: 10px;
}

/* FEATURE BADGES (booking style) */
.feature-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 18px 0;
}

.fbadge {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: 8px;
    padding: 7px 13px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
}

.fbadge-icon {
    font-size: 16px;
}

/* BED INFO */
.bed-info {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 600;
    color: var(--navy);
    margin: 14px 0;
    padding: 14px 18px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
}

.bed-info-icon {
    font-size: 20px;
}

.features-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 22px 0;
    padding: 20px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.feat {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 14px;
}

.feat-icon {
    width: 38px;
    height: 38px;
    background: var(--cream);
    border: 1px solid var(--border);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    flex-shrink: 0;
}

.checkin-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.badge-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 30px;
    padding: 9px 16px;
    font-size: 13px;
    color: var(--navy);
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .05);
}

.section {
    margin-top: 22px;
}

.section h2 {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 18px;
}

.desc-text {
    font-size: 15px;
    line-height: 1.75;
    color: #444;
    max-height: 140px;
    overflow: hidden;
    position: relative;
    transition: max-height .5s ease;
}

.desc-text.open {
    max-height: 2000px;
}

.desc-text::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50px;
    background: linear-gradient(transparent, var(--cream));
    pointer-events: none;
    transition: opacity .3s;
}

.desc-text.open::after {
    opacity: 0;
}

.read-more {
    margin-top: 10px;
    color: var(--navy);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* AMENITIES CON CATEGORIE */
.amenities-cat-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--navy);
    text-transform: uppercase;
    letter-spacing: .7px;
    margin: 20px 0 10px;
    padding-bottom: 6px;
    border-bottom: 2px solid var(--border);
}

.amenities-cat-title:first-of-type {
    margin-top: 0;
}

.amenities-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-bottom: 4px;
}

.amenity {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #444;
    padding: 6px 2px;
}

.amenity::before {
    content: '✓';
    color: #25a244;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}

.amenity .am-icon {
    font-size: 16px;
    flex-shrink: 0;
}

.amenity-no::before {
    content: '✗';
    color: #c0392b;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
}

.gallery-grid img {
    width: 100%;
    height: 110px;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
    transition: transform .3s, opacity .3s;
}

.gallery-grid img:hover {
    transform: scale(1.04);
    opacity: .88;
}

.rules-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.rule {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 14px;
    color: #444;
}

#map {
    height: 670px;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    position: relative;
    z-index: 1;
}

.map-address {
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 12px;
}

/* MAP */
.routeLabel {
    background: white;
    border-radius: 6px;
    padding: 4px 9px;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .25);
    border: none !important;
}

.leaflet-routing-container {
    display: none !important;
}

.map-recenter-btn {
    background: var(--white);
    border: 2px solid rgba(0, 0, 0, .2);
    border-radius: 6px;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .2);
    transition: background .15s;
}

.map-recenter-btn:hover {
    background: var(--cream);
}

.mi-base {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 3px 10px rgba(0, 0, 0, .4);
    font-size: 20px;
}

.mi-house {
    background: #121d40;
}

.mi-hospital {
    background: #d32f2f;
}

.mi-stadium {
    background: #1565c0;
}

/* ── Edge-pin: POI fuori viewport ─────────────────────────────────── */

/*
    Struttura del pin:
        .edge-pin                  → origine = centro icona (width/height: 0)
        .edge-pin-icon           → cerchio con emoji, offset -20px/-20px
        .edge-pin-arrow-wrapper  → ruota attorno all'origine (transform-origin: 0 0)
            .edge-pin-arrow        → freccia con base a 20px dall'origine, punta fuori
        .edge-pin-label          → etichetta sotto
    */

.edge-pin {
    position: absolute;
    width: 0;
    height: 0;
    z-index: 1000;
    cursor: pointer;
    display: none;
    pointer-events: auto;
}

.edge-pin-icon {
    position: absolute;
    width: 40px;
    height: 40px;
    top: -20px;
    left: -20px;
    border-radius: 50%;
    background: #fff;
    border: 2.5px solid #d9534f;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .35);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    line-height: 1;
    transition: transform .15s ease;
}

.edge-pin:hover .edge-pin-icon {
    transform: scale(1.12);
}

/* Ruota attorno al centro del pin; la rotazione è impostata via JS */
.edge-pin-arrow-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    transform-origin: 0 0;
    pointer-events: none;
}

/* Base a 20px dal centro (bordo icona), punta verso l'esterno */
.edge-pin-arrow {
    position: absolute;
    width: 22px;
    height: 28px;
    top: 20px;
    left: -11px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 28'%3E%3Cpolygon points='11,28 0,0 11,8 22,0' fill='%23d9534f' stroke='%23fff' stroke-width='1.5' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
}

.edge-pin-label {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, .93);
    color: #333;
    font-size: 10px;
    font-weight: 600;
    white-space: nowrap;
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid #ddd;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .15);
    pointer-events: none;
    top: 24px;
}

/* SIDEBAR */
.sidebar {
    position: sticky;
    top: 24px;
}

.sidebar.js-bounded-sidebar {
    position: relative;
    top: auto;
}

.sidebar.js-bounded-sidebar .contact-card {
    width: 100%;
}

.sidebar.js-bounded-sidebar .contact-card.is-sidebar-fixed {
    position: fixed;
    z-index: 950;
}

.sidebar.js-bounded-sidebar .contact-card.is-sidebar-bottom {
    position: absolute;
    left: 0;
    z-index: 1;
}

.contact-card {
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(18, 29, 64, .12);
}

.contact-card-hero {
    width: 100%;
    height: 170px;
    object-fit: cover;
    display: block;
}

.contact-card-body {
    padding: 24px;
}

.contact-card-title {
    font-family: 'Playfair Display', serif;
    font-size: 17px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 3px;
    line-height: 1.3;
}

.contact-card-sub {
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 18px;
}

.contact-info-row {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
}

.contact-info-row:last-of-type {
    border-bottom: none;
}

.contact-info-icon {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    background: rgba(18, 29, 64, .07);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.contact-info-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .7px;
    color: var(--muted);
    font-weight: 700;
    margin-bottom: 2px;
}

.contact-info-value {
    font-weight: 600;
    color: var(--navy);
    font-size: 13px;
}

.contact-info-value a {
    color: inherit;
    text-decoration: none;
}

.contact-info-value a:hover {
    color: var(--navy-light);
    text-decoration: underline;
}

.contact-divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 16px 0;
}

/* PRICE BOX */
.price-box {
    background: var(--cream);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 16px;
    text-align: center;
}

.price-box .price-from {
    font-size: 11px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .8px;
}

.price-box .price-num {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.15;
}

.price-box .price-note {
    font-size: 12px;
    color: var(--muted);
    margin-top: 3px;
    line-height: 1.45;
}

.cta-btn {
    width: 100%;
    padding: 13px 16px;
    margin-top: 8px;
    border: none;
    border-radius: 11px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    font-family: 'DM Sans', sans-serif;
    transition: transform .15s, box-shadow .15s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    line-height: 1;
}

.cta-wa {
    background: #25d366;
    color: #fff;
    box-shadow: 0 5px 18px rgba(37, 211, 102, .28);
}

.cta-wa:hover {
    transform: translateY(-2px);
    color: #fff;
}

.cta-booking {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    color: #fff;
    box-shadow: 0 5px 18px rgba(18, 29, 64, .25);
}

.cta-booking:hover {
    transform: translateY(-2px);
    color: #fff;
}

.cta-call {
    background: transparent;
    color: var(--navy);
    border: 2px solid var(--navy);
}

.cta-call:hover {
    background: var(--navy);
    color: #fff;
}

.cta-note {
    font-size: 11px;
    color: var(--muted);
    text-align: center;
    margin-top: 12px;
}

/* LIGHTBOX */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .92);
    z-index: 9999;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.lightbox.open {
    display: flex;
}

.lightbox img {
    max-width: 90vw;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
}

.lb-close {
    position: absolute;
    top: 22px;
    right: 28px;
    color: #fff;
    cursor: pointer;
    background: rgba(255, 255, 255, .15);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.lb-close:hover {
    background: rgba(255, 255, 255, .3);
}

.lb-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    cursor: pointer;
    background: rgba(255, 255, 255, .15);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    user-select: none;
    transition: background .2s;
}

.lb-arrow:hover {
    background: rgba(255, 255, 255, .3);
}

.lb-arrow.left {
    left: 24px;
}

.lb-arrow.right {
    right: 24px;
}

.lb-counter {
    position: absolute;
    bottom: 24px;
    color: rgba(255, 255, 255, .7);
    font-size: 14px;
}

.lb-title {
    position: absolute;
    top: 26px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-family: 'Playfair Display', serif;
    font-size: 17px;
    white-space: nowrap;
}

@media(max-width:600px) {
    .lb-title {
        display: none;
    }
}

/* MOBILE BAR */
.mobile-contact-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1200;
    background: var(--white);
    border-top: 1px solid var(--border);
    box-shadow: 0 -4px 20px rgba(18, 29, 64, .12);
    padding: 10px 16px;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-height: 66px;
    flex-wrap: nowrap;
}

.mcb-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    flex: 1;
    overflow: hidden;
}

.mcb-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .6px;
    color: var(--muted);
    font-weight: 700;
}

.mcb-apt {
    font-size: 15px;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.25;
    margin-top: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mcb-sub {
    font-size: 12px;
    color: var(--muted);
    line-height: 1.25;
    margin-top: 2px;
}

.mcb-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.mcb-btn {
    padding: 9px 13px;
    border-radius: 30px;
    border: none;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    font-family: 'DM Sans', sans-serif;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    transition: all .15s;
    flex-shrink: 0;
}

.mcb-btn-call {
    background: transparent;
    color: var(--navy);
    border: 1.5px solid var(--navy);
}

.mcb-btn-call:hover {
    background: var(--navy);
    color: #fff;
}

.mcb-btn-booking {
    background: var(--navy);
    color: #fff;
}

.mcb-btn-booking:hover {
    background: var(--navy-light);
    color: #fff;
}

.mcb-booking-label {
    display: inline;
}

/* CONTACT SHEET */
.sheet-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .5);
    z-index: 1300;
}

.sheet-overlay.open {
    display: block;
}

.contact-sheet {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1301;
    background: var(--white);
    border-radius: 20px 20px 0 0;
    padding: 20px 20px 36px;
    max-height: 90vh;
    overflow-y: auto;
    transform: translateY(100%);
    transition: transform .35s cubic-bezier(.32, 0, .35, 1);
}

.contact-sheet.open {
    transform: translateY(0);
}

.sheet-handle {
    width: 40px;
    height: 4px;
    background: var(--border);
    border-radius: 2px;
    margin: 0 auto 20px;
}

.sheet-title {
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 4px;
}

.sheet-sub {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 16px;
}

.maps-link {
    color: inherit;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

.maps-link:hover {
    color: var(--gold);
}

.sheet-intro {
    font-size: 14px;
    color: #555;
    line-height: 1.65;
    background: var(--cream);
    border-radius: 10px;
    padding: 14px 16px;
    border-left: 3px solid var(--navy);
    margin-bottom: 18px;
}

.sheet-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
}

.sheet-row:last-of-type {
    border-bottom: none;
}

.sheet-row-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(18, 29, 64, .07);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    flex-shrink: 0;
}

.sheet-row-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .7px;
    color: var(--muted);
    font-weight: 700;
    margin-bottom: 2px;
}

.sheet-row-value {
    font-weight: 600;
    color: var(--navy);
}

.sheet-row-value a {
    color: inherit;
    text-decoration: none;
}

.sheet-row-value a:hover {
    color: var(--navy-light);
    text-decoration: underline;
}

.sheet-divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 16px 0;
}

.sheet-cta {
    width: 100%;
    padding: 14px;
    margin-top: 10px;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    font-family: 'DM Sans', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    transition: all .15s;
}

.sheet-cta-wa {
    background: #25d366;
    color: #fff;
    margin-top: 0;
}

.sheet-cta-booking {
    background: linear-gradient(135deg, var(--navy), var(--navy-light));
    color: #fff;
}

.sheet-cta-call {
    background: transparent;
    color: var(--navy);
    border: 2px solid var(--navy);
}

.sheet-cta-call:hover {
    background: var(--navy);
    color: #fff;
}

.sheet-note {
    font-size: 11px;
    color: var(--muted);
    text-align: center;
    margin-top: 14px;
}

/* UNITS */
.units-section {
    padding: 70px 24px 80px;
    background: var(--white);
}

.units-section h2 {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 8px;
    text-align: center;
}

.units-section .units-sub {
    font-size: 15px;
    color: var(--muted);
    text-align: center;
    margin-bottom: 40px;
}

.units-container {
    max-width: 1180px;
    margin: 0 auto;
}

.units-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 380px));
    justify-content: center;
    gap: 28px;
}

.unit-card {
    border-radius: 16px;
    overflow: hidden;
    background: var(--cream);
    border: 1px solid var(--border);
    box-shadow: 0 4px 20px rgba(0, 0, 0, .06);
    transition: all .3s ease;
    display: flex;
    flex-direction: column;
}

.unit-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 40px rgba(18, 29, 64, .12);
}

.unit-image {
    overflow: hidden;
}

.unit-image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    transition: transform .4s ease;
}

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

.unit-content {
    padding: 22px;
    flex: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px 18px;
}

.unit-copy {
    min-width: 0;
}

.unit-title {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--navy);
    overflow-wrap: break-word;
}

.unit-meta {
    font-size: 13px;
    color: var(--muted);
    overflow-wrap: break-word;
}

.unit-desc {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1;
}

.unit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 11px 20px;
    background: var(--navy);
    color: #fff;
    font-size: 13px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: background .2s, transform .15s;
    white-space: nowrap;
}

.unit-btn:hover {
    background: var(--navy-light);
    color: #fff;
    transform: translateY(-1px);
}

/* RESPONSIVE */
@media(max-width:960px) {
    .content-grid {
        grid-template-columns: 1fr;
    }

    .sidebar {
        display: none;
    }

    .mobile-contact-bar {
        display: flex;
    }

    .mosaic {
        display: none;
    }

    .mosaic-slider {
        display: block;
    }

    .amenities-grid {
        grid-template-columns: 1fr;
    }

    .page-wrap {
        padding: 16px 16px 20px;
    }

    .units-section {
        padding: 50px 16px 80px;
    }

    .map-section {
        margin-left: -20px;
        margin-right: -20px;
    }
}

@media(max-width:600px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .rules-grid {
        grid-template-columns: 1fr;
    }

    .apt-header-left h1 {
        font-size: 24px;
    }

    .units-grid {
        gap: 20px;
    }

    .unit-content {
        padding: 18px;
        gap: 10px 12px;
    }

    .unit-title {
        font-size: 18px;
    }

    .unit-btn {
        padding: 10px 16px;
        font-size: 12px;
    }
}

@media(max-width:500px) {
    .mobile-contact-bar {
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        padding: 10px 14px;
        min-height: auto;
    }

    .mcb-left {
        min-width: 0;
        flex: 1;
    }

    .mcb-apt {
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
    }

    .mcb-actions {
        flex-direction: column;
        gap: 6px;
        min-width: 138px;
        align-items: stretch;
    }

    .mcb-btn {
        width: 100%;
        justify-content: center;
        white-space: nowrap;
    }

    .mcb-btn-booking .mcb-booking-label {
        display: flex;
        flex-direction: column;
        line-height: 1.05;
        align-items: flex-start;
    }

    .mcb-btn-booking .mcb-booking-label span {
        display: block;
    }
}

/* DETAIL PAGE VARIANTS */
.apt-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.2;
}

.license-box {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 14px 18px;
    font-size: 12px;
    color: var(--muted);
    margin-top: 16px;
    line-height: 1.8;
}

.location-guide {
    display: grid;
    grid-template-columns: minmax(0, 1.18fr) minmax(260px, .82fr);
    gap: 16px;
    align-items: stretch;
}

.location-guide #map {
    height: 100%;
    min-height: 400px;
    box-shadow: var(--shadow);
}

.map-panel {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    box-shadow: var(--shadow);
}

.map-panel-title {
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 6px;
}

.map-panel-sub {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.5;
    margin-bottom: 14px;
}

.poi-list {
    display: grid;
    gap: 12px;
}

.poi-card {
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px;
    background: var(--cream);
    cursor: pointer;
    transition: transform .18s, border-color .18s, box-shadow .18s;
}

.poi-card:hover, .poi-card:focus {
    outline: none;
    transform: translateY(-2px);
    border-color: rgba(18, 29, 64, .25);
    box-shadow: 0 10px 24px rgba(18, 29, 64, .10);
}

.poi-kicker {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .8px;
    color: #a56f2a;
    margin-bottom: 4px;
}

.poi-title {
    font-family: 'Playfair Display', serif;
    font-size: 17px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 6px;
}

.poi-desc {
    font-size: 13px;
    color: #555;
    line-height: 1.55;
    margin-bottom: 9px;
}

.poi-meta {
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 10px;
}

.poi-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.poi-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid var(--navy);
    border-radius: 999px;
    padding: 7px 11px;
    font-size: 12px;
    font-weight: 700;
    color: var(--navy);
    text-decoration: none;
    line-height: 1;
}

.poi-action:hover {
    background: var(--navy);
    color: #fff;
}

.poi-action-primary {
    background: var(--navy);
    color: #fff;
}

.poi-action-primary:hover {
    background: var(--navy-light);
    border-color: var(--navy-light);
}

.poi-convention {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #fef3e2;
    border: 1px solid #e8c97a;
    border-radius: 6px;
    padding: 3px 8px;
    font-size: 11px;
    font-weight: 700;
    color: #8a5e00;
    margin-bottom: 6px;
}

.mi-restaurant {
    background: #c7772f;
}

.mi-trattoria {
    background: #6f7b42;
}

.mi-pizzeria {
    background: #8f4c9b;
}

.leaflet-tooltip.poi-label {
    background: var(--white);
    border: 1px solid rgba(18, 29, 64, .12);
    border-radius: 999px;
    color: var(--navy);
    font-family: 'DM Sans', sans-serif;
    font-size: 11px;
    font-weight: 800;
    padding: 4px 8px;
    box-shadow: 0 3px 10px rgba(18, 29, 64, .16);
}

.leaflet-tooltip.poi-label::before {
    display: none;
}

/* Label permanente per le strutture (house): bold e bordo più marcato */
.leaflet-tooltip.poi-label-house {
    font-size: 12px;
    font-weight: 900;
    background: var(--white);
    border: 1.5px solid rgba(18, 29, 64, .2);
    color: var(--navy);
    padding: 4px 10px;
    border-radius: 999px;
    box-shadow: 0 3px 12px rgba(18, 29, 64, .18);
    letter-spacing: -.1px;
}

.leaflet-tooltip.poi-label-house::before {
    display: none;
}

/* ── Layer toggle control (Tutto / Strutture / Ristoranti) ── */
.map-layer-toggle {
    display: flex;
    background: rgba(255, 255, 255, .96);
    border: 1px solid rgba(18, 29, 64, .12);
    border-radius: 999px;
    padding: 3px;
    gap: 2px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .18);
    backdrop-filter: blur(6px);
    pointer-events: auto;
}

.mlt-btn {
    background: transparent;
    border: none;
    border-radius: 999px;
    padding: 5px 11px;
    font-family: 'DM Sans', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: var(--muted);
    cursor: pointer;
    transition: background .18s, color .18s;
    white-space: nowrap;
    line-height: 1;
}

.mlt-btn:hover {
    color: var(--navy);
}

.mlt-btn.mlt-active {
    background: var(--navy);
    color: #fff;
}

@media(max-width:960px) {
    .location-guide {
        grid-template-columns: 1fr;
    }

    .location-guide #map {
        height: 460px;
    }
}

@media(max-width:600px) {
    .apt-header h1 {
        font-size: 24px;
    }

    .location-guide #map {
        height: 400px;
    }
}

.share-trigger-mobile {
    z-index: 25;
}

.contact-card .cta-call {
    margin-top: 10px;
}

/* FOOTER CARD RISTORANTI */
.poi-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.poi-meta {
    margin-bottom: 0;
}

.poi-actions {
    display: flex;
    gap: 8px;
    flex-wrap: nowrap;
}

@media(max-width:600px) {

    .poi-card {
        padding: 12px;
    }

    .poi-footer {
        align-items: center;
    }

    .poi-meta {
        font-size: 11px;
        flex: 1;
        margin-bottom: 0;
    }

    .poi-actions {
        flex-shrink: 0;
        gap: 6px;
    }

    .poi-action {
        padding: 5px 10px;
        font-size: 11px;
        min-width: auto;
    }

}
