
.explore-page {
    width: 85%;
    margin: 0 auto;
    box-sizing: border-box;
}

.explore-header {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin-bottom: 24px;
}

.explore-header > div {
    text-align: center;
}

.explore-header h1 {
    margin: 0 0 6px;
    font-size: 26px;
    font-weight: 700;
}

.explore-header p {
    margin: 0;
    color: #64748b;
    font-size: 14px;
}

/* Workspace */

.explore-workspace {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 20px;
    align-items: start;
}

/* Map */

.explore-map-container {
    position: relative;
    min-width: 0;
    height: 560px;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    box-sizing: border-box;
}

#exploreMap {
    width: 100%;
    height: 100%;
    z-index: 1;
}

.explore-map-hint {
    position: absolute;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 500;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.10);
    color: #374151;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    pointer-events: none;
}

.explore-map-controls {
    position: absolute;
    right: 16px;
    bottom: 24px;
    z-index: 500;
}

.explore-map-control {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 9px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
    color: #2563eb;
    font-size: 25px;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.explore-map-control:hover {
    background: #eff6ff;
    transform: translateY(-1px);
}

/* Sidebar */

.explore-sidebar {
    display: flex;
    flex-direction: column;
    gap: 14px;

    height: 540px;
    max-height: 540px;
    min-height: 0;

    padding: 14px;
    box-sizing: border-box;

    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;

    overflow-y: auto;
    overflow-x: hidden;
    align-self: start;
}

/* Sidebar sections */

.explore-section {
    flex: 0 0 auto;
    margin: 0;
    padding: 16px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-sizing: border-box;
}

.explore-section:last-child {
    margin-bottom: 0;
}

.explore-section h3 {
    margin: 0 0 8px;
    color: #111827;
    font-size: 15px;
    font-weight: 650;
}

.explore-section p {
    margin: 0;
    color: #6b7280;
    font-size: 13px;
    line-height: 1.6;
}

/* Radius */

.radius-value {
    margin: 8px 0 8px;
    padding: 12px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
}

.radius-value strong {
    color: #2563eb;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -1px;
}

.radius-help {
    margin-top: 8px !important;
    font-size: 12px !important;
    color: #64748b;
}

/* Selected location */

.location-selected {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #16a34a;
    font-weight: 600;
    font-size: 13px;
}

.location-selected::before {
    content: "";
    width: 8px;
    height: 8px;
    background: #16a34a;
    border-radius: 50%;
    flex-shrink: 0;
}

.selected-location-status {
    margin: 12px 0 16px;
    padding: 11px 12px;
    background: #eff6ff;
    border-radius: 8px;
    color: #1d4ed8;
    font-size: 13px;
    font-weight: 600;
}

.explore-coordinates {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 12px;
}

.explore-coordinates > div {
    min-width: 0;
    padding: 10px;
    background: #f9fafb;
    border: 1px solid #f3f4f6;
    border-radius: 8px;
}

.explore-coordinates small {
    display: block;
    margin-bottom: 5px;
    color: #6b7280;
    font-size: 11px;
}

.explore-coordinates strong {
    display: block;
    overflow-wrap: anywhere;
    color: #111827;
    font-size: 13px;
    font-weight: 600;
}

/* Main action */

.explore-action-section {
    padding: 0;
    border: 0;
    background: transparent;
}

.explore-search-button {
    width: 100%;
    min-height: 48px;
    padding: 12px 18px;
    border: 0;
    border-radius: 9px;
    background: #2563eb;
    color: #ffffff;
    font-size: 14px;
    font-weight: 650;
    cursor: pointer;
    transition: background 0.2s, opacity 0.2s;
}

.explore-search-button:hover:not(:disabled) {
    background: #1d4ed8;
}

.explore-search-button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

/* Reset button */

.explore-reset-button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

/* Custom radius marker */

.explore-radius-marker {
    background: transparent;
    border: none;
}

.radius-marker-inner {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #2563eb;
    border: 3px solid #ffffff;
    border-radius: 50%;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
    cursor: grab;
    transition: transform 0.15s ease;
}

.radius-marker-inner:hover {
    transform: scale(1.12);
}

.radius-marker-inner:active {
    cursor: grabbing;
    transform: scale(1.15);
}

/* Sidebar scrollbar */

.explore-sidebar::-webkit-scrollbar {
    width: 6px;
}

.explore-sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.explore-sidebar::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

.explore-sidebar::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.explore-warning {
    padding: 14px 18px;
    margin: 0 0 20px;
    border: 1px solid #f0c36d;
    border-radius: 8px;
    background: #fff8e6;
    color: #795b18;
    font-size: 14px;
    line-height: 1.5;
}

/* Tablet */

@media (max-width: 1000px) {
    .explore-page {
        width: 92%;
    }

    .explore-workspace {
        grid-template-columns: 1fr;
    }

    .explore-map-container {
        height: 500px;
    }

    .explore-sidebar {
        height: auto;
        max-height: none;
        overflow: visible;
    }
}

/* Mobile */

@media (max-width: 768px) {
    .explore-map-hint {
        top: 10px;
        max-width: calc(100% - 24px);
        font-size: 11px;
        white-space: normal;
        text-align: center;
    }

    .explore-map-controls {
        right: 12px;
        bottom: 16px;
    }

    .explore-sidebar {
        gap: 12px;
    }

    .explore-section {
        padding: 14px;
    }
}

@media (max-width: 600px) {
    .explore-page {
        width: 100%;
        padding: 12px;
    }

    .explore-header h1 {
        font-size: 22px;
    }

    .explore-map-container {
        height: 400px;
    }

    .explore-map-hint {
        font-size: 11px;
        padding: 8px 10px;
    }

    .explore-sidebar {
        padding: 10px;
    }

    .explore-coordinates {
        gap: 8px;
    }
}
