﻿
/* Popup buttons – ECO design */
.popup-btn-green {
    background: #2E7D32;
    border: 1px solid #256628;
    color: white !important;
    font-weight: 600;
    border-radius: 8px;
    padding: 5px 10px;
    transition: 0.2s;
}

    .popup-btn-green:hover {
        background: #256628;
    }

/* White button with eco gray text + icon */
.popup-btn-outline {
    background: #ffffff;
    border: 1px solid #8a9a8a;
    color: #3a4a3a !important;
    font-weight: 600;
    border-radius: 8px;
    padding: 5px 10px;
    transition: 0.2s;
}

    .popup-btn-outline:hover {
        background: #f0f5f0;
        border-color: #6a7a6a;
        color: #2b3b2b !important;
    }

/* Icon spacing */
.btn-icon {
    margin-right: 6px;
    opacity: 0.9;
}
/* MAP PAGE — SIDEBAR + MAP ECO DESIGN */

.map-wrapper {
    display: flex;
    gap: 20px;
    height: 80vh;
}

.map-sidebar {
    width: 280px;
    background: linear-gradient(180deg, #f4fbf7 0%, #ffffff 100%);
    border-radius: 18px;
    padding: 18px;
    border: 1px solid rgba(46, 125, 50, 0.18);
    box-shadow: 0 10px 28px rgba(33, 73, 42, 0.12);
    height: 100%;
    overflow-y: auto;
}

.sidebar-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.sidebar-title {
    font-weight: 700;
    font-size: 18px;
    color: #2E7D32;
    display: flex;
    align-items: center;
    gap: 6px;
}

.theme-toggle-btn {
    border-radius: 999px;
    padding: 4px 12px;
    font-size: 12px;
    border-color: rgba(46, 125, 50, 0.3);
}



/* Accordion */
.accordion-section {
    margin-bottom: 12px;
}

.accordion-btn {
    width: 100%;
    text-align: left;
    background: #ecf8f0;
    border: 1px solid rgba(46, 125, 50, 0.16);
    padding: 9px 12px;
    font-size: 14px;
    font-weight: 600;
    color: #2E7D32;
    border-radius: 12px;
    cursor: pointer;
    margin-bottom: 4px;
    transition: 0.25s;
}

    .accordion-btn:hover {
        background: #dff2e6;
        transform: translateY(-1px);
    }

.accordion-content {
    display: none;
    padding: 4px 2px 10px 2px;
}

/* Dropdowns */
.form-select {
    border-radius: 12px;
    border: 1px solid rgba(46, 125, 50, 0.2);
    padding: 8px 10px;
    font-size: 14px;
    background-color: #ffffff;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.02);
}

    .form-select:focus,
    .form-control:focus {
        border-color: rgba(46, 125, 50, 0.5);
        box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.15);
    }

.form-control {
    border-radius: 12px;
    border: 1px solid rgba(46, 125, 50, 0.2);
    padding: 8px 10px;
    font-size: 14px;
}

/* Full-width buttons */
.sidebar-full-btn {
    width: 100%;
    font-weight: 600;
    padding: 10px 0;
    border-radius: 12px;
    border-width: 1px;
}

    .sidebar-full-btn.btn-outline-success {
        background: linear-gradient(135deg, #2E7D32 0%, #43a047 100%);
        color: #fff;
        border-color: transparent;
    }

        .sidebar-full-btn.btn-outline-success:hover {
            background: linear-gradient(135deg, #256628 0%, #2E7D32 100%);
            color: #fff;
        }

    .sidebar-full-btn.btn-outline-secondary {
        background: #ffffff;
        border-color: rgba(46, 125, 50, 0.25);
        color: #2E7D32;
    }

        .sidebar-full-btn.btn-outline-secondary:hover {
            background: #ecf8f0;
            border-color: rgba(46, 125, 50, 0.4);
            color: #1f5c24;
        }

    .sidebar-full-btn + .sidebar-full-btn {
        margin-top: 8px;
    }
/* Results */
.results-summary {
    margin: 8px 0;
    font-size: 12px;
    color: #3f5f45;
    background: rgba(46, 125, 50, 0.08);
    border: 1px solid rgba(46, 125, 50, 0.18);
    border-radius: 10px;
    padding: 6px 10px;
}
.sidebar-results {
    background: #ffffff;
    border: 1px solid rgba(46, 125, 50, 0.18);
    border-radius: 12px;
    padding: 8px;
    max-height: 260px;
    overflow-y: auto;
    display: grid;
    gap: 8px;
}

.sidebar-result-item {
    cursor: pointer;
    font-size: 13px;
    border: 1px solid rgba(46, 125, 50, 0.14);
    border-radius: 12px;
    padding: 10px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fcf9 100%);
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

    .sidebar-result-item:hover {
        transform: translateY(-1px);
        border-color: rgba(46, 125, 50, 0.3);
        box-shadow: 0 8px 18px rgba(33, 73, 42, 0.12);
    }

.sidebar-result-item__header {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 3px;
}

.sidebar-result-item__name {
    color: #1f3b22;
    font-size: 13px;
    line-height: 1.35;
}

.sidebar-result-item__rating {
    color: #7a6400;
    font-weight: 600;
    white-space: nowrap;
}

.sidebar-result-item__category {
    color: #48624d;
    font-size: 12px;
    margin-bottom: 6px;
}

.sidebar-result-item__chips {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.result-chip {
    font-size: 11px;
    border-radius: 999px;
    padding: 4px 8px;
    background: rgba(46, 125, 50, 0.09);
    color: #1f5c24;
    border: 1px solid rgba(46, 125, 50, 0.15);
}

/* Map */
#map {
    flex: 1;
    height: 100%;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

.map-wrapper {
    position: relative;
    z-index: 1;
}

#map {
    position: relative;
    z-index: 1;
}

    #map .leaflet-pane,
    #map .leaflet-top,
    #map .leaflet-bottom {
        z-index: 1 !important;
    }


/* Popup */
.store-popup {
    font-size: 13px;
    max-width: 280px;
}

.store-popup-main {
    display: flex;
    gap: 8px;
    margin-bottom: 6px;
}

.store-popup-text {
    flex: 1;
}

.store-popup-title {
    font-weight: 700;
    margin-bottom: 2px;
    color: #1f3b22;
}

.store-popup-meta {
    font-size: 12px;
    color: #555;
    margin-bottom: 3px;
}

.store-popup-desc {
    font-size: 12px;
    margin-bottom: 3px;
}

.store-popup-hours,
.store-popup-address {
    font-size: 12px;
    color: #444;
}

.popup-img-wrap {
    width: 70px;
    height: 70px;
    border-radius: 8px;
    overflow: hidden;
}

.popup-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.store-popup-actions {
    display: flex;
    gap: 6px;
    margin-top: 4px;
}
.map-store-card {
    border-color: rgba(46, 125, 50, 0.16);
}

.map-store-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.map-store-card__rating {
    font-size: 12px;
    font-weight: 700;
    color: #826900;
    background: #fff7da;
    border: 1px solid #f0dc9c;
    border-radius: 999px;
    padding: 4px 8px;
}

.map-store-card__address {
    margin-top: 6px;
    font-size: 12px;
    color: #4a5c4e;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Mobile */
@media (max-width: 768px) {
    .map-wrapper {
        flex-direction: column;
        height: auto;
    }

    .map-sidebar {
        width: 100%;
        height: auto;
    }

    #map {
        height: 420px;
    }
}
