:root {
    --bg: #1a1a20;
    --bg-card: #242529;
    --bg-card-hover: #2e2e35;
    --bg-surface: #1f1f25;
    --text: #ffffff;
    --text-muted: #8A96A3;
    --text-dim: #5a6070;
    --accent: #00AFF0;
    --accent-hover: #008CCF;
    --accent-glow: rgba(0, 175, 240, 0.25);
    --accent2: #00AFF0;
    --gold: #ffd700;
    --gold-glow: rgba(255, 215, 0, 0.2);
    --border: #333340;
    --border-light: #ADB6BF;
    --radius: 16px;
    --radius-lg: 20px;
    --shadow: 0 4px 24px rgba(0,0,0,0.5);
    --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent2); }

img { max-width: 100%; height: auto; display: block; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 16px; }

/* ========== NAVBAR ========== */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: rgba(26, 26, 32, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 0 16px;
}
.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}
.nav-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}
.logo-icon { font-size: 1.5rem; }
.logo-text {
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--text);
    letter-spacing: 2px;
}
.logo-accent { color: var(--accent); }
.nav-links {
    display: flex;
    list-style: none;
    gap: 8px;
}
.nav-link {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.9rem;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all var(--transition);
}
.nav-link:hover { color: var(--text); background: var(--bg-card); }
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all var(--transition);
}

/* ========== EXPLORER (Split Layout) ========== */
.explorer {
    display: flex;
    height: calc(100vh - 64px);
    margin-top: 64px;
    overflow: hidden;
}
.explorer-sidebar {
    width: 380px;
    min-width: 380px;
    background: var(--bg-card);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.sidebar-header {
    padding: 16px 20px 12px;
    border-bottom: 1px solid var(--border);
}
.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 8px;
}
.sidebar-logo .logo-text { font-size: 1.2rem; }
.sidebar-search {
    padding: 12px 16px;
    position: relative;
}
.sidebar-search .search-icon {
    position: absolute;
    left: 28px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.9rem;
}
.sidebar-search .search-input {
    width: 100%;
    padding: 10px 14px 10px 40px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--bg-surface);
    color: var(--text);
    font-family: var(--font);
    font-size: 0.88rem;
    outline: none;
    transition: border-color var(--transition);
}
.sidebar-search .search-input:focus { border-color: var(--accent); }
.sidebar-controls {
    padding: 0 16px 12px;
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}
.control-group {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
    min-width: 0;
}
.control-group label {
    font-size: 0.72rem;
    color: var(--text-dim);
    white-space: nowrap;
}
.sidebar-select {
    flex: 1;
    min-width: 0;
    padding: 6px 8px;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: var(--bg-surface);
    color: var(--text);
    font-family: var(--font);
    font-size: 0.78rem;
    outline: none;
    cursor: pointer;
}
.sidebar-filter-btn {
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: var(--bg-surface);
    color: var(--text-muted);
    font-family: var(--font);
    font-size: 0.78rem;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
}
.sidebar-filter-btn:hover { border-color: var(--accent); color: var(--accent); }
.sidebar-filters {
    padding: 0 16px 12px;
    border-bottom: 1px solid var(--border);
}
.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.filter-chip {
    padding: 4px 10px;
    border-radius: 20px;
    border: 1px solid var(--border);
    background: var(--bg-surface);
    color: var(--text-muted);
    font-size: 0.72rem;
    cursor: pointer;
    transition: all var(--transition);
    font-family: var(--font);
}
.filter-chip:hover, .filter-chip.active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}
.sidebar-list {
    flex: 1;
    overflow-y: auto;
    padding: 8px 0;
}
.sidebar-list::-webkit-scrollbar { width: 5px; }
.sidebar-list::-webkit-scrollbar-track { background: transparent; }
.sidebar-list::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
.sidebar-item {
    display: flex;
    gap: 12px;
    padding: 10px 16px;
    cursor: pointer;
    transition: background var(--transition);
    border-left: 3px solid transparent;
}
.sidebar-item:hover { background: var(--bg-surface); }
.sidebar-item.active { background: var(--bg-surface); border-left-color: var(--accent); }
.sidebar-item.is-featured { border-left-color: var(--gold); }
.sidebar-item-img {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}
.sidebar-item.is-featured .sidebar-item-img {
    border: 2px solid var(--gold);
}
.sidebar-item-info { flex: 1; min-width: 0; }
.sidebar-item-name {
    font-size: 0.88rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.sidebar-item.is-featured .sidebar-item-name { color: var(--gold); }
.sidebar-item-loc {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 2px;
}
.sidebar-item-meta {
    display: flex;
    gap: 8px;
    margin-top: 4px;
    font-size: 0.7rem;
    color: var(--text-dim);
}
.sidebar-item-badge {
    display: inline-block;
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 700;
}
.badge-gold { background: var(--gold); color: #000; }
.badge-green { background: rgba(0,200,100,0.9); color: #fff; }
.sidebar-footer {
    padding: 10px 16px;
    border-top: 1px solid var(--border);
    text-align: center;
}
.sidebar-stats {
    font-size: 0.78rem;
    color: var(--text-muted);
}
.explorer-map {
    flex: 1;
    position: relative;
}
.explorer-map #italyMap {
    width: 100%;
    height: 100%;
    border-radius: 0;
    border: none;
}
.map-legend-float {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 16px;
    background: rgba(18, 18, 26, 0.9);
    backdrop-filter: blur(8px);
    padding: 8px 20px;
    border-radius: 20px;
    border: 1px solid var(--border);
    z-index: 500;
}
.legend-item-float {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    color: var(--text-muted);
}
.ldot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent);
}
.ldot.featured {
    background: var(--gold);
    box-shadow: 0 0 8px var(--gold-glow);
}

/* Keep text-gradient for other uses */
.text-gradient {
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========== BUTTONS ========== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    font-family: var(--font);
    cursor: pointer;
    border: none;
    transition: all var(--transition);
    text-decoration: none;
}
.btn-primary {
    background: var(--accent);
    color: #fff;
    border-radius: 40px;
}
.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    color: #fff;
}
.btn-secondary {
    background: var(--bg-card);
    color: var(--text);
    border: 1px solid var(--border);
}
.btn-secondary:hover {
    background: var(--bg-card-hover);
    color: var(--text);
    border-color: var(--accent);
}
.btn-small { padding: 8px 20px; font-size: 0.85rem; }
.btn-onlyfans {
    width: 100%;
    padding: 16px;
    font-size: 1.05rem;
    margin-top: 16px;
    gap: 8px;
}

/* ========== SECTION HEADERS ========== */
.section-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 0 16px;
}
.section-header h2 {
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 800;
}

/* ========== MAP (legacy - kept for modelle page if needed) ========== */
#italyMap {
    width: 100%;
    height: 600px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    z-index: 1;
}

/* ========== MODEL CARDS (Solofans style) ========== */
.featured-section { padding: 80px 16px; }
.models-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}
.model-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    transition: all var(--transition);
    position: relative;
    border: none;
}
.model-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0, 175, 240, 0.15);
}
.model-card.is-featured { box-shadow: 0 0 0 2px var(--gold); }
.model-card.is-featured:hover { box-shadow: 0 0 0 2px var(--gold), 0 8px 32px var(--gold-glow); }
.card-image {
    position: relative;
    aspect-ratio: 3/4;
    overflow: hidden;
    background: var(--bg-surface);
}
.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.model-card:hover .card-image img { transform: scale(1.05); }
.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 60px 16px 16px;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 60%, transparent 100%);
    z-index: 2;
}
.card-username {
    font-size: 1.1rem;
    font-weight: 800;
    color: #fff;
    text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}
.card-realname {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.7);
    margin-top: 2px;
}
.card-badge {
    position: absolute;
    top: 12px;
    padding: 5px 14px;
    border-radius: 8px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 3;
}
.card-badge:first-of-type { left: 12px; }
.badge-featured {
    background: linear-gradient(135deg, #ffd700, #ffaa00);
    color: #000;
}
.badge-trending {
    background: rgba(255, 60, 100, 0.9);
    color: #fff;
}
.badge-free {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 0.72rem;
    font-weight: 700;
    background: rgba(0, 200, 100, 0.9);
    color: #fff;
    z-index: 3;
}
.card-body { padding: 12px 16px 16px; }
.card-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px;
    border-radius: 40px;
    border: none;
    background: var(--accent);
    color: #fff;
    font-family: var(--font);
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
}
.card-cta:hover { background: var(--accent-hover); color: #fff; transform: translateY(-1px); }
.card-cta.free { background: linear-gradient(135deg, #00c864, #00a050); }
.card-cta.free:hover { background: linear-gradient(135deg, #00a050, #008040); }
.card-cta-icon {
    width: 18px;
    height: 18px;
}
.card-name, .card-location, .card-tags, .card-tag, .card-footer, .card-price, .card-likes {
    display: none;
}

/* ========== CATEGORIES ========== */
.categories-section {
    padding: 64px 16px;
    background: var(--bg);
}
.categories-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}
.category-card {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 40px;
    padding: 10px 22px;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
}
.category-card:hover {
    border-color: var(--accent);
    background: rgba(0, 175, 240, 0.1);
    transform: translateY(-2px);
}
.category-icon { font-size: 1.2rem; display: inline; }
.category-name {
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--text);
}
.category-count {
    font-size: 0.75rem;
    color: var(--text-muted);
    background: var(--bg-surface);
    padding: 2px 8px;
    border-radius: 12px;
}

/* ========== ALL MODELS ========== */
.all-models-section { padding: 64px 16px; }
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 32px;
    justify-content: center;
}
.filter-btn {
    padding: 8px 20px;
    border-radius: 40px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-muted);
    font-family: var(--font);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
    text-transform: capitalize;
}
.filter-btn:hover { border-color: var(--accent); color: var(--accent); }
.filter-btn.active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}
.load-more-wrapper {
    text-align: center;
    margin-top: 48px;
}

/* ========== MODAL ========== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    backdrop-filter: blur(8px);
}
.modal-overlay.active { display: flex; }
.modal {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    max-width: 700px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    border: 1px solid var(--border);
    animation: modalIn 0.3s ease;
}
@keyframes modalIn {
    from { opacity: 0; transform: scale(0.95) translateY(20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}
.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: var(--bg-surface);
    color: var(--text);
    font-size: 1.3rem;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
}
.modal-close:hover { background: var(--accent); }
.modal-body { display: flex; flex-direction: column; }
.modal-image {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
}
.modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.modal-badge {
    position: absolute;
    bottom: 12px;
    left: 12px;
    padding: 6px 14px;
    background: linear-gradient(135deg, #ffd700, #ffaa00);
    color: #000;
    font-weight: 700;
    font-size: 0.8rem;
    border-radius: 8px;
}
.modal-info { padding: 24px; }
.modal-info h3 { font-size: 1.6rem; font-weight: 800; margin-bottom: 4px; }
.modal-location { color: var(--text-muted); margin-bottom: 16px; font-size: 0.95rem; }
.modal-description { margin-bottom: 20px; line-height: 1.7; color: var(--text); }
.modal-stats {
    display: flex;
    gap: 24px;
    margin-bottom: 20px;
    padding: 16px;
    background: var(--bg-surface);
    border-radius: var(--radius);
}
.modal-stat { text-align: center; flex: 1; }
.modal-stat-value { display: block; font-size: 1.2rem; font-weight: 700; color: var(--accent); }
.modal-stat-label { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; }
.modal-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}
.modal-tag {
    padding: 5px 14px;
    background: var(--bg-surface);
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: capitalize;
}
.modal-trial {
    text-align: center;
    margin-top: 8px;
    color: #00c864;
    font-weight: 600;
}

/* ========== FOOTER ========== */
.footer {
    background: var(--bg-surface);
    border-top: 1px solid var(--border);
    padding: 64px 16px 32px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 48px;
}
.footer-brand p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 12px;
    max-width: 300px;
}
.footer-links h4 {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text);
}
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: var(--text-muted); font-size: 0.9rem; }
.footer-links a:hover { color: var(--accent); }
.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 24px;
    text-align: center;
}
.footer-bottom p { color: var(--text-dim); font-size: 0.8rem; margin-bottom: 8px; }
.footer-disclaimer { font-size: 0.75rem !important; max-width: 600px; margin: 0 auto; }

/* ========== COOKIE BANNER ========== */
.cookie-banner {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    padding: 16px;
    z-index: 1500;
    display: none;
    animation: slideUp 0.3s ease;
}
.cookie-banner.active { display: block; }
@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.cookie-content p { font-size: 0.85rem; color: var(--text-muted); flex: 1; min-width: 200px; }
.cookie-actions { display: flex; gap: 8px; }

/* ========== AGE GATE ========== */
.age-gate {
    position: fixed;
    inset: 0;
    background: var(--bg);
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
}
.age-gate.active { display: flex; }
.age-gate-content {
    text-align: center;
    max-width: 400px;
    padding: 16px;
}
.age-gate-icon { font-size: 3rem; display: block; margin-bottom: 16px; }
.age-gate-content h2 {
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 16px;
    letter-spacing: 2px;
}
.age-gate-content p { color: var(--text-muted); margin-bottom: 8px; }
.age-gate-question {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text) !important;
    margin: 24px 0 !important;
}
.age-gate-actions { display: flex; gap: 16px; justify-content: center; }

/* ========== LEAFLET CUSTOMIZATION ========== */
.leaflet-popup-content-wrapper {
    background: var(--bg-card) !important;
    color: var(--text) !important;
    border-radius: var(--radius) !important;
    border: 1px solid var(--border);
    box-shadow: var(--shadow) !important;
}
.leaflet-popup-tip { background: var(--bg-card) !important; }
.leaflet-popup-content { margin: 12px 16px !important; font-family: var(--font) !important; }
.map-popup { text-align: center; }
.map-popup img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 8px;
}
.map-popup h4 { font-size: 0.95rem; margin-bottom: 2px; }
.map-popup p { color: var(--text-muted); font-size: 0.8rem; margin-bottom: 6px; }
.map-popup .popup-btn {
    display: inline-block;
    padding: 6px 16px;
    background: var(--accent);
    color: #fff;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
}
.user-location-marker {
    background: none;
    border: none;
}
.user-loc-dot {
    width: 16px;
    height: 16px;
    background: var(--accent);
    border: 3px solid #fff;
    border-radius: 50%;
    box-shadow: 0 0 12px var(--accent-glow), 0 0 24px var(--accent-glow);
    animation: userPulse 2s ease-in-out infinite;
}
@keyframes userPulse {
    0%, 100% { box-shadow: 0 0 12px var(--accent-glow), 0 0 24px var(--accent-glow); }
    50% { box-shadow: 0 0 20px var(--accent-glow), 0 0 40px var(--accent-glow); }
}
.featured-marker {
    filter: hue-rotate(-60deg) brightness(1.5);
}
.custom-marker {
    background: none;
    border: none;
}
.map-zoom-hint {
    position: absolute;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    text-align: center;
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    font-size: 1.05rem;
    font-weight: 600;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.map-zoom-hint.visible { opacity: 1; }

/* Pin = cerchio con foto + punta in basso. --marker-scale arriva da JS in base allo zoom */
.marker-pin {
    --size: 36px;
    --tip: calc(8px * var(--marker-scale, 1));
    --pin-color: var(--accent);
    position: absolute;
    left: 0;
    top: 0;
    width: calc(var(--size) * var(--marker-scale, 1));
    height: calc(var(--size) * var(--marker-scale, 1));
    transform: translate(-50%, calc(-100% - var(--tip)));
    box-sizing: border-box;
    padding: 3px;
    border-radius: 50%;
    background: var(--pin-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
    cursor: pointer;
    transition: width 0.2s ease, height 0.2s ease;
}
.marker-pin::after {
    content: '';
    position: absolute;
    left: 50%;
    top: calc(100% - 1px);
    transform: translateX(-50%);
    border-left: calc(var(--tip) * 0.75) solid transparent;
    border-right: calc(var(--tip) * 0.75) solid transparent;
    border-top: calc(var(--tip) + 1px) solid var(--pin-color);
}
/* .leaflet-container davanti: batte "width: auto" del CSS di Leaflet sulle img dei marker */
.leaflet-container .marker-pin img {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    background: #1b1d24;
}
.marker-pin.marker-featured {
    --size: 46px;
    --pin-color: #ffb800;
    background: linear-gradient(135deg, #ffd700, #ffaa00);
    box-shadow: 0 0 14px rgba(255, 215, 0, 0.5), 0 2px 8px rgba(0, 0, 0, 0.45);
}
.marker-pin.marker-primary {
    --size: 60px;
    --pin-color: #ffd700;
    padding: 4px;
    background: linear-gradient(135deg, #ff6b6b, #ffd700, #00AFF0);
    animation: primaryPulse 2s ease-in-out infinite;
}

/* ========== MODELLE PAGE ========== */
.page-header {
    padding: 100px 16px 48px;
    text-align: center;
    background: var(--bg-surface);
}
.page-header h1 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 900;
    margin-bottom: 8px;
}
.page-header p { color: var(--text-muted); font-size: 1.05rem; }
.search-bar {
    max-width: 500px;
    margin: 24px auto 0;
    position: relative;
}
.search-input {
    width: 100%;
    padding: 14px 20px 14px 48px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text);
    font-family: var(--font);
    font-size: 1rem;
    outline: none;
    transition: border-color var(--transition);
}
.search-input:focus { border-color: var(--accent); }
.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1.1rem;
}
.listing-section { padding: 48px 16px 80px; }

/* ========== LEGAL PAGES ========== */
.legal-page { padding: 100px 16px 80px; }
.legal-content {
    max-width: 800px;
    margin: 0 auto;
}
.legal-content h1 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 8px;
}
.legal-content .legal-date {
    color: var(--text-muted);
    margin-bottom: 32px;
    font-size: 0.9rem;
}
.legal-content h2 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-top: 32px;
    margin-bottom: 12px;
}
.legal-content p, .legal-content li {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 12px;
}
.legal-content ul { padding-left: 24px; }

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 768px) {
    .nav-toggle { display: flex; }
    .nav-links {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--bg-card);
        border-bottom: 1px solid var(--border);
        flex-direction: column;
        padding: 16px;
    }
    .nav-links.active { display: flex; }
    .nav-link { padding: 12px 16px; }
    .explorer { flex-direction: column; height: auto; }
    .explorer-sidebar {
        width: 100%;
        min-width: unset;
        max-height: 50vh;
        border-right: none;
        border-bottom: 1px solid var(--border);
    }
    .explorer-map { height: 50vh; min-height: 300px; }
    .models-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
    .categories-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .modal-body { flex-direction: column; }
    .cookie-content { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
    .explorer-sidebar { max-height: 40vh; }
    .sidebar-controls { flex-direction: column; }
    .control-group { width: 100%; }
    .models-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .card-body { padding: 12px; }
    .card-name { font-size: 0.9rem; }
    .card-tags { display: none; }
    .categories-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
    .category-card { padding: 16px 8px; }
    .category-icon { font-size: 1.5rem; }
    .category-name { font-size: 0.8rem; }
    .modal-stats { gap: 12px; padding: 12px; flex-wrap: wrap; }
    .age-gate-actions { flex-direction: column; }
    .filter-btn { padding: 6px 14px; font-size: 0.78rem; }
}

@media (max-width: 360px) {
    .models-grid { grid-template-columns: 1fr; }
}
