:root {
    --brand-gold: #d4af37;
    --brand-beige: #f5f5dc;
    --brand-black: #111111;
    --brand-white: #ffffff;
    /* --brand-font and --brand-heading-font are injected by the layout
       (see app/Views/layouts/main.php and admin.php) from the admin
       Theme settings. Do NOT define them here — defining them after the
       layout's inline <style> would overwrite the admin's selection. */
}

body {
    font-family: var(--brand-font);
    background: radial-gradient(circle at top right, rgba(212, 175, 55, 0.12), transparent 35%), var(--brand-white);
    color: var(--brand-black);
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6,
.display-1, .display-2, .display-3, .display-4, .display-5, .display-6,
.navbar-brand {
    font-family: var(--brand-heading-font);
}

.luxury-nav {
    background: linear-gradient(120deg, #0d0d0d 0%, #1e1e1e 100%);
}

.luxury-nav .nav-link {
    color: rgba(255, 255, 255, 0.88);
}

.luxury-nav .nav-link:hover,
.luxury-nav .nav-link:focus {
    color: var(--brand-gold);
}

.luxury-nav-tools {
    flex-wrap: wrap;
}

.luxury-tool-link,
.luxury-icon-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    border: 1px solid rgba(212, 175, 55, 0.28);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.luxury-tool-link {
    padding: 8px 14px;
}

.luxury-current-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(212, 175, 55, 0.2);
    color: var(--brand-gold);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.04em;
    line-height: 1;
}

.luxury-icon-link {
    width: 42px;
    padding: 0;
}

.luxury-tool-link:hover,
.luxury-tool-link:focus,
.luxury-icon-link:hover,
.luxury-icon-link:focus {
    background: rgba(212, 175, 55, 0.12);
    border-color: rgba(212, 175, 55, 0.55);
    transform: translateY(-1px);
}

.luxury-dropdown-menu {
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(17, 17, 17, 0.16);
}

.luxury-dropdown-menu .dropdown-item:active,
.luxury-dropdown-menu .dropdown-item:focus,
.luxury-dropdown-menu .dropdown-item:hover {
    background: rgba(212, 175, 55, 0.1);
    color: var(--brand-black);
}

.tooltip {
    --bs-tooltip-bg: #111111;
    --bs-tooltip-color: #ffffff;
}

.tooltip .tooltip-inner {
    border: 1px solid rgba(212, 175, 55, 0.35);
    font-weight: 700;
}

.hero-luxury {
    background: linear-gradient(135deg, rgba(17, 17, 17, 0.95), rgba(17, 17, 17, 0.8)), url('https://images.unsplash.com/photo-1600585154340-be6161a56a0c?auto=format&fit=crop&w=1400&q=80') center/cover;
    color: var(--brand-white);
}

.hero-luxury .search-card,
.hero-luxury .search-card h1,
.hero-luxury .search-card h2,
.hero-luxury .search-card h3,
.hero-luxury .search-card h4,
.hero-luxury .search-card h5,
.hero-luxury .search-card h6,
.hero-luxury .search-card label,
.hero-luxury .search-card p,
.hero-luxury .search-card .form-label {
    color: var(--brand-black);
}

.hero-luxury .search-card .form-control,
.hero-luxury .search-card .form-select {
    color: var(--brand-black);
    background-color: var(--brand-white);
}

.bg-gold {
    background-color: var(--brand-gold) !important;
}

.btn-luxury {
    --bs-btn-color: #111;
    --bs-btn-bg: var(--brand-gold);
    --bs-btn-border-color: var(--brand-gold);
    --bs-btn-hover-color: #111;
    --bs-btn-hover-bg: #e4c15a;
    --bs-btn-hover-border-color: #e4c15a;
    border-radius: 999px;
    font-weight: 700;
    position: relative;
    overflow: hidden;
}

.btn-luxury::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.35), transparent);
    transition: left 0.45s ease;
}

.btn-luxury:hover::after {
    left: 100%;
}

.search-card,
.property-card,
.stat-box,
.admin-stat {
    background: var(--brand-white);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(17, 17, 17, 0.06);
}

.property-card {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.property-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 30px rgba(17, 17, 17, 0.12);
}

.property-card__media {
    overflow: hidden;
    border-radius: 12px;
}

.property-status-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    display: inline-block;
    padding: 6px 12px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #111;
    background: #d4af37;
    border-radius: 999px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}

[dir="rtl"] .property-status-badge {
    left: auto;
    right: 12px;
}

.property-status-badge--under {
    background: #f4a93a;
    color: #1a1a1a;
}

.property-status-badge--offplan {
    background: #111;
    color: #d4af37;
}

.property-status-badge--inline {
    position: static;
    box-shadow: none;
}

.section-title {
    position: relative;
    padding-bottom: 10px;
}

.section-title::after {
    content: "";
    width: 64px;
    height: 3px;
    background: var(--brand-gold);
    position: absolute;
    bottom: 0;
    left: 0;
}

[dir="rtl"] .section-title::after {
    left: auto;
    right: 0;
}

.price-tag {
    color: var(--brand-gold);
    font-weight: 800;
}

.bg-soft {
    background: linear-gradient(180deg, var(--brand-white), var(--brand-beige));
}

.luxury-footer {
    background: #0f0f0f;
    color: #c8c8c8;
}

.footer-heading {
    color: #f1e6be;
    font-weight: 700;
}

.footer-company-name {
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 700;
}

.footer-logo {
    width: 64px;
    height: 64px;
    object-fit: contain;
    border-radius: 12px;
    border: 1px solid rgba(212, 175, 55, 0.35);
    background: rgba(255, 255, 255, 0.05);
    padding: 6px;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: #d8d8d8;
    text-decoration: none;
}

.footer-links a:hover,
.footer-links a:focus {
    color: var(--brand-gold);
}

.footer-newsletter-form .form-control {
    background: #1a1a1a;
    color: #ffffff;
    border-color: rgba(212, 175, 55, 0.35);
}

.footer-newsletter-form .form-control::placeholder {
    color: #b7b7b7;
}

.footer-newsletter-form .form-control:focus {
    border-color: rgba(212, 175, 55, 0.7);
    box-shadow: 0 0 0 0.2rem rgba(212, 175, 55, 0.18);
}

.social-link {
    color: var(--brand-gold);
    transition: transform 0.2s ease, color 0.2s ease;
}

.social-link:hover {
    color: #fff0c2;
    transform: translateY(-2px);
}

.services-filters-sidebar {
    position: sticky;
    top: 88px;
    z-index: 100;
}

@media (max-width: 991.98px) {
    .services-filters-sidebar {
        position: static;
        top: auto;
    }
}

.admin-body {
    background: #f7f6f2;
}

.admin-sidebar {
    width: 300px;
    min-width: 300px;
    flex: 0 0 300px;
    background: linear-gradient(180deg, #121212 0%, #0d0d0d 100%);
    color: #fff;
    border-inline-end: 1px solid rgba(212, 175, 55, 0.18);
    box-shadow: 8px 0 24px rgba(0, 0, 0, 0.2);
}

.admin-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #dedede;
    text-decoration: none;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid transparent;
    font-weight: 600;
    letter-spacing: 0.01em;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.admin-link i {
    width: 18px;
    text-align: center;
    color: rgba(212, 175, 55, 0.9);
}

.admin-link:hover {
    background: rgba(212, 175, 55, 0.14);
    border-color: rgba(212, 175, 55, 0.35);
    color: #fff;
    transform: translateX(2px);
}

.admin-link.active {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.22), rgba(212, 175, 55, 0.08));
    border-color: rgba(212, 175, 55, 0.55);
    color: #fff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.16);
}

.admin-link.active i {
    color: #ffd76a;
}

.admin-section-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: transparent;
    border: 0;
    color: #fff;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 13px;
    padding: 10px 12px;
    border-radius: 12px;
    cursor: pointer;
    border: 1px solid transparent;
    transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.admin-section-toggle:hover,
.admin-section-toggle:focus {
    background: rgba(212, 175, 55, 0.08);
    border-color: rgba(212, 175, 55, 0.28);
    color: #d4af37;
    outline: none;
}

#sidebarSales,
#sidebarManagement {
    border-inline-start: 1px dashed rgba(212, 175, 55, 0.2);
    margin-inline-start: 8px;
    padding-inline-start: 8px;
}

.admin-section-caret {
    transition: transform 0.2s ease;
    font-size: 11px;
}

.admin-section-toggle[aria-expanded="false"] .admin-section-caret {
    transform: rotate(-90deg);
}

@media (max-width: 991px) {
    .luxury-nav-tools {
        margin-top: 12px;
    }

    .luxury-tool-link,
    .luxury-icon-link {
        justify-content: flex-start;
    }

    .luxury-icon-link {
        width: 42px;
        justify-content: center;
    }

    .admin-sidebar {
        width: 300px;
        min-width: 300px;
        flex: 0 0 300px;
    }

    .admin-sidebar h5,
    .admin-sidebar .admin-link {
        font-size: 12px;
    }
}

.seo-premium {
    background:
        radial-gradient(800px 340px at 10% -10%, rgba(212, 175, 55, 0.16), transparent 60%),
        radial-gradient(640px 300px at 100% 10%, rgba(0, 0, 0, 0.08), transparent 65%),
        linear-gradient(180deg, #fcfbf7 0%, #f6f3ea 100%);
}

.seo-hero {
    position: relative;
    overflow: hidden;
    padding: clamp(1.2rem, 2vw, 2rem);
    border-radius: 22px;
    color: #fff;
    background: linear-gradient(120deg, #111 0%, #1f1c14 48%, #5e4a1a 100%);
    box-shadow: 0 18px 36px rgba(17, 17, 17, 0.22);
}

.seo-hero__glow {
    position: absolute;
    width: 320px;
    height: 320px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.42) 0%, rgba(212, 175, 55, 0) 70%);
    top: -90px;
    right: -40px;
    pointer-events: none;
    animation: seoPulse 4.8s ease-in-out infinite;
}

.seo-hero__content {
    position: relative;
    z-index: 2;
    max-width: 780px;
}

.seo-hero__kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #f7df97;
}

.seo-hero__title {
    margin-top: 0.65rem;
    margin-bottom: 0.55rem;
    font-size: clamp(1.5rem, 3vw, 2.45rem);
    line-height: 1.16;
}

.seo-hero__lead {
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    max-width: 68ch;
}

.seo-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.seo-outline-btn {
    border-color: rgba(255, 255, 255, 0.45);
    color: #fff;
}

.seo-outline-btn:hover,
.seo-outline-btn:focus {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.65);
}

.seo-kpis {
    margin-top: 1rem;
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.seo-kpi {
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.07);
    padding: 10px 12px;
}

.seo-kpi__value {
    font-size: 1.28rem;
    font-weight: 800;
    color: #f9e5aa;
    line-height: 1.1;
}

.seo-kpi__label {
    margin-top: 4px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.86);
}

.seo-prop-card {
    border-radius: 16px;
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.seo-prop-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 34px rgba(17, 17, 17, 0.14);
}

.seo-prop-card__media {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.seo-prop-card__media img {
    display: block;
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.seo-prop-card__empty {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 200px;
    font-size: 2rem;
    color: #9a9a9a;
    background: #f1f1f1;
}

.seo-prop-card__badge {
    position: absolute;
    top: 10px;
    left: 10px;
    display: inline-flex;
    align-items: center;
    font-size: 0.72rem;
    font-weight: 700;
    color: #111;
    background: rgba(244, 224, 162, 0.96);
    border-radius: 999px;
    padding: 4px 10px;
}

[dir="rtl"] .seo-prop-card__badge {
    left: auto;
    right: 10px;
}

.seo-side-card {
    border-radius: 14px;
}

.seo-link-list a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 10px;
    text-decoration: none;
    color: #222;
    background: rgba(212, 175, 55, 0.08);
    transition: background 0.2s ease, transform 0.2s ease;
}

.seo-link-list a:hover {
    background: rgba(212, 175, 55, 0.2);
    transform: translateX(2px);
}

.seo-post-item {
    padding-bottom: 10px;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.12);
}

.seo-post-item:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.seo-convert-card {
    border: 1px solid rgba(212, 175, 55, 0.45);
    background: linear-gradient(180deg, #fff 0%, #fff8e7 100%);
}

@keyframes seoPulse {
    0% { transform: scale(1); opacity: 0.85; }
    50% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(1); opacity: 0.85; }
}

@media (max-width: 991.98px) {
    .seo-kpis {
        grid-template-columns: 1fr;
    }

    .seo-hero__actions .btn {
        width: 100%;
    }
}
