/* Map Page Styles */

.map-main-content {
    margin-left: 240px;
    padding: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Map Tabs */
.map-tabs {
    display: flex;
    background: var(--card-bg);
    border-bottom: 1px solid rgba(0, 180, 216, 0.2);
    padding: 0 20px;
}

.map-tab {
    padding: 18px 30px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

.map-tab:hover {
    color: var(--secondary-color);
    background: rgba(0, 180, 216, 0.1);
}

.map-tab.active {
    color: var(--secondary-color);
    border-bottom-color: var(--secondary-color);
    background: rgba(0, 180, 216, 0.1);
}

.map-tab i {
    font-size: 18px;
}

/* Map Wrapper */
.map-wrapper {
    display: flex;
    flex: 1;
    overflow: hidden;
    position: relative;
}

/* Map Sidebar */
.map-sidebar {
    width: 380px;
    min-width: 380px;
    background: var(--card-bg);
    border-right: 1px solid rgba(0, 180, 216, 0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 1000;
    position: relative;
    flex-shrink: 0;
}

.map-sidebar-header {
    padding: 25px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.map-sidebar-header h2 {
    font-size: 20px;
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 5px;
}

.map-sidebar-header p {
    font-size: 13px;
    color: var(--text-secondary);
}

.map-search {
    padding: 15px 20px;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.map-search input {
    width: 100%;
    padding: 12px 45px 12px 15px;
    background: var(--dark-bg);
    border: 2px solid transparent;
    border-radius: 10px;
    color: white;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.map-search input:focus {
    outline: none;
    border-color: var(--secondary-color);
}

.map-search input::placeholder {
    color: var(--text-secondary);
}

.map-search i {
    position: absolute;
    right: 35px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
}

/* Filter Section */
.filter-section {
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.filter-section h4 {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.fish-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-chip {
    padding: 6px 12px;
    background: var(--dark-bg);
    border-radius: 20px;
    font-size: 12px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.filter-chip:hover {
    background: rgba(0, 180, 216, 0.2);
    color: var(--secondary-color);
}

.filter-chip input {
    display: none;
}

.filter-chip:has(input:checked) {
    background: var(--secondary-color);
    color: var(--dark-bg);
}

/* Location List - Scrollable */
.location-list {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
}

.location-item {
    padding: 15px;
    background: var(--dark-bg);
    border-radius: 12px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.location-item:hover {
    border-color: var(--secondary-color);
    transform: translateX(5px);
}

.location-item.active {
    border-color: var(--secondary-color);
    background: rgba(0, 180, 216, 0.1);
}

.location-item-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 10px;
}

.location-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.location-icon i {
    font-size: 20px;
    color: white;
}

.location-icon.market {
    background: linear-gradient(135deg, #ff6b6b, #ee5a5a);
}

.location-icon.lake {
    background: linear-gradient(135deg, #00b4d8, #0077b6);
}

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

.location-name {
    font-size: 15px;
    font-weight: 600;
    color: white;
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.location-address {
    font-size: 12px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 5px;
}

.location-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 10px;
}

.location-tag {
    padding: 4px 10px;
    background: rgba(0, 180, 216, 0.2);
    border-radius: 15px;
    font-size: 11px;
    color: var(--accent-color);
}

.location-tag.fish {
    background: rgba(0, 210, 106, 0.2);
    color: var(--success-color);
}

.location-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 8px;
}

.location-rating i {
    color: #ffd700;
    font-size: 12px;
}

.location-rating span {
    font-size: 12px;
    color: var(--text-secondary);
}

/* Map Container */
.map-container {
    flex: 1;
    background: var(--dark-bg);
    position: relative;
    min-width: 0;
    z-index: 1;
}

#map {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

/* Custom Leaflet Styles */
.leaflet-container {
    background: var(--dark-bg);
    font-family: 'Poppins', sans-serif;
}

.leaflet-popup-content-wrapper {
    background: var(--card-bg);
    color: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.leaflet-popup-content {
    margin: 15px;
}

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

.leaflet-popup-close-button {
    color: var(--text-secondary) !important;
}

.leaflet-popup-close-button:hover {
    color: white !important;
}

/* Custom Marker Styles */
.custom-marker {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
}

.custom-marker.market {
    background: linear-gradient(135deg, #ff6b6b, #ee5a5a);
}

.custom-marker.lake {
    background: linear-gradient(135deg, #00b4d8, #0077b6);
}

/* Popup Content */
.popup-content {
    min-width: 200px;
}

.popup-content h3 {
    font-size: 16px;
    margin-bottom: 8px;
    color: var(--secondary-color);
}

.popup-content p {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 5px;
}

.popup-content .popup-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 10px;
}

.popup-content .popup-tag {
    padding: 3px 8px;
    background: rgba(0, 180, 216, 0.2);
    border-radius: 10px;
    font-size: 11px;
    color: var(--accent-color);
}

.popup-btn {
    margin-top: 12px;
    padding: 8px 16px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: transform 0.2s ease;
}

.popup-btn:hover {
    transform: scale(1.02);
}

/* Location Modal */
.location-modal {
    max-width: 600px;
}

.location-modal-header {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.location-modal-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.location-modal-icon i {
    font-size: 36px;
    color: white;
}

.location-modal-icon.market {
    background: linear-gradient(135deg, #ff6b6b, #ee5a5a);
}

.location-modal-info h2 {
    font-size: 24px;
    color: white;
    margin-bottom: 5px;
}

.location-modal-info .address {
    font-size: 14px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.location-modal-info .rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
}

.location-modal-info .rating i {
    color: #ffd700;
}

.location-modal-body {
    margin-top: 20px;
}

.location-modal-section {
    margin-bottom: 20px;
}

.location-modal-section h4 {
    font-size: 14px;
    color: var(--secondary-color);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.location-modal-section p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.fish-species-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.fish-species {
    padding: 8px 15px;
    background: rgba(0, 210, 106, 0.2);
    border-radius: 20px;
    font-size: 13px;
    color: var(--success-color);
    display: flex;
    align-items: center;
    gap: 6px;
}

.fish-species i {
    font-size: 14px;
}

.location-modal-actions {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.location-modal-actions .btn {
    flex: 1;
    padding: 14px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}

.location-modal-actions .btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    color: white;
}

.location-modal-actions .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 180, 216, 0.4);
}

.location-modal-actions .btn-secondary {
    background: transparent;
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color);
}

.location-modal-actions .btn-secondary:hover {
    background: var(--secondary-color);
    color: var(--dark-bg);
}

/* Empty State */
.empty-locations {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary);
}

.empty-locations i {
    font-size: 48px;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.empty-locations h4 {
    font-size: 16px;
    color: white;
    margin-bottom: 5px;
}

/* Responsive */
@media (max-width: 1200px) {
    .map-sidebar {
        width: 320px;
    }
}

@media (max-width: 992px) {
    .map-wrapper {
        flex-direction: column;
    }
    
    .map-sidebar {
        width: 100%;
        height: 300px;
        border-right: none;
        border-bottom: 1px solid rgba(0, 180, 216, 0.2);
    }
    
    .map-container {
        height: calc(100vh - 360px);
    }
}

@media (max-width: 768px) {
    .map-main-content {
        margin-left: 70px;
    }
    
    .map-tabs {
        padding: 0 10px;
    }
    
    .map-tab {
        padding: 15px 20px;
        font-size: 14px;
    }
    
    .map-tab span {
        display: none;
    }
}
