/* ==========================================================================
   Prestige Theme — Dark Mode Luxury Real Estate
   ========================================================================== */

/* ---- Global ---- */
body {
    font-family: var(--agency-font-body);
    color: #E8E8E8;
    background-color: #0F0F0F;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--agency-font-heading);
    color: #FFFFFF;
    font-weight: 700;
    letter-spacing: -0.03em;
}

a {
    color: var(--agency-secondary);
    text-decoration: none;
    transition: var(--agency-transition);
}

a:hover {
    color: #E8C06A;
}

::selection {
    background: rgba(212, 168, 75, 0.3);
    color: #fff;
}

/* Dark mode overrides for Bootstrap elements */
.text-muted {
    color: #888 !important;
}

.text-dark {
    color: #E8E8E8 !important;
}

.bg-white {
    background-color: #1A1A1A !important;
}

.bg-light {
    background-color: #1A1A1A !important;
}

.border {
    border-color: #333 !important;
}

.border-bottom {
    border-bottom-color: #333 !important;
}

.border-top {
    border-top-color: #333 !important;
}

.card {
    background-color: #1A1A1A;
    border-color: #333;
}

.list-group-item {
    background-color: #1A1A1A;
    border-color: #333;
    color: #E8E8E8;
}

.table {
    color: #E8E8E8;
    --bs-table-bg: transparent;
    --bs-table-striped-bg: rgba(255, 255, 255, 0.03);
    --bs-table-hover-bg: rgba(212, 168, 75, 0.05);
    border-color: #333;
}

.table th {
    color: var(--agency-secondary);
    border-color: #333;
}

.table td {
    border-color: #333;
}

hr {
    border-color: #333;
    opacity: 0.5;
}

/* ---- Top Header ---- */
.agency-top-header {
    background: #0A0A0A;
    border-bottom: 1px solid rgba(212, 168, 75, 0.1);
    color: #999;
}

.agency-top-header a {
    color: #999;
}

.agency-top-header a:hover {
    color: var(--agency-secondary);
}

/* ---- Navbar ---- */
.agency-navbar {
    background: #0D0D0D;
    padding: 0 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(212, 168, 75, 0.2);
    box-shadow: none;
}

.agency-navbar .nav-link {
    color: rgba(255, 255, 255, 0.7) !important;
    font-weight: 500;
    font-size: 0.875rem;
    padding: 1.1rem 1rem !important;
    transition: var(--agency-transition);
    border-bottom: 3px solid transparent;
    letter-spacing: 0.03em;
}

.agency-navbar .nav-link:hover,
.agency-navbar .nav-link.active {
    color: var(--agency-secondary) !important;
    border-bottom-color: var(--agency-secondary);
}

.agency-navbar-brand {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff !important;
    letter-spacing: -0.02em;
}

.agency-navbar-brand span {
    color: var(--agency-secondary);
}

.agency-navbar .navbar-toggler {
    border-color: rgba(212, 168, 75, 0.3);
    color: var(--agency-secondary);
}

.agency-navbar .navbar-toggler-icon {
    filter: invert(1);
}

/* Navbar dropdown (dark) */
.agency-navbar .dropdown-menu {
    background: #1A1A1A;
    border: 1px solid #333;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.agency-navbar .dropdown-item {
    color: #E8E8E8;
}

.agency-navbar .dropdown-item:hover,
.agency-navbar .dropdown-item:focus {
    background: rgba(212, 168, 75, 0.1);
    color: var(--agency-secondary);
}

/* ---- Hero Section ---- */
.agency-hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: #0F0F0F;
}

.agency-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}

.agency-hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15, 15, 15, 0.9) 0%, rgba(212, 168, 75, 0.3) 100%);
}

.agency-hero-content {
    position: relative;
    z-index: 2;
    max-width: 720px;
    padding: 4rem 2rem;
    margin: 0 auto;
    text-align: center;
}

.agency-hero-content h1 {
    color: #fff;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.agency-hero-content h1 span {
    color: var(--agency-secondary);
}

.agency-hero-content p {
    color: rgba(255, 255, 255, 0.75);
    font-size: 1.25rem;
    font-weight: 300;
    margin-bottom: 2.5rem;
}

/* ---- Hero Subtitle ---- */
.agency-hero-subtitle {
    color: rgba(255, 255, 255, 0.75);
    font-size: 1.25rem;
    font-weight: 300;
    margin-bottom: 2.5rem;
}

/* ---- Search Bar ---- */
.agency-search-bar {
    display: flex;
    gap: 0;
    max-width: 640px;
    margin: 0 auto;
    background: #1A1A1A;
    border-radius: var(--agency-radius-lg);
    overflow: hidden;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.4);
    border: 1px solid #333;
}

.agency-search-bar .form-select {
    border: none;
    border-radius: 0;
    padding: 1rem 1.25rem;
    font-size: 0.9375rem;
    border-right: 1px solid #333;
    background-color: #1A1A1A;
    color: #E8E8E8;
}

.agency-search-bar .form-select:focus {
    box-shadow: none;
    outline: none;
    background-color: #242424;
}

.agency-search-bar .btn-search {
    background: var(--agency-secondary);
    color: #000;
    border: none;
    padding: 1rem 2rem;
    font-weight: 700;
    font-size: 0.9375rem;
    white-space: nowrap;
    transition: var(--agency-transition);
}

.agency-search-bar .btn-search:hover {
    background: #E8C06A;
    box-shadow: 0 0 20px rgba(212, 168, 75, 0.3);
}

/* ---- Hero Search (enhanced) ---- */
.agency-hero-search {
    max-width: 640px;
    margin: 0 auto;
}

.agency-hero-search .agency-search-row {
    display: flex;
    background: #1A1A1A;
    border-radius: var(--agency-radius-lg);
    overflow: hidden;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(212, 168, 75, 0.2);
}

.agency-hero-search .agency-search-field {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 0;
    padding: 0 1.25rem;
    border-right: 1px solid #333;
    gap: 0.5rem;
}

.agency-hero-search .agency-search-field i {
    color: var(--agency-secondary);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.agency-hero-search .agency-search-field select {
    border: none;
    background: transparent;
    height: 60px;
    font-size: 0.9375rem;
    color: #E8E8E8;
    width: 100%;
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    outline: none;
    box-shadow: none;
    padding-right: 1.5rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23D4A84B' viewBox='0 0 16 16'%3E%3Cpath d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0 center;
}

.agency-hero-search .agency-search-field select option {
    background: #1A1A1A;
    color: #E8E8E8;
}

.agency-hero-search .agency-search-field select:focus {
    outline: none;
    box-shadow: none;
}

.agency-hero-search .agency-search-submit {
    height: 60px;
    padding: 0 2.5rem;
    font-size: 0.9375rem;
    font-weight: 700;
    white-space: nowrap;
    border: none;
    border-radius: 0;
    background: var(--agency-secondary);
    color: #000;
    cursor: pointer;
    transition: var(--agency-transition);
    display: flex;
    align-items: center;
    letter-spacing: 0.02em;
}

.agency-hero-search .agency-search-submit:hover {
    background: #E8C06A;
    box-shadow: 0 0 20px rgba(212, 168, 75, 0.3);
}

/* ---- Section Titles ---- */
.agency-section {
    padding: 5rem 0;
    background: #0F0F0F;
}

.agency-section-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #fff;
}

.agency-section-subtitle {
    text-align: center;
    color: #999;
    font-size: 1.0625rem;
    font-weight: 400;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.agency-blue-bar,
.agency-accent-line {
    width: 48px;
    height: 4px;
    background: var(--agency-secondary);
    margin: 0.75rem auto 2rem;
    border-radius: 2px;
}

/* ---- Section Alt Background ---- */
.agency-section-alt {
    background: #1A1A1A;
}

/* ---- Section Light bg ---- */
.agency-section-light {
    background: #1A1A1A;
}

/* ---- Property Cards ---- */
.agency-property-card {
    background: #1A1A1A;
    border-radius: var(--agency-radius);
    overflow: hidden;
    border: 1px solid #333;
    box-shadow: none;
    transition: var(--agency-transition);
    height: 100%;
}

.agency-property-card:hover {
    box-shadow: 0 0 20px rgba(212, 168, 75, 0.1);
    border-color: var(--agency-secondary);
    transform: translateY(-4px);
}

.agency-property-card .card-img-wrapper {
    position: relative;
    padding-top: 66%;
    overflow: hidden;
}

.agency-property-card .card-img-wrapper img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.agency-property-card:hover .card-img-wrapper img {
    transform: scale(1.05);
}

.agency-property-card .card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(212, 168, 75, 0.15);
    border: 1px solid rgba(212, 168, 75, 0.3);
    color: var(--agency-secondary);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.3rem 0.75rem;
    border-radius: var(--agency-radius-sm);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    backdrop-filter: blur(8px);
}

.agency-property-card .card-body {
    padding: 1.25rem;
}

.agency-property-card .card-price {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--agency-secondary);
    margin-bottom: 0.25rem;
}

.agency-property-card .card-location {
    color: #999;
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
}

.agency-property-card .card-location i {
    color: var(--agency-secondary);
    margin-right: 0.25rem;
}

.agency-property-card .card-features {
    display: flex;
    gap: 1.25rem;
    font-size: 0.8125rem;
    color: #999;
}

.agency-property-card .card-features i {
    color: var(--agency-secondary);
    margin-right: 0.25rem;
}

.agency-property-card .card-price-conversion {
    font-size: 0.75rem;
    color: #888;
    margin-bottom: 0.25rem;
}

/* Neuf mode: taller image */
.agency-property-card .card-img-tall {
    padding-top: 75%;
}

/* Neuf card: slightly different styling */
.agency-property-card.card-neuf .card-body {
    padding: 1.5rem;
}

/* ---- Property Card Extras ---- */
.agency-property-card .card-badge-exclu {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(220, 53, 69, 0.85);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.3rem 0.75rem;
    border-radius: var(--agency-radius-sm);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    backdrop-filter: blur(8px);
}

.agency-property-card .card-photo-count {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: rgba(0, 0, 0, 0.7);
    color: #E8E8E8;
    font-size: 0.75rem;
    padding: 0.2rem 0.6rem;
    border-radius: var(--agency-radius-sm);
}

.agency-property-card .btn-favorite {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(26, 26, 26, 0.85);
    border: 1px solid #444;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.1rem;
    color: #999;
    transition: var(--agency-transition);
    z-index: 5;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.agency-property-card .btn-favorite:hover,
.agency-property-card .btn-favorite.is-favorite {
    color: #dc3545;
    border-color: #dc3545;
}

.agency-property-card .btn-favorite.is-favorite i::before {
    content: "\F415";
}

/* When exclusive badge and favorite both present */
.agency-property-card .card-badge-exclu ~ .btn-favorite,
.agency-property-card .btn-favorite:has(~ .card-badge-exclu) {
    top: auto;
    bottom: 12px;
    right: 12px;
}

/* ---- Statistics ---- */
.agency-stats {
    background: linear-gradient(135deg, #0D0D0D 0%, #1A1A1A 50%, rgba(212, 168, 75, 0.15) 100%);
    padding: 5rem 0;
    border-top: 1px solid #333;
    border-bottom: 1px solid #333;
}

.agency-stat-item {
    text-align: center;
    padding: 1.5rem;
}

.agency-stat-number {
    font-size: 2.75rem;
    font-weight: 700;
    color: var(--agency-secondary);
    line-height: 1.1;
}

.agency-stat-label {
    color: #888;
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 0.25rem;
}

.agency-stat-icon {
    font-size: 2rem;
    color: var(--agency-secondary);
    margin-bottom: 0.75rem;
    opacity: 0.6;
}

/* ---- Team Cards ---- */
.agency-team-card {
    background: #1A1A1A;
    border-radius: var(--agency-radius);
    overflow: hidden;
    text-align: center;
    padding: 2rem 1.5rem;
    border: 1px solid #333;
    box-shadow: none;
    transition: var(--agency-transition);
    height: 100%;
}

.agency-team-card:hover {
    box-shadow: 0 0 20px rgba(212, 168, 75, 0.1);
    border-color: var(--agency-secondary);
    transform: translateY(-4px);
}

.agency-team-card img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 3px solid var(--agency-secondary);
    box-shadow: 0 0 15px rgba(212, 168, 75, 0.15);
}

.agency-team-card h5 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: #fff;
}

.agency-team-card p {
    color: var(--agency-secondary);
    font-size: 0.8125rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.agency-team-card small {
    color: #888;
    font-size: 0.75rem;
}

/* ---- Agent Card Extras ---- */
.agency-team-card .agent-function {
    color: var(--agency-secondary);
    font-size: 0.8125rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.agency-team-card .agent-listings-count {
    color: #888;
    font-size: 0.75rem;
}

.agency-team-card .agent-phone {
    color: #999;
    font-size: 0.8125rem;
    margin-top: 0.5rem;
}

/* ---- Team Cards V2 (enriched) ---- */
.agency-team-card-v2 {
    background: #1A1A1A;
    border-radius: var(--agency-radius);
    overflow: hidden;
    text-align: center;
    padding: 2rem 1.5rem 1.5rem;
    border: 1px solid #333;
    box-shadow: none;
    transition: var(--agency-transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.agency-team-card-v2:hover {
    box-shadow: 0 0 25px rgba(212, 168, 75, 0.12);
    border-color: var(--agency-secondary);
    transform: translateY(-6px);
}

.agency-team-card-v2 .agent-photo-wrapper {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 1.25rem;
    border: 4px solid var(--agency-secondary);
    box-shadow: 0 0 20px rgba(212, 168, 75, 0.15);
}

.agency-team-card-v2 .agent-photo-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.agency-team-card-v2:hover .agent-photo-wrapper img {
    transform: scale(1.08);
}

.agency-team-card-v2 .agent-info {
    flex: 1;
    margin-bottom: 1rem;
}

.agency-team-card-v2 .agent-info h5 {
    font-size: 1.0625rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: #fff;
}

.agency-team-card-v2 .agent-function {
    display: block;
    color: var(--agency-secondary);
    font-size: 0.8125rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.agency-team-card-v2 .agent-count {
    display: block;
    color: #888;
    font-size: 0.75rem;
}

.agency-team-card-v2 .agent-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

.agency-team-card-v2 .agent-action-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #242424;
    border: 1px solid #444;
    color: #E8E8E8;
    font-size: 1rem;
    transition: var(--agency-transition);
}

.agency-team-card-v2 .agent-action-btn:hover {
    background: var(--agency-secondary);
    border-color: var(--agency-secondary);
    color: #000;
}

/* ---- Neighborhood Cards ---- */
.agency-neighborhood-card {
    background: #1A1A1A;
    border: 1px solid #333;
    border-radius: var(--agency-radius-sm);
    padding: 1.25rem;
    text-align: center;
    transition: var(--agency-transition);
}

.agency-neighborhood-card:hover {
    border-color: var(--agency-secondary);
    background: #242424;
    box-shadow: 0 0 15px rgba(212, 168, 75, 0.1);
    transform: translateY(-2px);
}

.agency-neighborhood-card h6 {
    font-weight: 600;
    font-size: 0.9375rem;
    margin-bottom: 0.25rem;
    color: #fff;
}

.agency-neighborhood-card small {
    color: var(--agency-secondary);
    font-weight: 600;
    font-size: 0.8125rem;
}

/* ---- About Preview ---- */
.agency-about-preview {
    background: #1A1A1A;
}

/* ---- About text ---- */
.agency-about-text {
    color: #999;
    line-height: 1.9;
    font-size: 1.0625rem;
}

/* ---- About Section Logo ---- */
.agency-about-logo {
    background: #242424;
    border-radius: var(--agency-radius-lg);
    padding: 3rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--agency-shadow);
    border: 1px solid #333;
}

.agency-about-logo img {
    max-width: 200px;
    max-height: 200px;
    object-fit: contain;
}

/* ---- CTA ---- */
.agency-cta {
    background: linear-gradient(135deg, #0D0D0D 0%, rgba(212, 168, 75, 0.2) 100%);
    color: #fff;
    text-align: center;
    padding: 5rem 0;
    border-top: 1px solid rgba(212, 168, 75, 0.15);
    border-bottom: 1px solid rgba(212, 168, 75, 0.15);
}

.agency-cta h2 {
    color: #fff;
    margin-bottom: 1rem;
}

.agency-cta p {
    opacity: 0.7;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 300;
}

/* ---- CTA Outline Light ---- */
.btn-agency-outline-light {
    border-color: rgba(212, 168, 75, 0.5);
    color: var(--agency-secondary);
}

.btn-agency-outline-light:hover {
    background: rgba(212, 168, 75, 0.15);
    border-color: var(--agency-secondary);
    color: var(--agency-secondary);
}

/* ---- Buttons ---- */
.btn-agency-primary {
    background: var(--agency-secondary);
    color: #000;
    border: none;
    padding: 0.85rem 2.5rem;
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    border-radius: var(--agency-radius-sm);
    transition: var(--agency-transition);
    box-shadow: 0 2px 8px rgba(212, 168, 75, 0.2);
}

.btn-agency-primary:hover {
    background: #E8C06A;
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(212, 168, 75, 0.35);
}

.btn-agency-outline {
    background: transparent;
    color: var(--agency-secondary);
    border: 2px solid var(--agency-secondary);
    padding: 0.75rem 2.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    border-radius: var(--agency-radius-sm);
    transition: var(--agency-transition);
    display: inline-block;
}

.btn-agency-outline:hover {
    background: var(--agency-secondary);
    color: #000;
    transform: translateY(-1px);
    box-shadow: 0 0 20px rgba(212, 168, 75, 0.25);
}

.btn-agency-lg {
    padding: 1rem 3rem;
    font-size: 1rem;
}

/* ---- CTA Buttons (enhanced) ---- */
.btn-agency-cta-primary {
    background: var(--agency-secondary);
    color: #000;
    border: 2px solid var(--agency-secondary);
    padding: 0.9rem 2.5rem;
    font-size: 0.9375rem;
    font-weight: 700;
    border-radius: var(--agency-radius-sm);
    transition: var(--agency-transition);
    display: inline-flex;
    align-items: center;
}

.btn-agency-cta-primary:hover {
    background: transparent;
    color: var(--agency-secondary);
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(212, 168, 75, 0.3);
}

.btn-agency-cta-outline {
    background: transparent;
    color: var(--agency-secondary);
    border: 2px solid rgba(212, 168, 75, 0.5);
    padding: 0.9rem 2.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: var(--agency-radius-sm);
    transition: var(--agency-transition);
    display: inline-flex;
    align-items: center;
}

.btn-agency-cta-outline:hover {
    background: rgba(212, 168, 75, 0.15);
    border-color: var(--agency-secondary);
    color: var(--agency-secondary);
    transform: translateY(-2px);
}

/* ---- Footer ---- */
.agency-footer {
    background: #0A0A0A;
    color: rgba(255, 255, 255, 0.6);
    padding: 4rem 0 2rem;
    font-size: 0.875rem;
    border-top: 1px solid #333;
}

.agency-footer h6 {
    color: var(--agency-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 0.8125rem;
    margin-bottom: 1.25rem;
}

.agency-footer a {
    color: rgba(255, 255, 255, 0.5);
    transition: var(--agency-transition);
}

.agency-footer a:hover {
    color: var(--agency-secondary);
}

.agency-footer-bottom {
    border-top: 1px solid #333;
    padding-top: 1.5rem;
    margin-top: 3rem;
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.8125rem;
}

/* ---- Forms (dark mode) ---- */
.form-control,
.form-select {
    background-color: #242424;
    border: 1px solid #444;
    color: #E8E8E8;
    transition: var(--agency-transition);
}

.form-control:focus,
.form-select:focus {
    background-color: #2D2D2D;
    border-color: var(--agency-secondary);
    color: #E8E8E8;
    box-shadow: 0 0 0 0.2rem rgba(212, 168, 75, 0.15);
}

.form-control::placeholder {
    color: #777;
}

.form-label {
    color: #E8E8E8;
    font-weight: 500;
}

.form-text {
    color: #888;
}

.form-check-input {
    background-color: #242424;
    border-color: #444;
}

.form-check-input:checked {
    background-color: var(--agency-secondary);
    border-color: var(--agency-secondary);
}

.form-check-label {
    color: #E8E8E8;
}

textarea.form-control {
    background-color: #242424;
    border-color: #444;
    color: #E8E8E8;
}

.input-group-text {
    background-color: #1A1A1A;
    border-color: #444;
    color: #999;
}

/* ---- Dropdown Menu (dark) ---- */
.dropdown-menu {
    background-color: #1A1A1A;
    border: 1px solid #333;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.dropdown-item {
    color: #E8E8E8;
}

.dropdown-item:hover,
.dropdown-item:focus {
    background-color: rgba(212, 168, 75, 0.1);
    color: var(--agency-secondary);
}

.dropdown-divider {
    border-top-color: #333;
}

/* ---- Filter Bar (dark mode) ---- */
.agency-filter-bar {
    background: #1A1A1A;
    border: 1px solid #333;
    border-radius: var(--agency-radius);
    padding: 1rem 1.25rem;
}

.agency-filter-bar .nav-pills .nav-link {
    color: #999;
    background: transparent;
    border-radius: var(--agency-radius-sm);
    font-size: 0.8125rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: var(--agency-transition);
}

.agency-filter-bar .nav-pills .nav-link:hover {
    color: #E8E8E8;
    background: #242424;
}

.agency-filter-bar .nav-pills .nav-link.active {
    background: var(--agency-secondary);
    color: #000;
    font-weight: 700;
}

.agency-filter-bar .form-select {
    background-color: #242424;
    border-color: #444;
    color: #E8E8E8;
    font-size: 0.8125rem;
}

.agency-filter-bar .btn {
    font-size: 0.8125rem;
}

.agency-filter-bar .btn-outline-secondary {
    border-color: #444;
    color: #999;
}

.agency-filter-bar .btn-outline-secondary:hover {
    background: #242424;
    border-color: var(--agency-secondary);
    color: var(--agency-secondary);
}

.agency-filter-bar .btn-outline-secondary.active {
    background: var(--agency-secondary);
    border-color: var(--agency-secondary);
    color: #000;
}

/* Alert button gold accent in filter bar */
.agency-filter-bar .btn-alert {
    background: rgba(212, 168, 75, 0.15);
    border: 1px solid rgba(212, 168, 75, 0.3);
    color: var(--agency-secondary);
    font-weight: 600;
}

.agency-filter-bar .btn-alert:hover {
    background: var(--agency-secondary);
    color: #000;
}

/* ---- Pagination (dark) ---- */
.page-link {
    background-color: #1A1A1A;
    border-color: #333;
    color: #E8E8E8;
}

.page-link:hover {
    background-color: #242424;
    border-color: var(--agency-secondary);
    color: var(--agency-secondary);
}

.page-item.active .page-link {
    background-color: var(--agency-secondary);
    border-color: var(--agency-secondary);
    color: #000;
}

.page-item.disabled .page-link {
    background-color: #1A1A1A;
    border-color: #333;
    color: #555;
}

/* ---- Breadcrumbs (dark) ---- */
.breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 1.5rem;
}

.breadcrumb-item {
    color: #888;
    font-size: 0.8125rem;
}

.breadcrumb-item a {
    color: #999;
}

.breadcrumb-item a:hover {
    color: var(--agency-secondary);
}

.breadcrumb-item.active {
    color: var(--agency-secondary);
}

.breadcrumb-item + .breadcrumb-item::before {
    color: #555;
}

/* ---- Badges (dark gold) ---- */
.badge {
    font-weight: 600;
}

.badge.bg-primary {
    background: rgba(212, 168, 75, 0.15) !important;
    border: 1px solid rgba(212, 168, 75, 0.3);
    color: var(--agency-secondary) !important;
}

.badge.bg-secondary {
    background: #242424 !important;
    border: 1px solid #444;
    color: #E8E8E8 !important;
}

.badge.bg-success {
    background: rgba(25, 135, 84, 0.2) !important;
    border: 1px solid rgba(25, 135, 84, 0.3);
    color: #57c98b !important;
}

.badge.bg-danger {
    background: rgba(220, 53, 69, 0.2) !important;
    border: 1px solid rgba(220, 53, 69, 0.3);
    color: #e47a84 !important;
}

.badge.bg-warning {
    background: rgba(212, 168, 75, 0.2) !important;
    border: 1px solid rgba(212, 168, 75, 0.3);
    color: var(--agency-secondary) !important;
}

.badge.bg-info {
    background: rgba(13, 202, 240, 0.15) !important;
    border: 1px solid rgba(13, 202, 240, 0.3);
    color: #5dd8f0 !important;
}

/* ---- Alerts (dark) ---- */
.alert {
    border-radius: var(--agency-radius-sm);
}

.alert-success {
    background: rgba(25, 135, 84, 0.15);
    border-color: rgba(25, 135, 84, 0.3);
    color: #57c98b;
}

.alert-danger {
    background: rgba(220, 53, 69, 0.15);
    border-color: rgba(220, 53, 69, 0.3);
    color: #e47a84;
}

.alert-warning {
    background: rgba(212, 168, 75, 0.15);
    border-color: rgba(212, 168, 75, 0.3);
    color: var(--agency-secondary);
}

.alert-info {
    background: rgba(13, 202, 240, 0.1);
    border-color: rgba(13, 202, 240, 0.2);
    color: #5dd8f0;
}

/* ---- Modals (dark) ---- */
.modal-content {
    background-color: #1A1A1A;
    border: 1px solid #333;
    color: #E8E8E8;
}

.modal-header {
    border-bottom-color: #333;
}

.modal-header .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}

.modal-footer {
    border-top-color: #333;
}

.modal-title {
    color: #fff;
}

/* ---- Tabs / Nav (dark) ---- */
.nav-tabs {
    border-bottom-color: #333;
}

.nav-tabs .nav-link {
    color: #999;
    border-color: transparent;
}

.nav-tabs .nav-link:hover {
    border-color: #333 #333 transparent;
    color: var(--agency-secondary);
}

.nav-tabs .nav-link.active {
    background-color: #1A1A1A;
    border-color: #333 #333 #1A1A1A;
    color: var(--agency-secondary);
}

/* ---- Project Card (Neuf) ---- */
.agency-project-card {
    background: #1A1A1A;
    border-radius: var(--agency-radius);
    overflow: hidden;
    border: 1px solid #333;
    box-shadow: none;
    transition: var(--agency-transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.agency-project-card:hover {
    box-shadow: 0 0 20px rgba(212, 168, 75, 0.1);
    border-color: var(--agency-secondary);
    transform: translateY(-4px);
}

.project-card-image {
    position: relative;
    padding-top: 60%;
    overflow: hidden;
}

.project-card-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.agency-project-card:hover .project-card-image img {
    transform: scale(1.05);
}

.project-card-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.project-card-title {
    font-size: 1.0625rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.25rem;
    line-height: 1.3;
}

.project-card-title a {
    color: #fff;
}

.project-card-title a:hover {
    color: var(--agency-secondary);
}

.project-units-list {
    display: flex;
    flex-direction: column;
}

.project-unit-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.4rem 0.6rem;
    font-size: 0.8125rem;
    color: #E8E8E8;
    border-bottom: 1px solid #333;
    transition: var(--agency-transition);
}

.project-unit-line:last-child {
    border-bottom: none;
}

.project-unit-line:hover {
    background: #242424;
    color: var(--agency-secondary);
}

.project-unit-line i {
    opacity: 0;
    transition: opacity 0.2s;
}

.project-unit-line:hover i {
    opacity: 1;
}

.project-unit-more {
    padding: 0.4rem 0.6rem;
    font-weight: 600;
}

/* ---- Detail Page: Project Units Table ---- */
.agency-project-units-table {
    border: 1px solid #333;
    border-radius: var(--agency-radius);
    overflow: hidden;
    background: #1A1A1A;
}

.project-unit-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.875rem 1.25rem;
    font-size: 0.875rem;
    color: #E8E8E8;
    border-bottom: 1px solid #333;
    transition: var(--agency-transition);
}

.project-unit-row:last-child {
    border-bottom: none;
}

a.project-unit-row:hover {
    background: #242424;
    color: var(--agency-secondary);
}

.project-unit-row .project-unit-arrow {
    opacity: 0;
    margin-left: 0.75rem;
    color: var(--agency-secondary);
    transition: opacity 0.2s;
}

a.project-unit-row:hover .project-unit-arrow {
    opacity: 1;
}

.project-unit-current {
    background: #242424;
    font-weight: 500;
}

/* ---- Detail Page: Price Display ---- */
.agency-price-display {
    border-bottom: 2px solid #333;
    padding-bottom: 1rem;
}

.agency-price-display .price-main {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--agency-secondary);
    line-height: 1.2;
}

.agency-price-display .price-conversions {
    color: #888;
    font-size: 0.9rem;
    margin-left: 0.75rem;
    font-weight: 400;
}

/* ---- Detail Page: Agent Card (sidebar) ---- */
.agency-detail-agent-card {
    background: #1A1A1A;
    border-radius: var(--agency-radius);
    padding: 2rem 1.5rem;
    text-align: center;
    border: 1px solid #333;
    box-shadow: none;
}

.agency-detail-agent-card .agent-photo-wrapper {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--agency-secondary);
    box-shadow: 0 0 20px rgba(212, 168, 75, 0.15);
}

.agency-detail-agent-card .agent-photo-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.agency-detail-agent-card h5 {
    color: #fff;
}

.agency-detail-agent-card p {
    color: #999;
}

.agency-detail-agent-card a {
    color: var(--agency-secondary);
}

.agency-detail-agent-card a:hover {
    color: #E8C06A;
}

/* ---- Detail Page: Features Grid ---- */
.agency-feature-item {
    background: #242424;
    border-radius: var(--agency-radius-sm);
    padding: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: var(--agency-transition);
    border: 1px solid #333;
}

.agency-feature-item:hover {
    border-color: rgba(212, 168, 75, 0.3);
    box-shadow: 0 0 10px rgba(212, 168, 75, 0.05);
}

.agency-feature-item i {
    color: var(--agency-secondary);
    font-size: 1.25rem;
}

.agency-feature-item .feature-label {
    color: #999;
    font-size: 0.75rem;
}

.agency-feature-item .feature-value {
    color: #E8E8E8;
    font-weight: 600;
}

/* ---- Detail Page: Amenities ---- */
.agency-amenity-item {
    color: #E8E8E8;
}

.agency-amenity-item i {
    color: var(--agency-secondary);
}

/* ---- Detail Page: Description ---- */
.agency-detail-description {
    color: #CCC;
    line-height: 1.9;
}

.agency-detail-description h3,
.agency-detail-description h4,
.agency-detail-description h5 {
    color: #fff;
}

/* ---- Detail Page: Gallery ---- */
.agency-gallery-main {
    border-radius: var(--agency-radius);
    overflow: hidden;
    border: 1px solid #333;
}

.agency-gallery-thumb {
    border-radius: var(--agency-radius-sm);
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    opacity: 0.6;
    transition: var(--agency-transition);
}

.agency-gallery-thumb:hover,
.agency-gallery-thumb.active {
    opacity: 1;
    border-color: var(--agency-secondary);
}

/* ---- Detail Page: Similar Properties Title ---- */
.agency-similar-title {
    color: #fff;
}

/* ---- Contact Page ---- */
.agency-contact-info {
    background: #1A1A1A;
    border: 1px solid #333;
    border-radius: var(--agency-radius);
    padding: 2rem;
}

.agency-contact-info h5 {
    color: #fff;
}

.agency-contact-info p,
.agency-contact-info li {
    color: #999;
}

.agency-contact-info i {
    color: var(--agency-secondary);
}

.agency-contact-form {
    background: #1A1A1A;
    border: 1px solid #333;
    border-radius: var(--agency-radius);
    padding: 2rem;
}

.agency-contact-form h5 {
    color: #fff;
}

/* ---- Login Page ---- */
.agency-login-card {
    background: #1A1A1A;
    border: 1px solid #333;
    border-radius: var(--agency-radius);
    padding: 2rem;
}

.agency-login-card h3 {
    color: #fff;
}

/* Social login buttons */
.btn-google {
    background: #242424;
    border: 1px solid #444;
    color: #E8E8E8;
}

.btn-google:hover {
    background: #2D2D2D;
    border-color: #555;
    color: #fff;
}

.btn-facebook {
    background: #242424;
    border: 1px solid #444;
    color: #E8E8E8;
}

.btn-facebook:hover {
    background: #2D2D2D;
    border-color: #555;
    color: #fff;
}

/* ---- Favorites Page ---- */
.agency-favorites-empty {
    color: #999;
}

.agency-favorites-empty i {
    color: #444;
}

/* ---- Alert Pages ---- */
.agency-alert-card {
    background: #1A1A1A;
    border: 1px solid #333;
    border-radius: var(--agency-radius);
}

.agency-alert-card:hover {
    border-color: rgba(212, 168, 75, 0.3);
}

/* ---- Mandat Pages ---- */
.agency-mandat-section {
    background: #0F0F0F;
}

.agency-mandat-card {
    background: #1A1A1A;
    border: 1px solid #333;
    border-radius: var(--agency-radius);
    padding: 2rem;
}

/* ---- Map Widget (dark) ---- */
.agency-map-container {
    border: 1px solid #333;
    border-radius: var(--agency-radius);
    overflow: hidden;
}

/* Mapbox dark overrides */
.mapboxgl-popup-content {
    background: #1A1A1A !important;
    color: #E8E8E8 !important;
    border: 1px solid #333;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
}

.mapboxgl-popup-tip {
    border-top-color: #1A1A1A !important;
}

.mapboxgl-ctrl-group {
    background: #1A1A1A !important;
    border: 1px solid #333 !important;
}

.mapboxgl-ctrl-group button {
    filter: invert(1);
}

/* ---- Listings Split View ---- */
.listings-map-view .listings-panel {
    background: #0F0F0F;
    border-right: 1px solid #333;
}

.listings-map-view .listings-panel::-webkit-scrollbar {
    width: 6px;
}

.listings-map-view .listings-panel::-webkit-scrollbar-track {
    background: #1A1A1A;
}

.listings-map-view .listings-panel::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 3px;
}

.listings-map-view .listings-panel::-webkit-scrollbar-thumb:hover {
    background: var(--agency-secondary);
}

/* ---- Load More Button ---- */
.agency-load-more {
    background: #1A1A1A;
    border: 1px solid #333;
    color: var(--agency-secondary);
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: var(--agency-radius-sm);
    transition: var(--agency-transition);
}

.agency-load-more:hover {
    background: var(--agency-secondary);
    border-color: var(--agency-secondary);
    color: #000;
}

/* ---- Share Buttons (dark) ---- */
.agency-share-btn {
    background: #242424;
    border: 1px solid #444;
    color: #E8E8E8;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--agency-transition);
}

.agency-share-btn:hover {
    background: var(--agency-secondary);
    border-color: var(--agency-secondary);
    color: #000;
}

/* ---- WhatsApp Float Button ---- */
.agency-whatsapp-float {
    background: #25D366;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.3);
}

.agency-whatsapp-float:hover {
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.4);
}

/* ---- Lightbox (dark) ---- */
.agency-lightbox {
    background: rgba(0, 0, 0, 0.95);
}

.agency-lightbox-close {
    color: var(--agency-secondary);
}

.agency-lightbox-nav {
    color: var(--agency-secondary);
}

/* ---- Swiper Gallery (dark) ---- */
.swiper-button-next,
.swiper-button-prev {
    color: var(--agency-secondary) !important;
}

.swiper-pagination-bullet {
    background: #666 !important;
    opacity: 0.5;
}

.swiper-pagination-bullet-active {
    background: var(--agency-secondary) !important;
    opacity: 1;
}

/* ---- Accordion (dark) ---- */
.accordion-item {
    background-color: #1A1A1A;
    border-color: #333;
}

.accordion-button {
    background-color: #1A1A1A;
    color: #E8E8E8;
    box-shadow: none;
}

.accordion-button:not(.collapsed) {
    background-color: #242424;
    color: var(--agency-secondary);
    box-shadow: none;
}

.accordion-button::after {
    filter: invert(1);
}

.accordion-body {
    background-color: #1A1A1A;
    color: #CCC;
}

/* ---- Tooltip (dark) ---- */
.tooltip-inner {
    background-color: #242424;
    border: 1px solid #444;
    color: #E8E8E8;
}

.tooltip .tooltip-arrow::before {
    border-top-color: #242424;
}

/* ---- Toast (dark) ---- */
.toast {
    background-color: #1A1A1A;
    border: 1px solid #333;
    color: #E8E8E8;
}

.toast-header {
    background-color: #242424;
    border-bottom-color: #333;
    color: #E8E8E8;
}

/* ---- Offcanvas (dark) ---- */
.offcanvas {
    background-color: #0F0F0F;
    color: #E8E8E8;
    border-color: #333;
}

.offcanvas-header {
    border-bottom-color: #333;
}

.offcanvas-header .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}

/* ---- Scrollbar (global dark) ---- */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #0F0F0F;
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--agency-secondary);
}

/* ---- Gold Accent Utilities ---- */
.text-gold {
    color: var(--agency-secondary) !important;
}

.border-gold {
    border-color: var(--agency-secondary) !important;
}

.bg-dark-card {
    background: #1A1A1A;
}

.bg-dark-alt {
    background: #242424;
}

/* ---- Responsive ---- */
@media (max-width: 991.98px) {
    .agency-hero-search .agency-search-row {
        flex-direction: column;
        border-radius: var(--agency-radius);
    }

    .agency-hero-search .agency-search-field {
        border-right: none;
        border-bottom: 1px solid #333;
    }

    .agency-hero-search .agency-search-submit {
        border-radius: 0 0 var(--agency-radius) var(--agency-radius);
        justify-content: center;
    }
}

@media (max-width: 991.98px) {
    .agency-hero {
        min-height: 70vh;
    }

    .agency-hero-content h1 {
        font-size: 2.25rem;
    }

    .agency-search-bar {
        flex-direction: column;
        border-radius: var(--agency-radius);
    }

    .agency-search-bar .form-select {
        border-right: none;
        border-bottom: 1px solid #333;
    }

    .agency-search-bar .btn-search {
        border-radius: 0 0 var(--agency-radius) var(--agency-radius);
    }

    /* Mobile navbar collapse dark */
    .agency-navbar .navbar-collapse {
        background: #0D0D0D;
        border-top: 1px solid #333;
        padding: 1rem 0;
    }

    .agency-navbar .nav-link {
        border-bottom: none !important;
        padding: 0.75rem 1.25rem !important;
    }

    .agency-navbar .nav-link:hover,
    .agency-navbar .nav-link.active {
        background: rgba(212, 168, 75, 0.1);
    }
}

@media (max-width: 767.98px) {
    .agency-section {
        padding: 3rem 0;
    }

    .agency-hero {
        min-height: 60vh;
    }

    .agency-stat-number {
        font-size: 2rem;
    }

    .agency-section-title {
        font-size: 1.625rem;
    }

    .agency-price-display .price-main {
        font-size: 1.75rem;
    }

    .agency-price-display .price-conversions {
        display: block;
        margin-left: 0;
        margin-top: 0.25rem;
    }

    .agency-filter-bar {
        padding: 0.75rem;
    }

    .agency-detail-agent-card {
        margin-top: 2rem;
    }
}

@media (max-width: 575.98px) {
    .agency-hero-content h1 {
        font-size: 1.875rem;
    }

    .agency-hero-content p {
        font-size: 1rem;
    }

    .agency-hero {
        min-height: 50vh;
    }

    .btn-agency-primary,
    .btn-agency-outline {
        padding: 0.7rem 1.75rem;
        font-size: 0.8125rem;
    }

    .agency-footer {
        text-align: center;
    }
}
