html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    font-family: Arial, Helvetica, sans-serif;
    background: #f3f4f6;
    color: #111827;
}

.maps-page {
    width: 100%;
    height: 100%;
}

.maps-wrap {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background: #e5e7eb;
}

.maps-map {
    width: 100%;
    height: 100%;
    z-index: 1;
}

.maps-toolbar {
    position: absolute;
    top: 14px;
    left: 60px;
    z-index: 900;
    width: 300px;
    max-width: calc(100vw - 28px);
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.16);
    overflow: hidden;
}

.maps-toolbar--hidden {
    display: none;
}

.maps-toolbar__head {
    padding: 10px 12px 0;
}

.maps-toolbar__title-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
}

.maps-toolbar__home {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    font-size: 16px;
    text-decoration: none;
    flex: 0 0 auto;
}

.maps-toolbar__title {
    font-size: 13px;
    font-weight: 700;
    color: #111827;
    margin-right: 4px;
    white-space: nowrap;
}

.maps-radio {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: #374151;
    white-space: nowrap;
    cursor: pointer;
}

.maps-radio input {
    margin: 0;
}

.maps-toolbar__close {
    margin-left: auto;
    border: 0;
    background: transparent;
    color: #dc2626;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    padding: 0 2px;
    font-weight: 400;
}

.maps-toolbar__body {
    padding: 8px 10px 10px;
}

.geo-block {
    margin-bottom: 8px;
}

.geo-block--hidden {
    display: none;
}

.maps-grid {
    display: grid;
    gap: 8px;
}

.maps-grid--2 {
    grid-template-columns: 1fr 1fr;
}

.maps-field {
    min-width: 0;
}

.maps-field--full {
    grid-column: 1 / -1;
}

.maps-input,
.maps-select,
select.maps-input,
input.maps-input {
    width: 100%;
    height: 34px;
    border: 1px solid #cfcfcf;
    border-radius: 6px;
    background: #f3f4f6;
    color: #111827;
    font-size: 13px;
    box-sizing: border-box;
    padding: 0 10px;
    outline: none;
}

.maps-input::placeholder {
    color: #6b7280;
}

.maps-input:focus,
.maps-select:focus,
select.maps-input:focus,
input.maps-input:focus {
    border-color: #3b82f6;
    background: #ffffff;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.12);
}

.maps-filters {
    margin-top: 2px;
    margin-bottom: 10px;
}

.maps-toolbar__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.maps-btn {
    height: 36px;
    border: 0;
    border-radius: 7px;
    background: #1877f2;
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.08);
}

.maps-btn:hover {
    background: #1668d3;
}

.maps-btn:active {
    transform: translateY(1px);
}

.maps-toolbar__meta {
    margin-top: 8px;
    text-align: center;
    font-size: 12px;
    color: #6b7280;
}

.maps-toolbar-open {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 890;
    width: 38px;
    height: 38px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    background: #ffffff;
    color: #111827;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.15);
}

.maps-toolbar-open--hidden {
    /*display: none;*/
	background: #FFC107;
}

#map.is-loading::after {
    content: 'Đang tải...';
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 950;
    background: rgba(17, 24, 39, 0.92);
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    padding: 7px 10px;
    border-radius: 8px;
    pointer-events: none;
}

.maps-popup-loading,
.maps-popup-error {
    font-size: 13px;
    color: #374151;
    padding: 4px 2px;
}

.maps-canvas-dots {
    pointer-events: auto;
    cursor: pointer;
}

.leaflet-container {
    cursor: default;
}

.leaflet-control-zoom {
    margin-top: 86px !important;
}

@media (max-width: 640px) {
    .maps-toolbar {
        width: calc(100vw - 20px);
        top: 10px;
        left: 10px;
        max-width: calc(100vw - 20px);
    }

    .maps-toolbar-open {
        top: 10px;
        left: 10px;
    }
}

/* popup */
.maps-popup-card {
    width: 250px;
    font-family: Arial, Helvetica, sans-serif;
    color: #111827;
}

.maps-popup-thumb-link {
    display: block;
    position: relative;
    text-decoration: none;
}

.maps-popup-thumb {
    display: block;
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    background: #e5e7eb;
}

.maps-popup-vip {
    position: absolute;
    top: 8px;
    left: 8px;
    display: inline-block;
    padding: 3px 7px;
    border-radius: 999px;
    background: #dc2626;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
}

.maps-popup-body {
    padding-top: 8px;
}

.maps-popup-title {
    display: block;
    font-size: 14px;
    line-height: 1.4;
    font-weight: 700;
    color: #111827;
    text-decoration: none;
    margin-bottom: 6px;
    max-height: 2.8em;
    overflow: hidden;
}

.maps-popup-title:hover {
    color: #2563eb;
}

.maps-popup-price {
    font-size: 14px;
    font-weight: 700;
    color: #dc2626;
    margin-bottom: 4px;
}

.maps-price-m2 {
    font-size: 14px;
    font-weight: 700;
    color: #089107;
    margin-bottom: 4px;
}

.maps-popup-meta {
    font-size: 12px;
    line-height: 1.5;
    color: #4b5563;
    margin-bottom: 8px;
}

.maps-popup-actions {
    margin-top: 6px;
}

.maps-popup-btn {
    display: inline-block;
    min-height: 32px;
    line-height: 32px;
    padding: 0 10px;
    border-radius: 7px;
    background: #2563eb;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.maps-popup-btn:hover {
    background: #1d4ed8;
}

.maps-popup-error {
    min-width: 180px;
    padding: 8px 4px;
    font-size: 13px;
    color: #374151;
}

/* nút định vị */
.maps-locate-wrap {
    margin-top: 50px;
    margin-left: 5px;
    z-index: 1000;
}

.maps-locate-control {
    width: 34px;
    height: 34px;
    border: 1px solid #d1d5db;
    border-radius: 50%;
    background: #ffffff;
    color: #111827;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
}

.maps-locate-control:hover {
    background: #f8fafc;
}

.maps-locate-control.is-active,
.maps-locate-control.is-active:hover {
    background: #8bc34a !important;
    border-color: #8bc34a !important;
    color: #fff !important;
}

.maps-user-location-icon {
    width: 18px;
    height: 18px;
}

.maps-user-location-dot {
    display: block;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #2563eb;
    border: 3px solid #ffffff;
    box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.35);
    box-sizing: border-box;
}

.maps-popup-thumb-link,
.maps-popup-title {
    cursor: pointer;
}

/* capcha */ 
/* nền toàn trang */
.maps-captcha-page{
    margin:0;
    padding:0;
    min-height:100vh;
    display:flex;
    align-items:center;
    justify-content:center;
    background:#f3f4f6;
    font-family: system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
}

/* khung captcha */
.maps-captcha-box{
    background:#ffffff;
    padding:28px 30px;
    border-radius:12px;
    box-shadow:0 12px 40px rgba(0,0,0,0.12);
    width:340px;
    max-width:90%;
    text-align:center;
}

/* tiêu đề */
.maps-captcha-title{
    font-size:18px;
    font-weight:600;
    margin-bottom:16px;
    color:#111827;
}

/* recaptcha block */
.maps-captcha-box .g-recaptcha{
    display:flex;
    justify-content:center;
    margin-bottom:18px;
}

/* nút */
.maps-captcha-btn{
    width:100%;
    height:40px;
    border:none;
    border-radius:8px;
    background:#2563eb;
    color:#fff;
    font-size:14px;
    font-weight:600;
    cursor:pointer;
    transition:background .2s;
}

.maps-captcha-btn:hover{
    background:#1d4ed8;
}

/* mobile */
@media (max-width:480px){
    .maps-captcha-box{
        padding:22px;
    }
}

/* giá */
.maps-popup-price{
    font-size:16px;
    font-weight:600;
}

.maps-price-total{
    color:#ff1100;
}

.maps-price-m2{
    color:#1baf21;
    font-weight:500;
    margin-left:6px;
    font-size:14px;
}