:root {
    --primary: #0d9488; /* Teal 600 - Rất thân thiện và "Medical/Accessibility" vibe */
    --primary-light: #ccfbf1;
    --dark: #0f172a;
    --gray: #64748b;
    --light: #f8fafc;
    --white: #ffffff;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --shadow: 0 4px 20px rgba(0,0,0,0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--light);
    color: var(--dark);
    height: 100vh;
    width: 100vw;
    overflow: hidden;
}

/* Glassmorphism utility */
.glass-effect {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Bản đồ toàn màn hình */
#map {
    height: 100vh;
    width: 100vw;
    z-index: 1;
}

/* Lớp phủ Tìm kiếm trên cùng */
.search-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 15px;
    z-index: 1000;
    pointer-events: none; /* Let clicks pass through empty areas */
}

.search-bar {
    pointer-events: auto;
    display: flex;
    align-items: center;
    padding: 12px 15px;
    border-radius: 999px;
    box-shadow: var(--shadow);
    margin-bottom: 15px;
}

.search-bar i.bx-search {
    font-size: 22px;
    color: var(--gray);
}

.search-bar input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 0 12px;
    font-size: 15px;
    outline: none;
    font-weight: 500;
}

.filter-btn {
    background: none;
    border: none;
    font-size: 20px;
    color: var(--primary);
    cursor: pointer;
}

.quick-filters {
    pointer-events: auto;
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 5px;
}
.quick-filters::-webkit-scrollbar { display: none; } /* Hide scrollbar for pills */

.pill {
    background: var(--white);
    border: none;
    padding: 8px 16px;
    border-radius: 99px;
    font-size: 13px;
    font-weight: 500;
    color: var(--dark);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

.pill.active {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 12px 24px rgba(13,148,136,.2);
}

.marker-cluster-shell {
    background: transparent;
    border: none;
}

.marker-cluster-custom {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: radial-gradient(circle at 32% 30%, rgba(255,255,255,.24), transparent 30%), var(--cluster-color, var(--primary));
    border: 4px solid rgba(255,255,255,.95);
    box-shadow: 0 14px 28px rgba(15,23,42,.2);
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.marker-cluster-custom.small { transform: scale(.92); }
.marker-cluster-custom.large { transform: scale(1.08); }

.marker-cluster-custom span {
    font-size: 15px;
    font-weight: 800;
    line-height: 1;
}

.marker-cluster-custom i {
    font-size: 14px;
    opacity: .9;
    margin-top: 2px;
}

.search-highlight-wrap {
    pointer-events: auto;
}

.search-highlight-badge {
    position: absolute;
    left: 50%;
    top: -10px;
    transform: translateX(-50%);
    max-width: 170px;
    background: rgba(15,23,42,.88);
    color: #fff;
    border-radius: 999px;
    padding: 8px 10px 8px 12px;
    box-shadow: 0 10px 24px rgba(15,23,42,.22);
    border: 2px solid rgba(255,255,255,.9);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.search-highlight-badge span {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
}

.search-highlight-close {
    width: 22px;
    height: 22px;
    border: none;
    border-radius: 50%;
    background: rgba(255,255,255,.16);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
}

.search-highlight-pin {
    position: absolute;
    left: 50%;
    top: 28px;
    margin-left: -26px;
    width: 52px;
    height: 52px;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    background: radial-gradient(circle at 35% 30%, rgba(255,255,255,.28), transparent 28%), var(--highlight-color, var(--primary));
    border: 4px solid #fff;
    box-shadow: 0 18px 32px rgba(15,23,42,.24);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: search-marker-bob 1.2s ease-in-out infinite;
}

.search-highlight-pin i {
    transform: rotate(45deg);
    color: #fff;
    font-size: 24px;
}

.search-highlight-pulse {
    animation: search-pulse 2.2s ease-out infinite;
}

@keyframes search-pulse {
    0% {
        transform: scale(.92);
        opacity: .55;
    }
    100% {
        transform: scale(1.45);
        opacity: 0;
    }
}

@keyframes search-marker-bob {
    0%, 100% {
        transform: rotate(-45deg) translateY(0);
    }
    50% {
        transform: rotate(-45deg) translateY(-4px);
    }
}

/* Thẻ Chi tiết (Bottom Sheet) */
.bottom-sheet {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--white);
    border-radius: 24px 24px 0 0;
    box-shadow: 0 -5px 25px rgba(0,0,0,0.1);
    z-index: 1001;
    padding: 20px 20px 100px 20px; /* Thêm padding đáy để không đè bottom nav */
    transform: translateY(calc(100% + 24px));
    opacity: 0;
    visibility: hidden;
    will-change: transform, opacity;
    transition:
        transform 0.34s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.22s ease,
        visibility 0s linear 0.34s;
    pointer-events: auto;
}

.bottom-sheet.show {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    transition:
        transform 0.34s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.22s ease,
        visibility 0s linear 0s;
}

.drag-handle {
    width: 40px;
    height: 5px;
    background: #cbd5e1;
    border-radius: 10px;
    margin: 0 auto 15px auto;
    cursor: pointer;
}

.place-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.place-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 4px;
}

.place-address {
    font-size: 13px;
    color: var(--gray);
}

.trust-strip {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.trust-badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.trust-badge.osm {
    background: #e2e8f0;
    color: #475569;
}

.trust-badge.community {
    background: #cffafe;
    color: #0f766e;
}

.trust-badge.admin {
    background: #dcfce7;
    color: #15803d;
}

.trust-note {
    font-size: 12px;
    color: var(--gray);
}

.place-score .score {
    background: var(--success);
    color: var(--white);
    font-weight: 700;
    font-size: 16px;
    padding: 6px 12px;
    border-radius: 12px;
}

.accessibility-tags {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.tag {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
}

.tag.safe {
    background: var(--primary-light);
    color: var(--primary);
}

.tag.warning {
    background: #fef3c7;
    color: #d97706;
}

.tag.info {
    background: #e0f2fe;
    color: #0369a1;
}

.place-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.btn {
    flex: 1;
    border: none;
    padding: 12px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
}

.btn-outline {
    background: transparent;
    border: 1px solid #e2e8f0;
    color: var(--dark);
}

.detail-gallery {
    margin-bottom: 16px;
}

.hero-photo-wrap {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
    min-height: 220px;
    margin-bottom: 12px;
}

.hero-photo-wrap img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.hero-photo-wrap a {
    position: absolute;
    right: 12px;
    bottom: 12px;
    background: rgba(15, 23, 42, 0.78);
    color: #fff;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    backdrop-filter: blur(6px);
}

.photo-scroll {
    display: flex;
    gap: 10px;
    overflow-x: auto;
}
.photo-scroll::-webkit-scrollbar { display: none; }

.photo-scroll.large img {
    width: 92px;
    height: 92px;
    border-radius: 14px;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid transparent;
    cursor: pointer;
}

.photo-scroll.large img.active {
    border-color: var(--primary);
    box-shadow: 0 8px 20px rgba(13, 148, 136, 0.18);
}

.detail-meta {
    margin-bottom: 16px;
}

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

.meta-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 14px;
    margin-bottom: 10px;
}

.meta-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    color: #475569;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.meta-value {
    font-size: 14px;
    line-height: 1.5;
    color: var(--dark);
}

.meta-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
}

.meta-link:hover {
    text-decoration: underline;
}

/* Thanh điều hướng Botttom Nav */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-around;
    padding: 12px 0 25px 0; /* padding đáy lớn hơn cho iPhone X+ notch */
    box-shadow: 0 -4px 20px rgba(0,0,0,0.05);
    z-index: 1002;
    pointer-events: auto;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--gray);
    gap: 4px;
}

.nav-item i {
    font-size: 24px;
}

.nav-item span {
    font-size: 11px;
    font-weight: 500;
}

.nav-item.active {
    color: var(--primary);
}

.nav-item .fab {
    background: var(--primary);
    color: var(--white);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(13, 148, 136, 0.4);
    transform: translateY(-15px);
}
.nav-item .fab i {
    font-size: 28px;
}

/* Custom Marker CSS in Leaflet */
.custom-marker {
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    width: 36px;
    height: 36px;
    border: 3px solid white;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

/* Form Styles */
.form-group { margin-bottom: 15px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; color: var(--gray); margin-bottom: 5px; }
.form-group input { width: 100%; padding: 12px 15px; border: 1px solid #e2e8f0; border-radius: 12px; font-size: 14px; font-family: inherit; outline: none; transition: border-color .2s ease, box-shadow .2s ease, background .2s ease; }
.form-group input:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.10); }
.form-group input.is-valid { border-color: var(--success); background: #f0fdf4; }
.form-group input.is-invalid { border-color: var(--danger); background: #fff5f5; }
.location-status { display: flex; align-items: center; gap: 8px; background: linear-gradient(135deg, #ecfeff, #f1f5f9); padding: 12px 15px; border-radius: 16px; font-size: 13px; font-weight: 600; color: var(--primary); border: 1px solid rgba(13,148,136,.12); }
.location-status.warning { color: #b45309; background: linear-gradient(135deg, #fffbeb, #fff7ed); border-color: rgba(245,158,11,.16); }
.location-status.danger { color: #b91c1c; background: linear-gradient(135deg, #fff1f2, #fff7f7); border-color: rgba(239,68,68,.16); }
.toggle-group { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.toggle-group label { font-size: 13px; font-weight: 500; flex: 1; padding-right: 10px; }
.toggle-group select { width: 160px; padding: 10px 12px; font-weight: 600; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 12px; outline: none; }
#addPlaceModal { max-height: 85vh; overflow-y: auto; padding-bottom: 90px; z-index: 1003; }
#addPlaceModal::-webkit-scrollbar { display: none; }
.add-place-hero {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 16px 18px;
    margin-bottom: 14px;
    border-radius: 20px;
    background: radial-gradient(circle at top right, rgba(13,148,136,.18), transparent 35%), linear-gradient(135deg, #f0fdfa, #f8fafc 75%);
    border: 1px solid rgba(13,148,136,.14);
}
.add-place-hero-title { font-size: 16px; font-weight: 700; color: var(--dark); margin-bottom: 5px; }
.add-place-hero-note { font-size: 12px; line-height: 1.5; color: var(--gray); }
.add-place-hero-badge {
    min-width: 64px;
    height: 64px;
    border-radius: 18px;
    background: var(--white);
    border: 1px solid rgba(13,148,136,.12);
    color: var(--primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    box-shadow: 0 10px 24px rgba(13,148,136,.08);
}
.add-place-hero-badge i { font-size: 24px; }
.add-place-hero-badge span { font-size: 12px; font-weight: 700; }
.add-section-card {
    background: #fff;
    border: 1px solid #e8eef5;
    border-radius: 20px;
    padding: 16px;
    margin-bottom: 14px;
    box-shadow: 0 8px 30px rgba(15,23,42,.04);
}
.add-section-head { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; }
.add-section-head h4 { font-size: 15px; margin-bottom: 4px; }
.add-section-head p { font-size: 12px; color: var(--gray); line-height: 1.5; }
.add-step {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: var(--white);
    background: linear-gradient(135deg, var(--primary), #14b8a6);
    box-shadow: 0 8px 16px rgba(13,148,136,.22);
}
.field-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 6px; }
.field-meta.compact { margin-top: 10px; }
.field-hint { font-size: 12px; color: var(--gray); line-height: 1.45; }
.char-count { font-size: 11px; font-weight: 700; color: #94a3b8; white-space: nowrap; }
.char-count.near-limit { color: #b45309; }
.char-count.limit-reached { color: var(--danger); }
.coord-status { margin-top: 8px; font-size: 12px; color: var(--gray); line-height: 1.45; padding-left: 2px; }
.coord-status.ready { color: var(--success); font-weight: 600; }
.coord-status.error { color: var(--danger); font-weight: 600; }
.map-pick-hint {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: 8px;
    font-size: 12px;
    line-height: 1.45;
    color: #0f766e;
    background: rgba(13, 148, 136, 0.06);
    border: 1px solid rgba(13, 148, 136, 0.12);
    border-radius: 12px;
    padding: 9px 11px;
}
.map-pick-hint i { font-size: 16px; }
.coord-preview {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 14px;
    padding: 12px 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
}
.coord-preview-chip { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; color: #0f766e; }
.coord-preview-chip i { font-size: 18px; }
.coord-recenter-btn {
    border: none;
    background: var(--white);
    color: var(--primary);
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 4px 14px rgba(15,23,42,.08);
    cursor: pointer;
}
.upload-dropzone {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 18px 14px;
    text-align: center;
    border: 2px dashed #b6e5df;
    border-radius: 18px;
    background: linear-gradient(135deg, #f0fdfa, #fcfffe);
    cursor: pointer;
    transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.upload-dropzone:hover,
.upload-dropzone:focus { border-color: var(--primary); transform: translateY(-1px); box-shadow: 0 12px 28px rgba(13,148,136,.12); outline: none; }
.upload-dropzone i { font-size: 28px; color: var(--primary); }
.upload-dropzone strong { font-size: 14px; color: var(--dark); }
.upload-dropzone span { font-size: 12px; color: var(--gray); }
.photo-preview-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.photo-preview-card { position: relative; aspect-ratio: 1 / 1; border-radius: 16px; overflow: hidden; background: #e2e8f0; border: 1px solid #dbe4ee; }
.photo-preview-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-preview-badge {
    position: absolute;
    left: 8px;
    top: 8px;
    background: rgba(15,23,42,.7);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    border-radius: 999px;
    padding: 4px 8px;
}
.criteria-intro { margin-bottom: 12px; }
.criteria-intro h4 { font-size: 14px; margin-bottom: 4px; }
.criteria-intro p { font-size: 12px; color: var(--gray); line-height: 1.5; }
.criteria-grid { display: grid; grid-template-columns: 1fr; gap: 10px; }
.toggle-group.card { align-items: flex-start; padding: 14px; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 16px; margin-bottom: 0; }
.toggle-group.card label { font-weight: 600; line-height: 1.5; }
.submit-summary { margin: 8px 0 14px; padding: 14px 16px; border-radius: 16px; background: linear-gradient(135deg, #eff6ff, #f8fafc); border: 1px solid #dbeafe; }
.summary-item { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; color: #1d4ed8; line-height: 1.5; }
.summary-item i { font-size: 18px; margin-top: 1px; }
.add-submit-btn { width: 100%; margin-top: 6px; box-shadow: 0 16px 28px rgba(13,148,136,.22); }
.add-submit-btn:disabled { opacity: .7; cursor: wait; }
.map-pick-marker {
    width: 22px;
    height: 22px;
    border-radius: 50% 50% 50% 0;
    background: linear-gradient(135deg, #0d9488, #14b8a6);
    transform: rotate(-45deg);
    border: 3px solid #fff;
    box-shadow: 0 10px 22px rgba(13,148,136,.28);
    position: relative;
}
.map-pick-marker::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #fff;
    top: 4px;
    left: 4px;
}
.map-pick-popup-wrap .leaflet-popup-content-wrapper {
    border-radius: 18px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
}
.map-pick-popup-wrap .leaflet-popup-content {
    margin: 0;
}
.map-pick-popup {
    min-width: 200px;
    padding: 14px;
}
.map-pick-popup-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 4px;
}
.map-pick-popup-note {
    font-size: 12px;
    line-height: 1.45;
    color: var(--gray);
    margin-bottom: 10px;
}
.map-pick-popup-btn {
    width: 100%;
    border: none;
    border-radius: 12px;
    padding: 10px 12px;
    background: linear-gradient(135deg, var(--primary), #14b8a6);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(13, 148, 136, 0.22);
}

/* Nút Định Vị (Locate Me FAB) */
.locate-fab {
    position: absolute;
    right: 15px;
    bottom: 110px; /* Nổi trên bottom nav */
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    font-size: 22px;
    color: var(--primary);
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1001;
    transition: transform 0.2s ease;
}
.locate-fab:active { transform: scale(0.92); }

/* Gợi ý tìm kiếm */
#searchSuggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    max-height: 250px;
    overflow-y: auto;
    margin-top: 8px;
    display: none;
    z-index: 1100;
    pointer-events: auto; /* Quan trọng để click được vì overlay là none */
}
#searchSuggestions.show { display: block; }
.suggestion-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    cursor: pointer;
    border-bottom: 1px solid #f1f5f9;
    font-size: 14px;
}
.suggestion-item:last-child { border-bottom: none; }
.suggestion-item:hover { background: #f8fafc; }
.suggestion-item i { color: var(--primary); font-size: 20px; }
.suggestion-item .sug-name { font-weight: 600; color: var(--dark); }
.suggestion-item .sug-addr { font-size: 12px; color: var(--gray); }

/* Geocode Suggestions bên trong Form */
#geocodeSuggestions {
    position: absolute;
    left: 0; right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    z-index: 2000;
    max-height: 220px;
    overflow-y: auto;
    display: none;
}
#geocodeSuggestions.show { display: block; }
#geocodeSuggestions .geo-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 11px 14px;
    cursor: pointer;
    border-bottom: 1px solid #f1f5f9;
    font-size: 13px;
}
#geocodeSuggestions .geo-item:last-child { border-bottom: none; }
#geocodeSuggestions .geo-item:hover { background: #f0fdf4; }
#geocodeSuggestions .geo-name { font-weight: 700; color: var(--dark); margin-bottom: 2px; }
#geocodeSuggestions .geo-addr { font-size: 12px; color: var(--gray); line-height: 1.4; }
/* Upload Photo UI */
.upload-btn-ui {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #f1f5f9;
    border: 2px dashed #cbd5e1;
    color: var(--primary);
    padding: 15px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.upload-btn-ui:active { background: #e2e8f0; }
.upload-btn-ui i { font-size: 20px; }

/* ===== NÚT ĐỀ XUẤT CHỈNH SỬA ===== */
.btn-suggest {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin: 8px 0 14px 0;
    padding: 11px 16px;
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    color: #16a34a;
    border: 1.5px dashed #86efac;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
    transition: all 0.2s ease;
}
.btn-suggest:hover { background: linear-gradient(135deg, #dcfce7, #bbf7d0); border-color: #4ade80; transform: translateY(-1px); }
.btn-suggest i { font-size: 18px; }

.btn-report {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin: 0 0 14px 0;
    padding: 11px 16px;
    background: linear-gradient(135deg, #fff7ed, #ffedd5);
    color: #c2410c;
    border: 1.5px dashed #fdba74;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
    transition: all 0.2s ease;
}
.btn-report:hover { background: linear-gradient(135deg, #ffedd5, #fed7aa); border-color: #fb923c; transform: translateY(-1px); }
.btn-report i { font-size: 18px; }
#suggestModal { max-height: 85vh; overflow-y: auto; padding-bottom: 90px; z-index: 1003; }
#suggestModal::-webkit-scrollbar { display: none; }
#reportModal { max-height: 85vh; overflow-y: auto; padding-bottom: 90px; z-index: 1003; }
#reportModal::-webkit-scrollbar { display: none; }

#activityModal,
#profileModal {
    max-height: 85vh;
    overflow-y: auto;
    padding-bottom: 90px;
    z-index: 1003;
}

#activityModal::-webkit-scrollbar,
#profileModal::-webkit-scrollbar {
    display: none;
}

.community-highlight {
    background: linear-gradient(135deg, #ecfeff, #cffafe);
    border: 1px solid #a5f3fc;
    color: #155e75;
    padding: 16px;
    border-radius: 16px;
    margin-bottom: 16px;
}

.community-title {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 6px;
}

.community-note {
    font-size: 13px;
    line-height: 1.5;
}

.section-block {
    margin-bottom: 18px;
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.section-head h4 {
    font-size: 15px;
    margin: 0;
}

.section-head span {
    font-size: 12px;
    color: var(--gray);
}

.leaderboard-list,
.activity-history {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.leaderboard-row,
.history-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
}

.leaderboard-rank {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #0d9488;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.leaderboard-meta,
.history-meta {
    flex: 1;
    min-width: 0;
}

.leaderboard-name,
.history-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--dark);
}

.leaderboard-sub,
.history-sub {
    font-size: 12px;
    color: var(--gray);
    margin-top: 3px;
}

.leaderboard-score {
    text-align: right;
    color: #0f766e;
    font-weight: 700;
    font-size: 14px;
}

.auth-switch {
    display: flex;
    gap: 8px;
    margin-bottom: 14px;
}

.auth-tab {
    flex: 1;
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    color: #334155;
    border-radius: 999px;
    padding: 10px 14px;
    font-weight: 700;
    cursor: pointer;
}

.auth-tab.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.profile-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #0f766e, #14b8a6);
    color: #fff;
    border-radius: 18px;
    padding: 18px;
    margin-bottom: 14px;
}

.profile-name {
    font-size: 18px;
    font-weight: 700;
}

.profile-level {
    font-size: 13px;
    opacity: 0.92;
    margin-top: 4px;
}

.profile-points {
    text-align: right;
}

.profile-points span {
    display: block;
    font-size: 28px;
    font-weight: 800;
    line-height: 1;
}

.profile-points small {
    font-size: 12px;
    opacity: 0.9;
}

.trust-meter {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 14px;
    margin-bottom: 14px;
}

.trust-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    font-weight: 700;
    color: #334155;
    margin-bottom: 8px;
}

.progress-bar {
    width: 100%;
    height: 10px;
    border-radius: 999px;
    background: #dbeafe;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #0d9488, #22c55e);
}

.progress-note {
    font-size: 12px;
    color: var(--gray);
    margin-top: 8px;
}

.stats-mini-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 14px;
}

.mini-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 12px;
    text-align: center;
}

.mini-card strong {
    display: block;
    font-size: 20px;
    color: #0f172a;
    margin-bottom: 4px;
}

.mini-card span {
    font-size: 11px;
    color: var(--gray);
    line-height: 1.4;
}

.badges-wrap {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fef3c7;
    color: #92400e;
    border-radius: 999px;
    padding: 7px 10px;
    font-size: 12px;
    font-weight: 700;
}

@media (max-width: 768px) {
    .photo-preview-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .toggle-group,
    .toggle-group.card {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .toggle-group select {
        width: 100%;
    }

    .coord-preview {
        flex-direction: column;
        align-items: stretch;
    }
}

.role-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    padding: 7px 10px;
    font-size: 12px;
    font-weight: 700;
}

.role-pill.role-member {
    background: #e2e8f0;
    color: #475569;
}

.role-pill.role-trusted {
    background: #cffafe;
    color: #155e75;
}

.role-pill.role-moderator {
    background: #dbeafe;
    color: #1d4ed8;
}

.role-pill.role-admin {
    background: #fef3c7;
    color: #92400e;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    padding: 4px 9px;
    font-size: 11px;
    font-weight: 700;
}

.status-pill.pending {
    background: #fef3c7;
    color: #b45309;
}

.status-pill.approved {
    background: #dcfce7;
    color: #15803d;
}

.status-pill.rejected {
    background: #fee2e2;
    color: #b91c1c;
}

.empty-state {
    text-align: center;
    color: var(--gray);
    font-style: italic;
    padding: 18px 14px;
}

@media (max-width: 600px) {
    .meta-grid {
        grid-template-columns: 1fr;
    }

    .stats-mini-grid {
        grid-template-columns: 1fr;
    }
}
