:root {
    --bg-dark: #101014;
    --bg-soft: #f6f6f8;
    --text: #20222b;
    --muted: #6b7280;
    --border: rgba(17, 24, 39, 0.08);
    --accent: #ffc107;
    --success: #198754;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-soft);
    color: var(--text);
}

a {
    text-decoration: none;
}

.site-navbar,
.site-footer,
.hero-section {
    background: linear-gradient(120deg, #0f0f14, #1b1d24);
}

.site-navbar {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.brand-logo {
    width: 42px;
    height: 42px;
    object-fit: contain;
}

.site-navbar .navbar-brand span {
    font-weight: 800;
    letter-spacing: 0.02em;
}

.hero-section {
    padding-bottom: 2rem;
}

.hero-kicker,
.section-kicker {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #ffcb3d;
    margin-bottom: 0.9rem;
}

.hero-search,
.filter-sidebar,
.content-panel,
.auth-card,
.detail-panel,
.location-card,
.stat-card {
    background: #fff;
    border-radius: 1.25rem;
    border: 1px solid var(--border);
}

.hero-preview img,
.detail-carousel img {
    width: 100%;
    object-fit: cover;
}

.detail-carousel img {
    min-height: 420px;
    max-height: 520px;
}

.profile-card {
    overflow: hidden;
    border-radius: 1rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.profile-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 1.2rem 2.5rem rgba(17, 24, 39, 0.16) !important;
}

.profile-card-media {
    display: block;
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
}

.profile-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-badges {
    position: absolute;
    left: 0.75rem;
    right: 0.75rem;
    top: 0.75rem;
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.profile-read-more {
    position: relative;
    z-index: 2;
    font-weight: 700;
    color: #111827;
}

.page-banner {
    background: linear-gradient(180deg, rgba(255,255,255,0.7), rgba(246,246,248,1));
}

.inner-page-header {
    background: linear-gradient(120deg, #0f0f14, #1b1d24);
    padding: 4rem 0 2.25rem;
    color: #fff;
}

.inner-page-header__content {
    max-width: 780px;
}

.inner-page-header__title {
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 0.9rem;
}

.inner-page-header__text {
    color: rgba(255, 255, 255, 0.72);
    font-size: 1.02rem;
}

.filter-sidebar,
.detail-panel,
.auth-card,
.content-panel {
    padding: 1.5rem;
}

.location-card {
    padding: 1.1rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.location-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 1rem 2rem rgba(17, 24, 39, 0.1) !important;
}

.table-thumb {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 0.85rem;
}

.image-manage-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 0.75rem;
    height: 100%;
}

.area-link-list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.area-group {
    border: 1px solid var(--border);
    border-radius: 0.9rem;
    background: #fff;
    overflow: hidden;
}

.area-group-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 0.9rem;
    cursor: pointer;
    list-style: none;
    font-weight: 600;
}

.area-group-summary::-webkit-details-marker {
    display: none;
}

.area-group-summary.active {
    background: rgba(17, 24, 39, 0.04);
}

.area-group-children {
    padding: 0 0.6rem 0.6rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.area-link-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0.9rem;
    border: 1px solid var(--border);
    border-radius: 0.9rem;
    color: var(--text);
    background: #fff;
    transition: all 0.2s ease;
}

.area-link-item:hover,
.area-link-item.active {
    border-color: rgba(17, 24, 39, 0.18);
    box-shadow: 0 0.6rem 1.4rem rgba(17, 24, 39, 0.08);
    transform: translateY(-1px);
}

.area-link-item.parent-link,
.area-link-item.child-link {
    background: #fafafa;
}

.area-link-item.child-link {
    margin-left: 0.6rem;
}

.stat-card {
    padding: 1.25rem;
}

.stat-card span {
    color: var(--muted);
    display: block;
    margin-bottom: 0.5rem;
}

.stat-card strong {
    font-size: 1.9rem;
    line-height: 1;
}

.auth-layout {
    background: linear-gradient(135deg, #0f0f14, #1b1d24);
    min-height: 100vh;
}

.auth-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.auth-card {
    padding: 2rem;
}

.site-footer a,
.footer-title {
    display: block;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 0.55rem;
}

.footer-title {
    font-weight: 700;
    color: #fff;
}

.service-list {
    padding-left: 1rem;
    margin: 0;
}

.service-list li + li {
    margin-top: 0.65rem;
}

.autocomplete-results {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 0.3rem);
    z-index: 20;
    display: none;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 0.9rem;
    box-shadow: 0 1rem 2rem rgba(17, 24, 39, 0.12);
    overflow: hidden;
}

.autocomplete-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0.9rem;
    color: inherit;
}

.autocomplete-item + .autocomplete-item {
    border-top: 1px solid var(--border);
}

.autocomplete-item img {
    width: 44px;
    height: 44px;
    border-radius: 0.75rem;
    object-fit: cover;
}

.featured-carousel .carousel-control-prev,
.featured-carousel .carousel-control-next,
.detail-carousel .carousel-control-prev,
.detail-carousel .carousel-control-next {
    width: 42px;
}

.featured-carousel .carousel-control-prev-icon,
.featured-carousel .carousel-control-next-icon,
.detail-carousel .carousel-control-prev-icon,
.detail-carousel .carousel-control-next-icon {
    background-color: rgba(17, 24, 39, 0.8);
    border-radius: 50%;
    background-size: 55%;
    width: 2.4rem;
    height: 2.4rem;
}

@media (max-width: 991.98px) {
    .hero-preview {
        max-width: 720px;
        margin: 0 auto;
    }

    .detail-carousel img {
        min-height: 320px;
    }
}

@media (max-width: 767.98px) {
    .filter-sidebar,
    .content-panel,
    .detail-panel,
    .auth-card {
        padding: 1.1rem;
    }

    .hero-section .display-5 {
        font-size: 2rem;
    }

    .inner-page-header {
        padding: 3rem 0 1.75rem;
    }

    .detail-carousel img {
        min-height: 250px;
    }
}
