/* ======================================
   AllIndia.rent — Premium Dark Theme CSS
   ====================================== */

/* ===== CSS VARIABLES ===== */
:root {
    /* Colors */
    --bg-primary: #0a0a1a;
    --bg-secondary: #12122a;
    --bg-card: #1a1a35;
    --bg-card-hover: #222250;
    --bg-glass: rgba(18, 18, 42, 0.92);
    --bg-glass-light: rgba(26, 26, 53, 0.95);
    
    --accent: #8b5cf6;
    --accent-hover: #7c3aed;
    --accent-glow: rgba(139, 92, 246, 0.3);
    --accent-soft: rgba(139, 92, 246, 0.15);
    
    --orange: #f59e0b;
    --orange-soft: rgba(245, 158, 11, 0.15);
    --green: #10b981;
    --green-soft: rgba(16, 185, 129, 0.15);
    --red: #ef4444;
    --red-soft: rgba(239, 68, 68, 0.15);
    --blue: #3b82f6;
    
    --text-primary: #f1f1f7;
    --text-secondary: #a0a0c0;
    --text-muted: #6b6b8a;
    
    --border: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.15);
    
    /* Spacing */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-full: 9999px;
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.4);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.5);
    --shadow-glow: 0 0 20px var(--accent-glow);
    
    /* Transitions */
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --duration: 200ms;
    
    /* Z-index layers */
    --z-map: 1;
    --z-ui: 100;
    --z-sidebar: 200;
    --z-header: 300;
    --z-filter: 400;
    --z-modal: 500;
    --z-toast: 600;
}

/* ===== RESET ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    overflow: hidden;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===== MAP ===== */
#map {
    position: absolute;
    inset: 0;
    z-index: var(--z-map);
}

/* Map tiles render natively — Stadia Alidade Smooth Dark provides
   built-in dark theme with full street/building/label detail */

.leaflet-control-attribution {
    background: var(--bg-glass) !important;
    color: var(--text-muted) !important;
    font-size: 10px !important;
    border-radius: var(--radius-sm) 0 0 0 !important;
}

.leaflet-control-attribution a {
    color: var(--text-secondary) !important;
}

.leaflet-control-zoom {
    border: none !important;
    box-shadow: var(--shadow-md) !important;
}

.leaflet-control-zoom a {
    background: var(--bg-glass-light) !important;
    color: var(--text-primary) !important;
    border: 1px solid var(--border) !important;
    width: 36px !important;
    height: 36px !important;
    line-height: 36px !important;
    font-size: 16px !important;
    backdrop-filter: blur(12px);
}

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

/* ===== CLUSTER MARKERS ===== */
.marker-cluster {
    background: transparent !important;
}

.marker-cluster div {
    background: var(--bg-glass-light) !important;
    color: var(--text-primary) !important;
    border: 2px solid var(--accent) !important;
    border-radius: var(--radius-full) !important;
    font-family: 'Inter', sans-serif !important;
    font-weight: 600 !important;
    font-size: 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    backdrop-filter: blur(8px) !important;
    box-shadow: 0 0 12px var(--accent-glow) !important;
    width: 40px !important;
    height: 40px !important;
    margin-left: -20px !important;
    margin-top: -20px !important;
}

.marker-cluster-large div {
    border-color: var(--orange) !important;
    box-shadow: 0 0 16px rgba(245, 158, 11, 0.3) !important;
}

/* Custom pin marker */
.rent-marker {
    background: var(--bg-glass-light);
    border: 1.5px solid var(--accent);
    border-radius: var(--radius-sm);
    padding: 4px 8px;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    backdrop-filter: blur(8px);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
    display: flex;
    align-items: center;
    gap: 4px;
}

.rent-marker:hover {
    transform: scale(1.08);
    box-shadow: var(--shadow-glow);
    z-index: 1000 !important;
}

.rent-marker .bhk-tag {
    background: var(--accent);
    color: white;
    padding: 1px 5px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
}

.rent-marker .rent-tag {
    color: var(--orange);
    font-weight: 700;
}

/* ===== TOP BAR ===== */
#top-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-header);
    padding: 12px 16px 0;
    pointer-events: none;
}

.top-bar-inner {
    display: flex;
    gap: 10px;
    max-width: 640px;
    margin: 0 auto;
    pointer-events: auto;
}

.search-container {
    flex: 1;
    position: relative;
}

.search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: var(--text-muted);
    pointer-events: none;
}

#search-input {
    width: 100%;
    padding: 12px 16px 12px 42px;
    background: var(--bg-glass-light);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    outline: none;
    backdrop-filter: blur(16px);
    transition: border-color var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}

#search-input::placeholder {
    color: var(--text-muted);
}

#search-input:focus {
    border-color: var(--accent);
    box-shadow: var(--shadow-glow);
}

.search-results {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: var(--bg-glass-light);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    backdrop-filter: blur(16px);
    box-shadow: var(--shadow-lg);
    max-height: 280px;
    overflow-y: auto;
}

.search-results.hidden {
    display: none;
}

.search-result-item {
    padding: 10px 16px;
    cursor: pointer;
    font-size: 13px;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border);
    transition: background var(--duration) var(--ease);
}

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

.search-result-item:hover {
    background: var(--accent-soft);
    color: var(--text-primary);
}

.search-result-item strong {
    color: var(--text-primary);
}

.btn-filter {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    background: var(--bg-glass-light);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    backdrop-filter: blur(16px);
    transition: all var(--duration) var(--ease);
    white-space: nowrap;
}

.btn-filter:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-glow);
}

.btn-filter.active {
    background: var(--accent);
    border-color: var(--accent);
}

/* ===== STATS BAR ===== */
.stats-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 8px 16px;
    margin-top: 8px;
    font-size: 12px;
    color: var(--text-muted);
    pointer-events: auto;
}

.stats-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--accent);
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.stats-highlight {
    color: var(--accent);
    font-weight: 600;
}

/* ===== CITY SELECTOR ===== */
.city-selector {
    position: fixed;
    bottom: 52px;
    left: 0;
    right: 0;
    z-index: var(--z-ui);
    display: flex;
    gap: 6px;
    padding: 8px 16px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.city-selector::-webkit-scrollbar {
    display: none;
}

.city-btn {
    flex-shrink: 0;
    padding: 7px 14px;
    background: var(--bg-glass-light);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    backdrop-filter: blur(12px);
    transition: all var(--duration) var(--ease);
    white-space: nowrap;
}

.city-btn:hover {
    border-color: var(--accent);
    color: var(--text-primary);
}

.city-btn.active {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
    font-weight: 600;
    box-shadow: var(--shadow-glow);
}

/* ===== SIDEBAR ACTIONS ===== */
.sidebar-actions {
    position: fixed;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    z-index: var(--z-sidebar);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sidebar-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 10px;
    background: var(--bg-glass-light);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 500;
    cursor: pointer;
    backdrop-filter: blur(12px);
    transition: all var(--duration) var(--ease);
    min-width: 64px;
}

.sidebar-btn:hover {
    border-color: var(--accent);
    color: var(--text-primary);
    box-shadow: var(--shadow-glow);
    transform: scale(1.02);
}

.sidebar-btn svg {
    color: var(--text-secondary);
}

.sidebar-btn:hover svg {
    color: var(--accent);
}

/* ===== FILTER PANEL ===== */
.filter-panel {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 340px;
    max-width: 100vw;
    z-index: var(--z-filter);
    background: var(--bg-glass-light);
    border-left: 1px solid var(--border);
    backdrop-filter: blur(20px);
    box-shadow: -4px 0 30px rgba(0,0,0,0.4);
    transform: translateX(100%);
    transition: transform 300ms var(--ease);
    overflow-y: auto;
}

.filter-panel.active {
    transform: translateX(0);
}

.filter-panel.hidden {
    display: block;
    transform: translateX(100%);
}

.filter-panel-inner {
    padding: 20px;
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.filter-header h3 {
    font-size: 18px;
    font-weight: 700;
}

.btn-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 20px;
    cursor: pointer;
    transition: all var(--duration) var(--ease);
}

.btn-icon:hover {
    background: var(--red-soft);
    border-color: var(--red);
    color: var(--red);
}

.filter-group {
    margin-bottom: 20px;
}

.filter-group > label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.chip {
    padding: 6px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--duration) var(--ease);
}

.chip:hover {
    border-color: var(--accent);
    color: var(--text-primary);
}

.chip.active {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
    font-weight: 600;
}

.filter-range {
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-range input {
    flex: 1;
    padding: 8px 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    outline: none;
    transition: border-color var(--duration) var(--ease);
}

.filter-range input:focus {
    border-color: var(--accent);
}

.filter-range input::placeholder {
    color: var(--text-muted);
}

.range-divider {
    color: var(--text-muted);
    font-weight: 300;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-secondary);
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--accent);
}

.filter-actions {
    display: flex;
    gap: 10px;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

/* ===== BUTTONS ===== */
.btn-primary {
    padding: 10px 24px;
    background: var(--accent);
    border: none;
    border-radius: var(--radius-full);
    color: white;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--duration) var(--ease);
    box-shadow: 0 4px 14px var(--accent-glow);
}

.btn-primary:hover {
    background: var(--accent-hover);
    box-shadow: var(--shadow-glow);
    transform: translateY(-1px);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary.btn-large {
    width: 100%;
    padding: 14px 24px;
    font-size: 16px;
    margin-top: 8px;
}

.btn-secondary {
    padding: 10px 24px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--duration) var(--ease);
}

.btn-secondary:hover {
    border-color: var(--text-secondary);
    color: var(--text-primary);
}

.btn-danger {
    padding: 10px 24px;
    background: var(--red);
    border: none;
    border-radius: var(--radius-full);
    color: white;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--duration) var(--ease);
}

.btn-danger:hover {
    background: #dc2626;
    transform: translateY(-1px);
}

.btn-small {
    padding: 6px 14px;
    font-size: 12px;
}

/* ===== MODALS ===== */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: var(--z-modal);
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    padding: 16px;
    animation: fadeIn 200ms var(--ease);
}

.modal-overlay.active {
    display: flex;
}

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

.modal {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 28px;
    max-width: 480px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    animation: slideUp 300ms var(--ease);
}

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

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.modal-header h2 {
    font-size: 20px;
    font-weight: 700;
}

.modal-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 20px;
    cursor: pointer;
    transition: all var(--duration) var(--ease);
}

.modal-close:hover {
    background: var(--red-soft);
    border-color: var(--red);
    color: var(--red);
}

.modal-desc {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.5;
}

/* ===== WELCOME MODAL ===== */
.welcome-modal {
    max-width: 520px;
}

.welcome-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.welcome-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 12px var(--accent-glow);
    animation: pulse-dot 2s infinite;
}

.welcome-header h1 {
    font-size: 28px;
    font-weight: 800;
    color: var(--accent);
}

.welcome-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
}

.welcome-divider {
    width: 4px;
    height: 24px;
    background: var(--accent);
    border-radius: 2px;
    margin-bottom: 8px;
}

.welcome-section-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 12px;
}

.welcome-features {
    list-style: none;
    margin-bottom: 20px;
}

.welcome-features li {
    display: flex;
    gap: 10px;
    padding: 8px 0;
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.feature-icon {
    font-size: 16px;
    flex-shrink: 0;
    width: 24px;
    text-align: center;
}

.welcome-features li strong {
    color: var(--text-primary);
}

/* ===== FORMS ===== */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
}

.form-group {
    margin-bottom: 12px;
}

.form-group label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 10px 12px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    outline: none;
    transition: border-color var(--duration) var(--ease);
}

.form-group input:focus,
.form-group select:focus {
    border-color: var(--accent);
}

.form-group input::placeholder {
    color: var(--text-muted);
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%236b6b8a' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
}

.form-group select option {
    background: var(--bg-card);
    color: var(--text-primary);
}

.form-checkbox {
    margin-top: 28px;
}

/* ===== DETAIL MODAL ===== */
.detail-modal {
    max-width: 400px;
}

.detail-content-grid {
    display: grid;
    gap: 8px;
    margin-bottom: 16px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    font-size: 13px;
}

.detail-row .label {
    color: var(--text-muted);
    font-weight: 500;
}

.detail-row .value {
    color: var(--text-primary);
    font-weight: 600;
}

.detail-rent {
    font-size: 28px;
    font-weight: 800;
    color: var(--orange);
    margin-bottom: 4px;
}

.detail-bhk {
    display: inline-block;
    background: var(--accent);
    color: white;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 16px;
}

.detail-note {
    font-size: 13px;
    color: var(--text-secondary);
    font-style: italic;
    padding: 10px;
    background: var(--accent-soft);
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--accent);
    margin-bottom: 16px;
    line-height: 1.5;
}

.detail-ratings {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.detail-rating-item {
    flex: 1;
    text-align: center;
    padding: 10px;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
}

.detail-rating-item .rating-label {
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.detail-rating-item .rating-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--orange);
}

.detail-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.detail-time {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 12px;
}

/* ===== STAR RATING ===== */
.star-rating {
    display: flex;
    gap: 4px;
}

.star-rating .star {
    font-size: 28px;
    color: var(--text-muted);
    cursor: pointer;
    transition: color var(--duration) var(--ease), transform var(--duration) var(--ease);
}

.star-rating .star:hover,
.star-rating .star.active {
    color: var(--orange);
    transform: scale(1.15);
}

/* ===== TOAST ===== */
.toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    z-index: var(--z-toast);
    padding: 12px 24px;
    background: var(--bg-glass-light);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 500;
    backdrop-filter: blur(16px);
    box-shadow: var(--shadow-lg);
    animation: toastSlide 300ms var(--ease);
    white-space: nowrap;
}

.toast.hidden {
    display: none;
}

.toast.success {
    border-color: var(--green);
    color: var(--green);
}

.toast.error {
    border-color: var(--red);
    color: var(--red);
}

@keyframes toastSlide {
    from { transform: translateX(-50%) translateY(20px); opacity: 0; }
    to { transform: translateX(-50%) translateY(0); opacity: 1; }
}

/* ===== BOTTOM BAR ===== */
#bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: var(--z-ui);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 10px 16px;
    background: var(--bg-glass);
    border-top: 1px solid var(--border);
    backdrop-filter: blur(16px);
    font-size: 12px;
}

.bottom-credit {
    color: var(--text-muted);
}

.bottom-link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    padding: 4px 12px;
    background: var(--accent-soft);
    border-radius: var(--radius-full);
    transition: all var(--duration) var(--ease);
}

.bottom-link:hover {
    background: var(--accent);
    color: white;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .top-bar-inner {
        max-width: 100%;
    }
    
    #search-input {
        font-size: 13px;
        padding: 10px 14px 10px 38px;
    }
    
    .btn-filter {
        padding: 10px 14px;
        font-size: 13px;
    }

    .sidebar-actions {
        right: 8px;
        gap: 4px;
    }

    .sidebar-btn {
        padding: 8px;
        min-width: 54px;
        font-size: 9px;
    }
    
    .filter-panel {
        width: 100%;
    }
    
    .modal {
        padding: 20px;
        margin: 8px;
        max-height: 90vh;
    }

    .welcome-header h1 {
        font-size: 24px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .city-selector {
        bottom: 46px;
        padding: 6px 12px;
    }

    .city-btn {
        padding: 6px 12px;
        font-size: 11px;
    }
}

@media (max-width: 380px) {
    .welcome-features li {
        font-size: 12px;
    }
    
    .stats-bar {
        font-size: 11px;
        gap: 6px;
    }
}

/* ===== LOADING SPINNER ===== */
.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 600ms linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}
/* ===== CHAT / COMMENTS UI ===== */
.comments-modal {
    max-width: 480px;
}

.comments-list {
    max-height: 400px;
    overflow-y: auto;
    margin-bottom: 20px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: rgba(0,0,0,0.2);
    border-radius: var(--radius-md);
}

.comment-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    border-bottom-left-radius: 2px;
    padding: 12px 14px;
    align-self: flex-start;
    max-width: 85%;
    position: relative;
    animation: slideUp 300ms var(--ease);
    box-shadow: var(--shadow-sm);
}

.comment-item.own-comment {
    align-self: flex-end;
    background: var(--accent-glow);
    border-color: var(--accent);
    border-bottom-left-radius: var(--radius-md);
    border-bottom-right-radius: 2px;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 4px;
}

.comment-author {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--accent);
}

.own-comment .comment-author {
    color: var(--text-primary);
}

.comment-time {
    font-size: 10px;
    color: var(--text-muted);
}

.comment-body {
    font-size: 14px;
    color: var(--text-primary);
    line-height: 1.5;
    word-break: break-word;
}

.comment-form {
    border-top: 1px solid var(--border);
    padding-top: 20px;
}

.comment-input-row {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.comment-author-input {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    padding: 10px 14px;
    font-size: 13px;
    outline: none;
    transition: 200ms;
}

.comment-author-input:focus {
    border-color: var(--accent);
    background: var(--bg-card);
}

.comment-textarea-wrap {
    position: relative;
}

.comment-textarea-wrap textarea {
    width: 100%;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    padding: 12px;
    padding-bottom: 28px;
    font-family: inherit;
    font-size: 14px;
    resize: none;
    outline: none;
    transition: all 200ms;
    min-height: 80px;
}

.comment-textarea-wrap textarea:focus {
    border-color: var(--accent);
    background: var(--bg-card);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.char-count {
    position: absolute;
    right: 10px;
    bottom: 8px;
    font-size: 10px;
    color: var(--text-muted);
    font-weight: 600;
}

/* ===== REPORT FORM IMPROVEMENTS ===== */
.report-other-group {
    margin-top: 16px;
    padding: 12px;
    background: var(--red-soft);
    border-radius: var(--radius-md);
    border: 1px dashed var(--red);
    animation: slideDown 300ms var(--ease);
}

.report-other-group.hidden {
    display: none;
}

.report-other-group label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--red) !important;
    font-weight: 700 !important;
    margin-bottom: 10px;
}

.char-hint {
    font-size: 10px;
    text-transform: none;
    letter-spacing: 0;
    opacity: 0.8;
}

.report-other-group textarea {
    width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--red);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    padding: 12px;
    font-family: inherit;
    font-size: 14px;
    resize: vertical;
    min-height: 100px;
    outline: none;
    transition: 200ms;
}

.report-other-group textarea:focus {
    border-color: var(--red);
    box-shadow: 0 0 12px var(--red-soft);
}

/* ===== SEEKER PIN STYLES ===== */
.sidebar-btn-seeker.active {
    background: var(--blue) !important;
    border-color: var(--blue) !important;
    color: white !important;
}

.seeker-marker {
    background: var(--bg-glass-light);
    border: 2px solid var(--blue);
    border-radius: var(--radius-md);
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-primary);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: 200ms;
}

.seeker-marker:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.6);
}

.seeker-tag {
    background: var(--blue);
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 800;
}

/* Hidden Utility */
.hidden {
    display: none !important;
}
