    html,
    body {
        margin: 0;
        padding: 0;
        height: 100%;
        font-family: system-ui, sans-serif;
    }

    footer {
        display: none;
    }

    #map {
        min-height: 100vh;
        width: 100%;
    }

    .maplibregl-ctrl-bottom-right {
        bottom: 80px;
        right: 24px;

        @media(max-width: 768px){
                bottom: 260px;
                right: 10px;
        }
    }

    .status {
        position: absolute;
        bottom: 10px;
        right: 24px;
        z-index: 10;
        background: rgba(255, 255, 255, 0.9);
        padding: 8px 12px;
        border-radius: 6px;
        font-size: 14px;
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
        font-family: "anuphansemibold";
    }

    .search-box-wrap {
        position: absolute;
        top: 105px;
        right: 40px;
        z-index: 11;
        width: 275px;
    }

    .search-box {
        display: flex;
        align-items: center;
        width: 100%;
        height: 39px;
        border-radius: 8px;
        background: rgba(255, 255, 255, 0.78);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        box-shadow: 0 4px 15px 0 rgba(0, 0, 0, 0.16), inset 0 2px 2px 0 rgba(255, 255, 255, 0.52);
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }

    .search-box input {
        flex: 1;
        min-width: 0;
        height: 100%;
        border: none;
        background: none;
        outline: none;
        padding: 0 8px 0 16px;
        font-size: 16px;
        font-family: inherit;
        color: #000;
    }

    .search-box input::-webkit-search-cancel-button {
        -webkit-appearance: none;
    }

    .search-box .search-submit {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 39px;
        height: 100%;
        border: none;
        background: none;
        padding: 0 12px 0 0;
        cursor: pointer;
    }

    .search-results {
        margin-top: 8px;
        max-height: 320px;
        overflow-y: auto;
        border-radius: 8px;
        background: #fff;
        box-shadow: 0 4px 15px 0 rgba(0, 0, 0, 0.16);
    }

    .search-results .search-result-item {
        display: flex;
        align-items: center;
        gap: 10px;
        width: 100%;
        padding: 10px 14px;
        border: none;
        background: none;
        text-align: left;
        cursor: pointer;
        font-family: inherit;
        border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    }

    .search-results .search-result-item:last-child {
        border-bottom: none;
    }

    .search-results .search-result-item:hover,
    .search-results .search-result-item.active {
        background: rgba(0, 0, 0, 0.04);
    }

    .search-results .result-icon {
        flex-shrink: 0;
        width: 28px;
        height: 28px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .search-results .result-icon svg {
        display: block;
    }

    .search-results .result-text {
        display: flex;
        flex-direction: column;
        min-width: 0;
        flex: 1;
    }

    .search-results .result-name {
        display: block;
        font-size: 14px;
        color: #000;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .search-results .result-meta {
        display: block;
        font-size: 12px;
        color: #666;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .search-results .search-result-empty {
        padding: 14px;
        font-size: 13px;
        color: #666;
        text-align: center;
    }

    @media (max-width: 768px) {
        .search-box-wrap {
            left: 25px;
            right: 25px;
            top: 80px;
            width: auto;
        }
    }

    .filter-panel {
        position: absolute;
        top: 105px;
        left: 40px;
        z-index: 999999999 !important;
        background: rgba(255, 255, 255, 0.23);
        backdrop-filter: blur(19px);
        -webkit-backdrop-filter: blur(19px);
        border: 0.937px solid rgba(0, 0, 0, 0.26);
        box-shadow: 0 4px 100px 0 rgba(0, 0, 0, 0.11), inset 0 2px 2px 0 rgba(255, 255, 255, 0.52);
        padding: 20px 18px;
        border-radius: 20px;
        font-size: 14px;
        width: 333px;
        max-height: calc(100% - 120px);
        overflow-y: auto;
        display: none;
    }

    .filter-panel h2.panel-title {
        margin: 0 0 14px;
        font-size: 24px;
        font-weight: 400;
        color: #000;
    }

    .filter-panel label.section-label {
        display: block;
        margin: 16px 0 8px;
        color: #000;
        font-size: 14px;
        font-family: "anuphansemibold";
    }

    .filter-panel label.section-label:first-of-type {
        margin-top: 0;
    }

    .filter-panel-top-row {
        display: flex;
        gap: 8px;
        align-items: center;
    }

    .filter-panel select {
        min-width: 100%;
        font-size: 14px;
        font-family: inherit;
        padding: 9px 10px;
        box-sizing: border-box;
        background: rgba(255, 255, 255, 0.45);
        border: 1px solid rgba(255, 255, 255, 0.38);
        box-shadow: 0 3.324px 33.235px 0 rgba(0, 0, 0, 0.06);
        border-radius: 8px;
        color: #000;
    }

    .locate-me-btn {
        display: flex;
        align-items: center;
        gap: 6px;
        white-space: nowrap;
        font-size: 14px;
        font-family: inherit;
        padding: 9px 12px;
        background: #fff;
        border: none;
        box-shadow: 0 3.324px 33.235px 0 rgba(0, 0, 0, 0.06);
        border-radius: 8px;
        color: #000;
        cursor: pointer;
    }

    .locate-me-btn .icon {
        width: 18px;
        height: 18px;
        display: inline-flex;
        color: #0971ce;
    }

    .locate-me-btn .icon svg {
        width: 100%;
        height: 100%;
    }

    .status-toggle {
        display: flex;
        gap: 8px;
    }

    .status-toggle button {
        flex: 1;
        display: flex;
        flex-direction: column;
        gap: 6px;
        font-size: 14px;
        font-weight: 600;
        padding: 7px 7px;
        border: 2px solid rgba(255, 255, 255, 0.38);
        border-radius: 8px;
        background: rgba(255, 255, 255, 0.45);
        box-shadow: 0 3.324px 33.235px 0 rgba(0, 0, 0, 0.06);
        cursor: pointer;
        color: #000;
        font-family: "anuphanmedium";

        span {
            text-align: left;
        }
    }

    .status-toggle button svg {
        flex-shrink: 0;
    }

    .status-toggle button.active {
        border: 2px solid #0971ce;
        background: rgba(255, 255, 255, 0.45);
    }

    .icon-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
        margin-bottom: 20px;
    }

    .icon-grid button {
        display: flex;
        flex-direction: column;
        align-items: start;
        justify-content: space-between;
        gap: 4px;
        font-size: 10px;
        padding: 6px 6px;
        text-align: left;
        border: 2px solid rgba(255, 255, 255, 0.38);
        border-radius: 8px;
        background: rgba(255, 255, 255, 0.45);
        box-shadow: 0 3.324px 33.235px 0 rgba(0, 0, 0, 0.06);
        cursor: pointer;
        color: #000;
        min-width: 70px;
        height: 70px;
    }

    .icon-grid button .emoji {
        font-size: 18px;
    }

    .icon-grid button.active {
        border: 2px solid #009c65;
    }

    .switch-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .switch {
        position: relative;
        width: 48px;
        height: 24px;
        display: inline-block;
    }

    .switch input {
        opacity: 0;
        width: 0;
        height: 0;
    }

    .switch .slider {
        position: absolute;
        inset: 0;
        background: #ccc;
        border-radius: 200px;
        transition: 0.2s;
        cursor: pointer;
    }

    .switch .slider::before {
        content: "";
        position: absolute;
        height: 18px;
        width: 18px;
        left: 3px;
        top: 3px;
        background: #fff;
        border-radius: 50%;
        transition: 0.2s;
    }

    .switch input:checked+.slider {
        background: #008c43;
    }

    .switch input:checked+.slider::before {
        transform: translateX(24px);
    }

    .trash-bin-icons {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
        margin-top: 10px;
    }

    .trash-bin-icons button {
        display: flex;
        flex-direction: column;
        align-items: start;
        justify-content: space-around;
        gap: 4px;
        font-size: 10px;
        padding: 4px 4px;
        border: 2px solid rgba(255, 255, 255, 0.38);
        border-radius: 8px;
        background: rgba(255, 255, 255, 0.45);
        box-shadow: 0 3.324px 33.235px 0 rgba(0, 0, 0, 0.06);
        cursor: pointer;
        color: #000;
        min-width: 66px;
        height: 66px;
    }

    .trash-bin-icons button .icon {
        width: 20px;
        height: 20px;
        border-radius: 100px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .trash-bin-icons button.active {
        border: 2px solid #009c65;
    }

    .trash-bin-icons button[data-field="organic_waste"] .swatch {
        background: #01754d;
    }

    .trash-bin-icons button[data-field="recyclable"] .swatch {
        background: #fdd500;
    }

    .trash-bin-icons button[data-field="general_waste"] .swatch {
        background: #2d71b8;
    }

    .trash-bin-icons button[data-field="hazardous_waste"] .swatch {
        background: #f16722;
    }

    .filter-panel-handle {
        display: none;
    }

    /* Mobile/tablet: filter-panel กลายเป็น bottom sheet เลื่อนขึ้นจากขอบล่าง แทนการ์ดลอยแบบ desktop */
    @media (max-width: 768px) {
        .filter-panel {
            top: auto;
            left: 0;
            right: 0;
            bottom: 0;
            width: 100%;
            max-height: 85vh;
            border-radius: 20px 20px 0 0;
            padding: 12px 18px 24px;
            box-sizing: border-box;
            transform: translateY(calc(100% - 80px));
            transition: transform 0.3s ease;
            touch-action: none;
        }

        .filter-panel.expanded {
            transform: translateY(0);
        }

        .filter-panel.dragging {
            transition: none;
        }

        .filter-panel-handle {
            display: block;
            width: 168px;
            height: 8px;
            margin: 0 auto 16px;
            border-radius: 7px;
            background: rgba(0, 0, 0, 0.27);
            cursor: grab;
        }
    }

    .popup-table {
        font-size: 13px;
        line-height: 1.5;
    }

    .popup-table h3 {
        margin: 0 0 4px;
        font-size: 15px;
    }

    .popup-table table {
        border-collapse: collapse;
    }

    .popup-table td {
        padding: 1px 6px 1px 0;
        white-space: nowrap;
    }

    .popup-table .label {
        color: #555;
    }

    .popup-table a {
        color: #1a73e8;
    }

    .popup-table .tags {
        margin-top: 4px;
        white-space: normal;
    }

    .popup-table .tag {
        display: inline-block;
        background: #e8f5e9;
        color: #1b3a1f;
        border-radius: 4px;
        padding: 1px 6px;
        margin: 2px 4px 0 0;
        font-size: 11px;
    }

    .popup-table .bin-types {
        margin-top: 6px;
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }

    .popup-table .bin-type {
        display: inline-flex;
        align-items: center;
        gap: 4px;
        font-size: 12px;
    }

    .popup-table .bin-type svg {
        display: block;
    }

    .dropoff-popup-backdrop {
        position: fixed;
        inset: 0;
        background: rgba(5, 5, 5, 0.25);
        z-index: 999999998;
    }

    /* การ์ด popup จุด Drop-off/รับซื้อ ตาม Figma: modal คงที่กลางจอ ไม่เลื่อนตาม marker */
    .maplibregl-popup.dropoff-popup {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) !important;
        z-index: 1000000000 !important;
    }

    .maplibregl-popup.dropoff-popup .maplibregl-popup-tip {
        display: none;
    }

    .maplibregl-popup.dropoff-popup .maplibregl-popup-content {
        padding: 0;
        border-radius: 20px;
        overflow: hidden;
        box-shadow: 0 4px 100px 0 rgba(0, 0, 0, 0.11);
        width: 278px;
        max-height: 85vh;
        overflow-y: auto;
    }

    .maplibregl-popup.dropoff-popup .maplibregl-popup-close-button {
        top: 12px;
        right: 12px;
        width: 24px;
        height: 24px;
        border-radius: 50%;
        background: #fff;
        font-size: 16px;
        line-height: 24px;
        color: #000;
    }

    /* Desktop: ชิดขวาแทนกลางจอ (มือถือยังคงอยู่กลางจอตามเดิม) */
    @media (min-width: 769px) {
        .maplibregl-popup.dropoff-popup {
            top: 55%;
            left: auto;
            right: 40px;
            transform: translateY(-50%) !important;
        }
    }

    .dropoff-card {
        font-family: inherit;
        color: #000;
    }

    .dropoff-card .card-header {
        padding: 20px 20px 16px;
        background: linear-gradient(to bottom, var(--dropoff-accent-light, #ffe1d8), #fff);
    }

    .dropoff-card .status-pill {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        background: #fff;
        border-radius: 60px;
        padding: 6px 12px 6px 10px;
        font-size: 11px;
        font-weight: 600;
        font-family: "anuphan";
    }

    .dropoff-card .status-pill svg {
        display: block;
        flex-shrink: 0;
    }

    .dropoff-card .card-title {
        margin: 12px 0 6px;
        font-size: 18px;
        font-weight: 400;
        line-height: 1.4;
        font-family: bkk_draft5regular;
    }

    .dropoff-card .card-meta {
        margin: 8px 0 0;
        font-size: 14px;
        line-height: 1.7;
        font-family: "sarabunregular";
    }

    .dropoff-card .card-body {
        padding: 0 20px 20px;
    }

    .dropoff-card .materials-label {
        margin: 0 0 8px;
        font-size: 14px;
        font-weight: 600;
        font-family: "anuphan";
    }

    .dropoff-card .material-row {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 6px 0;
        font-size: 14px;
    }

    .dropoff-card .material-row svg {
        display: block;
        flex-shrink: 0;
        width: 20px;
        height:20px;
    }

    .dropoff-card .card-actions {
        margin-top: 20px;
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .dropoff-card .btn {
        display: block;
        text-align: center;
        border-radius: 76px;
        padding: 13px;
        font-size: 16px;
        font-weight: 600;
        text-decoration: none;
        box-sizing: border-box;
        font-family:"anuphan";
    }

    .dropoff-card .btn-outline {
        background: #fff;
        border: 1px solid rgba(0, 0, 0, 0.18);
        color: #000;
    }

    .dropoff-card .btn-solid {
        background: #000;
        border: none;
        color: #fff;
    }
