/**
 * Global Noticeboard - Location Map Modal Styles
 * Zone-based location selection for filtering notices
 */

/* ========== ZONE SEARCH RESULTS (Legacy) ========== */
.zone-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 1000;
    max-height: 350px;
    overflow-y: auto;
    margin-top: 2px;
}

.zone-results-header {
    padding: 12px 16px;
    border-bottom: 1px solid #eee;
    background: #f8f9fa;
}

.zone-interpretation {
    font-size: 14px;
    color: #666;
    font-style: italic;
}

.zone-results-list {
    max-height: 200px;
    overflow-y: auto;
}

.zone-result-item {
    padding: 14px 16px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.zone-result-item:hover {
    background: #f8f9fa;
}

.zone-result-item.calculated {
    background: linear-gradient(90deg, #e3f2fd 0%, #ffffff 100%);
    border-left: 3px solid #2196f3;
}

.zone-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.zone-location {
    font-weight: 600;
    color: #333;
    font-size: 15px;
}

.zone-badge {
    background: linear-gradient(135deg, #2196f3, #1976d2);
    color: white;
    padding: 4px 10px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(33, 150, 243, 0.3);
}

.zone-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #666;
    margin-top: 4px;
}

.zone-coords {
    color: #999;
    font-family: monospace;
}

.zone-calculated {
    color: #2196f3;
    font-weight: 500;
}

.zone-examples {
    padding: 12px 16px;
    border-top: 1px solid #eee;
    background: #fafafa;
}

.examples-label {
    font-size: 12px;
    color: #666;
    margin-bottom: 8px;
    font-weight: 500;
}

.example-items {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.example-item {
    background: white;
    border: 1px solid #ddd;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
}

.example-item:hover {
    background: #e3f2fd;
    border-color: #2196f3;
    color: #1976d2;
    transform: translateY(-1px);
}

.location-search-wrapper {
    position: relative;
}

.zone-search-input {
    width: 280px;
    border-radius: 20px;
    border: 2px solid #ddd;
    padding: 10px 16px;
    font-size: 14px;
    transition: all 0.2s;
    background: white;
}

.zone-search-input:focus {
    outline: none;
    border-color: #2196f3;
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
}

.zone-search-input::placeholder {
    color: #999;
    font-style: italic;
}

/* ========== LOCATION MAP MODAL ========== */
.location-map-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

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

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

.location-map-modal {
    background: #FFFFFF;
    border-radius: 16px;
    width: 1120px;
    max-width: 1320px;
    height: 742px;
    display: flex;
    flex-direction: column;
    padding: 32px;
    gap: 32px;
    box-shadow: 0px 4px 50px rgba(0, 0, 0, 0.15);
    animation: slideUp 0.3s ease;
    overflow: hidden;
    flex: none;
    flex-grow: 0;
}

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

.location-map-modal-header {
    padding: 0;
    background: transparent;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.location-map-modal-title {
    font-size: 24px;
    font-weight: 600;
    color: #1a1a1a;
    display: flex;
    align-items: center;
    gap: 0;
    letter-spacing: -0.3px;
    font-family: var(--font-semibold);
}

.location-map-modal-title::before {
    content: none;
}

.location-map-modal-close {
    background: transparent;
    border: none;
    font-size: 22px;
    color: #1a1a1a;
    cursor: pointer;
    transition: opacity 0.2s;
    padding: 4px;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    font-weight: 300;
}

.location-map-modal-close:hover {
    background: #f3f4f6;
    opacity: 0.8;
    transform: none;
}

.location-map-modal-content {
    flex: 1;
    display: flex;
    flex-direction: row;
    gap: 24px;
    overflow: hidden;
    min-height: 0;
}

/* ========== SIDEBAR LAYOUT ========== */
.location-map-sidebar {
    width: 285px;
    flex-shrink: 0;
    background: #ffffff;
    border-right: none;
    overflow-y: auto;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.location-map-sidebar::-webkit-scrollbar {
    width: 8px;
}

.location-map-sidebar::-webkit-scrollbar-track {
    background: #f1f3f5;
}

.location-map-sidebar::-webkit-scrollbar-thumb {
    background: #cbd5e0;
    border-radius: 4px;
}

.location-map-sidebar::-webkit-scrollbar-thumb:hover {
    background: #a0aec0;
}

.location-map-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #f3f4f6;
    border-radius: 12px;
}

/* ========== STEP INDICATOR (hidden per Figma) ========== */
.location-map-steps {
    display: none;
}

.location-map-steps > div {
    display: flex;
    gap: 8px;
    align-items: center;
}

.location-step {
    flex: 1;
    text-align: center;
    transition: all 0.3s ease;
}

.location-step .step-number {
    width: 32px;
    height: 32px;
    background: #e2e8f0;
    color: #94a3b8;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 6px;
    transition: all 0.3s ease;
}

.location-step.active .step-number {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.3);
}

.location-step .step-title {
    font-size: 12px;
    font-weight: 600;
    color: #94a3b8;
    transition: color 0.3s ease;
}

.location-step.active .step-title {
    color: #10b981;
}

.location-step .step-subtitle {
    font-size: 9px;
    color: #cbd5e0;
    margin-top: 2px;
}

.step-arrow {
    color: #cbd5e0;
    font-size: 20px;
    margin-top: -20px;
}

/* ========== CITY SELECTOR ========== */
.location-map-city-selector {
    padding: 0;
    background: transparent;
    border: none;
}

.city-selector-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.location-map-city-selector label {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    color: #16a34a;
}

.city-reset-btn {
    display: none;
    font-size: 11px !important;
    padding: 6px 12px !important;
    border-radius: 6px !important;
    background: #fee2e2 !important;
    color: #dc2626 !important;
    border: 1px solid #fecaca !important;
    cursor: pointer;
    transition: all 0.2s ease;
}

.city-reset-btn:hover {
    background: #fecaca !important;
    transform: translateY(-1px);
}

.city-input-wrapper {
    position: relative;
}

.location-map-city-input {
    width: 100%;
    padding: 10px 36px 10px 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s;
    background: #ffffff;
    font-weight: 400;
    color: #1f2937;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}

.location-map-city-input:focus {
    outline: none;
    border-color: #10b981;
    background: white;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1), 0 4px 12px rgba(16, 185, 129, 0.15);
}

.location-map-city-input::placeholder {
    color: #9ca3af;
}

.city-input-icon {
    display: none;
}

/* ========== RECENT LOCATIONS ========== */
.recent-locations-container {
    margin-top: 16px;
}

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

.recent-locations-title {
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
}

.recent-locations-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.global-recent-location-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    background: linear-gradient(135deg, #ffffff 0%, #f9fafb 100%);
    border: 1px solid #d1fae5;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 1px 3px rgba(16, 185, 129, 0.1);
}

.global-recent-location-item:hover {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    border-color: #10b981;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
    transform: translateY(-2px);
}

.global-recent-location-item:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.15);
}

.recent-location-info {
    flex: 1;
}

.recent-location-name {
    font-weight: 600;
    color: #065f46;
    font-size: 14px;
    margin-bottom: 3px;
    display: block;
}

.recent-location-coords {
    font-size: 11px;
    color: #059669;
    font-family: monospace;
}

.recent-location-icon {
    font-size: 20px;
    opacity: 0.8;
    transition: transform 0.3s;
}

.global-recent-location-item:hover .recent-location-icon {
    transform: scale(1.2);
}

/* ========== COMPACT MODE TOGGLE ========== */
.location-mode-toggle-compact {
    margin-top: 20px;
}

.mode-toggle-label {
    font-size: 14px;
    font-weight: 700;
    color: #16a34a;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
}

.toggle-switch {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    padding: 0;
    gap: 24px;
    width: 100%;
    height: 46px;
}

.toggle-option {
    flex: 1;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    height: 46px;
    background: #F7F7F7;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 600;
    line-height: 26px;
    color: #1A1A1A;
}

.toggle-option .toggle-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    transition: filter 0.2s ease;
}

.toggle-option .toggle-text {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 13px;
    line-height: 26px;
    letter-spacing: 0.01em;
}

.toggle-option:hover {
    background: #E8E8E8;
    color: #1A1A1A;
    transform: none;
}

.toggle-option.active {
    background: #4B4B4B;
    color: #FFFFFF;
    box-shadow: none;
    transform: none;
}

.toggle-option.active .toggle-icon {
    filter: none;
    color: #FFFFFF;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .location-mode-toggle-compact {
        padding: 8px 12px;
    }
    
    .toggle-label {
        font-size: 12px;
    }
    
    .toggle-option {
        padding: 8px 14px;
        font-size: 12px;
        height: 40px;
        gap: 6px;
    }
    
    .toggle-option .toggle-icon {
        width: 14px;
        height: 14px;
    }
}

/* Old mode toggle styles (keep for reference, can be removed later) */
.location-mode-toggle-section {
    padding: 16px 24px;
    background: white;
    border-bottom: 2px solid #e9ecef;
}

.location-mode-toggle {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    background: #f8f9fa;
    padding: 6px;
    border-radius: 12px;
}

.mode-toggle-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 16px 12px;
    background: transparent;
    border: 2px solid transparent;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.mode-toggle-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(118, 75, 162, 0.05));
    opacity: 0;
    transition: opacity 0.3s;
}

.mode-toggle-btn:hover::before {
    opacity: 1;
}

.mode-toggle-btn:hover {
    border-color: #dee2e6;
    transform: translateY(-2px);
}

.mode-toggle-btn.active {
    background: white;
    border-color: #10b981;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.15);
}

.mode-toggle-btn.active::before {
    opacity: 0;
}

.mode-icon {
    font-size: 32px;
    filter: grayscale(100%);
    transition: filter 0.3s;
}

.mode-toggle-btn.active .mode-icon {
    filter: grayscale(0%);
}

.mode-label {
    font-size: 15px;
    font-weight: 700;
    color: #495057;
    position: relative;
    z-index: 1;
}

.mode-toggle-btn.active .mode-label {
    color: #10b981;
}

.mode-desc {
    font-size: 12px;
    color: #6c757d;
    position: relative;
    z-index: 1;
}

.mode-toggle-btn.active .mode-desc {
    color: #059669;
}

/* ========== MAP CONTAINER ========== */
.location-map-container {
    flex: 1;
    position: relative;
    overflow: hidden;
    background: #f3f4f6;
    border-radius: 12px;
    border: none;
    box-shadow: none;
    padding: 0;
    width: 100%;
    max-width: 739px;
}

#zone_map_global {
    width: 100%;
    height: 100%;
    border-radius: 10px;
    overflow: hidden;
}

/* Leaflet container styling */
#zone_map_global .leaflet-container {
    border-radius: 10px;
}

.leaflet-container {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.map-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.98);
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 20px;
    z-index: 1000;
}

.map-loading-overlay.active {
    display: flex;
}

.map-loading-spinner {
    width: 56px;
    height: 56px;
    border: 5px solid #f1f3f5;
    border-top-color: #10b981;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

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

.map-loading-text {
    font-size: 16px;
    color: #495057;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.map-instruction {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.97);
    padding: 10px 20px;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.12);
    font-size: 13px;
    color: #1f2937;
    font-weight: 500;
    z-index: 500;
    white-space: nowrap;
    border: 1px solid #e5e7eb;
    display: none;
    animation: fadeInDown 0.3s ease;
}

.map-instruction.active {
    display: block;
}

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

/* ========== PIN MODE ========== */
.map-pin-info {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    padding: 12px 20px;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    z-index: 600;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideUpPin 0.3s ease;
}

.map-pin-info.show {
    display: flex !important;
}

/* Sidebar status + CTA */
.sidebar-status-cta {
    margin-top: 18px;
    padding: 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.04);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sidebar-status-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 700;
    color: #1f2937;
    background: linear-gradient(135deg, #eef2ff 0%, #f0f9ff 100%);
    border: 1px solid #e0e7ff;
    border-radius: 999px;
}

.sidebar-validation-hint {
    font-size: 12px;
    color: #dc2626;
    background: #fef2f2;
    border: 1px solid #fee2e2;
    padding: 8px 10px;
    border-radius: 8px;
}

.sidebar-primary-cta {
    width: 100%;
    padding: 13px 14px;
    border: none;
    border-radius: 8px;
    background: #16a34a;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: none;
    transition: background 0.2s ease, opacity 0.15s ease;
    margin-top: auto;
}

.sidebar-primary-cta:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.sidebar-primary-cta:not(:disabled):hover {
    background: #15803d;
    transform: none;
    box-shadow: none;
}

/* ========== ZONE SELECTION LABELS ========== */
.zone-section-header {
    margin-top: 20px;
}

.zone-section-label {
    font-size: 14px;
    font-weight: 700;
    color: #16a34a;
    display: block;
    margin-bottom: 2px;
}

/* ========== LOCATION SUMMARY CARD (Figma) ========== */
.location-summary-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 20px;
    gap: 10px;
    width: 100%;
    background: #E5F1E4;
    border-radius: 3px;
    margin-top: 12px;
    margin-bottom: 24px;
}

.location-summary-top {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 0;
    width: 100%;
}

.location-summary-city {
    font-family: 'Poppins', sans-serif;
    font-style: normal;
    font-weight: 600;
    font-size: 16px;
    line-height: 24px;
    color: #1A1A1A;
}

.location-summary-close {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0;
    width: 16px;
    height: 16px;
    background: none;
    border: none;
    cursor: pointer;
    flex-shrink: 0;
}

.location-summary-close svg {
    width: 16px;
    height: 16px;
}

.location-summary-close:hover {
    opacity: 0.7;
}

.location-summary-bottom {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 0;
    gap: 16px;
    width: 100%;
}

.location-summary-detail {
    font-family: var(--font-medium);
    font-style: normal;
    font-weight: 500;
    font-size: 13px;
    line-height: 18px;
    color: #529B50;
    white-space: nowrap;
}

/* ========== PIN POINT SECTION ========== */
.pin-section-header {
    margin: 0 0 20px;
    font-size: 20px;
    color: #529B50;
    font-family: var(--font-semibold);
    font-weight: 600;
}

.pin-required-badge {
    font-size: 10px;
    color: #dc2626;
    font-weight: 500;
}

.pin-section-container {
    background: #f8f9fa;
    padding: 16px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.pin-methods-title {
    font-size: 12px;
    color: #666;
    margin-bottom: 14px;
    font-weight: 600;
}

.pin-method-item {
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid #e2e8f0;
}

.pin-method-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.pin-method-label {
    font-size: 12px;
    color: #263238;
    font-weight: bold;
}

.pin-method-desc {
    font-size: 13px;
    color: #000;
    font-family: var(--font-regular);
    line-height: 18px;
    font-weight: 400;
}

.pin-street-input {
    font-size: 13px !important;
    padding: 10px 14px !important;
    border-radius: 6px !important;
}

.pin-street-dropdown {
    display: none;
    position: relative;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    margin-top: 6px;
    max-height: 200px;
    overflow-y: auto;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* PIN COORDINATES DISPLAY — now merged into .location-summary-card */

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

.pin-coords-icon {
    font-size: 24px;
}

.pin-coords-info {
    flex: 1;
}

.pin-coords-title {
    font-size: 14px;
    font-weight: 700;
    color: #1e40af;
}

.pin-coords-subtitle {
    font-size: 11px;
    color: #2563eb;
    margin-top: 2px;
}

.pin-coords-values {
    font-size: 12px;
    color: #1e3a8a;
    background: rgba(255, 255, 255, 0.7);
    padding: 10px;
    border-radius: 6px;
    font-family: monospace;
}

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

.pin-info-content {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pin-info-icon {
    font-size: 20px;
}

.pin-info-text {
    font-size: 14px;
    font-weight: 600;
    color: #495057;
}

.pin-info-confirm {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 10px 20px;
    gap: 8px;
    width: 100%;
    max-width: 285px;
    height: 46px;
    background: #529B50;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    line-height: 26px;
    border-radius: 3px;
    flex: none;
    order: 0;
    flex-grow: 1;
    

}

.pin-info-confirm:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

/* Custom pin marker style */
.custom-pin-marker {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    cursor: move;
}

.pin-marker-inner {
    font-size: 32px;
    line-height: 1;
    animation: pinDrop 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

@keyframes pinDrop {
    0% {
        transform: translateY(-100px) scale(0.5);
        opacity: 0;
    }
    50% {
        transform: translateY(-50px) scale(0.7);
    }
    70% {
        transform: translateY(5px) scale(1.1);
    }
    85% {
        transform: translateY(-3px) scale(0.95);
    }
    100% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

/* ========== ZONE SELECTION ========== */
.location-map-zones-section {
    padding: 0;
    border-top: none;
    background: transparent;
    overflow: visible;
}

.location-map-zones-header {
    display: block;
    margin-bottom: 8px;
}

.location-map-zones-label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: 20px;
    color: #529B50;
    font-family: 'Poppins-SemiBold';
    font-weight: 600;
}

.location-map-zones-label::before {
    content: none;
}

.zones-hint {
    font-size: 13px;
    color: #000000;
    font-style: normal;
    display: block;
    margin-bottom: 10px;
    font-family: var(--font-regular);
}

.location-map-zones-grid {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0;
    gap: 24px;
    width: 100%;
}

.location-map-zones-grid .zone-row {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    padding: 0;
    gap: 24px;
    width: 100%;
}

.location-zone-btn {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 10px 20px;
    gap: 8px;
    height: 46px;
    background: #F7F7F7;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-family: var(--font-semibold);
    font-size: 13px;
    font-weight: 600;
    line-height: 26px;
    color: #1A1A1A;
    transition: all 0.2s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: none;
    flex: 1;
    flex-grow: 1;
}

.location-zone-btn::before {
    content: none;
}

.location-zone-btn:hover:not(:disabled) {
    background: #E8E8E8;
    transform: none;
    box-shadow: none;
}

.location-zone-btn.active {
    background: #4B4B4B;
    color: #FFFFFF;
    box-shadow: none;
    transform: none;
}

.location-zone-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    background: #F7F7F7;
}

.zone-spacer {
    flex: 2;
    height: 46px;
    visibility: hidden;
}

.zone-btn-text {
    position: relative;
    z-index: 1;
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 600;
    line-height: 26px;
    letter-spacing: 0;
}

/* ========== RESPONSIVE — LOCATION MAP MODAL ========== */

/* Large desktop (>1320px) — no change, max-width already capped */

/* Desktop/small laptop (≤1200px) */
@media (max-width: 1200px) {
    .location-map-modal {
        width: 96%;
        max-width: 1000px;
        height: 85vh;
        padding: 24px;
        gap: 24px;
    }
    .location-map-sidebar {
        width: 260px;
    }
    .location-map-container {
        width: auto;
    }
}

/* Tablet landscape (≤1024px) */
@media (max-width: 1024px) {
    .location-map-modal {
        width: 96%;
        max-width: none;
        height: 85vh;
        padding: 20px;
        gap: 20px;
    }
    .location-map-sidebar {
        width: 240px;
        gap: 16px;
    }
    .location-map-modal-content {
        gap: 16px;
    }
    .location-map-modal-title {
        font-size: 20px;
    }
    .toggle-switch {
        gap: 16px;
    }
    .toggle-option {
        padding: 8px 14px;
        font-size: 12px;
        height: 42px;
    }
    .location-zone-btn {
        padding: 8px 14px;
        font-size: 12px;
        height: 42px;
    }
    .location-map-zones-grid {
        gap: 16px;
    }
    .location-map-zones-grid .zone-row {
        gap: 16px;
    }
    .pin-info-confirm {
        width: 100%;
    }
}

/* Tablet portrait (≤820px) — stack sidebar above map */
@media (max-width: 820px) {
    /* Zone Search (Legacy) */
    .zone-search-input {
        width: 220px;
        font-size: 13px;
        padding: 8px 14px;
    }
    .zone-search-results {
        max-height: 280px;
    }
    .example-items {
        flex-direction: column;
        gap: 6px;
    }
    .example-item {
        text-align: center;
    }

    /* Mode Toggle (legacy) */
    .location-mode-toggle-section {
        padding: 12px 16px;
    }
    .mode-toggle-btn {
        padding: 12px 8px;
        gap: 4px;
    }
    .mode-icon {
        font-size: 24px;
    }
    .mode-label {
        font-size: 13px;
    }
    .mode-desc {
        font-size: 11px;
    }

    /* Pin Info bar on map */
    .map-pin-info {
        bottom: 12px;
        padding: 10px 16px;
        flex-direction: column;
        gap: 8px;
    }
    .pin-info-confirm {
        width: 100%;
        padding: 10px;
        height: 42px;
        font-size: 13px;
    }

    /* Location Map Modal — vertical stack */
    .location-map-modal {
        width: 98%;
        height: 92vh;
        max-width: none;
        padding: 16px;
        gap: 12px;
        border-radius: 12px;
    }
    .location-map-modal-header {
        padding: 0;
    }
    .location-map-modal-title {
        font-size: 17px;
    }
    .location-map-modal-close {
        width: 28px;
        height: 28px;
        font-size: 20px;
    }
    .location-map-modal-content {
        flex-direction: column;
        gap: 12px;
    }
    .location-map-sidebar {
        width: 100%;
        max-height: 45vh;
        border-right: none;
        border-bottom: 1px solid #e5e7eb;
        padding-bottom: 12px;
        gap: 12px;
    }
    .location-map-main {
        flex: 1;
        min-height: 250px;
    }

    /* City selector */
    .city-selector-header {
        margin-bottom: 8px;
    }
    .location-map-city-input {
        padding: 8px 32px 8px 12px;
        font-size: 13px;
    }

    /* Mode toggle compact */
    .location-mode-toggle-compact {
        margin-top: 12px;
    }
    .toggle-switch {
        gap: 12px;
        height: 40px;
    }
    .toggle-option {
        padding: 8px 12px;
        font-size: 12px;
        height: 40px;
        gap: 6px;
    }
    .toggle-option .toggle-icon,
    .toggle-option svg {
        width: 14px;
        height: 14px;
    }

    /* Zone grid */
    .location-map-zones-grid {
        gap: 10px;
    }
    .location-map-zones-grid .zone-row {
        gap: 10px;
    }
    .location-zone-btn {
        padding: 8px 10px;
        font-size: 12px;
        height: 38px;
    }
    .zone-btn-text {
        font-size: 12px;
    }
    .location-map-zones-label {
        font-size: 16px;
    }
    .zones-hint {
        font-size: 12px;
    }

    /* Pin section */
    .pin-section-header {
        font-size: 16px;
        margin: 0 0 12px;
    }
    .pin-method-desc {
        font-size: 12px;
    }
    .location-summary-card {
        padding: 12px 14px;
        gap: 8px;
        margin-top: 8px;
        margin-bottom: 16px;
    }
    .location-summary-city {
        font-size: 14px;
    }

    /* Map instructions */
    .map-instruction {
        font-size: 12px;
        padding: 8px 14px;
        bottom: 12px;
    }

    /* Recent locations */
    .recent-locations-container {
        margin-top: 10px;
    }
    .global-recent-location-item {
        padding: 10px 12px;
    }
    .recent-location-name {
        font-size: 13px;
    }
}

/* Mobile (≤576px) */
@media (max-width: 576px) {
    .location-map-modal {
        width: 100%;
        height: 100vh;
        height: 100dvh;
        border-radius: 0;
        padding: 12px;
        gap: 10px;
    }
    .location-map-modal-title {
        font-size: 15px;
    }
    .location-map-modal-content {
        gap: 10px;
    }
    .location-map-sidebar {
        max-height: 40vh;
        gap: 10px;
        padding-bottom: 10px;
    }
    .location-map-main {
        min-height: 200px;
    }

    /* City input */
    .location-map-city-input {
        padding: 8px 28px 8px 10px;
        font-size: 13px;
    }
    .location-map-sidebar label {
        font-size: 16px;
    }

    /* Toggle */
    .toggle-switch {
        gap: 8px;
        height: 38px;
    }
    .toggle-option {
        padding: 6px 10px;
        font-size: 12px;
        height: 38px;
        gap: 4px;
    }
    .mode-toggle-label {
        font-size: 14px;
        margin-bottom: 6px;
    }

    /* Zone grid */
    .location-map-zones-label {
        font-size: 15px;
    }
    .location-zone-btn {
        padding: 6px 8px;
        font-size: 11px;
        height: 36px;
    }
    .zone-btn-text {
        font-size: 11px;
    }
    .location-map-zones-grid {
        gap: 8px;
    }
    .location-map-zones-grid .zone-row {
        gap: 8px;
    }

    /* Pin */
    .pin-section-header {
        font-size: 15px;
        margin: 0 0 10px;
    }
    .pin-info-confirm {
        height: 40px;
        font-size: 12px;
    }
    .location-summary-card {
        padding: 10px 12px;
    }
    .location-summary-city {
        font-size: 13px;
    }

    /* Map instruction */
    .map-instruction {
        font-size: 11px;
        padding: 6px 12px;
        bottom: 8px;
        white-space: normal;
        text-align: center;
        max-width: 90%;
    }

    /* Recent locations */
    .global-recent-location-item {
        padding: 8px 10px;
    }
    .recent-location-name {
        font-size: 12px;
    }
    .recent-location-coords {
        font-size: 10px;
    }
}

/* Small mobile (≤400px) */
@media (max-width: 400px) {
    .location-map-modal {
        padding: 10px;
        gap: 8px;
    }
    .location-map-modal-title {
        font-size: 14px;
    }
    .location-map-sidebar {
        max-height: 38vh;
        gap: 8px;
    }
    .location-map-main {
        min-height: 180px;
    }
    .toggle-option {
        padding: 6px 8px;
        font-size: 11px;
        height: 36px;
    }
    .location-zone-btn {
        padding: 5px 6px;
        font-size: 10px;
        height: 34px;
    }
    .zone-btn-text {
        font-size: 10px;
    }
    .pin-info-confirm {
        height: 38px;
        font-size: 12px;
    }
    .city-reset-btn {
        font-size: 10px !important;
        padding: 4px 8px !important;
    }
}

button {
    font-family: 'Poppins-Regular';
}

/* ========== ZONE INFO MODAL STYLES ========== */
@keyframes modalSlideIn {
   from {
      transform: translateY(-30px);
      opacity: 0;
   }
   to {
      transform: translateY(0);
      opacity: 1;
   }
}

.location-preferences-wrapper {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 24px;
  justify-content: space-between;
  margin-bottom: 32px;
}

.location-preference-select {
   font-weight: 500;
   padding-right: 35px; /* Make room for clear button when visible */
}

.location-preference-select:focus {
   outline: 1px solid #3b82f6;
   outline-offset: 1px;
}

.info-icon-btn:hover {
   background: #eff6ff !important;
   transform: scale(1.1);
}

.zone-info-modal-close:hover {
   background: rgba(255, 255, 255, 0.3) !important;
   transform: rotate(90deg);
}

.zone-info-got-it:hover {
   transform: translateY(-2px);
   box-shadow: 0 4px 12px rgba(82, 155, 80, 0.4) !important;
 
}

.zone-info-modal-overlay {
   display: none !important;
   position: fixed;
   top: 0;
   left: 0;
   right: 0;
   bottom: 0;
   background: rgba(0, 0, 0, 0.5);
   z-index: 9999;
   align-items: center;
   justify-content: center;
}

.zone-info-modal-overlay.active {
   display: flex !important;
}

/* Location Preference Label */
.location-preference-label {
  font-size: 13px;
  font-weight: 600;
  color: #000;
  display: inline-block;
  font-family: var(--font-semibold);
  line-height: 20px;
  letter-spacing: 0px;
  margin-right: 10px;
}

/* Preference Select Container */
.preference-select-container {
   position: relative;
   display: inline-flex;
   align-items: center;
}

.location-preference-select {
  border-radius: 3px;
  padding: 10px 20px;
  font-size: 13px;
  border: 1px solid #7F7F7F40;
  background: white;
    background-position-x: 0%;
    background-position-y: 0%;
    background-repeat: repeat;
    background-image: none;
  cursor: pointer;
  min-width: 180px;
  font-family: "Poppins-Medium";
  font-weight: 500;
  line-height: 18px;
  letter-spacing: 0px;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23333' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
}

/* Info Icon Button */
.info-icon-btn {
   margin-left: 6px;
   background: transparent;
   border: none;
   cursor: pointer;
   font-size: 16px;
   color: #3b82f6;
   padding: 4px 8px;
   border-radius: 50%;
   transition: all 0.2s;
}

/* Zone Info Modal */
.zone-info-modal {
   background: #FFFFFF;
   border-radius: 16px;
   width: 800px;
   max-width: 1320px;
   max-height: 90vh;
   overflow-y: auto;
   padding: 32px;
   box-shadow: 0px 4px 50px 0px #00000026;
   animation: modalSlideIn 0.3s ease;
   display: flex;
   flex-direction: column;
   gap: 24px;
}

.zone-info-modal-topbar {
   display: flex;
   align-items: center;
   justify-content: space-between;
}

.zone-info-modal-title {
   margin: 0;
   color: #111827;
   font-size: 22px;
   font-weight: 700;
   font-family: var(--font-semibold, 'Poppins-SemiBold', sans-serif);
}

.zone-info-modal-close {
   background: transparent;
   border: none;
   color: #6b7280;
   font-size: 26px;
   cursor: pointer;
   border-radius: 50%;
   width: 36px;
   height: 36px;
   display: flex;
   align-items: center;
   justify-content: center;
   transition: all 0.2s;
   line-height: 1;
}

.zone-info-modal-intro {
   font-size: 14px;
   color: #374151;
   line-height: 1.6;
   margin: 0;
}

.zone-info-modal-cards {
   display: flex;
   gap: 32px;
}

.zone-info-card {
   flex: 1;
   background: #F9FAFB;
   border-radius: 12px;
   padding: 24px;
   display: flex;
   flex-direction: column;
   justify-content: space-between;
   gap: 20px;
}

.zone-info-card-body {
   display: flex;
   flex-direction: column;
   gap: 12px;
}

.zone-info-card-title {
   margin: 0;
   font-size: 16px;
   font-weight: 700;
   color: #111827;
   line-height: 1.4;
   font-family: var(--font-semibold, 'Poppins-SemiBold', sans-serif);
}

.zone-info-card-desc {
   font-size: 13px;
   color: #4B5563;
   line-height: 1.6;
   margin: 0;
}

.zone-info-card-btn {
   width: 100%;
   padding: 12px 20px;
   background: #529B50;
   color: #fff;
   border: none;
   border-radius: 8px;
   font-size: 14px;
   font-weight: 600;
   cursor: pointer;
   transition: background 0.2s, transform 0.15s;
   font-family: var(--font-semibold, 'Poppins-SemiBold', sans-serif);
}

.zone-info-card-btn:hover {
   background: #3f7a3e;
   transform: translateY(-1px);
}

@media (max-width: 600px) {
   .zone-info-modal {
      width: 95%;
      padding: 20px;
      gap: 16px;
   }
   .zone-info-modal-cards {
      flex-direction: column;
      gap: 16px;
   }
}

.zone-info-method-steps {
   background: white;
   border-radius: 8px;
   padding: 12px;
   margin-bottom: 12px;
}

.zone-info-method-step {
   display: flex;
   align-items: center;
   gap: 10px;
   padding: 8px 0;
   font-size: 13px;
   color: #334155;
   line-height: 1.4;
}

.zone-info-method-step:not(:last-child) {
   border-bottom: 1px solid #f1f5f9;
}

.step-number-small {
   display: inline-flex;
   align-items: center;
   justify-content: center;
   width: 20px;
   height: 20px;
   background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
   color: white;
   border-radius: 50%;
   font-size: 11px;
   font-weight: 700;
   flex-shrink: 0;
}

.zone-info-method-box-green .step-number-small {
   background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.zone-info-method-best {
   background: #dbeafe;
   padding: 10px 14px;
   border-radius: 6px;
   font-size: 12px;
   color: #1e40af;
   line-height: 1.4;
}

.zone-info-method-best-green {
   background: #d1fae5;
   color: #166534;
}

.zone-info-steps-box {
   background: #f0f9ff;
   border-left: 4px solid #3b82f6;
   padding: 16px;
   border-radius: 6px;
   margin-bottom: 20px;
}

.zone-info-steps-title {
   font-weight: 700;
   font-size: 14px;
   color: #1e40af;
   margin-bottom: 10px;
}

.zone-info-steps-list {
   margin: 0;
   padding-left: 20px;
   font-size: 13px;
   color: #1e3a8a;
   line-height: 1.8;
}

.zone-info-tip-box {
   background: #fef3c7;
   border-left: 4px solid #f59e0b;
   padding: 14px;
   border-radius: 6px;
   margin-bottom: 20px;
}

.zone-info-tip-content {
   font-size: 12px;
   color: #92400e;
   line-height: 1.5;
}

.zone-info-got-it {
    background: #529B50;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 3px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
    max-width: 308px;
    height: 46px;
}
/* =====================================================
   DARK MODE — Global Noticeboard Wall
   ===================================================== */

/* Dropdowns (Location, Sort By, Radius) */
.dark_mode_theme .location-preference-select {
  background-color: var(--dark-secondary);
  color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23ffffff' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  border-color: rgba(255,255,255,0.2);
}
.dark_mode_theme .location-preference-select:focus {
  outline-color: #6ba06a;
}
.dark_mode_theme .location-preference-select option {
  background-color: var(--dark-secondary);
  color: #fff;
}

/* Labels */
.dark_mode_theme .location-preference-label {
  color: #e0e0e0;
}

/* Page title */
.dark_mode_theme .notices-page .page-title {
  color: #f0f0f0;
}

/* Results count */
.dark_mode_theme .results-count {
  color: #7ecf7c;
}
.dark_mode_theme .results-count-label,
.dark_mode_theme #radius_text {
  color: #aaa;
}

/* Sub-filter bar */
.dark_mode_theme span.sub-filter-label {
  color: #ccc;
}
.dark_mode_theme button.sub-filter-btn {
  background: var(--dark-secondary);
  color: #ccc;
  border-color: rgba(255,255,255,0.15);
}
.dark_mode_theme button.sub-filter-btn:hover {
  background: #333;
  color: #fff;
}
.dark_mode_theme button.sub-filter-btn.sub-filter-btn--active {
  background: #e0e0e0;
  border-color: #e0e0e0;
  color: #1a1a1a;
}

/* Active location / filter badge */
.dark_mode_theme .selection_info_btn_holder {
  background: #2a3e2a;
  color: #7ecf7c;
}
.dark_mode_theme .filter-badge-remove {
  color: #7ecf7c;
}
.dark_mode_theme .filter-badge-remove:hover {
  color: #a5e0a3;
}

/* Loading state */
.dark_mode_theme .loading-container .loading-text {
  color: #ccc;
}

/* Empty state */
.dark_mode_theme .empty-notices-state h3 {
  color: #e0e0e0;
}
.dark_mode_theme .empty-notices-state p {
  color: #999;
}

/* End of results */
.dark_mode_theme .end-of-results {
  color: #888;
}

/* ── Location Map Modal ── */
.dark_mode_theme .location-map-modal {
  background: var(--dark-primary);
}
.dark_mode_theme .location-map-modal-title {
  color: #f0f0f0;
}
.dark_mode_theme .location-map-modal-close {
  color: #ccc;
}
.dark_mode_theme .location-map-modal-close:hover {
  background: rgba(255,255,255,0.08);
}
.dark_mode_theme .location-map-sidebar {
  background: var(--dark-primary);
}
.dark_mode_theme .location-map-sidebar label,
.dark_mode_theme .location-map-city-selector label {
  color: #7ecf7c;
}
.dark_mode_theme .location-map-city-input {
  background: var(--dark-secondary);
  color: #f0f0f0;
  border-color: rgba(255,255,255,0.2);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23aaaaaa' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
}
.dark_mode_theme .location-map-city-input::placeholder {
  color: #777;
}
.dark_mode_theme .location-map-city-input:focus {
  border-color: #6ba06a;
  background: #2a2a2a;
  box-shadow: 0 0 0 4px rgba(107,160,106,0.15);
}
.dark_mode_theme .location-map-main {
  background: #1a1a1a;
}

/* Zone area labels & hints */
.dark_mode_theme .location-map-zones-label {
  color: #7ecf7c;
}
.dark_mode_theme .zones-hint {
  color: #aaa;
}

/* Zone buttons */
.dark_mode_theme .location-zone-btn {
  background: #2e2e2e;
  color: #e0e0e0;
}
.dark_mode_theme .location-zone-btn:hover:not(:disabled) {
  background: #3a3a3a;
}
.dark_mode_theme .location-zone-btn.active {
  background: #d0d0d0;
  color: #1a1a1a;
}
.dark_mode_theme .location-zone-btn:disabled {
  background: #2a2a2a;
  color: #555;
}

/* Mode toggle (Areas / Pin) */
.dark_mode_theme .toggle-option {
  background: #2e2e2e;
  color: #e0e0e0;
}
.dark_mode_theme .toggle-option:hover {
  background: #3a3a3a;
}
.dark_mode_theme .toggle-option.active {
  background: #d0d0d0;
  color: #1a1a1a;
}
.dark_mode_theme .mode-toggle-label {
  color: #7ecf7c;
}

/* Location summary card */
.dark_mode_theme .location-summary-card {
  background: #2a3e2a;
}
.dark_mode_theme .location-summary-city {
  color: #f0f0f0;
}
.dark_mode_theme .location-summary-detail {
  color: #7ecf7c;
}
#btn_clear_summary {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 18px;
  font-weight: 600;
  color: #529B50;
  line-height: 1;
  padding: 0;
}
.dark_mode_theme #btn_clear_summary {
  color: #7ecf7c;
}

/* Sidebar status / CTA box */
.dark_mode_theme .sidebar-status-cta {
  background: #2a2a2a;
  border-color: rgba(255,255,255,0.1);
}
.dark_mode_theme .sidebar-status-pill {
  background: #1e2e3e;
  border-color: rgba(255,255,255,0.1);
  color: #e0e0e0;
}
.dark_mode_theme .sidebar-validation-hint {
  background: #3e1e1e;
  border-color: rgba(255,100,100,0.3);
  color: #fca5a5;
}

/* Recent locations */
.dark_mode_theme .recent-locations-title {
  color: #ccc;
}
.dark_mode_theme .global-recent-location-item {
  background: #2a3e2a;
  border-color: rgba(126,207,124,0.2);
}
.dark_mode_theme .global-recent-location-item:hover {
  background: #2e4a2e;
  border-color: #7ecf7c;
}
.dark_mode_theme .recent-location-name {
  color: #a5e0a3;
}
.dark_mode_theme .recent-location-coords {
  color: #7ecf7c;
}

/* City reset button */
.dark_mode_theme .city-reset-btn {
  background: #3e1e1e !important;
  color: #fca5a5 !important;
  border-color: rgba(255,100,100,0.3) !important;
}
.dark_mode_theme .city-reset-btn:hover {
  background: #4a2020 !important;
}

/* Map loading overlay */
.dark_mode_theme .map-loading-overlay {
  background: rgba(34,34,34,0.97);
}
.dark_mode_theme .map-loading-text {
  color: #ccc;
}

/* Map instruction chip */
.dark_mode_theme .map-instruction {
  background: rgba(34,34,34,0.95);
  color: #e0e0e0;
  border-color: rgba(255,255,255,0.1);
}

/* Pin confirm button — already green, fine as-is */

/* Pin section header & desc */
.dark_mode_theme .pin-section-header {
  color: #7ecf7c;
}
.dark_mode_theme .pin-method-desc {
  color: #ccc;
}

/* ── Zone Info Modal ── */
.dark_mode_theme .zone-info-modal-overlay {
  background: rgba(0,0,0,0.7);
}
.dark_mode_theme .zone-info-modal {
  background: var(--dark-primary);
}
.dark_mode_theme .zone-info-modal-title,
.dark_mode_theme .zone-info-modal-title * {
  color: #f0f0f0;
}
.dark_mode_theme .zone-info-modal-close {
  color: #aaa;
}
.dark_mode_theme .zone-info-modal-close:hover {
  background: rgba(255,255,255,0.08);
}
.dark_mode_theme .zone-info-modal p {
  color: #ccc;
}
.dark_mode_theme .zone-info-card {
  background: var(--dark-secondary);
}
.dark_mode_theme .zone-info-card-title {
  color: #f0f0f0;
}
.dark_mode_theme .zone-info-card-desc {
  color: #ccc;
}
.dark_mode_theme .zone-info-method-box {
  background: var(--dark-secondary);
}
.dark_mode_theme .zone-info-method-title {
  color: #f0f0f0;
}
.dark_mode_theme p.zone-info-method-desc {
  color: #ccc;
}
.dark_mode_theme .zone-info-modal::before {
  background: #444;
}
.location-preference-label-wrapper {
  display: flex;
  gap: 10px;
}
.location_selection_section {
  display: flex;
  align-items: center;
  gap: 8px;
}
.left-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}
.zone-info-methods-container {
    display: flex;
    padding: 8px 16px;
    gap: 24px;
    justify-content: space-between;
}
.zone-info-method-title {
    font-family: var(--font-semibold);
    font-weight: 600;
    font-size: 20px;
    line-height: 100%;
    letter-spacing: 0px;
    margin-bottom: 16px;
}
p.zone-info-method-desc {
    font-family: var(--font-regular);
    font-weight: 400;
    font-size: 13px;
    line-height: 18px;
    letter-spacing: 0px;
}
.zone-info-modal-header {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-semibold);
    font-weight: 600;
    font-size: 24px;
    line-height: 100%;
    letter-spacing: 0px;
}
p.zone_info_p {
    margin-bottom: 24px;
    font-family: var(--font-regular);
}
.zone-info-method-box {
    flex: 1;
    min-width: 0;
    min-height: 200px;
    gap: 16px;
    opacity: 1;
    border-radius: 3px;
    padding: 24px;
}
.zone-info-wrapper {
    min-height: 150px;
    margin-bottom: 16px;
}

.selection_info_btn_holder {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 10px 20px;
    gap: 10px;
    width: auto;
    height: 46px;
    background: #E5F1E4;
    border-radius: 3px;
    font-family: var(--font-medium);
    font-size: 13px;
    font-weight: 500;
    line-height: 26px;
    position: relative;
    color: #529B50;
    white-space: nowrap;
    margin-right: 24px;
}
.filter-badge-remove {
    background: none;
    border: none;
    color: #529B50;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    padding: 0 0 0 4px;
    line-height: 1;
    transition: color 0.2s;
}
.filter-badge-remove:hover {
    color: #3f7a3e;
}
.sub-filters-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    margin: 24px 0px 32px;
}
.sub-filters-group {
    margin-left: auto;
    display: flex;
    align-items: center;
}
button.sub-filter-btn {
    
    opacity: 1;
    border-radius: 3px;
    padding-top: 10px;
    padding-right: 20px;
    padding-bottom: 10px;
    padding-left: 20px;
    font-size: 13px;
    font-family: var(--font-medium);
    line-height: 18px;
}
div#items_sub_filter {
    display: flex;
    gap: 10px;
    align-items: center;
}
span.sub-filter-label {
    font-size: 13px;
    font-family: var(--font-medium);
    font-weight: 600;
}
button.sub-filter-btn.sub-filter-btn--active {
    background: #4B4B4B;
    border-color: #4B4B4B;
    color: #fff;
}
.sub-filter-options {
    display: flex;
    gap: 16px;
}


/* ========================================
   RESPONSIVE STYLES — MAIN LAYOUT
   ======================================== */

/* Desktop/small laptop (≤1200px) — also covers iPad Safari desktop-mode (~1194px viewport) */
@media (max-width: 1200px) {
    .location-preferences-wrapper {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
        margin-bottom: 24px;
    }
    .left-controls {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 10px;
        align-items: center;
    }
    .right-controls {
        width: 100%;
    }
    .filter-navigation {
        flex-wrap: wrap;
        gap: 8px;
    }
    .filter-tab {
        padding: 8px 16px;
    }
    .location-preference-select {
        min-width: 150px;
    }
    .zone-info-modal {
        width: 700px;
    }
    .zone-info-method-box {
        width: auto;
        flex: 1;
    }
}

/* Tablet landscape (≤1024px) */
@media (max-width: 1024px) {
    .left-controls {
        flex-wrap: wrap;
        gap: 8px;
    }
    .location-preference-select {
        min-width: 150px;
    }
    .zone-info-modal {
        width: 90%;
        max-width: 700px;
    }
}

/* Tablet portrait (≤820px) — covers iPad 9th gen (810px), iPad Air (820px) */
@media (max-width: 820px) {
    .location-preferences-wrapper {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        margin-bottom: 20px;
    }
    .left-controls {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    .right-controls {
        width: 100%;
    }
    .location_selection_section {
        flex-wrap: wrap;
        gap: 8px;
    }
    .preference-select-container {
        flex: 1;
    }
    .location-preference-select {
        width: 100%;
        min-width: 0;
    }
    .sort-dropdown {
        display: flex;
        align-items: center;
        gap: 8px;
        flex-wrap: wrap;
    }
    .sort-dropdown .location-preference-label {
        margin-right: 0;
        white-space: nowrap;
    }
    .sort-dropdown .preference-select-container {
        flex: 1;
    }
    .filter-navigation {
        flex-wrap: wrap;
        gap: 6px;
    }
    .filter-tab {
        padding: 8px 14px;
    }
    .sub-filters-container {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    .radius-filter {
        flex-wrap: wrap;
        gap: 8px;
        padding: 10px 0 16px;
    }
    .selection_info_btn_holder {
        width: auto;
        height: auto;
        min-height: 40px;
        padding: 8px 14px;
        white-space: normal;
        line-height: 1.4;
    }
    .sub-filters-group {
        width: 100%;
    }
    div#items_sub_filter,
    div#events_sub_filter {
        flex-wrap: wrap;
        gap: 8px;
    }
    .sub-filter-options {
        gap: 8px;
        flex-wrap: wrap;
    }
    button.sub-filter-btn {
        height: 40px;
        padding: 8px 14px;
        font-size: 12px;
    }
    /* Zone info modal */
    .zone-info-modal {
        width: 95%;
        padding: 24px;
        gap: 20px;
    }
    .zone-info-methods-container {
        flex-direction: column;
        gap: 16px;
        padding: 8px 0;
    }
    .zone-info-method-box {
        width: 100%;
        height: auto;
    }
    .zone-info-method-title {
        font-size: 17px;
    }
}

/* Mobile (≤576px) */
@media (max-width: 576px) {
    .location-preferences-wrapper {
        gap: 10px;
        margin-bottom: 16px;
    }
    .location-preference-label-wrapper {
        gap: 6px;
    }
    .location_selection_section {
        gap: 6px;
    }
    .left-controls {
        gap: 8px;
    }
    .filter-navigation {
        gap: 5px;
        justify-content: space-evenly;
    }
    .filter-tab {
        padding: 8px 12px;
        font-size: 12px;
    }
    .filter-tab .icon-gnb {
        font-size: 15px;
    }
    .radius-filter {
        padding: 8px 0 12px;
        gap: 6px;
    }
    .selection_info_btn_holder {
        font-size: 12px;
        padding: 6px 12px;
    }
    .sub-filter-options {
        gap: 6px;
    }
    button.sub-filter-btn {
        height: 36px;
        padding: 6px 10px;
        font-size: 12px;
        line-height: 1.4;
    }
    span.sub-filter-label {
        font-size: 12px;
    }
    /* Zone info modal — bottom sheet on mobile */
    .zone-info-modal-overlay {
        align-items: flex-end !important;
        justify-content: stretch !important;
    }
    .zone-info-modal {
        width: 100% !important;
        max-width: 100% !important;
        max-height: 85vh;
        border-radius: 20px 20px 0 0;
        padding: 20px 20px calc(20px + env(safe-area-inset-bottom));
        gap: 16px;
        animation: modalSlideUp 0.3s ease;
    }
    /* Drag handle indicator */
    .zone-info-modal::before {
        content: '';
        display: block;
        width: 40px;
        height: 4px;
        background: #D1D5DB;
        border-radius: 2px;
        margin: 0 auto 4px;
        flex-shrink: 0;
    }
    .zone-info-modal-title {
        font-size: 18px;
    }
    .zone-info-methods-container {
        flex-direction: column;
        gap: 12px;
        padding: 0;
    }
    .zone-info-method-box {
        width: 100%;
        min-height: unset;
        padding: 18px;
    }
    .zone-info-method-title {
        font-size: 16px;
        margin-bottom: 8px;
    }
    p.zone-info-method-desc {
        font-size: 12px;
        margin-bottom: 14px;
    }
    .zone-info-got-it {
        width: 100%;
        max-width: 100%;
        height: 44px;
        font-size: 14px;
    }
}

@keyframes modalSlideUp {
    from { transform: translateY(100%); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

/* Small mobile (≤400px) */
@media (max-width: 400px) {
    .location-preferences-wrapper {
        gap: 8px;
    }
    .filter-tab .filter-label {
        display: none;
    }
    .filter-tab {
        padding: 8px 10px;
    }
    .filter-tab .icon-gnb {
        font-size: 18px;
    }
    .sub-filter-options {
        gap: 4px;
    }
    button.sub-filter-btn {
        padding: 6px 8px;
        font-size: 11px;
    }
    .zone-info-modal {
        padding: 14px;
    }
}
.location-map-sidebar label {
    margin: 0;
    font-size: 20px;
    color: #529B50;
     font-family: var(--font-semibold, 'Poppins-SemiBold', sans-serif);
    font-weight: 600;
}
span.select2-selection.select2-selection--single {
    padding: 10px 20px !important;
    height: 46px !important;
}
label.mode-toggle-label {
    margin-bottom: 8px;
}
div#events_sub_filter {
    display: flex;
    gap: 10px;
    align-items: center;
}