/**
 * Nearest24 — premium public theme (loads after public-site.css)
 */
:root {
    --brand: #2563eb;
    --brand-dark: #1d4ed8;
    --brand-soft: #eff6ff;
    --accent: #f97316;
    --ink: #0f172a;
    --muted: #64748b;
    --line: #e2e8f0;
    --surface: #ffffff;
    --surface-soft: #f1f5f9;
    --surface-elevated: #ffffff;
    --radius: 18px;
    --radius-sm: 12px;
    --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.05);
    --shadow-sm: 0 8px 24px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 16px 48px rgba(15, 23, 42, 0.08);
    --font-display: "Plus Jakarta Sans", system-ui, sans-serif;
    --font-body: "Inter", system-ui, sans-serif;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --heading-tracking: -0.025em;
}

body.site-body {
    font-family: var(--font-body);
    font-size: var(--text-base);
    color: var(--ink);
    background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
    background-attachment: fixed;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6,
.section-head h2,
.ad-block-title,
.hero-content h1,
.brand {
    font-family: var(--font-display);
    letter-spacing: var(--heading-tracking);
}

.site-header {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow-xs);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.site-topbar {
    background: linear-gradient(90deg, var(--brand-dark) 0%, var(--brand) 55%, #3b82f6 100%);
    font-size: 0.8125rem;
    font-weight: 500;
}

.site-navbar {
    border-bottom: none;
}

.nav-link {
    font-weight: 600;
    font-size: 0.9375rem;
    color: #334155;
}

.nav-link.active,
.nav-link:hover {
    color: var(--brand);
}

.location-widget {
    border-radius: var(--radius-sm);
    border-color: var(--line);
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.btn {
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: -0.01em;
    border-radius: 999px;
    transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.btn-brand {
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
    border: none;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.28);
}

.btn-brand:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.35);
}

.btn-dark {
    background: #0f172a;
    border: none;
}

.btn-outline {
    border: 1.5px solid var(--line);
    background: #fff;
}

.hero-content h1 {
    font-size: clamp(1.75rem, 4vw, 2.65rem);
    font-weight: 800;
    line-height: 1.15;
}

.hero-content p {
    font-size: 1.0625rem;
    opacity: 0.92;
    max-width: 36rem;
}

.section-head h2 {
    font-size: clamp(1.35rem, 2.5vw, 1.75rem);
    font-weight: 800;
}

.section-head p {
    font-size: 1rem;
    color: var(--muted);
}

.detail-card,
.search-card,
.contact-form-card,
.contact-card {
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    background: var(--surface-elevated);
}

.property-card {
    border-radius: var(--radius);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-xs);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.25s ease;
}

.property-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.property-card h3 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.35;
}

.property-card .price {
    font-family: var(--font-display);
    font-weight: 800;
    color: var(--brand);
    font-size: 1.05rem;
}

.category-card {
    border-radius: var(--radius);
    box-shadow: var(--shadow-xs);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-sm);
}

.site-footer {
    background: #0f172a;
    color: #cbd5e1;
    margin-top: 3rem;
}

.site-footer a {
    color: #e2e8f0;
}

.site-footer a:hover {
    color: #fff;
}

.footer-social {
    display: flex;
    gap: 0.65rem;
    margin-top: 1.25rem;
}

.footer-social a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.footer-social a:hover {
    background: var(--brand);
    border-color: var(--brand);
}

.footer-contact-item p {
    color: #cbd5e1;
    margin: 0.25rem 0 0;
    line-height: 1.55;
}

.footer-links-row strong {
    color: #fff;
    display: block;
    margin-bottom: 0.65rem;
}

.footer-links-row a {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 0.9375rem;
}

.property-media-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 180px;
    background: linear-gradient(145deg, var(--brand-soft), #fff);
}

.blog-card-icon {
    font-size: 2.5rem;
    color: var(--brand);
    opacity: 0.85;
}

/* —— Ad detail premium —— */
.ad-detail-section {
    padding-top: 1.25rem;
    padding-bottom: 3rem;
}

.ad-breadcrumb {
    font-weight: 500;
}

.ad-block-title {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 1.125rem;
    font-weight: 800;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--line);
}

.ad-block-title::before {
    content: "";
    width: 4px;
    height: 1.25rem;
    border-radius: 4px;
    background: linear-gradient(180deg, var(--accent), var(--brand));
    flex-shrink: 0;
}

.ad-gallery-main {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.ad-description-card .property-description {
    font-size: 1rem;
    line-height: 1.75;
    color: #334155;
}

.ad-feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 0.75rem;
}

.ad-feature-item {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 0.9rem 1rem;
    border-radius: var(--radius-sm);
    background: var(--surface-soft);
    border: 1px solid rgba(226, 232, 240, 0.8);
    min-height: 100%;
}

.ad-feature-item .label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted);
}

.ad-feature-item .value {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.9375rem;
    color: var(--ink);
    line-height: 1.35;
    word-break: break-word;
}

.ad-price-card {
    padding: 0;
    overflow: hidden;
    border: none;
    box-shadow: var(--shadow-md);
}

.ad-price-card-header {
    padding: 1.35rem 1.35rem 1rem;
    background: linear-gradient(145deg, #ffffff 0%, var(--brand-soft) 100%);
    border-bottom: 1px solid var(--line);
}

.ad-price-value {
    font-size: 2rem !important;
    font-weight: 800 !important;
    background: linear-gradient(135deg, var(--brand-dark), var(--brand));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent !important;
    margin-bottom: 0.5rem !important;
}

.ad-title {
    font-size: 1.2rem !important;
    font-weight: 800 !important;
    line-height: 1.35 !important;
    color: var(--ink);
}

.ad-price-card-body {
    padding: 1rem 1.35rem 1.35rem;
}

.ad-meta-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.15rem;
}

.ad-meta-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    background: var(--surface-soft);
    border: 1px solid var(--line);
    font-size: 0.8125rem;
    font-weight: 600;
    color: #475569;
}

.ad-meta-chip i {
    color: var(--brand);
    font-size: 0.75rem;
}

.ad-action-buttons {
    gap: 0.75rem;
}

.ad-action-btn {
    border-radius: var(--radius-sm);
    padding: 0.85rem 1rem;
    font-size: 0.9375rem;
}

.ad-seller-card .ad-seller-profile img {
    box-shadow: var(--shadow-xs);
}

.ad-unified-specs {
    padding: 1.35rem;
}

.ad-detail-map {
    border: 1px solid var(--line);
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04);
}

@media (min-width: 992px) {
    .ad-detail-layout {
        grid-template-columns: minmax(0, 1fr) 360px;
        gap: 1.5rem;
    }
}
