/* ===================================
   LOCAL HOURS - STYLES.CSS
   =================================== */

/* BASE STYLES */
* {
    font-family: 'Inter', sans-serif;
}

/* Fix: Lucide SVG icons inside clickable elements should not block clicks */
a svg, button svg, [role="button"] svg {
    pointer-events: none;
}

/* UTILITY CLASSES */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Hide scrollbar but keep scroll functionality */
.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

/* ANIMATIONS */
@keyframes fade-in {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in { 
    animation: fade-in 0.3s ease-out; 
}

@keyframes fade-in-up {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* TESTIMONIAL CARDS */
.testimonial-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    animation: fade-in-up 0.6s ease-out;
    border: 2px solid #f3f4f6;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.testimonial-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.testimonial-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #14b8a6;
}

.testimonial-info {
    flex: 1;
}

.testimonial-name {
    font-weight: 700;
    font-size: 16px;
    color: #1f2937;
    margin-bottom: 2px;
}

.testimonial-location {
    font-size: 13px;
    color: #6b7280;
}

.testimonial-rating {
    display: flex;
    gap: 2px;
    margin-bottom: 12px;
    color: #fbbf24;
    font-size: 18px;
}

.testimonial-text {
    color: #4b5563;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.testimonial-experience {
    font-size: 12px;
    color: #14b8a6;
    font-weight: 600;
    padding-top: 12px;
    border-top: 1px solid #f3f4f6;
}

@keyframes highlight-new {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(249, 115, 22, 0);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(249, 115, 22, 0.3);
        transform: scale(1.02);
    }
}

/* ===================================
   SLIDE-IN ANIMATIONS
   =================================== */

/* Base slide-in da sinistra */
.slide-in-left {
    opacity: 0;
    transform: translateX(-100px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide-in-left.active {
    opacity: 1;
    transform: translateX(0);
}

/* Utility per controllare quando è visibile */
.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

/* ===================================
   SLIDE FROM LEFT - Smooth Fluid Animation
   Effetto sliding fluido e naturale da sinistra (come nel video)
   =================================== */

/* Slide in da sinistra - Stato iniziale nascosto (ottimizzato per performance) */
.slide-from-left {
    opacity: 0;
    transform: translateX(-50px);
    will-change: transform, opacity;
}

/* Animazione parte solo quando diventa .active (più veloce e fluida) */
.slide-from-left.active {
    animation: slideInFromLeft 0.45s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    /* Rimuovi will-change dopo l'animazione per liberare risorse */
    animation-fill-mode: forwards;
}

.slide-from-left.active.animation-complete {
    will-change: auto;
}

/* Slide in da destra - Anche da sinistra per uniformità */
.slide-from-right {
    opacity: 0;
    transform: translateX(-50px);
    will-change: transform, opacity;
}

.slide-from-right.active {
    animation: slideInFromLeft 0.45s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* Keyframe per l'animazione slide (ottimizzato) */
@keyframes slideInFromLeft {
    0% {
        opacity: 0;
        transform: translateX(-50px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Versione con keyframes per controllo più preciso */
@keyframes fluid-slide-from-left {
    0% {
        opacity: 0;
        transform: translateX(-50px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Opzione alternativa con lieve bounce naturale */
@keyframes fluid-slide-with-ease {
    0% {
        opacity: 0;
        transform: translateX(-120px);
    }
    85% {
        opacity: 1;
        transform: translateX(0);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Versione con animation invece di transition (più controllo) */
.slide-from-left.with-keyframes {
    animation: fluid-slide-from-left 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.slide-from-right.with-keyframes {
    animation: fluid-slide-from-left 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.experience-host-card.newly-created {
    animation: highlight-new 2s ease-in-out;
}

/* LAYOUT */
.sticky-sidebar {
    position: sticky;
    top: 2rem;
}

/* MODALS */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    /* z-index gestito dinamicamente da modal-manager.js */
    z-index: 10000; /* Base value, verrà sovrascritto */
    overflow-y: auto;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.modal::-webkit-scrollbar {
    display: none; /* Chrome, Safari and Opera */
}

/* Hide scrollbars for all elements with overflow-y-auto inside modals */
.modal *[class*="overflow-y-auto"]::-webkit-scrollbar,
.modal .overflow-y-auto::-webkit-scrollbar {
    display: none; /* Chrome, Safari and Opera */
}

.modal *[class*="overflow-y-auto"],
.modal .overflow-y-auto {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Modal Loading State */
.modal.loading::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    border: 4px solid rgba(147, 51, 234, 0.1);
    border-top-color: #9333ea;
    border-radius: 50%;
    animation: modal-spinner 0.8s linear infinite;
    z-index: 10001;
}

@keyframes modal-spinner {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* MAP - BOOKING STYLE */
#fullPageMap {
    height: 100vh;
    width: 100%;
}

/* ===================================
   MAP VIEW - BOOKING STYLE LAYOUT
   =================================== */
.map-view-page {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    z-index: 9999;
    overflow: hidden;
}

.map-view-page.active {
    display: flex;
}

/* FILTERS SIDEBAR (fixed left) */
.filters-sidebar {
    width: 260px;
    min-width: 260px;
    height: 100vh;
    padding: 16px;
    background: #fff;
    border-right: 1px solid #e5e7eb;
    overflow-y: auto;
}

.filters-sidebar::-webkit-scrollbar {
    width: 4px;
}

.filters-sidebar::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

/* Filter card style */
.filter-card {
    background: #f9fafb;
    border-radius: 12px;
    padding: 4px;
}

/* Category list (vertical) */
.category-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.category-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 500;
    background: transparent;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s ease;
    color: #4b5563;
    text-align: left;
    width: 100%;
}

.category-item:hover {
    background: #f3f4f6;
}

.category-item.active {
    background: #f0fdfa;
    color: #0d9488;
    font-weight: 600;
}

.category-item span {
    font-size: 16px;
}

/* Filter row (inline label + select) */
.filter-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: #f9fafb;
    border-radius: 10px;
}

.filter-select {
    padding: 4px 8px;
    font-size: 13px;
    font-weight: 500;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    cursor: pointer;
    color: #374151;
}

.filter-select:focus {
    outline: none;
    border-color: #0d9488;
}

/* Filter Slider Styles */
.filter-slider {
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    background: #e5e7eb;
    border-radius: 3px;
    outline: none;
    cursor: pointer;
}

.filter-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    background: linear-gradient(135deg, #10b981, #059669);
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    transition: transform 0.15s ease;
}

.filter-slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
}

.filter-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: linear-gradient(135deg, #10b981, #059669);
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.filter-slider::-webkit-slider-runnable-track {
    background: linear-gradient(to right, #10b981 0%, #10b981 var(--value, 0%), #e5e7eb var(--value, 0%), #e5e7eb 100%);
    border-radius: 3px;
}

/* Filter Text Input Styles */
.filter-text-input {
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.filter-text-input:focus {
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.filter-text-input::placeholder {
    color: #9ca3af;
}

/* Map search bar */
.map-search-bar {
    position: absolute;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    width: 320px;
    max-width: calc(100% - 450px);
}

.map-search-bar input {
    width: 100%;
    padding: 12px 16px 12px 44px;
    font-size: 14px;
    background: white;
    border: none;
    border-radius: 24px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    outline: none;
}

.map-search-bar input:focus {
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

.map-search-bar i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
}

/* MAP AREA (takes remaining space) */
.map-area {
    flex: 1;
    height: 100vh;
    position: relative;
}

.map-area #fullPageMap {
    width: 100%;
    height: 100%;
}

/* GEOLOCATION BUTTON */
.geolocate-btn {
    position: absolute;
    top: 80px;
    right: 16px;
    z-index: 1000;
    width: 44px;
    height: 44px;
    background: white;
    border: none;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.geolocate-btn:hover {
    background: #f3f4f6;
    transform: scale(1.05);
}

.geolocate-btn:active {
    transform: scale(0.95);
}

.geolocate-btn.loading {
    background: #e0f2fe;
}

.geolocate-btn.loading i {
    animation: pulse 1s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.geolocate-btn i {
    color: #374151;
}

/* User location marker */
.user-location-marker {
    width: 20px;
    height: 20px;
    background: #3b82f6;
    border: 3px solid white;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.5);
}

.user-location-pulse {
    position: absolute;
    width: 40px;
    height: 40px;
    background: rgba(59, 130, 246, 0.2);
    border-radius: 50%;
    animation: location-pulse 2s ease-out infinite;
}

@keyframes location-pulse {
    0% { transform: scale(0.5); opacity: 1; }
    100% { transform: scale(2); opacity: 0; }
}

/* FLOATING EXPERIENCE LIST PANEL (overlay on map) */
.exp-list-panel {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 380px;
    display: flex;
    z-index: 1000;
    transition: transform 0.3s ease;
}

.exp-list-panel.collapsed {
    transform: translateX(-380px);
}

.exp-list-panel.collapsed .exp-list-toggle i {
    transform: rotate(180deg);
}

/* Toggle Button */
.exp-list-toggle {
    position: absolute;
    right: -32px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 64px;
    background: white;
    border: 1px solid #e5e7eb;
    border-left: none;
    border-radius: 0 8px 8px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 2px 0 8px rgba(0,0,0,0.1);
    transition: background 0.2s;
}

.exp-list-toggle:hover {
    background: #f3f4f6;
}

.exp-list-toggle i {
    transition: transform 0.3s ease;
    color: #374151;
}

/* Panel Content */
.exp-list-content {
    flex: 1;
    background: white;
    box-shadow: 4px 0 16px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.exp-list-header {
    padding: 12px 16px;
    border-bottom: 1px solid #e5e7eb;
    background: #f9fafb;
}

.exp-list-items {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
}

.exp-list-items::-webkit-scrollbar {
    width: 6px;
}

.exp-list-items::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 3px;
}

/* Legacy classes (kept for compatibility) */
.sidebar {
    width: 420px;
    height: 100vh;
    overflow-y: auto;
    border-right: 1px solid #e5e7eb;
    background: #f9fafb;
}

.map-container {
    flex: 1;
    height: 100vh;
    position: relative;
}

/* Map Experience Card - Booking Style */
.map-exp-card {
    display: flex;
    gap: 12px;
    padding: 12px;
    background: white;
    border-radius: 12px;
    border: 2px solid #e5e7eb;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 12px;
}

.map-exp-card:hover {
    border-color: #0d9488;
    box-shadow: 0 4px 12px rgba(13, 148, 136, 0.15);
    transform: translateY(-2px);
}

.map-exp-card.active {
    border-color: #0d9488;
    background: #f0fdfa;
    box-shadow: 0 4px 16px rgba(13, 148, 136, 0.2);
}

.map-exp-card-img {
    width: 110px;
    height: 90px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.map-exp-card-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.map-exp-card-title {
    font-weight: 600;
    font-size: 14px;
    color: #0d9488;
    margin-bottom: 2px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.map-exp-card-host {
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 6px;
}

.map-exp-card-rating {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #0d9488;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    width: fit-content;
}

.map-exp-card-reviews {
    font-size: 11px;
    color: #6b7280;
    margin-left: 6px;
}

.map-exp-card-bottom {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.map-exp-card-price {
    font-size: 15px;
    font-weight: 700;
    color: #1f2937;
}

.map-exp-card-price span {
    font-size: 12px;
    font-weight: 400;
    color: #6b7280;
}

.map-exp-card-location {
    font-size: 11px;
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 3px;
}

/* Custom Pin Marker - Green Pin Style (Small) */
.pin-marker {
    width: 20px;
    height: 26px;
    position: relative;
    cursor: pointer;
    transition: transform 0.2s ease;
    filter: drop-shadow(0 2px 3px rgba(0,0,0,0.3));
}

.pin-marker::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 18px;
    height: 18px;
    background: linear-gradient(135deg, #10b981, #059669);
    border-radius: 50% 50% 50% 0;
    transform: translateX(-50%) rotate(-45deg);
    border: 2px solid white;
}

.pin-marker::after {
    content: '';
    position: absolute;
    top: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
}

.pin-marker:hover,
.pin-marker.active {
    transform: scale(1.2);
    z-index: 1000 !important;
}

.pin-marker.sold-out::before {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.pin-marker.expired::before {
    background: linear-gradient(135deg, #9ca3af, #6b7280);
}

/* Marker Cluster Styles - Green Theme */
.marker-cluster-small {
    background-color: rgba(16, 185, 129, 0.6);
}
.marker-cluster-small div {
    background-color: rgba(16, 185, 129, 0.9);
}

.marker-cluster-medium {
    background-color: rgba(5, 150, 105, 0.6);
}
.marker-cluster-medium div {
    background-color: rgba(5, 150, 105, 0.9);
}

.marker-cluster-large {
    background-color: rgba(4, 120, 87, 0.6);
}
.marker-cluster-large div {
    background-color: rgba(4, 120, 87, 0.9);
}

.marker-cluster {
    background-clip: padding-box;
    border-radius: 50%;
}
.marker-cluster div {
    width: 30px;
    height: 30px;
    margin-left: 5px;
    margin-top: 5px;
    text-align: center;
    border-radius: 50%;
    font: 12px Inter, sans-serif;
    font-weight: 600;
    color: white;
    line-height: 30px;
}
.marker-cluster span {
    line-height: 30px;
}

/* Legacy Price Marker (kept for compatibility) */
.price-marker {
    background: white;
    border-radius: 8px;
    padding: 6px 10px;
    font-weight: 600;
    font-size: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    white-space: nowrap;
    border: 2px solid #0d9488;
    color: #0d9488;
    cursor: pointer;
    transition: all 0.2s ease;
    transform-origin: center bottom;
}

.price-marker:hover,
.price-marker.active {
    background: #0d9488;
    color: white;
    transform: scale(1.1);
    z-index: 1000 !important;
}

.price-marker.sold-out {
    border-color: #ef4444;
    color: #ef4444;
}

.price-marker.sold-out:hover,
.price-marker.sold-out.active {
    background: #ef4444;
    color: white;
}

.price-marker.featured {
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
    color: white;
    border-color: #f59e0b;
    animation: pulse-marker 2s ease-in-out infinite;
}

@keyframes pulse-marker {
    0%, 100% { box-shadow: 0 2px 8px rgba(245, 158, 11, 0.4); }
    50% { box-shadow: 0 4px 16px rgba(245, 158, 11, 0.6); }
}

/* Leaflet popup styling */
.leaflet-popup-content-wrapper {
    border-radius: 16px !important;
    padding: 0 !important;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2) !important;
}

.leaflet-popup-content {
    margin: 0 !important;
    min-width: 260px;
}

.leaflet-popup-tip {
    background: white;
}

.map-popup {
    width: 260px;
}

.map-popup-img {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

.map-popup-content {
    padding: 12px;
}

.map-popup-title {
    font-weight: 600;
    font-size: 15px;
    color: #1f2937;
    margin-bottom: 4px;
}

.map-popup-host {
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 8px;
}

.map-popup-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.map-popup-price {
    font-weight: 700;
    font-size: 16px;
    color: #0d9488;
}

.map-popup-btn {
    background: #0d9488;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.2s;
}

.map-popup-btn:hover {
    background: #0f766e;
}

/* Filter pills */
.filter-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 20px;
    border: 1px solid #e5e7eb;
    background: white;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.filter-pill:hover {
    border-color: #0d9488;
    background: #f0fdfa;
}

.filter-pill.active {
    background: #0d9488;
    color: white;
    border-color: #0d9488;
}

/* Map header controls */
.map-header {
    background: white;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.map-results-count {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: #ecfdf5;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    color: #059669;
}

/* Empty state */
.map-empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #6b7280;
}

.map-empty-state svg {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    opacity: 0.3;
}

/* ========================================
   FRESH & YOUNG MAP STYLE
   ======================================== */

/* Stories Row - Host avatars at top of map */
.map-stories-row {
    position: absolute;
    top: 16px;
    left: 280px;
    right: 340px;
    display: flex;
    gap: 16px;
    z-index: 1001;
    overflow-x: auto;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.map-stories-row::-webkit-scrollbar {
    display: none;
}

.map-story {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    flex-shrink: 0;
    transition: transform 0.2s;
}

.map-story:hover {
    transform: scale(1.05);
}

.map-story-ring {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    padding: 3px;
    background: linear-gradient(135deg, #f97316, #0d9488, #f97316);
    background-size: 200% 200%;
    animation: story-ring-gradient 3s ease infinite;
}

@keyframes story-ring-gradient {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.map-story-ring.viewed {
    background: #d1d5db;
    animation: none;
}

.map-story-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: white;
    padding: 2px;
    overflow: hidden;
}

.map-story-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.map-story-name {
    font-size: 11px;
    font-weight: 500;
    color: #374151;
    max-width: 60px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: center;
}

/* Fresh Action Bar - Bottom of map */
.map-action-bar {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 12px 20px;
    z-index: 1001;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.map-action-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 14px;
    font-weight: 600;
    font-size: 14px;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.map-action-btn.primary {
    background: linear-gradient(135deg, #0d9488 0%, #14b8a6 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(13, 148, 136, 0.3);
}

.map-action-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(13, 148, 136, 0.4);
}

.map-action-btn.secondary {
    background: #f3f4f6;
    color: #374151;
}

.map-action-btn.secondary:hover {
    background: #e5e7eb;
}

.map-action-stats {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    padding-left: 16px;
    border-left: 1px solid #e5e7eb;
}

.map-action-stats-label {
    font-size: 11px;
    color: #9ca3af;
}

.map-action-stats-value {
    font-size: 16px;
    font-weight: 700;
    color: #1f2937;
}

/* Floating Tags */
.map-floating-tag {
    position: absolute;
    z-index: 1001;
    background: white;
    padding: 8px 14px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 6px;
    animation: float-tag 3s ease-in-out infinite;
    cursor: pointer;
    transition: transform 0.2s;
}

.map-floating-tag:hover {
    transform: scale(1.05);
}

.map-floating-tag.trending {
    top: 100px;
    right: 360px;
    color: #ea580c;
    border: 2px solid #fed7aa;
}

.map-floating-tag.new-tag {
    bottom: 100px;
    left: 290px;
    color: #0d9488;
    border: 2px solid #99f6e4;
}

@keyframes float-tag {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.map-floating-tag:hover {
    animation-play-state: paused;
}

/* Fresh Emoji Marker */
.emoji-marker {
    font-size: 32px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    transition: transform 0.3s ease, filter 0.3s ease;
    cursor: pointer;
    text-align: center;
    line-height: 1;
}

.emoji-marker:hover,
.emoji-marker.active {
    transform: scale(1.4);
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.4));
    z-index: 1000 !important;
}

.emoji-marker.expired {
    filter: grayscale(100%) drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
    opacity: 0.6;
}

.emoji-marker.sold-out {
    position: relative;
}

.emoji-marker.sold-out::after {
    content: '❌';
    position: absolute;
    font-size: 14px;
    top: -5px;
    right: -5px;
}

/* Fresh Marker Clusters - Colorful gradient */
.marker-cluster-small {
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.7), rgba(20, 184, 166, 0.7));
}
.marker-cluster-small div {
    background: linear-gradient(135deg, #f97316, #14b8a6);
}

.marker-cluster-medium {
    background: linear-gradient(135deg, rgba(234, 88, 12, 0.7), rgba(13, 148, 136, 0.7));
}
.marker-cluster-medium div {
    background: linear-gradient(135deg, #ea580c, #0d9488);
}

.marker-cluster-large {
    background: linear-gradient(135deg, rgba(194, 65, 12, 0.7), rgba(15, 118, 110, 0.7));
}
.marker-cluster-large div {
    background: linear-gradient(135deg, #c2410c, #0f766e);
}

/* Fresh Social Popup */
.fresh-popup .leaflet-popup-content-wrapper {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.fresh-popup .leaflet-popup-tip {
    background: white;
}

.fresh-popup .leaflet-popup-content {
    margin: 0 !important;
    width: 240px !important;
}

.fresh-popup-card {
    width: 240px;
}

.fresh-popup-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border-bottom: 1px solid #f3f4f6;
}

.fresh-popup-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 3px solid #f97316;
    object-fit: cover;
}

.fresh-popup-host-name {
    font-weight: 700;
    color: #1f2937;
    font-size: 15px;
}

.fresh-popup-exp-title {
    font-size: 12px;
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 4px;
}

.fresh-popup-body {
    padding: 12px 16px;
}

.fresh-popup-img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 12px;
}

.fresh-popup-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: #f9fafb;
}

.fresh-popup-price {
    background: linear-gradient(135deg, #f97316, #fb923c);
    color: white;
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 700;
}

.fresh-popup-book-btn {
    color: #0d9488;
    font-weight: 600;
    font-size: 13px;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: color 0.2s;
}

.fresh-popup-book-btn:hover {
    color: #0f766e;
}

/* Responsive adjustments for Fresh Style */
@media (max-width: 1200px) {
    .map-stories-row {
        left: 20px;
        right: 20px;
        top: 70px;
    }

    .map-floating-tag.trending {
        right: 20px;
        top: 140px;
    }

    .map-floating-tag.new-tag {
        left: 20px;
        bottom: 140px;
    }
}

@media (max-width: 768px) {
    .map-stories-row {
        display: none;
    }

    .map-action-bar {
        left: 16px;
        right: 16px;
        transform: none;
        bottom: 16px;
    }

    .map-floating-tag {
        display: none;
    }
}

/* AUTOCOMPLETE */
.city-autocomplete,
.city-autocomplete-exp {
    position: relative;
}

.city-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 2px solid #e5e7eb;
    border-top: none;
    border-radius: 0 0 12px 12px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 100;
    display: none;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.city-suggestions.active {
    display: block;
}

.city-suggestion-item {
    padding: 12px 16px;
    cursor: pointer;
    transition: background 0.2s;
    border-bottom: 1px solid #f3f4f6;
}

.city-suggestion-item:hover {
    background: #f0fdfa;
}

.city-suggestion-item:last-child {
    border-radius: 0 0 12px 12px;
    border-bottom: none;
}

/* EXPERIENCE DETAIL MODAL */
.experience-detail-modal {
    max-width: 1200px;
    width: 95%;
}

.image-gallery {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 8px;
    height: 450px;
}

.image-gallery .main-image {
    grid-row: span 2;
    grid-column: 1;
}

.image-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    transition: all 0.3s;
}

.image-gallery img:first-child {
    border-radius: 12px 0 0 12px;
}

.image-gallery img:nth-child(3) {
    border-radius: 0 12px 0 0;
}

.image-gallery img:last-child {
    border-radius: 0 0 12px 0;
}

.image-gallery img:hover {
    opacity: 0.9;
}

/* PASSWORD STRENGTH */
.password-strength {
    height: 4px;
    border-radius: 2px;
    transition: all 0.3s;
}

/* INPUT STATES */
.input-error {
    border-color: #ef4444 !important;
}

.input-success {
    border-color: #10b981 !important;
}

/* ACCOUNT TYPE CARDS */
.account-type-card {
    cursor: pointer;
    transition: all 0.3s;
}

.account-type-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.account-type-card.selected {
    border-color: #14b8a6;
    background: #f0fdfa;
}

/* USER DROPDOWN */
.user-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    min-width: 280px;
    z-index: 1000;
    overflow: hidden;
}

.user-dropdown.active {
    display: block;
    animation: fade-in 0.2s ease-out;
}

.dropdown-item {
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.2s;
    border-bottom: 1px solid #f3f4f6;
}

.dropdown-item:hover {
    background: #f0fdfa;
}

.dropdown-item:last-child {
    border-bottom: none;
}

.badge-count {
    margin-left: auto;
    background: #14b8a6;
    color: white;
    font-size: 12px;
    font-weight: bold;
    padding: 2px 8px;
    border-radius: 12px;
    min-width: 24px;
    text-align: center;
}

.dropdown-item-highlight {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
}

.dropdown-item-highlight:hover {
    background: linear-gradient(135deg, #fde68a 0%, #fcd34d 100%);
}

/* HOSTING PANEL */
.hosting-tab {
    padding: 16px 32px;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
    font-weight: 600;
    color: #6b7280;
}

.hosting-tab:hover {
    color: #f97316;
}

.hosting-tab.active {
    color: #f97316;
    border-bottom-color: #f97316;
}

.hosting-content {
    display: none;
}

.hosting-content.active {
    display: block;
    animation: fade-in 0.3s ease-out;
}

.experience-host-card {
    transition: all 0.3s;
}

.experience-host-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.1);
}

/* RESPONSIVE - Map View */
@media (max-width: 768px) {
    .filters-sidebar {
        display: none; /* Hide filters on mobile */
    }

    .map-view-page.active {
        flex-direction: column;
    }

    .map-area {
        height: 100vh;
    }

    .exp-list-panel {
        position: fixed;
        bottom: 0;
        left: 0;
        top: auto;
        width: 100%;
        height: 50vh;
        transform: translateY(0);
        transition: transform 0.3s ease;
    }

    .exp-list-panel.collapsed {
        transform: translateY(calc(100% - 48px));
    }

    .exp-list-toggle {
        position: absolute;
        top: -32px;
        right: auto;
        left: 50%;
        transform: translateX(-50%);
        width: 64px;
        height: 32px;
        border-radius: 8px 8px 0 0;
        border: 1px solid #e5e7eb;
        border-bottom: none;
        box-shadow: 0 -2px 8px rgba(0,0,0,0.1);
    }

    .exp-list-panel.collapsed .exp-list-toggle i {
        transform: rotate(-90deg);
    }

    .exp-list-panel:not(.collapsed) .exp-list-toggle i {
        transform: rotate(90deg);
    }

    /* Legacy */
    .sidebar {
        width: 100%;
        height: 50vh;
        border-right: none;
        border-bottom: 1px solid #e5e7eb;
    }

    .map-container {
        height: 50vh;
    }
}

/* ===================================
   GIFT SYSTEM STYLES
   =================================== */

.gift-step {
    display: none;
}

.gift-step.active {
    display: block;
    animation: fade-in 0.3s ease-out;
}

/* Gift Experience Cards */
#giftExperiencesList > div {
    transition: all 0.3s;
}

#giftExperiencesList > div:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(236, 72, 153, 0.2);
}

/* Email Preview Styling */
#emailPreview {
    overflow-x: auto;
}

#emailPreview::-webkit-scrollbar {
    height: 8px;
}

#emailPreview::-webkit-scrollbar-track {
    background: #f3f4f6;
    border-radius: 4px;
}

#emailPreview::-webkit-scrollbar-thumb {
    background: #ec4899;
    border-radius: 4px;
}

#emailPreview::-webkit-scrollbar-thumb:hover {
    background: #db2777;
}

/* Gift button animation */
@keyframes gift-pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

button[onclick="openGiftModal()"]:hover {
    animation: gift-pulse 0.6s ease-in-out infinite;
}

/* ===================================
   CHAT SYSTEM STYLES
   Add this to your Styles.css file
   =================================== */

/* Chat Panel */
.chat-panel {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 450px;
    height: 100vh;
    background: white;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    transition: right 0.3s ease-out;
    display: flex;
    flex-direction: column;
}

.chat-panel.active {
    right: 0;
}

/* Chat Header */
.chat-header {
    padding: 20px;
    background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%);
    color: white;
    flex-shrink: 0;
}

/* Chat List */
.chat-list-container {
    flex: 1;
    overflow-y: auto;
    background: #f9fafb;
}

.chat-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: white;
    border-bottom: 1px solid #f3f4f6;
    cursor: pointer;
    transition: all 0.2s;
}

.chat-item:hover {
    background: #f0fdfa;
    transform: translateX(-4px);
}

.chat-item.unread {
    background: #f0fdfa;
}

.chat-badge {
    background: #ef4444;
    color: white;
    font-size: 11px;
    font-weight: bold;
    padding: 2px 8px;
    border-radius: 12px;
    min-width: 20px;
    text-align: center;
}

/* Chat Window */
.chat-window {
    display: none;
    flex-direction: column;
    height: 100%;
}

.chat-window-header {
    padding: 16px 20px;
    background: white;
    border-bottom: 2px solid #f3f4f6;
    flex-shrink: 0;
}

.chat-booking-info {
    display: none;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: #f0fdfa;
    border-bottom: 1px solid #ccfbf1;
}

/* Messages Container */
.messages-container {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: #f9fafb;
    scroll-behavior: smooth;
}

/* Individual Messages */
.message {
    display: flex;
    margin-bottom: 16px;
    animation: fade-in 0.2s ease-out;
}

.message-own {
    justify-content: flex-end;
}

.message-other {
    justify-content: flex-start;
}

.message-bubble {
    max-width: 70%;
    padding: 12px 16px;
    border-radius: 18px;
    position: relative;
}

.message-own .message-bubble {
    background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%);
    color: white;
    border-bottom-right-radius: 4px;
}

.message-other .message-bubble {
    background: white;
    color: #1f2937;
    border-bottom-left-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.message-text {
    margin: 0;
    word-wrap: break-word;
    line-height: 1.5;
}

.message-time {
    display: block;
    font-size: 10px;
    margin-top: 4px;
    opacity: 0.7;
}

/* Typing Indicator */
.typing-indicator {
    display: none;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: #f0fdfa;
    border-top: 1px solid #ccfbf1;
    font-size: 14px;
    color: #14b8a6;
}

.typing-dots {
    display: flex;
    gap: 4px;
}

.typing-dot {
    width: 6px;
    height: 6px;
    background: #14b8a6;
    border-radius: 50%;
    animation: typing-bounce 1.4s infinite;
}

.typing-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing-bounce {
    0%, 60%, 100% {
        transform: translateY(0);
    }
    30% {
        transform: translateY(-8px);
    }
}

/* Message Input */
.message-input-container {
    padding: 16px 20px;
    background: white;
    border-top: 2px solid #f3f4f6;
    flex-shrink: 0;
}

.message-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 24px;
    font-size: 14px;
    resize: none;
    max-height: 120px;
    transition: border-color 0.2s;
}

.message-input:focus {
    outline: none;
    border-color: #14b8a6;
}

/* Chat Icon Badge */
.chat-icon-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #ef4444;
    color: white;
    font-size: 10px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
    display: none;
}

/* Scrollbar Styling for Chat */
.messages-container::-webkit-scrollbar {
    width: 6px;
}

.messages-container::-webkit-scrollbar-track {
    background: #f3f4f6;
}

.messages-container::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.messages-container::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.chat-list-container::-webkit-scrollbar {
    width: 6px;
}

.chat-list-container::-webkit-scrollbar-track {
    background: #f3f4f6;
}

.chat-list-container::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.chat-list-container::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .chat-panel {
        max-width: 100%;
    }
    
    .message-bubble {
        max-width: 85%;
    }
}

/* ============================================
   HOST PROFILE QUICK VIEW MODAL
   ============================================ */

/* Verification Badge Inline */
.verification-inline {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    background-color: #dcfce7;
    color: #166534;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid #86efac;
}

.verification-inline svg {
    width: 14px;
    height: 14px;
}

/* Host Profile Modal */
#hostProfileModal .modal {
    backdrop-filter: blur(4px);
}

/* Mini Experience Cards in Host Profile */
.host-experience-mini {
    display: flex;
    gap: 12px;
    padding: 12px;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.host-experience-mini:hover {
    border-color: #f97316;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.host-experience-mini img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.host-experience-mini-info {
    flex: 1;
    min-width: 0;
}

.host-experience-mini-title {
    font-weight: 700;
    font-size: 0.95rem;
    color: #1f2937;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.host-experience-mini-details {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    color: #6b7280;
    margin-bottom: 6px;
}

.host-experience-mini-price {
    font-size: 1.1rem;
    font-weight: 800;
    color: #0d9488;
}

/* Badge Mini */
.badge-mini {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 1px solid #fbbf24;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 600;
    color: #78350f;
}

.badge-mini svg {
    width: 12px;
    height: 12px;
}

/* Responsive adjustments */
@media (max-width: 640px) {
    #hostProfileModal > div {
        margin: 8px;
        max-height: 95vh;
    }
    
    .host-experience-mini {
        flex-direction: column;
    }
    
    .host-experience-mini img {
        width: 100%;
        height: 120px;
    }
}

/* ============================================
   FULL HOST PROFILE MODAL
   ============================================ */

#fullHostProfileModal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    /* z-index gestito da modal-manager.js per stacking corretto */
    z-index: 10000;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
    padding: 20px;
}

.full-profile-container {
    background: white;
    border-radius: 24px;
    max-width: 1400px;
    width: 100%;
    max-height: 95vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Cover Photo Hero */
.profile-cover-photo {
    height: 300px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: flex-end;
    padding: 30px;
}

.profile-header-content {
    display: flex;
    align-items: flex-end;
    gap: 24px;
    width: 100%;
    position: relative;
    z-index: 2;
}

.profile-hero-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 6px solid white;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    object-fit: cover;
    flex-shrink: 0;
}

.profile-hero-info {
    flex: 1;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.profile-hero-name {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.profile-hero-stats {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    font-size: 0.95rem;
}

.profile-action-buttons {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.profile-action-btn {
    padding: 10px 24px;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid white;
    background: white;
    color: #f97316;
}

.profile-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
}

.profile-action-btn.secondary {
    background: transparent;
    color: white;
}

.profile-action-btn.secondary:hover {
    background: white;
    color: #f97316;
}

/* Navigation Tabs */
.profile-tabs-container {
    background: white;
    border-bottom: 2px solid #e5e7eb;
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    gap: 8px;
    padding: 0 30px;
    overflow-x: auto;
}

.profile-tab-btn {
    padding: 16px 24px;
    font-weight: 600;
    color: #6b7280;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    cursor: pointer;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
}

.profile-tab-btn:hover {
    color: #f97316;
    background: #fff7ed;
}

.profile-tab-btn.active {
    color: #f97316;
    border-bottom-color: #f97316;
}

/* Tab Content */
.profile-content-area {
    flex: 1;
    overflow-y: auto;
    padding: 30px;
    background: #f9fafb;
}

.profile-tab-content {
    display: none;
}

.profile-tab-content.active {
    display: block;
    animation: fadeInUp 0.4s ease-out;
}

/* Close Button */
.profile-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.profile-close-btn:hover {
    background: white;
    transform: rotate(90deg) scale(1.1);
}

/* Responsive */
@media (max-width: 768px) {
    .profile-cover-photo {
        height: auto;
        padding: 20px;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .profile-header-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .profile-hero-image {
        width: 120px;
        height: 120px;
    }
    
    .profile-hero-name {
        font-size: 1.75rem;
        flex-direction: column;
        gap: 8px;
    }
    
    .profile-hero-stats {
        justify-content: center;
        font-size: 0.85rem;
    }
    
    .profile-tabs-container {
        padding: 0 16px;
    }
    
    .profile-tab-btn {
        padding: 12px 16px;
        font-size: 0.875rem;
    }
    
    .profile-content-area {
        padding: 16px;
    }
    
    #fullHostProfileModal {
        padding: 0;
    }
    
    .full-profile-container {
        border-radius: 0;
        max-height: 100vh;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scrollbar Styling */
.profile-content-area::-webkit-scrollbar {
    width: 8px;
}

.profile-content-area::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.profile-content-area::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.profile-content-area::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* ============================================
   PREVIEW CARD SYSTEM (DEV.to Style)
   ============================================ */

.preview-card {
    position: fixed;
    display: none;
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.05);
    width: 380px;
    max-width: 90vw;
    /* z-index alto per apparire SOPRA i modali (che usano 10000+) */
    z-index: 20000;
    overflow: hidden;
    animation: preview-fade-in 0.2s ease-out;
    pointer-events: none;
}

.preview-card.active {
    display: block;
    pointer-events: auto;
}

@keyframes preview-fade-in {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.preview-card-header {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.preview-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.preview-card:hover .preview-card-image {
    transform: scale(1.05);
}

.preview-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 100%);
    padding: 16px;
}

.preview-card-price {
    display: inline-block;
    background: white;
    color: #0d9488;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 800;
    font-size: 18px;
}

.preview-card-badges {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.preview-card-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.preview-card-badge.superhost {
    background: #f97316;
    color: white;
}

.preview-card-badge.expired {
    background: #6b7280; /* gray-500 */
    color: white;
}

.preview-card-badge.sold-out {
    background: #ef4444;
    color: white;
}

.preview-card-badge.limited {
    background: #f59e0b;
    color: white;
}

.preview-card-body {
    padding: 20px;
}

.preview-card-title {
    font-size: 18px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 12px;
    line-height: 1.4;
}

.preview-card-host {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e5e7eb;
}

.preview-card-host-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.preview-card-host-info {
    flex: 1;
}

.preview-card-host-name {
    font-weight: 600;
    color: #374151;
    font-size: 14px;
}

.preview-card-host-meta {
    font-size: 12px;
    color: #6b7280;
}

.preview-card-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
}

.preview-card-detail {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #4b5563;
}

.preview-card-detail i {
    color: #14b8a6;
    flex-shrink: 0;
}

.preview-card-description {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.preview-card-stats {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
}

.preview-card-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    color: #1f2937;
}

.preview-card-rating i {
    color: #fbbf24;
    fill: #fbbf24;
}

.preview-card-category {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f0fdfa;
    color: #0d9488;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.preview-card-footer {
    padding: 16px 20px;
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
}

.preview-card-action {
    width: 100%;
    padding: 10px 16px;
    background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: auto;
}

.preview-card-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(13, 148, 136, 0.3);
}

.preview-card-action:disabled {
    background: #d1d5db;
    cursor: not-allowed;
    transform: none;
}

/* Animazione smooth per spostamento */
.preview-card.repositioning {
    transition: left 0.2s ease-out, top 0.2s ease-out;
}

/* Responsive */
@media (max-width: 640px) {
    .preview-card {
        width: 340px;
    }

    .preview-card-header {
        height: 160px;
    }
}

/* ============================================
   MOBILE OPTIMIZATION FOR MODALS
   ============================================ */

/* Experience Modal - Mobile Optimization */
@media (max-width: 768px) {
    .experience-detail-modal {
        width: 100%;
        margin: 0;
        border-radius: 0;
        max-height: 100vh;
    }

    /* Galleria immagini: da 3 colonne a 1 colonna su mobile */
    .image-gallery {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        height: auto;
        gap: 4px;
    }

    .image-gallery img {
        border-radius: 0 !important;
        max-height: 200px;
        height: 200px;
    }

    /* Riduce padding del contenuto su mobile */
    .experience-detail-modal .p-8 {
        padding: 1rem !important;
    }
}

/* User Bookings Modal - Mobile Optimization */
@media (max-width: 768px) {
    #userBookingsModal > div {
        margin: 0.5rem;
        padding: 1rem !important;
        border-radius: 1rem;
    }

    /* Titolo modal più piccolo */
    #userBookingsModal h2 {
        font-size: 1.5rem;
    }
}

/* Booking Cards - Mobile Optimization */
@media (max-width: 640px) {
    /* Layout verticale invece di orizzontale */
    #userBookingsContainer .flex.gap-4 {
        flex-direction: column;
        gap: 1rem;
    }

    /* Immagine a larghezza piena */
    #userBookingsContainer .w-32.h-32 {
        width: 100%;
        height: 180px;
    }

    /* Grid info: da 2 colonne a 1 colonna */
    #userBookingsContainer .grid-cols-2 {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    /* Bottoni stack verticale su schermi molto piccoli */
    #userBookingsContainer .flex.gap-2.flex-wrap {
        flex-direction: column;
    }

    #userBookingsContainer button {
        width: 100%;
    }
}

/* ===================================
   INDEX MAP STYLES
   Price markers, popups, and full map modal
   =================================== */

/* Custom price marker */
.custom-price-marker {
    background: transparent;
    border: none;
}

.marker-price-pill {
    background: white;
    border: 2px solid #14b8a6;
    border-radius: 20px;
    padding: 4px 12px;
    font-weight: 700;
    font-size: 13px;
    color: #0d9488;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    white-space: nowrap;
    transition: all 0.2s ease;
}

.marker-price-pill:hover,
.marker-hover .marker-price-pill,
.marker-highlight .marker-price-pill {
    background: #14b8a6;
    color: white;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(20, 184, 166, 0.4);
    z-index: 1000 !important;
}

/* Map Popup */
.experience-popup .leaflet-popup-content-wrapper {
    border-radius: 12px;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.experience-popup .leaflet-popup-content {
    margin: 0;
    width: 260px !important;
}

.experience-popup .leaflet-popup-tip {
    background: white;
}

.popup-card {
    display: flex;
    flex-direction: column;
}

.popup-image {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

.popup-content {
    padding: 12px;
}

.popup-title {
    font-weight: 700;
    font-size: 14px;
    color: #1f2937;
    margin: 0 0 4px 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.popup-host {
    font-size: 12px;
    color: #6b7280;
    margin: 0 0 8px 0;
}

.popup-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.popup-price {
    font-weight: 700;
    font-size: 16px;
    color: #0d9488;
}

.popup-rating {
    font-size: 13px;
    color: #f59e0b;
    font-weight: 600;
}

.popup-link {
    display: block;
    text-align: center;
    background: #14b8a6;
    color: white;
    padding: 8px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease;
}

.popup-link:hover {
    background: #0d9488;
}

/* Full Map Card */
.full-map-card {
    transition: all 0.2s ease;
}

.full-map-card:hover {
    border-color: #14b8a6;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Responsive: on mobile, hide sidebar and show full map */
@media (max-width: 768px) {
    #indexFullMapModal .w-\[420px\] {
        display: none;
    }

    #indexFullMapModal .flex-1 {
        width: 100%;
    }
}
