html, body {
    height: 100%;
    overflow: hidden;
}

.navbar {
    position: relative;
    background: #0c1c14;
    z-index: 1000;
}

.map-layout {
    display: flex;
    height: calc(100vh - 73px);
}

/* SIDEBAR */
.map-sidebar {
    width: 300px;
    flex-shrink: 0;
    background: #0f2318;
    color: white;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 500;
}

.sidebar-header {
    padding: 1.5rem 1.2rem 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar-header h2 {
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
}

#sidebarStatus {
    font-size: 0.8rem;
    opacity: 0.65;
}

.radius-control {
    padding: 1rem 1.2rem 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.radius-control label {
    font-size: 0.85rem;
    opacity: 0.8;
    white-space: nowrap;
}

.radius-control select {
    flex: 1;
    padding: 0.4rem 0.6rem;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.1);
    color: white;
    font-size: 0.85rem;
}

.name-search {
    display: flex;
    gap: 0.5rem;
    padding: 1rem 1.2rem 0.5rem;
}

.name-search input {
    flex: 1;
    padding: 0.55rem 0.8rem;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.1);
    color: white;
    font-size: 0.85rem;
}

.name-search input::placeholder {
    color: rgba(255,255,255,0.4);
}

.name-search input:focus {
    outline: none;
    border-color: #2f6f4e;
    background: rgba(255,255,255,0.15);
}

.name-search button {
    padding: 0.55rem 0.9rem;
    background: #2f6f4e;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

.name-search button:hover {
    background: #3a8a61;
}

.sidebar-divider {
    text-align: center;
    font-size: 0.75rem;
    opacity: 0.4;
    padding: 0.25rem 0;
}

.search-btn {
    margin: 0.75rem 1.2rem;
    padding: 0.7rem;
    background: #2f6f4e;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.search-btn:hover:not(:disabled) {
    background: #3a8a61;
}

.search-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* RESULTS */
.results-list {
    flex: 1;
    overflow-y: auto;
    padding: 0.5rem 0;
}

.results-list::-webkit-scrollbar {
    width: 4px;
}
.results-list::-webkit-scrollbar-track {
    background: transparent;
}
.results-list::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.2);
    border-radius: 4px;
}

.result-item {
    padding: 0.75rem 1.2rem;
    cursor: pointer;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    transition: background 0.15s;
}

.result-item:hover {
    background: rgba(255,255,255,0.07);
}

.result-item .result-name {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.result-item .result-type {
    font-size: 0.75rem;
    opacity: 0.55;
}

.result-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 6px;
    vertical-align: middle;
}

.dot-fishing { background: #f0a500; }
.dot-water   { background: #4a9eda; }
.dot-river   { background: #6ec6f0; }

.no-results {
    padding: 2rem 1.2rem;
    font-size: 0.85rem;
    opacity: 0.5;
    text-align: center;
}

/* MAP */
#map {
    flex: 1;
    z-index: 1;
    position: relative;
}

.map-search-area-btn {
    position: absolute;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    background: white;
    color: #1f2933;
    border: none;
    border-radius: 24px;
    padding: 0.6rem 1.4rem;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 2px 12px rgba(0,0,0,0.25);
    transition: background 0.2s;
}

.map-search-area-btn:hover {
    background: #f0f0f0;
}
