/* ===== MASSAGGI E TRATTAMENTI - CSS LAYOUT OTTIMIZZATO ===== */
/* Desktop: Foto grande sinistra + Info destra + Cuore basso | Mobile: Verticale */

/* BREADCRUMB MASSAGGI */
.massaggi-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 20px 0;
    font-size: 14px;
    color: #666;
}

.massaggi-breadcrumb a {
    color: #2d5a3d;
    text-decoration: none;
    font-weight: 500;
}

.massaggi-breadcrumb a:hover {
    color: #52a373;
}

.massaggi-breadcrumb span {
    color: #999;
    margin: 0 4px;
}

/* HERO MASSAGGI */
.massaggi-hero {
    background: linear-gradient(135deg, #f8fffe 0%, #eef7f4 100%);
    border-radius: 16px;
    padding: 48px 32px;
    margin: 32px 0;
    position: relative;
}

.massaggi-hero-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 48px;
    align-items: center;
}

.massaggi-hero h1 {
    font-size: 48px;
    font-weight: 800;
    color: #1e3a2e;
    margin-bottom: 16px;
    line-height: 1.2;
}

.massaggi-hero p {
    font-size: 18px;
    color: #666;
    margin-bottom: 32px;
    line-height: 1.5;
}

.massaggi-stats {
    display: flex;
    gap: 32px;
}

.massaggi-stat {
    text-align: center;
}

.massaggi-stat-number {
    display: block;
    font-size: 32px;
    font-weight: 700;
    color: #2d5a3d;
    line-height: 1;
}

.massaggi-stat-label {
    font-size: 14px;
    color: #666;
    margin-top: 4px;
}

.massaggi-hero-image {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(45, 90, 61, 0.1);
}

.massaggi-hero-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

/* LAYOUT PRINCIPALE */
.massaggi-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 32px;
    margin-top: 32px;
}

/* SIDEBAR FILTRI */
.massaggi-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.massaggi-filters {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.massaggi-filters h3 {
    font-size: 20px;
    font-weight: 700;
    color: #1e3a2e;
    margin-bottom: 24px;
}

.massaggi-filter-group {
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.massaggi-filter-group:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.massaggi-filter-group h4 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
}

.massaggi-filter-option {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    cursor: pointer;
    padding: 6px 0;
}

.massaggi-filter-option input {
    margin: 0;
}

.massaggi-filter-option span {
    font-size: 14px;
    color: #555;
}

.massaggi-price-range {
    display: flex;
    align-items: center;
    gap: 12px;
}

.massaggi-price-input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    text-align: center;
}

.massaggi-distance-select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    background: white;
}

.massaggi-filter-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.massaggi-reset-filters {
    flex: 1;
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    font-size: 14px;
}

/* MAPPA */
.massaggi-map {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.massaggi-map h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1e3a2e;
    margin-bottom: 16px;
}

.massaggi-map-placeholder {
    height: 200px;
    background: #f8f9fa;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #666;
    border: 2px dashed #ddd;
}

.massaggi-map-placeholder svg {
    color: #2d5a3d;
    margin-bottom: 8px;
}

/* CONTENUTO PRINCIPALE */
.massaggi-main {
    background: #fff;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.massaggi-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.massaggi-results-info h2 {
    font-size: 24px;
    font-weight: 700;
    color: #1e3a2e;
    margin-bottom: 4px;
}

.massaggi-results-info p {
    font-size: 14px;
    color: #666;
}

.massaggi-sort {
    display: flex;
    align-items: center;
    gap: 12px;
}

.massaggi-sort label {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.massaggi-sort-select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    background: white;
}

/* ===== GRID PROFESSIONISTI - 3 COLONNE DESKTOP ===== */
.massaggi-professionals-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

/* ===== CARD PROFESSIONISTA - LAYOUT MIGLIORATO E PIÙ GRANDE ===== */
.massaggi-professional-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    min-height: 420px;
}

.massaggi-professional-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.massaggi-professional-card.massaggi-premium {
    border-color: var(--color-primary);
    position: relative;
}

/* RIMUOVO L'EFFETTO VERDE ANOMALO */
.massaggi-professional-card.massaggi-premium::before {
    display: none;
}

/* PREMIUM BADGE - VERDE COME PROFESSIONISTI */
.massaggi-premium-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--color-primary);
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 16px;
    box-shadow: 0 3px 12px rgba(45, 90, 61, 0.3);
    line-height: 1;
    z-index: 4;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* CUORE IN ALTO A DESTRA */
.massaggi-favorite-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.15);
    z-index: 5;
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.massaggi-favorite-btn:hover {
    background: rgba(255, 255, 255, 1);
    color: #dc2626;
    transform: scale(1.1);
    box-shadow: 0 4px 16px rgba(220, 38, 38, 0.3);
}

.massaggi-favorite-btn.active {
    background: #fce7e6;
    color: #dc2626;
    border-color: #fce7e6;
}

/* ===== HEADER CARD - FOTO GRANDE + INFO DESTRA ===== */
.massaggi-card-header {
    display: flex;
    gap: 20px;
    padding: 24px;
    padding-bottom: 0;
    align-items: flex-start;
}

/* FOTO PROFESSIONISTA - PIÙ GRANDE */
.massaggi-card-image {
    position: relative;
    flex-shrink: 0;
    width: 140px;
    height: 140px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.massaggi-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* INFO HEADER - DESTRA FOTO */
.massaggi-header-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 12px;
    padding-top: 8px;
    margin-left: 8px;
}

.massaggi-header-info h3 {
    font-size: 20px;
    font-weight: 700;
    color: #1e3a2e;
    margin: 0;
    line-height: 1.2;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.massaggi-header-info p {
    font-size: 15px;
    color: #666;
    margin: 0;
    line-height: 1.3;
}

.massaggi-rating {
    display: flex;
    align-items: center;
    gap: 8px;
}

.massaggi-stars {
    color: #fbbf24;
    font-size: 16px;
    line-height: 1;
}

.massaggi-rating-value {
    font-weight: 600;
    color: #333;
    font-size: 15px;
}

.massaggi-reviews-count {
    font-size: 13px;
    color: #666;
}

/* ===== CONTENUTO CARD - SOTTO HEADER ===== */
.massaggi-card-content {
    padding: 12px 20px 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex: 1;
}

/* SPECIALIZZAZIONI */
.massaggi-specializations {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 8px;
    margin-left: 12px;
}

.massaggi-tag {
    background: #f0f7f3;
    color: #2d5a3d;
    padding: 5px 12px;
    border-radius: 16px;
    font-size: 11px;
    font-weight: 500;
    border: 1px solid #e6f2ea;
    line-height: 1.2;
}

/* DETTAGLI SERVIZIO */
.massaggi-service-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.massaggi-location,
.massaggi-pricing {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.massaggi-location span,
.massaggi-pricing span {
    font-size: 13px;
    color: #666;
    line-height: 1.3;
}

.massaggi-pricing span {
    color: #2d5a3d;
    font-weight: 600;
}

.massaggi-more-treatments {
    color: #64748b !important;
    font-weight: 500 !important;
    font-style: italic;
    font-size: 12px !important;
}

.massaggi-transport-included {
    color: #10b981 !important;
    font-size: 11px !important;
    font-style: italic;
}

.massaggi-packages {
    font-size: 13px;
    color: #2d5a3d;
    font-weight: 500;
    margin: 0;
}

/* DISPONIBILITÀ */
.massaggi-availability {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    position: relative;
}

.massaggi-availability.has-last-minute {
    justify-content: flex-start;
    gap: 12px;
}

.massaggi-available,
.massaggi-busy,
.massaggi-weekend {
    padding: 5px 12px;
    border-radius: 16px;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.2;
}

.massaggi-available {
    background: #d1fae5;
    color: #065f46;
}

.massaggi-busy {
    background: #fed7d7;
    color: #991b1b;
}

.massaggi-weekend {
    background: #dbeafe;
    color: #1e40af;
}

/* LAST MINUTE BADGE - STILE HEADER */
.massaggi-last-minute {
    color: #ef4444;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    animation: blink 1.5s infinite;
    margin-right: 8px;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

/* DISTANZA - SOLO PER LAST MINUTE */
.massaggi-distance {
    font-size: 11px;
    color: #666;
    font-weight: 500;
}

/* NASCONDI DISTANZA SE NON LAST MINUTE */
.massaggi-availability:not(.has-last-minute) .massaggi-distance {
    display: none;
}

/* ===== FOOTER CARD - PULSANTI + CUORE ===== */
.massaggi-card-footer {
    margin-top: auto;
    position: relative;
}

.massaggi-card-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 0;
}

.massaggi-profile-btn,
.massaggi-book-btn {
    flex: 1;
    padding: 12px 16px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    font-size: 14px;
    transition: all 0.2s ease;
    line-height: 1.2;
}

/* CUORE IN BASSO A DESTRA */
.massaggi-favorite-btn {
    position: absolute;
    bottom: 12px;
    right: 12px;
    width: 44px;
    height: 44px;
    border: none;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    z-index: 5;
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.massaggi-favorite-btn:hover {
    background: rgba(255, 255, 255, 1);
    color: #dc2626;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.3);
}

.massaggi-favorite-btn.active {
    background: #fce7e6;
    color: #dc2626;
    border-color: #fce7e6;
}

/* LOAD MORE */
.massaggi-load-more {
    grid-column: 1 / -1;
    text-align: center;
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid #f0f0f0;
}

.massaggi-load-more-btn {
    margin-bottom: 12px;
    padding: 12px 32px;
}

.massaggi-load-more p {
    font-size: 14px;
    color: #666;
}

/* ===== RESPONSIVE PROGRESSIVO ===== */

/* DESKTOP LARGE - 2 colonne ottimizzate */
@media (min-width: 1200px) {
    .massaggi-card-header {
        padding: 24px 24px 0 24px;
        gap: 20px;
    }

    .massaggi-professionals-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .massaggi-card-content {
        padding: 12px 24px 24px 24px;
    }

    .massaggi-card-image {
        width: 140px;
        height: 140px;
    }

    .massaggi-header-info h3 {
        font-size: 22px;
    }

    .massaggi-header-info p {
        font-size: 15px;
    }
}

/* DESKTOP EXTRA LARGE - 3 colonne per schermi grandi */
@media (min-width: 1600px) {
    .massaggi-professionals-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 32px;
    }

    .massaggi-card-header {
        padding: 28px 28px 0 28px;
        gap: 24px;
    }

    .massaggi-card-content {
        padding: 12px 28px 28px 28px;
    }

    .massaggi-card-image {
        width: 160px;
        height: 160px;
    }

    .massaggi-header-info h3 {
        font-size: 24px;
    }

    .massaggi-header-info p {
        font-size: 16px;
    }
}

/* TABLET LANDSCAPE - 2 colonne */
@media (min-width: 1024px) and (max-width: 1279px) {
    .massaggi-layout {
        grid-template-columns: 280px 1fr;
        gap: 24px;
    }

    .massaggi-professionals-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .massaggi-card-image {
        width: 110px;
        height: 110px;
    }

    .massaggi-hero-content {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
    }

    .massaggi-hero h1 {
        font-size: 40px;
    }
}

/* TABLET PORTRAIT - Layout sidebar sopra + 2 colonne */
@media (max-width: 1023px) {
    .massaggi-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .massaggi-sidebar {
        order: -1;
    }

    .massaggi-professionals-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .massaggi-card-image {
        width: 100px;
        height: 100px;
    }

    .massaggi-header-info h3 {
        font-size: 18px;
    }

    .massaggi-hero {
        padding: 32px 24px;
    }

    .massaggi-hero h1 {
        font-size: 32px;
    }

    .massaggi-stats {
        justify-content: center;
        gap: 24px;
    }

    .massaggi-results-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
}

/* MOBILE LARGE - 1 colonna + layout verticale */
@media (max-width: 640px) {
    .massaggi-professionals-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    /* TRANSIZIONE A LAYOUT VERTICALE MOBILE */
    .massaggi-card-header {
        flex-direction: column;
        gap: 16px;
        padding: 20px 20px 0 20px;
        text-align: center;
        align-items: center;
    }

    .massaggi-card-image {
        width: 140px;
        height: 140px;
        border-radius: 12px;
    }

    .massaggi-header-info {
        text-align: center;
        align-items: center;
    }

    .massaggi-header-info h3 {
        font-size: 20px;
    }

    .massaggi-rating {
        justify-content: center;
    }

    .massaggi-favorite-btn {
        top: 16px;
        right: 16px;
        bottom: auto;
    }

    .massaggi-card-content {
        padding: 12px 16px 16px 16px;
        gap: 14px;
    }

    .massaggi-specializations {
        justify-content: center;
        gap: 6px;
    }

    .massaggi-card-actions {
        flex-direction: column;
        gap: 10px;
    }

    .massaggi-hero {
        padding: 24px 16px;
    }

    .massaggi-hero h1 {
        font-size: 28px;
    }

    .massaggi-stats {
        gap: 16px;
    }

    .massaggi-stat-number {
        font-size: 24px;
    }

    .massaggi-filters {
        padding: 16px;
    }

    .massaggi-main {
        padding: 16px;
    }
}

/* MOBILE SMALL - Ottimizzazioni finali */
@media (max-width: 480px) {
    .massaggi-stats {
        flex-direction: column;
        gap: 16px;
    }

    .massaggi-filter-actions {
        flex-direction: column;
    }

    .massaggi-price-range {
        flex-direction: column;
        gap: 8px;
    }

    .massaggi-availability {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .massaggi-card-image {
        width: 120px;
        height: 120px;
    }

    .massaggi-tag {
        font-size: 10px;
        padding: 4px 10px;
    }

}

/* ===============================================
   HERO ADS SPECIFICI PER MASSAGGI E TRATTAMENTI - CON STICKY
   =============================================== */

.hero-ad-massaggi {
    position: fixed;
    width: 200px;
    height: 300px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
    overflow: hidden;
    z-index: 100;
}

.hero-ad-massaggi:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.massaggi-ad-left {
    top: 35%;
    transform: translateY(-50%);
    left: calc(35% - 600px - 270px);
}

.massaggi-ad-right {
    top: 35%;
    transform: translateY(-50%);
    right: calc(35% - 600px - 270px);
}

.massaggi-ad-left-bottom {
    top: 65%;
    transform: translateY(-50%);
    left: calc(35% - 600px - 270px);
    height: 360px;
}

.massaggi-ad-right-top {
    top: 65%;
    transform: translateY(-50%);
    right: calc(35% - 600px - 270px);
    height: 360px;
}

@media (max-width: 1440px) {
    .hero-ad-massaggi {
        display: none;
    }
}



/* ===============================================
   FULL WIDTH AD - RESTRIZIONE PER EVITARE SOVRAPPOSIZIONI
   =============================================== */

.massaggi-full-width-ad {
    width: calc(100vw - 40px) !important;
    margin: 20px 0 !important;
    padding: 0 !important;
    position: relative !important;
    left: 60% !important;
    right: 67% !important;
    margin-left: calc(-50vw + 20px) !important;
    margin-right: calc(-50vw + 20px) !important;
}

.massaggi-full-width-ad .full-width-ad-container {
    width: 80% !important;
    max-width: none !important;
    margin: 0 !important;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.2) !important;
    position: relative !important;
}

@media (max-width: 1440px) {
    .massaggi-full-width-ad {
    width: calc(100vw - 40px) !important;
    margin: 20px 0 !important;
    padding: 0 !important;
    position: relative !important;
    left: 60% !important;
    right: 67% !important;
    margin-left: calc(-50vw + 20px) !important;
    margin-right: calc(-50vw + 20px) !important;
}

.massaggi-full-width-ad .full-width-ad-container {
    width: 80% !important;
    max-width: none !important;
    margin: 0 !important;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.2) !important;
    position: relative !important;
}
}
}
