* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --bg: #0f1117;
    --surface: #1a1d27;
    --surface2: #242836;
    --accent: #e8a838;
    --accent2: #d4763a;
    --text: #e8e6e1;
    --text-dim: #9a9590;
    --border: #2e3240;
    --radius: 10px;
}

body {
    font-family: 'Outfit', sans-serif;
    background: var(--bg);
    color: var(--text);
    height: 100vh;
    overflow: hidden;
}

.top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    height: 56px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon { font-size: 24px; }

.logo h1 {
    font-size: 20px;
    font-weight: 600;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

nav {
    display: flex;
    gap: 2px;
    flex: 1;
    overflow-x: auto;
    margin: 0 12px;
    scrollbar-width: none;
}
nav::-webkit-scrollbar { display: none; }

/* Search */
.search-box {
    position: relative;
    flex-shrink: 0;
}
.search-box input {
    background: var(--surface2);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 7px 14px;
    border-radius: 20px;
    font-family: inherit;
    font-size: 13px;
    width: 220px;
    outline: none;
    transition: border-color 0.2s, width 0.2s;
}
.search-box input:focus {
    border-color: var(--accent);
    width: 280px;
}
.search-box input::placeholder { color: var(--text-dim); }
.search-results {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 6px;
    width: 340px;
    max-height: 420px;
    overflow-y: auto;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 12px 40px rgba(0,0,0,0.5);
    z-index: 2000;
}
.search-results.hidden { display: none; }
.search-result-item {
    padding: 10px 14px;
    cursor: pointer;
    border-bottom: 1px solid var(--border);
    transition: background 0.15s;
}
.search-result-item:hover { background: var(--surface2); }
.search-result-item:last-child { border-bottom: none; }
.search-result-type {
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 1px 6px;
    border-radius: 3px;
    margin-right: 6px;
}
.search-result-type.site { background: rgba(46,204,113,0.15); color: #2ecc71; }
.search-result-type.gem { background: rgba(232,168,56,0.15); color: var(--accent); }
.search-result-type.region { background: rgba(52,152,219,0.15); color: #3498db; }
.search-result-type.roadside { background: rgba(231,76,60,0.15); color: #e74c3c; }
.search-result-type.geology { background: rgba(155,89,182,0.15); color: #9b59b6; }
.search-result-type.fault { background: rgba(255,68,68,0.15); color: #ff4444; }
.search-result-name { font-weight: 500; font-size: 14px; }
.search-result-sub { font-size: 11px; color: var(--text-dim); margin-top: 2px; }

.nav-btn {
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-dim);
    padding: 6px 10px;
    border-radius: 8px;
    cursor: pointer;
    font-family: inherit;
    font-size: 13px;
    white-space: nowrap;
    flex-shrink: 0;
    font-weight: 500;
    transition: all 0.2s;
}

.nav-btn:hover { color: var(--text); background: var(--surface2); }
.nav-btn.active { color: var(--accent); border-color: var(--accent); background: rgba(232, 168, 56, 0.08); }

/* Fullscreen map toggle */
.fullscreen-btn {
    display: none;
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 1200;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--accent);
    font-size: 18px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.4);
    align-items: center;
    justify-content: center;
    transition: transform 0.2s, background 0.2s;
}
.fullscreen-btn:active { transform: scale(0.9); }
@media (max-width: 900px) {
    .fullscreen-btn { display: flex; }
}

body.map-fullscreen .top-bar { display: none; }
body.map-fullscreen .map-controls { display: none; }
body.map-fullscreen #location-bar { display: none; }
body.map-fullscreen main { height: 100vh; }
body.map-fullscreen .fullscreen-btn {
    background: rgba(26, 29, 39, 0.85);
    backdrop-filter: blur(6px);
}
body.map-fullscreen .panel:not(.hidden) {
    top: 0;
    height: 100vh;
}

main {
    position: relative;
    height: calc(100vh - 56px);
}

#map-container {
    width: 100%;
    height: 100%;
    position: relative;
}

#map {
    width: 100%;
    height: 100%;
    background: var(--bg);
}

.map-controls {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    z-index: 800;
    min-width: 200px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

.map-controls h3 {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-dim);
    margin-bottom: 10px;
}

.map-controls label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    padding: 4px 0;
    cursor: pointer;
    color: var(--text);
}

.map-controls input[type="checkbox"] {
    accent-color: var(--accent);
    width: 16px;
    height: 16px;
}

.legend {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
}

.legend h4 {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-dim);
    margin-bottom: 8px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    padding: 2px 0;
    color: var(--text);
}

.swatch {
    width: 14px;
    height: 14px;
    border-radius: 3px;
    flex-shrink: 0;
}

/* Panels */
.panel {
    position: absolute;
    top: 0;
    left: 0;
    width: 420px;
    height: 100%;
    background: var(--surface);
    border-right: 1px solid var(--border);
    z-index: 900;
    overflow-y: auto;
    padding: 24px;
    transition: transform 0.3s ease;
}

.panel.hidden {
    transform: translateX(-100%);
    pointer-events: none;
}

.close-panel {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--surface2);
    border: 1px solid var(--border);
    color: var(--text);
    width: 32px;
    height: 32px;
    border-radius: 8px;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.close-panel:hover { background: var(--border); }

/* Detail panel */
#detail-panel { width: 400px; z-index: 950; }

#detail-content h2 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--accent);
}

.detail-subtitle {
    font-size: 13px;
    color: var(--text-dim);
    margin-bottom: 16px;
}

.detail-section {
    margin-bottom: 20px;
}

.detail-section h3 {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-dim);
    margin-bottom: 8px;
}

.gem-group { margin-bottom: 14px; }

.gem-group-label {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 6px;
}

.gem-group-label.confirmed { color: #2ecc71; }
.gem-group-label.potential { color: var(--text-dim); }

.gem-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.gem-tag {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 500;
}

.gem-tag.confirmed {
    background: rgba(46, 204, 113, 0.1);
    color: #2ecc71;
    border: 1px solid rgba(46, 204, 113, 0.2);
}

.gem-tag.potential {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-dim);
    border: 1px solid var(--border);
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.info-card {
    background: var(--surface2);
    border-radius: 8px;
    padding: 12px;
}

.info-card .label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-dim);
    margin-bottom: 4px;
}

.info-card .value {
    font-size: 15px;
    font-weight: 500;
}

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

.detail-section ul {
    list-style: none;
    padding: 0;
}

.detail-section ul li {
    font-size: 13px;
    padding: 4px 0;
    padding-left: 16px;
    position: relative;
    color: var(--text);
}

.detail-section ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent);
}

.land-links a {
    display: block;
    padding: 10px 14px;
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--accent);
    text-decoration: none;
    font-size: 13px;
    margin-bottom: 6px;
    transition: border-color 0.2s;
}

.land-links a:hover { border-color: var(--accent); }

/* Sites list */
#sites-panel { width: 420px; }
#sites-panel h2 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--accent);
}

.site-card {
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: border-color 0.2s;
}

.site-card:hover { border-color: var(--accent); }

.site-card h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.site-card .site-meta {
    font-size: 12px;
    color: var(--text-dim);
    margin-bottom: 8px;
}

.site-card .site-gems {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.site-card .site-gems span {
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 12px;
}

.site-card .site-gems span.confirmed {
    background: rgba(46, 204, 113, 0.1);
    color: #2ecc71;
}

.site-card .site-gems span.potential {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-dim);
}

/* Geology panel */
#geology-panel {
    width: 520px;
}

#geology-panel h2 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--accent);
}

.guide-section {
    margin-bottom: 24px;
}

.guide-section h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
}

.guide-section p {
    font-size: 14px;
    line-height: 1.65;
    color: var(--text);
    margin-bottom: 10px;
}

.guide-section ul {
    list-style: none;
    padding: 0;
}

.guide-section ul li {
    font-size: 14px;
    line-height: 1.6;
    padding: 4px 0;
    padding-left: 18px;
    position: relative;
}

.guide-section ul li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--accent);
}

.rock-card {
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 10px;
}

.rock-card h4 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--accent);
}

.rock-card p {
    font-size: 13px;
    line-height: 1.55;
    margin-bottom: 6px;
}

/* Land panel */
#land-panel { width: 480px; }
#land-panel h2 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--accent);
}

.land-intro {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text);
    margin-bottom: 20px;
}

.land-zone-card {
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px;
    margin-bottom: 12px;
    transition: border-color 0.2s;
}

.land-zone-card:hover { border-color: var(--accent); }

.land-zone-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.land-zone-header h3 {
    font-size: 16px;
    font-weight: 600;
}

.land-price-badge {
    background: rgba(46, 204, 113, 0.15);
    color: #2ecc71;
    border: 1px solid rgba(46, 204, 113, 0.3);
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

.land-zone-meta {
    font-size: 12px;
    color: var(--text-dim);
    margin-bottom: 10px;
}

.land-zone-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 12px;
}

.land-detail-item {
    font-size: 12px;
}

.land-detail-item .label {
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 10px;
    margin-bottom: 2px;
}

.land-detail-item .value {
    color: var(--text);
    font-size: 13px;
}

.land-zone-links {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}

.land-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--accent);
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
    transition: border-color 0.2s, background 0.2s;
}

.land-link:hover {
    border-color: var(--accent);
    background: rgba(232, 168, 56, 0.08);
}

.land-auction-note {
    font-size: 12px;
    color: var(--text-dim);
    padding: 8px 12px;
    background: rgba(232, 168, 56, 0.06);
    border-left: 3px solid var(--accent);
    border-radius: 0 6px 6px 0;
    line-height: 1.5;
}

.land-nearby-gems {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 10px;
}

/* Permits panel */
#permits-panel { width: 520px; }
#permits-panel h2 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--accent);
}

.permits-intro {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text);
    margin-bottom: 20px;
}

.permit-section {
    margin-bottom: 20px;
}

.permit-section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.permit-section-header .permit-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.permit-section-header h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--accent);
}

.permit-rules {
    list-style: none;
    padding: 0;
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 16px;
}

.permit-rules li {
    font-size: 13px;
    line-height: 1.55;
    padding: 4px 0;
    padding-left: 18px;
    position: relative;
    color: var(--text);
}

.permit-rules li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--accent);
}

.permit-source {
    font-size: 11px;
    color: var(--text-dim);
    margin-top: 6px;
    font-style: italic;
}

/* BLM area detail panel */
.blm-activities {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
}

.blm-tag {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    background: rgba(26, 188, 156, 0.12);
    color: #1abc9c;
    border: 1px solid rgba(26, 188, 156, 0.25);
}

.nearby-gems-links {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.nearby-gem-link {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    background: rgba(232, 168, 56, 0.12);
    color: var(--accent);
    border: 1px solid rgba(232, 168, 56, 0.25);
    cursor: pointer;
    transition: background 0.2s;
}

.nearby-gem-link:hover {
    background: rgba(232, 168, 56, 0.25);
}

/* Leaflet overrides */
.leaflet-popup-content-wrapper {
    background: var(--surface) !important;
    color: var(--text) !important;
    border-radius: var(--radius) !important;
    border: 1px solid var(--border) !important;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5) !important;
}

.leaflet-popup-tip { background: var(--surface) !important; }

.leaflet-popup-content {
    margin: 12px 16px !important;
    font-family: 'Outfit', sans-serif !important;
    font-size: 13px !important;
}

.leaflet-popup-content h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 4px;
}

.leaflet-popup-content .popup-gems {
    font-size: 12px;
    color: var(--text-dim);
    margin-bottom: 6px;
}

.leaflet-popup-content .popup-link {
    color: var(--accent);
    cursor: pointer;
    text-decoration: underline;
    font-size: 12px;
}

.leaflet-control-zoom a {
    background: var(--surface) !important;
    color: var(--text) !important;
    border-color: var(--border) !important;
}

.leaflet-control-zoom a:hover { background: var(--surface2) !important; }

/* Drive time ring tooltip */
.drive-label {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    color: var(--text-dim) !important;
    font-size: 11px !important;
    font-weight: 500 !important;
    font-family: 'Outfit', sans-serif !important;
}

/* Explore mode */
.explore-intro {
    font-size: 13px;
    color: var(--text-dim);
    margin-bottom: 16px;
    line-height: 1.5;
}

.explore-card {
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: border-color 0.2s, transform 0.15s;
}

.explore-card:hover {
    border-color: var(--accent);
    transform: translateX(4px);
}

.explore-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.explore-card h3 {
    color: var(--accent);
    font-size: 16px;
    font-weight: 600;
}

.explore-site-count {
    font-size: 11px;
    color: var(--text-dim);
    background: var(--surface);
    padding: 2px 8px;
    border-radius: 10px;
}

.explore-tagline {
    font-size: 13px;
    color: var(--text-dim);
    margin-bottom: 8px;
}

.explore-gems-preview {
    font-size: 12px;
    color: #2ecc71;
}

.explore-back {
    background: transparent;
    color: var(--accent);
    border: 1px solid rgba(232, 168, 56, 0.3);
    padding: 6px 14px;
    border-radius: 6px;
    font-family: 'Outfit', sans-serif;
    font-size: 13px;
    cursor: pointer;
    margin-bottom: 16px;
    transition: background 0.2s;
}

.explore-back:hover {
    background: rgba(232, 168, 56, 0.12);
}

.explore-hero {
    margin-bottom: 20px;
}

.explore-hero h2 {
    font-size: 22px;
    color: var(--accent);
    margin-bottom: 4px;
}

.explore-hero-tagline {
    font-size: 14px;
    color: var(--text-dim);
    font-style: italic;
}

.explore-section {
    margin-bottom: 20px;
}

.explore-section h3 {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text);
    margin-bottom: 10px;
}

.explore-highlights, .explore-gear {
    list-style: none;
    padding: 0;
}

.explore-highlights li, .explore-gear li {
    font-size: 13px;
    line-height: 1.6;
    padding-left: 18px;
    position: relative;
    color: var(--text);
    margin-bottom: 4px;
}

.explore-highlights li::before {
    content: '◆';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-size: 8px;
    top: 4px;
}

.explore-gear li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--accent);
}

.explore-info-bar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 20px;
}

.explore-info-item {
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 12px;
}

.explore-info-item .label {
    font-size: 11px;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 4px;
}

.explore-info-item .value {
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
}

.explore-geology-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.explore-geology-card {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 10px 12px;
    cursor: pointer;
    transition: border-color 0.2s;
}

.explore-geology-card:hover {
    border-color: var(--accent);
}

.explore-geology-card .swatch {
    width: 14px;
    height: 14px;
    border-radius: 3px;
    flex-shrink: 0;
    margin-top: 2px;
}

.explore-geology-card strong {
    font-size: 13px;
    color: var(--text);
    display: block;
    margin-bottom: 2px;
}

.explore-geology-gems {
    font-size: 11px;
    color: var(--text-dim);
}

.route-intro {
    font-size: 13px;
    color: var(--text-dim);
    margin-bottom: 12px;
}

.itinerary {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.itinerary-stop {
    display: flex;
    gap: 12px;
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 12px;
    cursor: pointer;
    transition: border-color 0.2s;
}

.itinerary-stop:hover {
    border-color: var(--accent);
}

.stop-number {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
    flex-shrink: 0;
}

.stop-info h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 3px;
}

.stop-meta {
    font-size: 11px;
    color: var(--text-dim);
    margin-bottom: 6px;
}

.stop-gems {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
    margin-bottom: 6px;
}

.stop-desc {
    font-size: 12px;
    color: var(--text-dim);
    line-height: 1.4;
}

/* Gem type labels */
.gem-types-label {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}
.gem-type-tag-click {
    pointer-events: auto;
}
.gem-type-tag-click:hover {
    filter: brightness(1.2);
    transform: scale(1.1);
}

/* Geology detail */
.geology-potential {
    background: rgba(232, 168, 56, 0.06);
    border: 1px solid rgba(232, 168, 56, 0.2);
    border-radius: var(--radius);
    padding: 16px;
    margin-top: 12px;
}

.geology-potential h3 {
    color: var(--accent);
}

/* Location bar */
#location-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 24px;
    background: var(--surface2);
    border-bottom: 1px solid var(--border);
    font-size: 12px;
    color: var(--text-dim);
}

#location-status {
    cursor: pointer;
}

#show-all-btn {
    background: transparent;
    color: var(--accent);
    border: 1px solid rgba(232, 168, 56, 0.3);
    padding: 3px 12px;
    border-radius: 4px;
    font-family: 'Outfit', sans-serif;
    font-size: 11px;
    cursor: pointer;
    transition: background 0.2s;
}

#show-all-btn:hover {
    background: rgba(232, 168, 56, 0.12);
}

.sites-count {
    font-size: 13px;
    color: var(--text-dim);
    margin-bottom: 12px;
}

/* Roadside panel */
.roadside-intro {
    font-size: 13px;
    color: var(--text-dim);
    margin-bottom: 16px;
    line-height: 1.5;
}
.roadside-card {
    background: var(--surface2);
    border-radius: var(--radius);
    padding: 14px;
    margin-bottom: 10px;
    cursor: pointer;
    border-left: 3px solid #e74c3c;
    transition: transform 0.15s, box-shadow 0.15s;
}
.roadside-card:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}
.roadside-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 6px;
}
.roadside-card h4 { font-size: 15px; font-weight: 600; }
.roadside-highway {
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 4px;
    background: rgba(231,76,60,0.12);
    color: #e74c3c;
    font-weight: 600;
    white-space: nowrap;
}
.roadside-pulloff {
    font-size: 12px;
    color: var(--text-dim);
    margin-bottom: 6px;
    font-style: italic;
}
.roadside-gems {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 6px;
}

/* Mine cards */
.mines-intro, .ghost-intro { color: var(--text-dim); margin-bottom: 16px; font-size: 14px; line-height: 1.6; }
.mines-filters { display: flex; gap: 4px; margin-bottom: 16px; flex-wrap: wrap; }
.filter-btn {
    background: var(--surface2); border: 1px solid var(--border); color: var(--text-dim);
    padding: 4px 12px; border-radius: 16px; cursor: pointer; font-family: inherit; font-size: 12px;
}
.filter-btn.active { color: var(--accent); border-color: var(--accent); background: rgba(232,168,56,0.08); }
.mine-card {
    background: var(--surface2); border-radius: var(--radius); padding: 14px;
    margin-bottom: 10px; cursor: pointer; transition: transform 0.15s, box-shadow 0.15s;
}
.mine-card:hover { transform: translateX(4px); box-shadow: 0 4px 16px rgba(0,0,0,0.3); }
.mine-card-header { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 6px; }
.mine-icon { font-size: 20px; }
.mine-card h3 { font-size: 15px; font-weight: 600; margin: 0; }
.mine-status { font-size: 11px; font-weight: 500; text-transform: capitalize; }
.mine-type, .mine-state { font-size: 11px; color: var(--text-dim); margin-left: 6px; }
.mine-minerals { font-size: 12px; color: var(--accent); margin: 4px 0; }
.mine-years { font-size: 11px; color: var(--text-dim); }

/* Ghost town cards */
.ghost-card {
    background: var(--surface2); border-radius: var(--radius); padding: 14px;
    margin-bottom: 10px; cursor: pointer; border-left: 3px solid #95a5a6;
    transition: transform 0.15s, box-shadow 0.15s;
}
.ghost-card:hover { transform: translateX(4px); box-shadow: 0 4px 16px rgba(0,0,0,0.3); }
.ghost-card-header { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 6px; }
.ghost-card-icon { font-size: 20px; }
.ghost-card h3 { font-size: 15px; font-weight: 600; margin: 0; }
.ghost-state, .ghost-boom, .ghost-status { font-size: 11px; color: var(--text-dim); margin-left: 4px; }
.ghost-boom { color: var(--accent); }
.ghost-peak { font-size: 12px; color: var(--text-dim); margin: 2px 0; }
.ghost-preview { font-size: 13px; color: var(--text-dim); line-height: 1.4; margin-top: 4px; }

/* Ghost town map marker */
.ghost-town-marker { background: none; border: none; }
.ghost-icon { font-size: 18px; filter: drop-shadow(0 1px 2px rgba(0,0,0,0.5)); }

/* Search result types */
.search-result-type.mine { background: #95a5a6; }
.search-result-type.ghost { background: #7f8c8d; }

/* Clickable gem tags */
.gem-tag.clickable {
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
}
.gem-tag.clickable:hover {
    transform: scale(1.08);
    box-shadow: 0 0 8px rgba(232, 168, 56, 0.4);
}

/* Gem photo gallery */
.gem-photo-gallery {
    display: flex;
    gap: 12px;
    margin: 16px 0 20px;
    overflow-x: auto;
}
.gem-photo-card {
    flex: 1;
    min-width: 140px;
    max-width: 50%;
    background: var(--surface2);
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
}
.gem-photo-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}
.gem-photo-label {
    display: block;
    text-align: center;
    padding: 6px 8px;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-dim);
    background: var(--surface2);
}
.specimen-photo {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
    border-radius: var(--radius) var(--radius) 0 0;
}

/* Gem encyclopedia detail */
.gem-color-strip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 16px 0 20px;
    padding: 16px;
    background: var(--surface2);
    border-radius: var(--radius);
}
.gem-color-swatch {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}
.gem-color-swatch span {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-dim);
}
.swatch-circle {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.15);
    box-shadow: 0 0 16px rgba(0,0,0,0.3), inset 0 -4px 8px rgba(0,0,0,0.2);
}
.gem-color-arrow {
    font-size: 18px;
    color: var(--text-dim);
}

.gem-terrain-section {
    background: rgba(46, 204, 113, 0.05);
    border-left: 3px solid #2ecc71;
    padding: 14px 16px;
    border-radius: 0 var(--radius) var(--radius) 0;
}
.terrain-photo {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: var(--radius);
    margin-bottom: 10px;
    opacity: 0.85;
}

.gem-specimen-card {
    background: var(--surface2);
    border-radius: var(--radius);
    overflow: hidden;
}
.gem-specimen-card .specimen-color-bar {
    height: 6px;
    width: 100%;
}
.gem-specimen-card p {
    padding: 12px 14px;
    font-size: 14px;
    line-height: 1.6;
}
.gem-specimen-card.refined {
    border: 1px solid rgba(232, 168, 56, 0.2);
}

.gem-athome-card {
    background: rgba(232, 168, 56, 0.06);
    border: 1px solid rgba(232, 168, 56, 0.15);
    border-radius: var(--radius);
    padding: 14px;
}
.gem-athome-card p {
    font-size: 14px;
    line-height: 1.6;
}

.gem-community-card {
    background: rgba(52, 152, 219, 0.06);
    border: 1px solid rgba(52, 152, 219, 0.15);
    border-radius: var(--radius);
    padding: 14px;
}
.gem-community-card p {
    font-size: 14px;
    line-height: 1.6;
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-dim); }
