/* ============================================
   FAVORITES BUTTON
   ============================================ */
.favorite-btn {
    position: absolute;
    bottom: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    border: none;
    font-size: 18px;
    cursor: pointer;
    z-index: 15;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.favorite-btn:hover {
    transform: scale(1.1);
    background: rgba(0, 0, 0, 0.85);
}

.favorite-btn.active {
    animation: heartbeat 0.3s ease;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* ============================================
   LIGHTBOX GALLERY
   ============================================ */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
}

.lightbox-image {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 48px;
    cursor: pointer;
    line-height: 1;
}

.lightbox-prev, .lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: white;
    font-size: 48px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s;
}

.lightbox-prev:hover, .lightbox-next:hover {
    background: rgba(0, 0, 0, 0.8);
}

.lightbox-prev {
    left: -80px;
}

.lightbox-next {
    right: -80px;
}

.lightbox-counter {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 14px;
}

/* ============================================
   PREMIUM BADGES
   ============================================ */
.profile-card.premium {
    border: 2px solid var(--gold);
    box-shadow: 0 0 20px rgba(212, 165, 116, 0.3);
}

.premium-badge {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #000;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.4);
}

/* ============================================
   THEME TOGGLE
   ============================================ */
#themeToggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--gold);
    border: none;
    font-size: 24px;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.3s;
}

#themeToggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

/* ============================================
   LIGHT THEME
   ============================================ */
[data-theme="light"] {
    --black: #FFFFFF;
    --darker: #F5F5F5;
    --dark: #E0E0E0;
    --border: rgba(0, 0, 0, 0.1);
    --text: #000000;
    --text-muted: #666666;
}

[data-theme="light"] body {
    background: #FFFFFF;
    color: #000000;
}

[data-theme="light"] .header {
    background: #FFFFFF;
    border-bottom-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .search-input {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.1);
    color: #000;
}

[data-theme="light"] .search-input::placeholder {
    color: rgba(0, 0, 0, 0.5);
}

[data-theme="light"] .profile-card {
    background: #FFFFFF;
    border-color: rgba(0, 0, 0, 0.1);
}

/* ============================================
   MAP CONTAINER
   ============================================ */
.map-container {
    width: 100%;
    height: 500px;
    background: var(--darker);
    border-radius: 12px;
    margin: 40px 0;
    border: 1px solid var(--border);
}

/* ============================================
   NOTIFICATION PERMISSION
   ============================================ */
.notification-prompt {
    position: fixed;
    bottom: 80px;
    right: 20px;
    background: var(--darker);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid var(--border);
    max-width: 300px;
    z-index: 999;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.notification-prompt button {
    margin-top: 12px;
    padding: 8px 16px;
    background: var(--gold);
    color: var(--black);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
}

/* ============================================
   AFFILIATE BANNER
   ============================================ */
.affiliate-banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 40px;
    text-align: center;
    border-radius: 12px;
    margin: 40px 0;
    color: white;
}

.affiliate-code {
    background: rgba(255, 255, 255, 0.2);
    padding: 12px 20px;
    border-radius: 8px;
    font-family: monospace;
    font-size: 18px;
    margin: 20px 0;
    display: inline-block;
}

/* ============================================
   BANNER AD SLOTS
   ============================================ */
.banner-slot {
    margin: 40px 0;
    text-align: center;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.banner-slot img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* ============================================
   STATS DASHBOARD ENHANCEMENTS
   ============================================ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.stat-card {
    background: var(--darker);
    padding: 24px;
    border-radius: 12px;
    border: 1px solid var(--border);
    text-align: center;
}

.stat-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 8px;
}

.stat-label {
    font-size: 14px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ============================================
   FAVORITES FILTER
   ============================================ */
.favorites-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(255, 20, 147, 0.1);
    border: 1px solid rgba(255, 20, 147, 0.3);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.favorites-toggle:hover {
    background: rgba(255, 20, 147, 0.2);
    border-color: rgba(255, 20, 147, 0.5);
}

.favorites-toggle.active {
    background: #FF1493;
    color: white;
}

/* ============================================
   CITY BUTTONS
   ============================================ */
.city-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
    margin: 40px 0;
    padding: 0 20px;
}

.city-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px 30px;
    background: var(--darker);
    border: 1px solid var(--border);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    min-width: 140px;
}

.city-btn:hover {
    background: var(--dark);
    border-color: var(--gold);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(212, 165, 116, 0.2);
}

.city-btn.active {
    background: var(--gold);
    color: var(--black);
    border-color: var(--gold);
}

.city-icon {
    font-size: 32px;
}

.city-btn .city-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
}

.city-btn.active .city-name {
    color: var(--black);
}

.city-btn .city-count {
    font-size: 12px;
    color: var(--text-muted);
}

.city-btn.active .city-count {
    color: rgba(0, 0, 0, 0.7);
}

.map-toggle-btn {
    background: linear-gradient(135deg, rgba(212, 165, 116, 0.15) 0%, rgba(212, 165, 116, 0.05) 100%);
    border: 2px solid var(--gold);
}

.map-toggle-btn:hover {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
    transform: translateY(-2px) scale(1.05);
}

.map-toggle-btn .city-name {
    color: var(--gold);
}

.map-toggle-btn:hover .city-name {
    color: var(--black);
}

/* ============================================
   SEX MAP MODAL
   ============================================ */
.sex-map-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease-out;
}

.sex-map-modal.active {
    display: flex;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.sex-map-modal-content {
    width: 95vw;
    height: 90vh;
    background: var(--darker);
    border-radius: 20px;
    overflow: hidden;
    border: 2px solid var(--gold);
    box-shadow: 0 20px 60px rgba(212, 165, 116, 0.3);
    display: flex;
    flex-direction: column;
    animation: slideUp 0.4s ease-out;
}

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

.sex-map-modal-header {
    padding: 24px 32px;
    background: linear-gradient(135deg, rgba(212, 165, 116, 0.1) 0%, rgba(212, 165, 116, 0.05) 100%);
    border-bottom: 1px solid var(--border);
    position: relative;
}

.sex-map-modal-title {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 8px 0;
    background: linear-gradient(135deg, #D4A574 0%, #FFD700 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.sex-map-modal-subtitle {
    font-size: 14px;
    color: var(--text-muted);
    margin: 0;
}

.sex-map-modal-close {
    position: absolute;
    top: 20px;
    right: 24px;
    background: none;
    border: none;
    color: var(--text);
    font-size: 48px;
    cursor: pointer;
    line-height: 1;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
}

.sex-map-modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(90deg);
}

.sex-map-container {
    flex: 1;
    width: 100%;
    height: 100%;
}

/* Custom marker popup styling */
.leaflet-popup-content-wrapper {
    background: var(--darker);
    color: var(--text);
    border-radius: 12px;
    border: 1px solid var(--border);
    padding: 0;
}

.leaflet-popup-content {
    margin: 0;
    min-width: 200px;
}

.map-popup-profile {
    padding: 16px;
}

.map-popup-name {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--gold);
}

.map-popup-info {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.map-popup-link {
    display: inline-block;
    margin-top: 12px;
    padding: 8px 16px;
    background: var(--gold);
    color: var(--black);
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.3s;
}

.map-popup-link:hover {
    background: var(--gold-light);
    transform: translateY(-1px);
}

.leaflet-popup-tip {
    background: var(--darker);
}

/* Dark theme for Leaflet controls */
.leaflet-control-zoom a {
    background: var(--darker) !important;
    color: var(--text) !important;
    border-color: var(--border) !important;
}

.leaflet-control-zoom a:hover {
    background: var(--dark) !important;
}

/* Profile map button removed - was covering important info */
