/* ============================================
   Dating Platform - PHP Version
   Modern responsive CSS (no Tailwind needed)
   ============================================ */

:root {
    --primary: #000000;
    --secondary: #e00203;
    --bg: #ffffff;
    --bg-alt: #f4f4f5;
    --text: #18181b;
    --text-muted: #71717a;
    --border: #e4e4e7;
    --radius: 16px;
    --radius-sm: 8px;
    --shadow: 0 1px 3px rgba(0,0,0,.1), 0 1px 2px rgba(0,0,0,.06);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -4px rgba(0,0,0,.1);
    --font: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --max-width: 85%;
}

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

html { scroll-behavior: smooth; }

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

a { color: var(--secondary); text-decoration: none; transition: opacity .2s; }
a:hover { opacity: .8; }

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

/* Container */
.container { width: 100%; max-width: 1400px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 1024px) { .container { max-width: var(--max-width); } }

/* Header */
.site-header {
    background: var(--primary);
    color: white;
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-lg);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.site-header .logo { font-size: 1.5rem; font-weight: 700; color: white; }
.site-header .logo:hover { opacity: 1; color: var(--secondary); }
.site-header nav { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.site-header nav a { color: rgba(255,255,255,.85); font-size: .95rem; padding: 6px 12px; border-radius: var(--radius-sm); transition: all .2s; }
.site-header nav a:hover { background: rgba(255,255,255,.1); color: white; opacity: 1; }
.btn-header { background: var(--secondary) !important; color: white !important; padding: 8px 20px !important; border-radius: var(--radius-sm) !important; font-weight: 600; }
.btn-header:hover { filter: brightness(1.1); }

/* Profile dropdown */
.profile-dropdown { position: relative; }
.profile-btn {
    display: flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: 50%;
    background: rgba(255,255,255,.15); border: 2px solid rgba(255,255,255,.3);
    color: white; cursor: pointer; transition: all .2s;
}
.profile-btn:hover { background: rgba(255,255,255,.25); border-color: rgba(255,255,255,.5); }
.profile-btn svg { pointer-events: none; }

.profile-menu {
    display: none; position: absolute; right: 0; top: calc(100% + 8px);
    background: white; border-radius: 12px; box-shadow: 0 10px 40px rgba(0,0,0,.15);
    min-width: 240px; overflow: hidden; z-index: 200;
    border: 1px solid var(--border);
    animation: menuFadeIn .15s ease;
}
@keyframes menuFadeIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }

.profile-dropdown.open .profile-menu { display: block; }
.profile-dropdown.open .profile-btn { background: var(--secondary); border-color: var(--secondary); }

.profile-menu-header {
    padding: 14px 16px; border-bottom: 1px solid var(--border);
    font-weight: 600; font-size: .9rem; color: var(--text);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.profile-menu a {
    display: flex; align-items: center; gap: 8px;
    padding: 10px 16px; color: var(--text) !important; font-size: .9rem;
    transition: background .15s;
}
.profile-menu a:hover { background: var(--bg-alt); opacity: 1; }
.profile-menu-divider { height: 1px; background: var(--border); margin: 4px 0; }
.profile-menu-logout { color: #dc2626 !important; }
.profile-menu-logout:hover { background: #fef2f2 !important; }

/* Ville Map */
.ville-map-panel { margin-bottom: 20px; position: relative; z-index: 1; }
.ville-map-card {
    background: white; border-radius: 16px; overflow: hidden;
    box-shadow: 0 4px 24px rgba(0,0,0,.08); border: 1px solid var(--border);
}
.ville-map-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 20px; border-bottom: 1px solid var(--border);
}
.ville-map-badge {
    display: inline-flex; align-items: center; gap: 4px;
    background: var(--secondary); color: white; font-size: .8rem;
    font-weight: 600; padding: 4px 12px; border-radius: 20px;
}
.ville-map-container {
    width: 100%; height: 400px; position: relative; background: #f0f0f0;
}
.ville-map-loading {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    height: 100%; gap: 12px; color: var(--text-muted); font-size: .9rem;
}
.ville-map-spinner {
    width: 32px; height: 32px; border: 3px solid var(--border);
    border-top-color: var(--secondary); border-radius: 50%;
    animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Map profile markers */
.custom-profile-marker { background: none !important; border: none !important; }
.map-profile-marker {
    width: 46px; height: 46px; border-radius: 50%; overflow: hidden;
    border: 3px solid white; box-shadow: 0 2px 8px rgba(0,0,0,.3);
    background-size: cover; background-position: center; cursor: pointer;
    transition: transform .2s;
}
.map-profile-marker:hover { transform: scale(1.15); }

@media (max-width: 768px) {
    .ville-map-container { height: 300px; }
}

/* Modal carousel */
.modal-carousel {
    position: relative; width: 100%; aspect-ratio: 4/5; overflow: hidden;
    background: #000; border-radius: var(--radius) var(--radius) 0 0;
}
.modal-slide {
    position: absolute; inset: 0; opacity: 0; transition: opacity .4s ease;
    pointer-events: none;
}
.modal-slide.active { opacity: 1; pointer-events: auto; }
.modal-slide .modal-image {
    width: 100%; height: 100%; object-fit: cover; display: block;
}
.modal-image-mirror {
    transform: scaleX(-1) rotate(180deg); filter: blur(20px) !important;
}
.modal-image-zoom {
    transform: scale(1.5); transform-origin: center; filter: blur(20px) !important;
}
/* CTA overlay on blurred slides */
.modal-cta-overlay {
    position: absolute; inset: 0; display: flex; flex-direction: column;
    align-items: center; justify-content: center; background: rgba(0,0,0,.35);
    z-index: 10; padding: 20px; text-align: center;
}
.modal-cta-overlay p {
    color: white; font-size: 1.15rem; font-weight: 600; margin-bottom: 16px;
    text-shadow: 0 2px 8px rgba(0,0,0,.5); max-width: 280px;
}
.btn-cta-overlay {
    display: inline-block; color: white !important; font-size: .95rem; font-weight: 600;
    padding: 12px 28px; border-radius: 10px; text-decoration: none;
    box-shadow: 0 4px 16px rgba(0,0,0,.3); transition: opacity .2s, transform .2s;
}
.btn-cta-overlay:hover { opacity: .9; transform: scale(1.03); color: white !important; }

/* Carousel navigation */
.modal-nav {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 20;
    background: rgba(0,0,0,.5); color: white; border: none; width: 36px; height: 36px;
    border-radius: 50%; font-size: 1.4rem; cursor: pointer; display: flex;
    align-items: center; justify-content: center; transition: background .2s;
    line-height: 1;
}
.modal-nav:hover { background: rgba(0,0,0,.7); }
.modal-nav-prev { left: 10px; }
.modal-nav-next { right: 10px; }
.modal-dots {
    position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%);
    display: flex; gap: 8px; z-index: 20;
}
.modal-dot {
    width: 8px; height: 8px; border-radius: 50%; border: none; cursor: pointer;
    background: rgba(255,255,255,.5); transition: all .2s; padding: 0;
}
.modal-dot.active { background: white; width: 20px; border-radius: 4px; }

/* Hero / Page header */
.page-header { text-align: center; padding: 48px 0 32px; }
.page-header h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 700; color: var(--text); margin-bottom: 12px; }
.page-header p { font-size: 1.1rem; color: var(--text-muted); max-width: 800px; margin: 0 auto; }

/* Sections */
.section { background: white; border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-lg); margin-bottom: 24px; }
@media (min-width: 640px) { .section { padding: 32px; } }
.section h2 { font-size: 1.5rem; font-weight: 600; margin-bottom: 20px; color: var(--text); }

/* Profile Grid */
.profile-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (min-width: 640px) { .profile-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .profile-grid { grid-template-columns: repeat(4, 1fr); } }

.profile-card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform .2s, box-shadow .2s;
    cursor: pointer;
    position: relative;
}
.profile-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.profile-card .profile-image {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    background: var(--bg-alt);
}
.profile-card .profile-image.blurred { filter: blur(var(--blur-amount, 16px)); }
.profile-card .profile-info { padding: 12px; }
.profile-card .profile-name { font-weight: 600; font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.profile-card .profile-meta { font-size: .85rem; color: var(--text-muted); margin-top: 2px; }
.profile-card .profile-location { font-size: .8rem; color: var(--secondary); margin-top: 4px; display: block; text-decoration: none; }
a.profile-location:hover { text-decoration: underline; opacity: 1; }
.profile-card .profile-badge {
    position: absolute; top: 8px; left: 8px;
    background: var(--secondary); color: white;
    padding: 2px 8px; border-radius: 12px;
    font-size: .75rem; font-weight: 600;
}

/* Profile Popup/Modal */
.modal-overlay {
    display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,.6); z-index: 1000; align-items: center; justify-content: center;
    padding: 20px;
}
.modal-overlay.active { display: flex; }
.modal-content {
    background: white; border-radius: var(--radius); max-width: 600px; width: 100%;
    max-height: 90vh; overflow-y: auto; position: relative;
}
.modal-close {
    position: absolute; top: 12px; right: 12px; background: rgba(0,0,0,.5); color: white;
    border: none; width: 32px; height: 32px; border-radius: 50%; cursor: pointer;
    font-size: 1.2rem; display: flex; align-items: center; justify-content: center; z-index: 10;
}
/* .modal-image is handled by .modal-slide .modal-image above */
.modal-body { padding: 24px; }
.modal-body h3 { font-size: 1.5rem; font-weight: 700; margin-bottom: 4px; }
.modal-body .modal-meta { color: var(--secondary); margin-bottom: 16px; display: block; text-decoration: none; font-size: .95rem; }
.modal-body a.modal-meta:hover { text-decoration: underline; opacity: 1; }
.modal-body .modal-bio { line-height: 1.7; margin-bottom: 16px; }
.modal-body .modal-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.modal-body .modal-tag { background: var(--bg-alt); padding: 4px 12px; border-radius: 20px; font-size: .85rem; }
.modal-actions { display: flex; gap: 12px; }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 10px 24px; border-radius: var(--radius-sm); font-weight: 600;
    font-size: .95rem; border: none; cursor: pointer; transition: all .2s;
    text-decoration: none;
}
.btn-primary { background: var(--secondary); color: white; }
.btn-primary:hover { filter: brightness(1.1); color: white; opacity: 1; }
.btn-secondary { background: var(--bg-alt); color: var(--text); }
.btn-secondary:hover { background: var(--border); }
.btn-outline { background: transparent; border: 2px solid var(--secondary); color: var(--secondary); }
.btn-outline:hover { background: var(--secondary); color: white; }
.btn-block { width: 100%; }
.btn-sm { padding: 6px 16px; font-size: .85rem; }
.btn-lg { padding: 14px 32px; font-size: 1.1rem; }

/* Search */
.search-box { position: relative; margin-bottom: 20px; }
.search-input {
    width: 100%; padding: 12px 16px 12px 44px;
    border: 2px solid var(--border); border-radius: var(--radius-sm);
    font-size: 1rem; outline: none; transition: border-color .2s;
}
.search-input:focus { border-color: var(--secondary); }
.search-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--text-muted); }

/* Region/Ville links grid */
.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 8px;
}
.link-tag {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: var(--bg-card, #fff);
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: .88rem;
    color: var(--text);
    transition: all .2s;
    text-decoration: none;
    line-height: 1.3;
}
.link-tag::before {
    content: '›';
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-alt);
    border-radius: 6px;
    font-size: .85rem;
    font-weight: 700;
    color: var(--secondary, #e00203);
    transition: all .2s;
}
.link-tag:hover {
    border-color: var(--secondary);
    background: color-mix(in srgb, var(--secondary) 5%, var(--bg-card, #fff));
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.link-tag:hover::before {
    background: var(--secondary);
    color: #fff;
}
@media (max-width: 768px) {
    .links-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 6px; }
    .link-tag { padding: 8px 10px; font-size: .82rem; }
}

/* Breadcrumb */
.breadcrumb { padding: 12px 0; font-size: .9rem; color: var(--text-muted); }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--secondary); }
.breadcrumb span { margin: 0 8px; }

/* SEO Text */
.seo-text { color: var(--text-muted); line-height: 1.8; }
.seo-text-preview { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.seo-text-full { display: none; }
.seo-text-full.show { display: block; }
.seo-toggle { color: var(--secondary); cursor: pointer; font-weight: 600; margin-top: 8px; display: inline-block; }

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary), #1a1a2e);
    color: white; border-radius: var(--radius); padding: 48px 32px;
    text-align: center; margin-bottom: 24px;
}
.cta-section h2 { color: white; font-size: 2rem; margin-bottom: 12px; }
.cta-section p { color: rgba(255,255,255,.8); font-size: 1.1rem; margin-bottom: 24px; }

/* Footer */
.site-footer {
    background: var(--primary); color: rgba(255,255,255,.7);
    padding: 48px 0 24px; margin-top: 48px;
}
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px; margin-bottom: 32px; }
.footer-col h3 { color: white; font-size: 1rem; margin-bottom: 16px; }
.footer-col a { display: block; color: rgba(255,255,255,.6); margin-bottom: 8px; font-size: .9rem; }
.footer-col a:hover { color: white; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 24px; text-align: center; font-size: .85rem; }

/* Trust Badges */
.trust-badges {
    background: var(--bg-alt); padding: 32px 0;
    border-top: 1px solid var(--border);
}
.trust-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 24px; text-align: center; }
.trust-item { padding: 16px; }
.trust-icon { font-size: 2rem; margin-bottom: 8px; }
.trust-title { font-weight: 600; margin-bottom: 4px; }
.trust-desc { font-size: .85rem; color: var(--text-muted); }

/* Age Gate */
.age-gate {
    display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,.85); z-index: 9999;
    align-items: center; justify-content: center;
}
.age-gate.active { display: flex; }
.age-gate-content {
    background: white; border-radius: var(--radius); padding: 48px 32px;
    text-align: center; max-width: 480px; width: 90%;
}
.age-gate-content h2 { font-size: 1.8rem; margin-bottom: 16px; }
.age-gate-content p { color: var(--text-muted); margin-bottom: 24px; }
.age-gate-buttons { display: flex; gap: 16px; justify-content: center; }

/* Forms */
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-weight: 600; margin-bottom: 6px; font-size: .95rem; }
.form-input, .form-select, .form-textarea {
    width: 100%; padding: 10px 14px;
    border: 2px solid var(--border); border-radius: var(--radius-sm);
    font-size: 1rem; outline: none; transition: border-color .2s;
    font-family: var(--font);
}
.form-input:focus, .form-select:focus, .form-textarea:focus { border-color: var(--secondary); }
.form-textarea { min-height: 120px; resize: vertical; }
.form-error { color: #dc2626; font-size: .85rem; margin-top: 4px; }

/* Filters */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.filter-btn {
    padding: 6px 16px; border-radius: 20px; border: 2px solid var(--border);
    background: white; cursor: pointer; font-size: .9rem; transition: all .2s;
}
.filter-btn:hover, .filter-btn.active { border-color: var(--secondary); background: var(--secondary); color: white; }

/* Pagination */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 24px; }
.pagination a, .pagination span {
    padding: 8px 14px; border-radius: var(--radius-sm);
    border: 1px solid var(--border); font-size: .9rem;
}
.pagination a:hover { background: var(--bg-alt); }
.pagination .active { background: var(--secondary); color: white; border-color: var(--secondary); }

/* Back to top */
.back-to-top {
    position: fixed; bottom: 24px; right: 24px;
    background: var(--secondary); color: white;
    width: 44px; height: 44px; border-radius: 50%;
    display: none; align-items: center; justify-content: center;
    cursor: pointer; box-shadow: var(--shadow-lg); z-index: 90;
    border: none; font-size: 1.2rem;
}
.back-to-top.visible { display: flex; }

/* Alert/Messages */
.alert { padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: 16px; font-size: .95rem; }
.alert-success { background: #dcfce7; color: #166534; border: 1px solid #86efac; }
.alert-error { background: #fef2f2; color: #991b1b; border: 1px solid #fca5a5; }
.alert-info { background: #dbeafe; color: #1e40af; border: 1px solid #93c5fd; }

/* Dashboard */
.dashboard-layout { display: grid; grid-template-columns: 240px 1fr; gap: 24px; padding: 24px 0; min-height: 70vh; }
.dashboard-sidebar { background: white; border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); height: fit-content; }
.dashboard-sidebar .sidebar-title { font-size: 1.1rem; margin-bottom: 16px; padding: 0 16px; }
.dashboard-sidebar a { display: block; padding: 10px 16px; border-radius: var(--radius-sm); margin-bottom: 4px; color: var(--text); font-size: .95rem; }
.dashboard-sidebar a:hover, .dashboard-sidebar a.active { background: var(--bg-alt); color: var(--secondary); opacity: 1; }
.dashboard-sidebar .sidebar-admin { display: block; }
.dashboard-content { min-width: 0; }

/* Mobile bottom nav */
.mobile-bottom-nav {
    display: none; position: fixed; bottom: 0; left: 0; right: 0;
    background: white; z-index: 150;
    border-top: 1px solid var(--border);
    box-shadow: 0 -4px 20px rgba(0,0,0,.08);
    padding: 6px 0 calc(6px + env(safe-area-inset-bottom, 0px));
}
.mobile-bottom-nav-inner {
    display: flex; justify-content: space-around; align-items: center;
    max-width: 500px; margin: 0 auto;
}
.mobile-bottom-nav a {
    display: flex; flex-direction: column; align-items: center; gap: 2px;
    padding: 6px 12px; color: var(--text-muted); font-size: .65rem;
    font-weight: 600; text-decoration: none; transition: all .2s;
    border-radius: 12px; position: relative;
}
.mobile-bottom-nav a svg { width: 24px; height: 24px; stroke-width: 1.8; }
.mobile-bottom-nav a.active { color: var(--secondary); }
.mobile-bottom-nav a.active::before {
    content: ''; position: absolute; top: -6px; left: 50%; transform: translateX(-50%);
    width: 20px; height: 3px; border-radius: 3px; background: var(--secondary);
}

@media (max-width: 768px) {
    .dashboard-layout { grid-template-columns: 1fr; padding-bottom: 80px; }
    .dashboard-sidebar { display: none; }
    .mobile-bottom-nav { display: block; }
    .site-footer { padding-bottom: calc(60px + env(safe-area-inset-bottom, 0px)); }
}

/* Scrolling Regions bar */
.scrolling-bar { overflow: hidden; white-space: nowrap; background: var(--bg-alt); padding: 12px 0; }
.scrolling-inner { display: inline-block; animation: scroll-left 30s linear infinite; }
.scrolling-inner a { display: inline-block; padding: 6px 16px; margin: 0 4px; background: white; border-radius: 20px; font-size: .85rem; color: var(--text); }
.scrolling-inner a:hover { background: var(--secondary); color: white; }
@keyframes scroll-left { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* Login form */
.login-card { max-width: 440px; margin: 60px auto; }

/* Responsive */
@media (max-width: 640px) {
    .page-header { padding: 32px 0 20px; }
    .page-header h1 { font-size: 1.8rem; }
    .section { padding: 16px; border-radius: 12px; }
    .profile-grid { gap: 10px; }
    .site-header nav { gap: 8px; }
}

/* Section header with button */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}
.section-header h2 { margin-bottom: 0; }

/* Map toggle button */
.btn-map-toggle {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 7px 16px;
    border: 2px solid var(--border);
    border-radius: 20px;
    background: white;
    font-size: .85rem;
    font-weight: 600;
    cursor: pointer;
    color: var(--text);
    transition: all .2s;
    white-space: nowrap;
}
.btn-map-toggle:hover {
    border-color: var(--secondary);
    color: var(--secondary);
}
.btn-map-toggle.active {
    background: var(--secondary);
    color: white;
    border-color: var(--secondary);
}

/* Map panel (hidden by default, shown on toggle) */
.map-panel {
    overflow: hidden;
    transition: all .3s ease;
    margin-bottom: 16px;
    border-radius: var(--radius-sm, 12px);
    background: linear-gradient(135deg, #f8f9fa 0%, #eef1f5 100%);
    padding: 12px 8px;
}
.map-panel:empty { display: none; padding: 0; background: none; }

/* Collapsible links grid (1 row by default) */
.links-grid-collapsed {
    max-height: 50px;
    overflow: hidden;
    position: relative;
    transition: max-height .3s ease;
}
.links-grid-collapsed::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 24px;
    background: linear-gradient(to bottom, transparent, var(--bg, #fff));
    pointer-events: none;
}
.links-grid-expanded {
    max-height: none !important;
    overflow: visible;
}
.links-grid-expanded::after {
    display: none;
}

/* Voir plus button */
.btn-voir-plus {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 24px;
    border: 2px solid var(--border);
    border-radius: 20px;
    background: white;
    font-size: .85rem;
    font-weight: 600;
    cursor: pointer;
    color: var(--text-muted);
    transition: all .2s;
}
.btn-voir-plus:hover {
    border-color: var(--secondary);
    color: var(--secondary);
}

/* ============ SIGNUP POPUP ============ */
.signup-overlay {
    display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,.6); z-index: 2000;
    align-items: center; justify-content: center; padding: 20px;
}
.signup-overlay.active { display: flex; }

.signup-popup {
    background: white; border-radius: var(--radius); max-width: 440px; width: 100%;
    position: relative; overflow: hidden;
    animation: signupSlideIn .3s ease;
}
@keyframes signupSlideIn {
    from { opacity: 0; transform: translateY(20px) scale(.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.signup-close {
    position: absolute; top: 12px; right: 12px; background: var(--bg-alt);
    border: none; width: 32px; height: 32px; border-radius: 50%; cursor: pointer;
    font-size: 1.2rem; display: flex; align-items: center; justify-content: center;
    z-index: 10; color: var(--text-muted); transition: all .2s;
}
.signup-close:hover { background: var(--border); color: var(--text); }

.signup-header {
    text-align: center; padding: 32px 32px 0;
}
.signup-header h2 {
    font-size: 1.6rem; font-weight: 700; margin-bottom: 8px; color: var(--text);
}
.signup-header p {
    color: var(--text-muted); font-size: .95rem; margin: 0;
}

.signup-body { padding: 24px 32px 32px; }

.signup-step { display: none; }
.signup-step.active { display: block; animation: signupFadeStep .3s ease; }
@keyframes signupFadeStep {
    from { opacity: 0; transform: translateX(12px); }
    to { opacity: 1; transform: translateX(0); }
}

.signup-email-display {
    display: flex; align-items: center; gap: 8px;
    background: var(--bg-alt); padding: 10px 14px; border-radius: var(--radius-sm);
    margin-bottom: 20px; font-size: .9rem; color: var(--text);
}
.signup-email-display span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.signup-email-edit {
    background: none; border: none; color: var(--secondary); cursor: pointer;
    font-size: .85rem; font-weight: 600; white-space: nowrap;
}
.signup-email-edit:hover { text-decoration: underline; }

.signup-divider {
    display: flex; align-items: center; gap: 12px;
    margin: 20px 0; color: var(--text-muted); font-size: .85rem;
}
.signup-divider::before, .signup-divider::after {
    content: ''; flex: 1; height: 1px; background: var(--border);
}

.signup-footer {
    text-align: center; padding: 0 32px 24px;
    color: var(--text-muted); font-size: .9rem;
}
.signup-footer a { font-weight: 600; }

.signup-alert {
    padding: 10px 14px; border-radius: var(--radius-sm); margin-bottom: 16px;
    font-size: .9rem; background: #fef2f2; color: #991b1b; border: 1px solid #fca5a5;
}

.signup-steps-indicator {
    display: flex; justify-content: center; gap: 8px; margin-bottom: 4px;
}
.signup-step-dot {
    width: 8px; height: 8px; border-radius: 50%; background: var(--border);
    transition: all .3s;
}
.signup-step-dot.active { background: var(--secondary); width: 24px; border-radius: 4px; }

/* Utility classes */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.mb-8 { margin-bottom: 32px; }
.mt-4 { margin-top: 16px; }
.mt-8 { margin-top: 32px; }
.p-4 { padding: 16px; }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.gap-2 { gap: 8px; }
.gap-4 { gap: 16px; }
.hidden { display: none; }
.bg-gradient { background: linear-gradient(to bottom, var(--bg-alt), var(--bg)); }

/* ============ INFO DUO (FAQ + Local Businesses side by side) ============ */
.info-duo {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: start;
}
.info-duo-col {
    background: var(--bg-card, #fff);
    border-radius: 16px;
    border: 1px solid var(--border);
    overflow: hidden;
}
.info-duo-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    margin: 0;
    padding: 16px 20px;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
    color: var(--text-color);
}
.info-duo-title svg { flex-shrink: 0; opacity: .7; }

/* Accordion */
.accordion { }
.accordion-item {
    border-bottom: 1px solid var(--border);
}
.accordion-item:last-child { border-bottom: none; }
.accordion-item summary { list-style: none; }
.accordion-item summary::-webkit-details-marker { display: none; }
.accordion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    cursor: pointer;
    font-weight: 600;
    font-size: .95rem;
    color: var(--text-color);
    transition: background .2s;
    gap: 8px;
    user-select: none;
    position: relative;
}
.accordion-header::after {
    content: '';
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--text-muted);
    border-bottom: 2px solid var(--text-muted);
    transform: rotate(45deg);
    transition: transform .25s ease;
    flex-shrink: 0;
    margin-left: auto;
}
.accordion-item[open] > .accordion-header::after {
    transform: rotate(-135deg);
}
.accordion-header:hover {
    background: var(--bg-alt);
}
.accordion-badge {
    font-size: .75rem;
    font-weight: 700;
    background: var(--secondary, #e00203);
    color: #fff;
    padding: 2px 8px;
    border-radius: 12px;
    margin-left: 4px;
    margin-right: 8px;
    flex-shrink: 0;
}
.accordion-body {
    padding: 4px 20px 16px;
    color: var(--text-muted);
    font-size: .9rem;
    line-height: 1.6;
    animation: accordionSlide .25s ease;
}
@keyframes accordionSlide {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Business items inside accordion */
.biz-item {
    padding: 10px 0;
    border-bottom: 1px solid color-mix(in srgb, var(--border) 50%, transparent);
}
.biz-item:last-child { border-bottom: none; }
.biz-name {
    font-weight: 600;
    font-size: .9rem;
    color: var(--text-color);
}
.biz-addr {
    font-size: .82rem;
    color: var(--text-muted);
    margin-top: 2px;
}
.biz-phone {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: .82rem;
    color: var(--secondary, #e00203);
    margin-top: 3px;
    font-weight: 500;
}
.biz-phone svg { opacity: .7; }
.biz-phone a { color: var(--secondary); text-decoration: none; font-weight: 500; }
.biz-phone a:hover { text-decoration: underline; opacity: 1; }
.biz-phone-hidden .biz-phone-cta { font-style: italic; color: var(--secondary); font-size: .82rem; }
.biz-phone-hidden .biz-phone-cta:hover { text-decoration: underline; opacity: 1; }

/* Hidden from users, visible to search engines */
.seo-only {
    position: absolute !important; width: 1px !important; height: 1px !important;
    padding: 0 !important; margin: -1px !important; overflow: hidden !important;
    clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important;
}

@media (max-width: 768px) {
    .info-duo {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}
