/* ====================================================
   SCENELINK — ROUND 3 PRODUCTION POLISH CSS
   ==================================================== */

/* ====================================================
   1. HOMEPAGE — Search Bar & Social Layer Spacing
   ==================================================== */

/* Reduce spacing below search bar (was 80px) */
.premium-search-section {
    padding-bottom: 32px !important;
}

/* Reduce spacing above social layer (was 80px) */
.social-layer-section {
    padding-top: 32px !important;
}

/* Better search bar alignment — constrain width and center */
.premium-search-wrapper {
    max-width: 720px !important;
    margin: 0 auto !important;
}

/* ====================================================
   2. NIGHTLIFE — Remove Filter Chip Click Animation
   ==================================================== */

/* Kill any bounce/scale/ripple animation on filter chips */
.nl-map-chip,
.nl-map-chip:active,
.nl-map-chip:focus,
.nl-map-chip.active {
    animation: none !important;
    transform: none !important;
    transition: background 0.2s, color 0.2s, border-color 0.2s !important;
}

/* Also kill filter-btn animations in lower list section */
.filter-btn,
.filter-btn:active,
.filter-btn:focus,
.filter-btn.active {
    animation: none !important;
    transform: none !important;
    transition: background 0.2s, color 0.2s, border-color 0.2s !important;
}

/* ====================================================
   3. NIGHTLIFE — Remove duplicate save from detail card
   ==================================================== */

/* Hide ALL save buttons in map venue card popup */
#nlVcSaveBtn,
#nlVcSaveBtn2,
.nl-vc-save-btn,
.nl-map-venue-card .nl-vc-action-btn.save-btn,
.nl-map-venue-card .nl-vc-action-btn.secondary.save-btn {
    display: none !important;
}

/* Hide the duplicate bottom save button on nightlife list cards (heart style) */
.nl-list-save-btn {
    display: none !important;
}

/* Hide the bookmark-style "Save" button injected by lists-system (keep only the heart on card image) */
.nightlife-venue-card .venue-actions .sl-list-btn.btn-share {
    display: none !important;
}

/* ====================================================
   4. NIGHTLIFE — Heart Icon (Save) on List Venue Cards
   ==================================================== */

/* Ensure the save heart button is properly positioned */
.nl-r2-save {
    position: absolute !important;
    top: 12px !important;
    right: 12px !important;
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    background: rgba(0,0,0,0.55) !important;
    backdrop-filter: blur(8px) !important;
    border: 1px solid rgba(255,255,255,0.12) !important;
    color: #fff !important;
    font-size: 15px !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.2s ease !important;
    z-index: 10 !important;
}

.nl-r2-save:hover {
    background: rgba(212,175,55,0.25) !important;
    border-color: rgba(212,175,55,0.4) !important;
    transform: scale(1.1) !important;
}

.nl-r2-save.saved {
    color: #D4AF37 !important;
    background: rgba(212,175,55,0.2) !important;
    border-color: rgba(212,175,55,0.35) !important;
}

/* ====================================================
   5. NIGHTLIFE MAP — Pulsing Pins (Explore Page Parity)
   ==================================================== */

/* Pin wrapper - clear leaflet defaults */
.nl-pin-wrap {
    background: transparent !important;
    border: none !important;
}

/* Pin base */
.nl-pin-r3 {
    position: relative;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1);
}

.nl-pin-r3:hover {
    transform: scale(1.15);
}

.nl-pin-r3.active {
    transform: scale(1.25);
    z-index: 999 !important;
}

/* Pin body — teardrop shape */
.nl-pin-r3-body {
    width: 36px;
    height: 36px;
    border-radius: 50% 50% 50% 4px;
    transform: rotate(-45deg);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0,0,0,0.5);
    position: relative;
    z-index: 2;
}

.nl-pin-r3-body i {
    transform: rotate(45deg);
    font-size: 14px;
    color: #fff;
}

/* Pin category colors */
.nl-pin-r3.cat-nightclub .nl-pin-r3-body { background: linear-gradient(135deg, #ef4444, #dc2626); }
.nl-pin-r3.cat-bar .nl-pin-r3-body { background: linear-gradient(135deg, #3b82f6, #2563eb); }
.nl-pin-r3.cat-lounge .nl-pin-r3-body,
.nl-pin-r3.cat-cocktail-lounge .nl-pin-r3-body { background: linear-gradient(135deg, #D4AF37, #b8962e); }
.nl-pin-r3.cat-rooftop .nl-pin-r3-body { background: linear-gradient(135deg, #10b981, #059669); }

/* Pulse ring animation — matching explore */
.nl-pin-r3-pulse {
    position: absolute;
    top: 0;
    left: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    z-index: 1;
    animation: nlPinPulseR3 2s ease-out infinite;
    pointer-events: none;
}

.nl-pin-r3.cat-nightclub .nl-pin-r3-pulse { background: rgba(239,68,68,0.3); }
.nl-pin-r3.cat-bar .nl-pin-r3-pulse { background: rgba(59,130,246,0.3); }
.nl-pin-r3.cat-lounge .nl-pin-r3-pulse,
.nl-pin-r3.cat-cocktail-lounge .nl-pin-r3-pulse { background: rgba(212,175,55,0.3); }
.nl-pin-r3.cat-rooftop .nl-pin-r3-pulse { background: rgba(16,185,129,0.3); }

@keyframes nlPinPulseR3 {
    0% { transform: scale(1); opacity: 0.7; }
    100% { transform: scale(2.5); opacity: 0; }
}

/* Bounce animation for pin selection */
@keyframes nlPinBounceR3 {
    0%, 100% { transform: translateY(0); }
    30% { transform: translateY(-12px); }
    60% { transform: translateY(-4px); }
}
.nl-pin-r3.bounce { animation: nlPinBounceR3 0.6s ease; }

/* ====================================================
   6. NIGHTLIFE MAP — Live Crowd Index Badge
   ==================================================== */

.nl-crowd-index-r3 {
    position: absolute;
    left: 14px;
    bottom: 80px;
    z-index: 1000;
    background: rgba(10,10,16,0.9);
    border: 1px solid rgba(239,68,68,0.25);
    border-radius: 14px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(12px);
}

.nl-crowd-pulse-r3 {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ef4444;
    animation: nlCrowdPulseR3 1.5s ease infinite;
    flex-shrink: 0;
}

@keyframes nlCrowdPulseR3 {
    0%, 100% { box-shadow: 0 0 0 0 rgba(239,68,68,0.5); }
    50% { box-shadow: 0 0 0 6px rgba(239,68,68,0); }
}

.nl-crowd-label-r3 {
    font-size: 11px;
    font-weight: 700;
    color: #ef4444;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.nl-crowd-count-r3 {
    font-size: 11px;
    color: rgba(255,255,255,0.5);
}

/* ====================================================
   7. NIGHTLIFE MAP — My Location Button
   ==================================================== */

.nl-map-controls {
    position: absolute;
    right: 14px;
    bottom: 80px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.nl-map-ctrl {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(10,10,16,0.9);
    border: 1px solid rgba(255,255,255,0.08);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 15px;
    backdrop-filter: blur(12px);
}

.nl-map-ctrl:hover {
    border-color: rgba(212,175,55,0.3);
    color: #D4AF37;
}

.nl-map-ctrl svg {
    width: 18px;
    height: 18px;
}

/* ====================================================
   8. NIGHTLIFE — Browse Venue List Button Higher
   ==================================================== */

/* Override bounce animation and position the button inside map hero */
.nl-scroll-to-list {
    position: absolute !important;
    bottom: 20px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    z-index: 1001 !important;
    padding: 0 !important;
    margin: 0 !important;
}

.nl-scroll-to-list-btn,
.nl-scroll-to-list-btn:hover,
.nl-scroll-to-list-btn:active {
    animation: none !important;
    padding: 12px 28px !important;
    background: rgba(212,175,55,0.95) !important;
    color: #0a0a0a !important;
    border: none !important;
    border-radius: 28px !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    cursor: pointer !important;
    box-shadow: 0 4px 20px rgba(212,175,55,0.4) !important;
    backdrop-filter: blur(12px) !important;
    transition: background 0.3s ease, box-shadow 0.3s ease !important;
    transform: none !important;
}

.nl-scroll-to-list-btn:hover {
    background: #D4AF37 !important;
    box-shadow: 0 6px 30px rgba(212,175,55,0.6) !important;
}

/* ====================================================
   9. NIGHTLIFE MAP — Venue Card Popup Polish
   ==================================================== */

/* Enhanced venue preview card on map */
.nl-map-venue-card {
    border-radius: 16px !important;
    overflow: hidden !important;
}

.nl-map-venue-card .nl-vc-actions-r2 {
    gap: 8px;
}

/* Hide any save/heart buttons from the map popup detail card */
.nl-map-venue-card .nl-vc-action-btn.save-btn {
    display: none !important;
}

/* ====================================================
   10. USER PROFILE — Enhanced Social Features
   ==================================================== */

/* Profile page messaging panel */
.profile-messaging-panel {
    background: rgba(18,18,24,0.95);
    border: 1px solid rgba(212,175,55,0.12);
    border-radius: 16px;
    overflow: hidden;
    margin-top: 24px;
}

.profile-messaging-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.profile-messaging-header h3 {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin: 0;
}

.profile-msg-compose-btn {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(212,175,55,0.15);
    border: 1px solid rgba(212,175,55,0.25);
    color: #D4AF37;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.profile-msg-compose-btn:hover {
    background: rgba(212,175,55,0.3);
}

/* Message thread items */
.profile-msg-thread {
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: background 0.2s;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

.profile-msg-thread:hover {
    background: rgba(255,255,255,0.03);
}

.profile-msg-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.profile-msg-body {
    flex: 1;
    min-width: 0;
}

.profile-msg-name {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 2px;
}

.profile-msg-preview {
    font-size: 12px;
    color: rgba(255,255,255,0.45);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.profile-msg-time {
    font-size: 11px;
    color: rgba(255,255,255,0.3);
    flex-shrink: 0;
}

.profile-msg-unread {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #D4AF37;
    flex-shrink: 0;
}

/* Friends list panel */
.profile-friends-panel {
    background: rgba(18,18,24,0.95);
    border: 1px solid rgba(212,175,55,0.12);
    border-radius: 16px;
    overflow: hidden;
    margin-top: 24px;
}

.profile-friends-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.profile-friends-header h3 {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin: 0;
}

.profile-friends-search {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

.profile-friends-search input {
    flex: 1;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    padding: 8px 14px;
    color: #fff;
    font-size: 13px;
}

.profile-friends-search input::placeholder {
    color: rgba(255,255,255,0.35);
}

/* Friend item row */
.profile-friend-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    transition: background 0.2s;
}

.profile-friend-row:hover {
    background: rgba(255,255,255,0.03);
}

.profile-friend-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid rgba(212,175,55,0.2);
}

.profile-friend-info {
    flex: 1;
    min-width: 0;
}

.profile-friend-name {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
}

.profile-friend-username {
    font-size: 12px;
    color: rgba(255,255,255,0.4);
}

.profile-friend-status {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: rgba(255,255,255,0.35);
}

.profile-friend-status .online-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #22c55e;
}

.profile-friend-actions {
    display: flex;
    gap: 6px;
}

.profile-friend-btn {
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.05);
    color: #fff;
}

.profile-friend-btn.primary {
    background: rgba(212,175,55,0.15);
    border-color: rgba(212,175,55,0.3);
    color: #D4AF37;
}

.profile-friend-btn:hover {
    background: rgba(212,175,55,0.25);
}

/* Social media links */
.profile-social-links {
    display: flex;
    gap: 10px;
    margin-top: 12px;
}

.profile-social-link {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.5);
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.profile-social-link:hover {
    color: #D4AF37;
    border-color: rgba(212,175,55,0.3);
    background: rgba(212,175,55,0.1);
}

/* Edit profile modal */
.edit-profile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
}

.edit-profile-overlay.active {
    display: flex;
}

.edit-profile-modal {
    background: #121218;
    border: 1px solid rgba(212,175,55,0.2);
    border-radius: 20px;
    width: 90%;
    max-width: 520px;
    max-height: 85vh;
    overflow-y: auto;
    padding: 32px;
}

.edit-profile-modal h2 {
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 24px;
}

.edit-profile-field {
    margin-bottom: 18px;
}

.edit-profile-field label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 6px;
}

.edit-profile-field input,
.edit-profile-field textarea {
    width: 100%;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    padding: 10px 14px;
    color: #fff;
    font-size: 14px;
    transition: border-color 0.2s;
}

.edit-profile-field input:focus,
.edit-profile-field textarea:focus {
    outline: none;
    border-color: rgba(212,175,55,0.4);
}

.edit-profile-field textarea {
    resize: vertical;
    min-height: 80px;
}

.edit-profile-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    justify-content: flex-end;
}

.edit-profile-actions button {
    padding: 10px 24px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.edit-profile-save-btn {
    background: #D4AF37;
    color: #0a0a0a;
    border: none;
}

.edit-profile-save-btn:hover {
    background: #e5c446;
}

.edit-profile-cancel-btn {
    background: transparent;
    color: rgba(255,255,255,0.6);
    border: 1px solid rgba(255,255,255,0.1);
}

.edit-profile-cancel-btn:hover {
    background: rgba(255,255,255,0.05);
}

/* DM Chat overlay */
.dm-chat-overlay {
    position: fixed;
    bottom: 80px;
    right: 24px;
    width: 360px;
    max-height: 480px;
    background: #121218;
    border: 1px solid rgba(212,175,55,0.2);
    border-radius: 16px;
    z-index: 9999;
    display: none;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0,0,0,0.6);
    overflow: hidden;
}

.dm-chat-overlay.active {
    display: flex;
}

.dm-chat-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    background: rgba(18,18,24,0.98);
}

.dm-chat-header img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.dm-chat-header-name {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    flex: 1;
}

.dm-chat-close {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: rgba(255,255,255,0.06);
    border: none;
    color: rgba(255,255,255,0.5);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.dm-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dm-msg {
    max-width: 80%;
    padding: 10px 14px;
    border-radius: 14px;
    font-size: 13px;
    line-height: 1.4;
}

.dm-msg.sent {
    align-self: flex-end;
    background: rgba(212,175,55,0.2);
    color: #fff;
    border-bottom-right-radius: 4px;
}

.dm-msg.received {
    align-self: flex-start;
    background: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.85);
    border-bottom-left-radius: 4px;
}

.dm-chat-input-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border-top: 1px solid rgba(255,255,255,0.06);
    background: rgba(18,18,24,0.98);
}

.dm-chat-input-row input {
    flex: 1;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 20px;
    padding: 8px 16px;
    color: #fff;
    font-size: 13px;
}

.dm-chat-input-row input::placeholder {
    color: rgba(255,255,255,0.3);
}

.dm-chat-send-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #D4AF37;
    border: none;
    color: #0a0a0a;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all 0.2s;
}

.dm-chat-send-btn:hover {
    background: #e5c446;
}

/* Profile tabs for activity/lists/friends */
.profile-content-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 24px;
    background: rgba(255,255,255,0.04);
    border-radius: 12px;
    padding: 4px;
}

.profile-content-tab {
    flex: 1;
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255,255,255,0.5);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.profile-content-tab:hover {
    color: rgba(255,255,255,0.7);
}

.profile-content-tab.active {
    background: rgba(212,175,55,0.15);
    color: #D4AF37;
}

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

.profile-tab-panel.active {
    display: block;
}

/* Activity feed items */
.profile-activity-item {
    display: flex;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

.profile-activity-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.profile-activity-icon.review { background: rgba(212,175,55,0.15); color: #D4AF37; }
.profile-activity-icon.visit { background: rgba(59,130,246,0.15); color: #3b82f6; }
.profile-activity-icon.list { background: rgba(16,185,129,0.15); color: #10b981; }
.profile-activity-icon.social { background: rgba(139,92,246,0.15); color: #8b5cf6; }

.profile-activity-text {
    flex: 1;
    font-size: 13px;
    color: rgba(255,255,255,0.7);
    line-height: 1.5;
}

.profile-activity-text strong {
    color: #fff;
    font-weight: 600;
}

.profile-activity-text .venue-link {
    color: #D4AF37;
    text-decoration: none;
}

.profile-activity-time {
    font-size: 11px;
    color: rgba(255,255,255,0.3);
    margin-top: 4px;
}