body {
    font-size: .875rem;
    background-color: #f8f9fa;
    overflow-x: hidden;
}

html {
    overflow-x: hidden;
}

.navbar-brand {
    font-weight: 700;
    letter-spacing: -.5px;
}

.nav-link.active {
    font-weight: 600;
}

.card {
    box-shadow: 0 1px 3px rgba(0, 0, 0, .08);
    border: 1px solid rgba(0, 0, 0, .1);
}

.card-header {
    font-weight: 600;
    font-size: .85rem;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.table {
    font-size: .85rem;
}

.table th {
    font-weight: 600;
    white-space: nowrap;
}

.badge {
    font-weight: 500;
}

.pagination {
    --bs-pagination-font-size: .85rem;
}

#map, #zoneMap {
    z-index: 1;
}

.leaflet-container {
    font-family: inherit;
}

.marker-price-label {
    background: rgba(0,0,0,0.75) !important;
    border: none !important;
    border-radius: 4px !important;
    color: #fff !important;
    font-size: .7rem !important;
    font-weight: 600;
    padding: 1px 4px !important;
    white-space: nowrap;
    pointer-events: none;
    z-index: 1000 !important;
    opacity: 1 !important;
}

.marker-price-label::before {
    border-top-color: rgba(0,0,0,0.75) !important;
}

.photo-marker-icon {
    background: none !important;
    border: none !important;
}

.price-marker-icon {
    background: none !important;
    border: none !important;
}

.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: .15em;
}

.table-responsive {
    -webkit-overflow-scrolling: touch;
}

.empty-state {
    padding: 3rem 1rem;
    text-align: center;
    color: #6c757d;
}

.empty-state .empty-icon {
    font-size: 2.5rem;
    margin-bottom: .75rem;
    opacity: .4;
}

.filter-badge-container {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
}

.filter-badge {
    font-size: .78rem;
    font-weight: 500;
    padding: .25rem .6rem;
    cursor: default;
}

.filter-badge .btn-close {
    font-size: .55rem;
    margin-left: .35rem;
}

.input-group-hint {
    font-size: .7rem;
    color: #6c757d;
}

:focus-visible {
    outline: 2px solid #0d6efd;
    outline-offset: 2px;
    border-radius: 2px;
}

.form-control:focus,
.form-select:focus {
    box-shadow: 0 0 0 .2rem rgba(13,110,253,.15);
}

tr[data-href] {
    cursor: pointer;
}

tr[data-href]:hover {
    background-color: rgba(13,110,253,.04) !important;
}

@media (max-width: 767.98px) {
    .btn-sm-on-mobile {
        font-size: .75rem;
        padding: .2rem .5rem;
    }
}

.stat-card {
    transition: transform .15s ease, box-shadow .15s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, .12);
}

.text-bg-primary.stat-card,
.text-bg-success.stat-card,
.text-bg-info.stat-card,
.text-bg-warning.stat-card,
.text-bg-danger.stat-card,
.text-bg-dark.stat-card {
    cursor: default;
}

.chart-container {
    position: relative;
    width: 100%;
}

#listingImgPreview {
    position: fixed;
    z-index: 99999;
    pointer-events: none;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,.35);
    background: #fff;
    padding: 4px;
    display: none;
}

#listingImgPreview img {
    display: block;
    border-radius: 6px;
    width: 320px;
    height: 240px;
    object-fit: cover;
}

#listingImgPreview .img-counter {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0,0,0,.6);
    color: #fff;
    font-size: .7rem;
    padding: 1px 6px;
    border-radius: 3px;
}

@media (max-width: 767.98px) {
    h2 { font-size: 1.4rem; }
    h4 { font-size: 1.15rem; }
    h5 { font-size: 1rem; }
    .card-header { font-size: .8rem; }
    .table { font-size: .8rem; }
    #listingImgPreview img { width: 240px; height: 180px; }
}
