.ppaos-map-level-legend {
    position: absolute;
    left: 12px;
    bottom: 12px;
    z-index: 6;
    padding: 6px 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid #e2e8f0;
    font-family: Kanit, sans-serif;
    font-size: 10px;
    color: #374151;
    pointer-events: none;
}

.ppaos-map-level-legend .ppaos-legend-row {
    display: flex;
    align-items: center;
    gap: 6px;
    line-height: 1.35;
    margin: 2px 0;
}

.ppaos-map-level-legend .ppaos-legend-swatch {
    width: 12px;
    height: 12px;
    border-radius: 2px;
    flex-shrink: 0;
}

.region-boundary-line {
    fill: none;
    stroke: #ffffff;
    stroke-width: 0.5px;
    stroke-linecap: round;
    stroke-linejoin: round;
    vector-effect: non-scaling-stroke;
}

#mapContainer.ppaos-map-mode-satellite .region-boundary-line {
    stroke-width: 0.5px;
}

.map-hover-tooltip {
    position: fixed;
    z-index: 1200;
    pointer-events: none;
}

.map-fixed-tip {
    position: fixed;
    z-index: 1200;
    padding: 5px 10px;
    border-radius: 6px;
    background: rgba(15, 23, 42, 0.94);
    color: #f8fafc;
    font-family: Kanit, sans-serif;
    font-size: 10.5px;
    font-weight: 500;
    line-height: 1.3;
    white-space: nowrap;
    pointer-events: none;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.22);
    transition: opacity 0.15s ease;
}

.ppaos-map-nav-back-btn {
    position: relative;
}

.map-active-info-card {
    z-index: 150;
}

#mapContainer.ppaos-map-region-pick.ppaos-map-mode-satellite:not(.ppaos-map-pin-mode) path.province {
    fill-opacity: 0.72 !important;
}

#mapContainer.ppaos-map-region-pick path.province {
    stroke: none !important;
    stroke-width: 0 !important;
}

#mapContainer.ppaos-map-region-pick .region-boundary-lines {
    pointer-events: none;
}

.ppaos-map-card-body .map-zoom-controls,
.ppaos-map-layer-stack {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 165;
    pointer-events: auto;
}

.ppaos-map-layer-stack {
    top: calc(12px + (32px + 4px) * 4 + 8px);
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    width: auto;
    max-width: min(420px, calc(100% - 24px));
}

.ppaos-map-card-body .map-btn-group {
    top: 12px;
    left: 12px;
    gap: 6px;
    display: flex;
    flex-wrap: nowrap;
    max-width: calc(100% - 24px);
    z-index: 105;
}

.ppaos-map-card-body .map-btn-group .btn {
    margin: 0 !important;
    border-radius: 12px;
    padding: 7px 14px;
    font-weight: 600;
    box-shadow: 0 6px 16px rgba(30, 64, 175, 0.22);
    white-space: nowrap;
    flex-shrink: 0;
}

.ppaos-map-card-body .map-btn-group .ppaos-map-btn-back-district {
    display: none !important;
}

#mapContainer.ppaos-map-pin-mode .map-btn-group .ppaos-map-btn-back-district {
    display: inline-block !important;
}

.ppaos-map-ctrl-has-tip {
    position: relative;
}

.ppaos-map-ctrl-has-tip::after {
    content: attr(data-tip);
    position: absolute;
    right: calc(100% + 8px);
    top: 50%;
    transform: translateY(-50%);
    padding: 5px 9px;
    border-radius: 6px;
    background: rgba(15, 23, 42, 0.94);
    color: #f8fafc;
    font-family: Kanit, sans-serif;
    font-size: 10.5px;
    font-weight: 500;
    line-height: 1.3;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.15s ease, visibility 0.15s ease;
    z-index: 220;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.22);
}

.ppaos-map-ctrl-has-tip:hover::after,
.ppaos-map-ctrl-has-tip:focus-visible::after {
    opacity: 1;
    visibility: visible;
}

.ppaos-map-card-body .map-zoom-controls {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

#mapContainer.ppaos-map-leaflet-pin-active .leaflet-control-zoom {
    display: none !important;
}

.ppaos-map-utility-controls {
    position: absolute;
    top: calc(12px + (32px + 4px) * 3 + 4px);
    right: 12px;
    z-index: 175;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    pointer-events: none;
}

.ppaos-map-utility-controls > * {
    pointer-events: auto;
}

.ppaos-map-bottom-corner {
    position: absolute;
    right: 16px;
    bottom: 16px;
    z-index: 12;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    width: auto;
    max-width: min(248px, calc(100% - 32px));
    pointer-events: none;
}

.ppaos-map-bottom-corner > * {
    pointer-events: auto;
}

.ppaos-map-bottom-corner .map-score-badge {
    position: static;
    right: auto;
    bottom: auto;
}

.ppaos-map-bottom-corner .ppaos-map-coords-chip {
    margin-left: 0;
    max-width: min(260px, calc(100vw - 56px));
}

.ppaos-map-welfare-anchor {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    width: 100%;
    max-width: min(248px, calc(100vw - 56px));
    padding: 7px 8px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.14);
}

.ppaos-map-welfare-anchor.is-visible {
    display: flex;
}

.ppaos-map-welfare-label {
    padding: 0 0 5px;
    margin: 0;
    border-bottom: 1px solid #e2e8f0;
    color: #1e3a5f;
    font-family: Kanit, sans-serif;
    font-size: 9px;
    font-weight: 600;
    line-height: 1.35;
    text-align: right;
    white-space: normal;
}

.ppaos-map-welfare-filter {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: flex-end;
    gap: 3px;
    padding: 0;
}

.ppaos-map-welfare-btn {
    flex: 0 0 auto;
    min-width: 52px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background: #fff;
    color: #334155;
    font-family: Kanit, sans-serif;
    font-size: 9.5px;
    font-weight: 600;
    line-height: 1.2;
    padding: 5px 7px;
    white-space: nowrap;
    cursor: pointer;
}

.ppaos-map-welfare-btn:hover {
    border-color: #93c5fd;
    background: #f8fafc;
}

.ppaos-map-welfare-btn.is-active {
    border-color: #1e3a5f;
    background: #1e3a5f;
    color: #fff;
}

.ppaos-map-card.is-map-fullscreen,
.ppaos-map-card:fullscreen {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1050;
    width: 100vw !important;
    max-width: none !important;
    height: 100vh !important;
    margin: 0 !important;
    border-radius: 0;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.ppaos-map-card.is-map-fullscreen .card-header,
.ppaos-map-card:fullscreen .card-header {
    flex-shrink: 0;
}

.ppaos-map-card.is-map-fullscreen .ppaos-map-card-body,
.ppaos-map-card:fullscreen .ppaos-map-card-body {
    flex: 1;
    min-height: 0;
    width: 100%;
    display: block;
    position: relative;
}

.ppaos-map-card.is-map-fullscreen .ppaos-map-viewport,
.ppaos-map-card:fullscreen .ppaos-map-viewport {
    position: absolute;
    inset: 0;
    height: auto !important;
}

.ppaos-map-card.is-map-fullscreen #mapContainer,
.ppaos-map-card:fullscreen #mapContainer,
#mapContainer.ppaos-map-container-fullscreen {
    flex: 1 1 auto;
    width: 100% !important;
    height: 100% !important;
    min-height: 0;
}

body.ppaos-map-fullscreen-active {
    overflow: hidden;
}

:root {
    --ppaos-map-fs-sticky-h: 56px;
}

body.ppaos-map-fs-sticky-mode #stickyFilterBar.sticky-filter-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100vw;
    max-width: 100vw;
    margin: 0;
    z-index: 1061;
    border-radius: 0;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
}

body.ppaos-map-fs-sticky-mode #stickyFilterBar .container-fluid {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding-left: 14px;
    padding-right: 14px;
}

body.ppaos-map-fs-sticky-mode #stickyFilterBar .sfb-right {
    margin-left: auto;
    flex: 1 1 auto;
    justify-content: flex-end;
}

body.ppaos-map-fs-sticky-mode .ppaos-map-card.is-map-fullscreen,
body.ppaos-map-fs-sticky-mode .ppaos-map-card:fullscreen {
    top: var(--ppaos-map-fs-sticky-h);
    height: calc(100vh - var(--ppaos-map-fs-sticky-h)) !important;
    padding-top: 0;
}

body.ppaos-map-fullscreen-active.ppaos-map-fs-sticky-mode .map-active-info-card {
    top: 16px;
    right: 64px;
    max-width: min(268px, calc(100vw - 120px));
}

body.ppaos-map-fullscreen-active .ppaos-map-card-body .map-btn-group {
    top: 16px;
    left: 16px;
    max-width: calc(100% - 280px);
}

body.ppaos-map-fs-sticky-mode .ppaos-map-card.is-map-fullscreen .card-header {
    display: none;
}

.ppaos-map-card.is-map-fullscreen .modal,
body.ppaos-map-modal-stack .modal {
    z-index: 20000 !important;
}

.ppaos-map-card.is-map-fullscreen .modal-backdrop,
body.ppaos-map-modal-stack .modal-backdrop {
    z-index: 19990 !important;
}

.ppaos-map-layer-btn {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.92);
    color: #1e3a5f;
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.ppaos-map-layer-btn:hover,
.ppaos-map-layer-btn.is-satellite {
    background: #1e3a5f;
    color: #fff;
}

.ppaos-map-col {
    align-items: flex-start;
}

.ppaos-map-col,
.ppaos-map-card,
.ppaos-map-card .card-body {
    overflow: visible;
}

.ppaos-map-card {
    align-self: flex-start;
    width: 100%;
}

.ppaos-map-card-body {
    display: block;
}

.ppaos-map-coords-chip {
    position: relative;
    left: auto;
    bottom: auto;
    z-index: 1;
    display: none;
    align-items: center;
    justify-content: flex-start;
    gap: 9px;
    width: auto;
    max-width: min(360px, calc(100vw - 32px));
    margin-left: auto;
    padding: 9px 13px 9px 10px;
    border: 1px solid rgba(148, 163, 184, 0.4);
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.96));
    font-family: Kanit, sans-serif;
    font-size: 12px;
    line-height: 1.35;
    color: #1e293b;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.88);
    white-space: normal;
    text-align: left;
    transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.ppaos-coords-chip-icon {
    width: 30px;
    height: 30px;
    border-radius: 12px;
    background: linear-gradient(135deg, #1d4ed8, #38bdf8);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    box-shadow: 0 8px 16px rgba(37, 99, 235, 0.26);
}

.ppaos-coords-chip-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.ppaos-coords-chip-main {
    font-size: 12.8px;
    font-weight: 700;
    color: #0f172a;
}

.ppaos-coords-chip-main strong,
.ppaos-coords-chip-sub strong {
    font-weight: 800;
    color: #1d4ed8;
}

.ppaos-coords-chip-sub {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 11.6px;
    font-weight: 600;
    color: #475569;
}

.ppaos-map-layer-stack .ppaos-map-coords-chip {
    margin-top: 2px;
    margin-left: 0;
    align-self: flex-end;
}

.ppaos-map-coords-chip.ppaos-coords-chip-clickable {
    cursor: pointer;
}

.ppaos-map-coords-chip.ppaos-coords-chip-clickable:hover {
    transform: translateY(-1px);
    border-color: rgba(59, 130, 246, 0.56);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.ppaos-coords-chip-muted {
    color: #64748b;
}

#mapContainer .ppaos-tile-layer {
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
    background: transparent;
}

#mapContainer .ppaos-leaflet-pin-map {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: none;
    background: #e2e8f0;
}

#mapContainer.ppaos-map-leaflet-pin-active .ppaos-leaflet-pin-map {
    display: block;
}

#mapContainer.ppaos-map-leaflet-pin-active > svg,
#mapContainer.ppaos-map-leaflet-pin-active .ppaos-tile-layer {
    visibility: hidden;
    pointer-events: none;
}

.ppaos-main-map-pin-wrap {
    background: transparent;
    border: 0;
}

.ppaos-main-map-pin-svg {
    width: 100%;
    height: 100%;
    overflow: visible;
    filter: drop-shadow(0 4px 7px rgba(15, 23, 42, 0.36));
}

.ppaos-main-map-pin-shape {
    stroke: #ffffff;
    stroke-width: 1.6px;
    vector-effect: non-scaling-stroke;
}

.ppaos-main-map-pin-core {
    fill: rgba(255, 255, 255, 0.95);
    stroke: rgba(15, 23, 42, 0.22);
    stroke-width: 0.8px;
    vector-effect: non-scaling-stroke;
}

.ppaos-main-map-pin-svg.is-active .ppaos-main-map-pin-shape {
    stroke: #fbbf24;
    stroke-width: 3px;
}

.ppaos-main-map-pin-svg.is-active .ppaos-main-map-pin-core {
    fill: #ffffff;
    stroke: #f59e0b;
    stroke-width: 1.5px;
}

.ppaos-main-map-pin-svg.is-active {
    filter: drop-shadow(0 0 8px rgba(251, 191, 36, 0.95))
        drop-shadow(0 4px 14px rgba(15, 23, 42, 0.5));
}

.ppaos-main-map-pin-svg.level-1 .ppaos-main-map-pin-shape { fill: #ef4444; }
.ppaos-main-map-pin-svg.level-2 .ppaos-main-map-pin-shape { fill: #f59e0b; }
.ppaos-main-map-pin-svg.level-3 .ppaos-main-map-pin-shape { fill: #0ea5e9; }
.ppaos-main-map-pin-svg.level-4 .ppaos-main-map-pin-shape { fill: #10b981; }
.ppaos-main-map-pin-svg.level-0 .ppaos-main-map-pin-shape { fill: #64748b; }

.ppaos-pin-hover-tip-root {
    position: absolute;
    z-index: 30;
    pointer-events: none;
}

.ppaos-pin-hover-tip {
    min-width: 168px;
    max-width: 280px;
    padding: 10px 12px;
    border-radius: 10px;
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.94));
    border: 1px solid rgba(148, 163, 184, 0.35);
    color: #f8fafc;
    font-family: Kanit, sans-serif;
    line-height: 1.35;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.32);
}

.ppaos-pin-hover-tip::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -6px;
    width: 12px;
    height: 12px;
    margin-left: -6px;
    background: rgba(30, 41, 59, 0.94);
    border-right: 1px solid rgba(148, 163, 184, 0.35);
    border-bottom: 1px solid rgba(148, 163, 184, 0.35);
    transform: rotate(45deg);
}

.ppaos-pin-hover-tip-root.is-below .ppaos-pin-hover-tip::after {
    bottom: auto;
    top: -6px;
    border-right: 1px solid rgba(148, 163, 184, 0.35);
    border-bottom: none;
    border-top: 1px solid rgba(148, 163, 184, 0.35);
}

.ppaos-pin-hover-tip-hc {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #f8fafc;
    margin-bottom: 3px;
}

.ppaos-pin-hover-tip-name {
    font-size: 11px;
    font-weight: 500;
    color: #cbd5e1;
}

.ppaos-pin-hover-tip-meta {
    margin-top: 6px;
    font-size: 11px;
    font-weight: 500;
    color: #e2e8f0;
}

.ppaos-pin-hover-tip-photo {
    margin-top: 4px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 600;
    color: #86efac;
}

.ppaos-pin-hover-tip-photo i {
    font-size: 10px;
}

#mapContainer.ppaos-map-pin-mode .ppaos-household-pins {
    pointer-events: none;
}

#mapContainer.ppaos-map-pin-mode .ppaos-pin-drop .pin-drop-shape {
    pointer-events: all;
}

#mapContainer.ppaos-map-pin-mode .tambon-paths,
#mapContainer.ppaos-map-pin-mode .tambon-labels,
#mapContainer.ppaos-map-pin-mode .district-paths,
#mapContainer.ppaos-map-pin-mode .district-labels,
#mapContainer.ppaos-map-hide-geo-polygons .tambon-paths,
#mapContainer.ppaos-map-hide-geo-polygons .tambon-labels,
#mapContainer.ppaos-map-hide-geo-polygons .district-paths,
#mapContainer.ppaos-map-hide-geo-polygons .district-labels {
    display: none !important;
}

.ppaos-household-pins .ppaos-pin-drop .pin-drop-shape {
    stroke: #ffffff;
    stroke-width: 1.6;
    vector-effect: non-scaling-stroke;
    filter: drop-shadow(0 4px 7px rgba(15, 23, 42, 0.36));
}

.ppaos-household-pins .ppaos-pin-drop .pin-drop-core {
    fill: rgba(255, 255, 255, 0.95);
    stroke: rgba(15, 23, 42, 0.22);
    stroke-width: 0.8;
    vector-effect: non-scaling-stroke;
}

.ppaos-household-pins .ppaos-pin-drop.is-shifted .pin-drop-shape {
    filter: drop-shadow(0 2px 5px rgba(15, 23, 42, 0.3));
}

.ppaos-household-pins .ppaos-pin-drop.level-1 .pin-drop-shape { fill: #ef4444; }
.ppaos-household-pins .ppaos-pin-drop.level-2 .pin-drop-shape { fill: #f59e0b; }
.ppaos-household-pins .ppaos-pin-drop.level-3 .pin-drop-shape { fill: #0ea5e9; }
.ppaos-household-pins .ppaos-pin-drop.level-4 .pin-drop-shape { fill: #10b981; }
.ppaos-household-pins .ppaos-pin-drop.level-0 .pin-drop-shape { fill: #64748b; }
.ppaos-household-pins .ppaos-pin-drop.is-pin-active .pin-drop-shape {
    stroke: #fbbf24;
    stroke-width: 3px;
    vector-effect: non-scaling-stroke;
    filter: drop-shadow(0 0 8px rgba(251, 191, 36, 0.95));
}
.ppaos-household-pins .ppaos-pin-drop.is-pin-active .pin-drop-core {
    fill: #ffffff;
    stroke: #f59e0b;
    stroke-width: 1.5px;
    vector-effect: non-scaling-stroke;
}
.ppaos-household-pins .ppaos-pin-drop.is-pin-active.is-shifted .pin-drop-shape {
    stroke: #fde047;
}

.ppaos-map-coords-drawer {
    position: absolute;
    inset: 0;
    z-index: 260;
    pointer-events: none;
    visibility: hidden;
}

.ppaos-map-card-body:has(.ppaos-map-coords-drawer.is-open) .ppaos-map-layer-stack,
.ppaos-map-card-body:has(.ppaos-map-coords-drawer.is-open) .map-zoom-controls,
.ppaos-map-card-body:has(.ppaos-map-coords-drawer.is-open) .ppaos-map-utility-controls,
.ppaos-map-card-body:has(.ppaos-map-coords-drawer.is-open) #mapContainer .leaflet-control-zoom {
    opacity: 0;
    z-index: 80;
    pointer-events: none;
}

.ppaos-map-coords-drawer.is-open {
    visibility: visible;
    pointer-events: auto;
}

.ppaos-map-coords-drawer-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.35);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.ppaos-map-coords-drawer.is-open .ppaos-map-coords-drawer-backdrop {
    opacity: 1;
}

.ppaos-map-coords-drawer-panel {
    position: absolute;
    top: 0;
    right: 0;
    width: min(540px, 96%);
    height: 100%;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    box-shadow: -14px 0 40px rgba(15, 23, 42, 0.22);
    transform: translateX(100%);
    transition: transform 0.25s ease;
    display: flex;
    flex-direction: column;
    font-family: Kanit, sans-serif;
}

.ppaos-map-coords-drawer.is-open .ppaos-map-coords-drawer-panel {
    transform: translateX(0);
}

.ppaos-map-coords-drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
    border-bottom: 1px solid #e2e8f0;
    font-weight: 800;
    font-size: 18px;
    color: #0f172a;
    background: rgba(255, 255, 255, 0.92);
}

.ppaos-map-coords-drawer-head .btn {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
}

.ppaos-map-coords-drawer-body-wrap {
    overflow: auto;
    flex: 1;
    padding: 14px 16px 16px;
}

.ppaos-map-coords-drawer-body-wrap table {
    width: 100%;
    font-size: 11px;
}

.ppaos-map-coords-drawer-body-wrap th {
    position: sticky;
    top: 0;
    background: #f8fafc;
    padding: 8px 6px;
    border-bottom: 1px solid #e2e8f0;
    white-space: nowrap;
}

.ppaos-map-coords-drawer-body-wrap td {
    padding: 6px;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: top;
}

.ppaos-coords-panel-summary {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 14px;
    border: 1px solid rgba(191, 219, 254, 0.8);
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(239, 246, 255, 0.98), rgba(255, 255, 255, 0.95));
    box-shadow: 0 10px 22px rgba(37, 99, 235, 0.08);
}

.ppaos-coords-panel-kicker {
    font-size: 12px;
    font-weight: 700;
    color: #2563eb;
}

.ppaos-coords-panel-total {
    margin-top: 2px;
    font-size: 20px;
    font-weight: 850;
    line-height: 1.25;
    color: #0f172a;
}

.ppaos-coords-panel-note {
    margin-top: 4px;
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
}

.ppaos-coords-panel-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 10px;
    border-radius: 999px;
    background: #fff;
    color: #475569;
    font-size: 11.5px;
    font-weight: 700;
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.08);
    white-space: nowrap;
}

.ppaos-coords-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 12px;
}

.ppaos-coords-tabs button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 42px;
    border: 1px solid #dbe4ef;
    border-radius: 14px;
    background: #fff;
    color: #334155;
    font-size: 12.8px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.06);
    transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}

.ppaos-coords-tabs button strong {
    min-width: 26px;
    padding: 2px 7px;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 12px;
}

.ppaos-coords-tabs button.is-active {
    border-color: #1e3a5f;
    background: linear-gradient(135deg, #1e3a5f, #2563eb);
    color: #fff;
    box-shadow: 0 10px 22px rgba(37, 99, 235, 0.18);
}

.ppaos-coords-tabs button.is-active strong {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
}

.ppaos-coords-search-wrap {
    position: relative;
    margin-top: 14px;
}

.ppaos-coords-search-wrap i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    font-size: 14px;
}

.ppaos-coords-search-wrap input {
    width: 100%;
    height: 44px;
    border: 1px solid #dbe4ef;
    border-radius: 14px;
    padding: 0 14px 0 40px;
    background: #fff;
    color: #0f172a;
    font-size: 13.5px;
    font-weight: 600;
    outline: none;
    box-shadow: 0 5px 14px rgba(15, 23, 42, 0.05);
    transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.ppaos-coords-search-wrap input:focus {
    border-color: #60a5fa;
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.18), 0 5px 14px rgba(15, 23, 42, 0.06);
}

.ppaos-coords-result-meta {
    margin: 12px 2px 8px;
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
}

.ppaos-coords-list {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.ppaos-coords-row {
    width: 100%;
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) auto auto 22px;
    gap: 10px;
    align-items: center;
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.96);
    color: inherit;
    text-align: left;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
    transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.ppaos-coords-row:hover,
.ppaos-coords-row:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(59, 130, 246, 0.62);
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.14);
    outline: none;
}

.ppaos-coords-row-avatar {
    width: 38px;
    height: 38px;
    border-radius: 14px;
    background: linear-gradient(135deg, #dbeafe, #eff6ff);
    color: #2563eb;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
}

.ppaos-coords-row-main {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.ppaos-coords-row-name {
    color: #0f172a;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.25;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ppaos-coords-row-hc {
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
}

.ppaos-coords-row-meta {
    display: flex;
    flex-direction: column;
    gap: 3px;
    color: #334155;
    font-size: 12px;
    font-weight: 700;
    text-align: right;
    white-space: nowrap;
}

.ppaos-coords-row-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 72px;
    padding: 5px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
}

.ppaos-coords-row-status.is-mapped {
    background: #ecfdf5;
    color: #047857;
}

.ppaos-coords-row-status.is-missing {
    background: #fff7ed;
    color: #c2410c;
}

.ppaos-coords-row-action {
    color: #94a3b8;
    font-size: 13px;
}

.ppaos-coords-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid #e2e8f0;
}

.ppaos-coords-pagination button {
    border: 1px solid #dbe4ef;
    border-radius: 12px;
    background: #fff;
    color: #1e3a5f;
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 5px 12px rgba(15, 23, 42, 0.06);
}

.ppaos-coords-pagination button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    box-shadow: none;
}

.ppaos-coords-pagination span {
    color: #475569;
    font-size: 12.5px;
    font-weight: 800;
}

.ppaos-coords-empty {
    min-height: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #64748b;
    text-align: center;
}

.ppaos-coords-empty i {
    width: 48px;
    height: 48px;
    border-radius: 18px;
    background: #eff6ff;
    color: #2563eb;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.ppaos-coords-empty strong {
    color: #0f172a;
    font-size: 15px;
}

.ppaos-coords-empty span {
    max-width: 260px;
    font-size: 12.5px;
    font-weight: 600;
}

@media (max-width: 575.98px) {
    .ppaos-map-coords-chip {
        max-width: min(330px, calc(100vw - 28px));
    }

    .ppaos-map-coords-drawer-panel {
        width: 100%;
    }

    .ppaos-coords-row {
        grid-template-columns: 34px minmax(0, 1fr) 18px;
    }

    .ppaos-coords-row-meta {
        grid-column: 2 / 3;
        text-align: left;
        flex-direction: row;
        flex-wrap: wrap;
    }

    .ppaos-coords-row-status {
        grid-column: 2 / 3;
        justify-self: flex-start;
    }
}

#mapContainer .ppaos-tile-img {
    position: absolute;
    z-index: 2;
    image-rendering: auto;
}

#mapContainer .ppaos-tile-img.ppaos-tile-stale {
    z-index: 0;
    opacity: 0 !important;
    transition: opacity 220ms ease-out;
}

#mapContainer .ppaos-tile-layer.ppaos-tile-zooming {
    will-change: transform;
}

#mapContainer > svg {
    position: relative;
    z-index: 2;
}

#mapContainer.ppaos-map-mode-satellite {
    background: transparent !important;
}

.ppaos-map-card-body.ppaos-map-satellite-surface {
    background: rgba(255, 255, 255, 0.38);
}

#mapContainer.ppaos-map-mode-satellite .ppaos-tile-layer {
    border-radius: 0 0 14px 14px;
}

#mapContainer.ppaos-map-mode-satellite svg {
    background: transparent !important;
}

#mapContainer.ppaos-map-mode-satellite:not(.ppaos-map-pin-mode) path.province,
#mapContainer.ppaos-map-mode-satellite:not(.ppaos-map-pin-mode) path.district,
#mapContainer.ppaos-map-mode-satellite:not(.ppaos-map-pin-mode) path.tambon {
    fill-opacity: 0.52;
}

#mapContainer.ppaos-map-mode-satellite:not(.ppaos-map-pin-mode) path.neighbor {
    fill-opacity: 0.05;
    stroke-opacity: 0.22;
}

#mapContainer.ppaos-map-mode-satellite:not(.ppaos-map-pin-mode) .neighbor-label {
    fill-opacity: 0.4;
}

#mapContainer.ppaos-map-pin-mode path.tambon,
#mapContainer.ppaos-map-pin-mode path.district,
#mapContainer.ppaos-map-pin-mode path.province,
#mapContainer.ppaos-map-pin-mode path.neighbor,
#mapContainer.ppaos-map-hide-geo-polygons path.tambon,
#mapContainer.ppaos-map-hide-geo-polygons path.district,
#mapContainer.ppaos-map-hide-geo-polygons path.province,
#mapContainer.ppaos-map-hide-geo-polygons path.neighbor,
#mapContainer.ppaos-map-pin-mode .tambon-label,
#mapContainer.ppaos-map-pin-mode text.tambon-label {
    fill: transparent !important;
    fill-opacity: 0 !important;
    stroke: transparent !important;
    stroke-opacity: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
}
