html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

body {
    padding-top: 60px;
    margin-bottom: 50px;
}

/* =========================
   Focus
========================= */
.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-select:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 0.1rem #fff, 0 0 0 0.25rem #258cfb;
}

/* =========================
   Navbar
========================= */
.glass-navbar {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.2s ease, background 0.2s ease;
}

    .glass-navbar.navbar-scrolled {
        background: rgba(255, 255, 255, 0.95);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    }

.brand-center-mobile {
    white-space: nowrap;
    z-index: 10;
}

.user-zone {
    min-width: 96px;
    justify-content: flex-end;
    z-index: 20;
}

.glass-navbar .navbar-nav {
    gap: 6px;
}

.glass-navbar .nav-pill {
    border: 1px solid #d1d5db;
    border-radius: 999px;
    padding: 6px 14px !important;
    font-size: .92rem;
    background: rgba(255,255,255,.75);
    color: #374151 !important;
    transition: .15s ease;
}

    .glass-navbar .nav-pill:hover,
    .glass-navbar .nav-pill.active {
        background: #de3346;
        border-color: #111827;
        color: #fff !important;
    }

/* =========================
   NAVBAR LOGO
========================= */

.navbar-logo {
    height: 42px;
    width: auto;
    object-fit: contain;
    display: block;
}

/* =========================
   Mobile Navbar
========================= */
@media (max-width: 991.98px) {
    body {
        padding-top: 65px;
        padding-bottom: 150px;
    }

    .glass-navbar {
        position: fixed;
        min-height: 60px;
    }
    .navbar-logo {
        position: relative;
        top: -8px;
        height: 35px;
    }

        .glass-navbar .container-fluid {
            position: relative;
        }

    .brand-center-mobile {
        position: absolute;
        left: 50%;
        top: 0.3rem;
        transform: translateX(-50%);
        margin: 0 !important;
        font-size: 1.45rem;
        font-weight: 800;
        z-index: 1060;
    }

    .navbar-toggler,
    .user-zone {
        position: relative;
        z-index: 1061;
    }

    .navbar-collapse {
        margin-top: 0.70rem;
    }

    .user-zone .btn {
        font-size: 0.8rem;
        padding: 0.25rem 0.55rem;
    }
}

@media (min-width: 992px) {
    .brand-center-mobile {
        position: static;
        transform: none;
    }
}

/* =========================
   Property Filter
========================= */
.property-filter-bar {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    z-index: 1030;
    background: #f1f5f9;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    padding: 5px 0;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.filter-box {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    padding: 8px 14px;
    border-radius: 999px;
    box-shadow: 0 10px 28px rgba(0,0,0,0.12);
    max-width: 700px;
    width: 100%;
}

.filter-select {
    max-width: 220px;
}

/* ดันหน้า Property/Index ลง ไม่ให้ filter ทับ content */
body:has(.property-filter-bar) {
    padding-top: 120px;
}

.mobile-bottom-filter {
    display: none;
}

@media (max-width: 991.98px) {
    .desktop-filter {
        display: none;
    }

    .mobile-bottom-filter {
        display: block;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1040;
        background: #fff;
        border-top: 1px solid #e5e7eb;
        padding: 10px 12px;
        box-shadow: 0 -4px 18px rgba(0,0,0,.12);
        border-radius: 18px 18px 0 0;
    }

        .mobile-bottom-filter .form-select,
        .mobile-bottom-filter .btn {
            height: 44px;
            border-radius: 12px;
            font-size: .95rem;
        }

    body:has(.property-filter-bar) {
        padding-top: 60px;
    }
}

/* =========================
   Property Card
========================= */
.property-card {
    border: none;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 8px 22px rgba(0,0,0,0.06);
    transition: all 0.25s ease;
}

    .property-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 16px 40px rgba(0,0,0,0.12);
    }

    .property-card img {
        height: 100px;
        object-fit: cover;
    }

    .property-card .card-body {
        padding: 0.9rem;
    }


/* =========================
   Map Locked Box
========================= */
.map-locked-box {
    min-height: 320px;
    background: linear-gradient(rgba(255,255,255,0.86), rgba(255,255,255,0.86)), repeating-linear-gradient( 45deg, #e5e7eb 0, #e5e7eb 10px, #f8fafc 10px, #f8fafc 20px );
}

/* =========================
   Owner Summary
========================= */
.owner-summary-card {
    background: linear-gradient(135deg, #111827, #1f2937);
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.22);
}

.summary-focus-box {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 20px;
    padding: 16px;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 14px;
    color: #fff;
}

.summary-label {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.85rem;
}

.summary-number {
    color: #fff;
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
}

.summary-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .summary-icon.gold {
        background: #facc15;
        color: #111827;
        border: 2px solid #fff;
        font-size: 0;
    }

        .summary-icon.gold::after,
        .summary-icon.silver::after {
            content: "";
            width: 26px;
            height: 26px;
            border-radius: 50%;
        }

        .summary-icon.gold::after {
            background: #facc15;
        }

    .summary-icon.silver {
        background: #e5e7eb;
        color: #111827;
        border: 2px solid #fff;
        font-size: 0;
    }

        .summary-icon.silver::after {
            background: #e5e7eb;
        }

    .summary-icon.views,
    .summary-icon.posts {
        background: rgba(255, 255, 255, 0.16);
        font-size: 1.35rem;
    }

.summary-divider {
    border-color: rgba(255, 255, 255, 0.18);
    margin: 20px 0;
}

.summary-mini {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 12px 8px;
    height: 100%;
}

.summary-mini-label {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.78rem;
}

.summary-mini-number {
    color: #fff;
    font-size: 1.4rem;
    font-weight: 800;
}
/* =========================
   FAB HINT
========================= */

.fab-wrapper {
    position: fixed;
    right: 15px;
    bottom: 50px;
    z-index: 1050;
}

.fab-post {
    width: 58px;
    height: 58px;
    background: #0d6efd;
    color: #fff;
    font-size: 30px;
    font-weight: 700;
    line-height: 1;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 10px 28px rgba(13, 110, 253, 0.35);
}

    .fab-post:hover {
        background: #0b5ed7;
        color: #fff;
    }

.fab-hint {
    position: absolute;
    right: 70px;
    top: 50%;
    transform: translateY(-50%);
    background: #111827;
    color: #fff;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 8px 12px;
    border-radius: 999px;
    white-space: nowrap;
    box-shadow: 0 6px 20px rgba(0,0,0,.18);
    animation: fabHintFloat 2s ease-in-out infinite;
}

    .fab-hint::after {
        content: "";
        position: absolute;
        right: -5px;
        top: 50%;
        transform: translateY(-50%);
        border-left: 6px solid #111827;
        border-top: 6px solid transparent;
        border-bottom: 6px solid transparent;
    }

@keyframes fabHintFloat {
    0% {
        transform: translateY(-50%);
    }

    50% {
        transform: translateY(-56%);
    }

    100% {
        transform: translateY(-50%);
    }
}

@media (min-width: 992px) {
    .fab-wrapper {
        display: none;
    }
}

/* =========================
   Property Index Grid
========================= */
.property-content-wrap {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 24px;
}

.property-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}

.property-grid-item {
    min-width: 0;
}

.property-list-card {
    display: block;
    height: 100%;
    background: #fff;
    border-radius: 22px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 8px 24px rgba(0,0,0,.06);
    transition: transform .22s ease, box-shadow .22s ease;
}

    .property-list-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 16px 38px rgba(0,0,0,.12);
        color: inherit;
    }

.property-image-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #f8fafc;
    overflow: hidden;
}

.property-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.property-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    font-size: .95rem;
}

.property-card-body {
    padding: 16px 16px 18px;
}

.property-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: #111827;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}


.property-location {
    font-size: .88rem;
    color: #6b7280;
    margin-bottom: 12px;
}

.property-type-line {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: .86rem;
    color: #374151;
    background: #f3f4f6;
    border-radius: 999px;
    padding: 6px 10px;
}

.property-type-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #dc2626;
}

.property-featured-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #facc15;
    color: #111827;
    font-size: .75rem;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 999px;
    box-shadow: 0 6px 14px rgba(0,0,0,.12);
}

@media (max-width: 1199.98px) {
    .property-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .property-content-wrap {
        padding: 0 14px;
    }

    .property-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .property-list-card {
        border-radius: 18px;
    }

    .property-card-body {
        padding: 12px;
    }

    .property-card-title {
        font-size: .95rem;
    }

    .property-location,
    .property-type-line {
        font-size: .78rem;
    }
}
.property-list-card-featured {
    box-shadow: 0 10px 28px rgba(245, 158, 11, .14), 0 8px 24px rgba(0,0,0,.06);
}

    .property-list-card-featured:hover {
        box-shadow: 0 18px 42px rgba(245, 158, 11, .22), 0 16px 38px rgba(0,0,0,.12);
    }

.property-grid-featured {
    margin-bottom: 12px;
}
.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    margin-bottom: 18px;
}

.section-title {
    font-weight: 800;
    margin-bottom: 4px;
    color: #111827;
}

.section-subtitle {
    margin: 0;
    color: #6b7280;
    font-size: .95rem;
}


/* =========================
   Owner Dashboard Actions
========================= */
.owner-dashboard-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
}

.owner-dashboard-title {
    min-width: 0;
}

.mobile-owner-actions .btn {
    min-height: 44px;
    border-radius: 12px;
    font-size: .9rem;
    font-weight: 600;
}

@media (max-width: 991.98px) {
    .owner-dashboard-head {
        display: block;
    }

    .owner-dashboard-title h2 {
        font-size: 1.55rem;
        line-height: 1.25;
    }

    .owner-dashboard-title p {
        font-size: .92rem;
    }
}
body:has(.layout-map-wrapper) {
    overflow: hidden;
}

.layout-map-wrapper {
    min-height: calc(100vh - 72px - 74px);
    padding: 0 !important;
}

.layout-map-main {
    height: calc(100vh - 72px - 74px);
    padding: 0 !important;
}

#map {
    height: 100% !important;
}