/* ==========================================================================
   Minimal Theme — Ultra-Clean Scandinavian Design
   Less is more. Maximum whitespace, thin typography, restrained color.
   ========================================================================== */

/* ---- Global ---- */
body {
    font-family: var(--agency-font-body);
    color: var(--agency-text);
    background-color: #fff;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--agency-font-heading);
    color: var(--agency-text);
    font-weight: 300;
    letter-spacing: 0.02em;
}

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

a:hover {
    color: #6B7280;
}

::selection {
    background: #E5E7EB;
    color: #111;
}

/* ---- Top Header ---- */
.agency-top-header {
    background: #FAFAFA;
    border-bottom: 1px solid #F3F4F6;
    font-size: 0.8125rem;
    color: #9CA3AF;
    padding: 0.4rem 0;
}

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

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

/* ---- Navbar ---- */
.agency-navbar {
    background: #fff;
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #F3F4F6;
    box-shadow: none;
}

.agency-navbar .nav-link {
    color: #374151 !important;
    font-weight: 400;
    font-size: 0.875rem;
    padding: 1.1rem 1rem !important;
    transition: var(--agency-transition);
    border-bottom: 2px solid transparent;
    letter-spacing: 0.02em;
}

.agency-navbar .nav-link:hover {
    color: #111 !important;
    border-bottom-color: #E5E7EB;
}

.agency-navbar .nav-link.active {
    color: #111 !important;
    border-bottom-color: #111;
}

.agency-navbar-brand {
    font-size: 1.125rem;
    font-weight: 400;
    color: #111 !important;
    letter-spacing: 0.02em;
}

.agency-navbar-brand span {
    color: #9CA3AF;
}

.agency-navbar .navbar-toggler {
    border: 1px solid #E5E7EB;
    padding: 0.4rem 0.6rem;
    color: #374151;
}

.agency-navbar .navbar-toggler:focus {
    box-shadow: none;
}

.agency-navbar .navbar-brand-logo {
    max-height: 36px;
    opacity: 0.9;
}

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

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

.agency-hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(17, 17, 17, 0.4);
}

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

.agency-hero-content h1 {
    color: #fff;
    font-size: clamp(2rem, 4.5vw, 3.25rem);
    font-weight: 300;
    line-height: 1.15;
    margin-bottom: 0.75rem;
    letter-spacing: 0.02em;
}

.agency-hero-content p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    font-weight: 300;
    margin-bottom: 2rem;
    letter-spacing: 0.01em;
}

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

/* ---- Search Bar ---- */
.agency-search-bar {
    display: flex;
    gap: 0;
    max-width: 600px;
    margin: 0 auto;
    background: #fff;
    border-radius: var(--agency-radius);
    overflow: hidden;
    border: 1px solid #E5E7EB;
    box-shadow: none;
}

.agency-search-bar .form-select {
    border: none;
    border-radius: 0;
    padding: 0.875rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 400;
    border-right: 1px solid #F3F4F6;
    background-color: #fff;
    color: var(--agency-text);
}

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

.agency-search-bar .btn-search {
    background: #111;
    color: #fff;
    border: none;
    padding: 0.875rem 2rem;
    font-weight: 400;
    font-size: 0.875rem;
    white-space: nowrap;
    transition: var(--agency-transition);
    letter-spacing: 0.02em;
}

.agency-search-bar .btn-search:hover {
    background: #374151;
}

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

.agency-hero-search .agency-search-row {
    display: flex;
    background: #fff;
    border-radius: var(--agency-radius);
    overflow: hidden;
    border: 1px solid #E5E7EB;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

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

.agency-hero-search .agency-search-field i {
    color: #9CA3AF;
    font-size: 1rem;
    flex-shrink: 0;
}

.agency-hero-search .agency-search-field select {
    border: none;
    background: transparent;
    height: 56px;
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--agency-text);
    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='%239CA3AF' 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:focus {
    outline: none;
    box-shadow: none;
}

.agency-hero-search .agency-search-submit {
    height: 56px;
    padding: 0 2rem;
    font-size: 0.875rem;
    font-weight: 400;
    white-space: nowrap;
    border: none;
    border-radius: 0;
    background: #111;
    color: #fff;
    cursor: pointer;
    transition: var(--agency-transition);
    display: flex;
    align-items: center;
    letter-spacing: 0.02em;
}

.agency-hero-search .agency-search-submit:hover {
    background: #374151;
}

/* ---- Section Titles ---- */
.agency-section {
    padding: 6rem 0;
}

.agency-section-title {
    text-align: center;
    font-size: 1.75rem;
    font-weight: 300;
    color: #374151;
    margin-bottom: 0.5rem;
    letter-spacing: 0.02em;
}

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

/* No accent line — completely hidden */
.agency-blue-bar,
.agency-accent-line {
    display: none;
}

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

.agency-section-light {
    background: #FAFAFA;
}

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

.agency-property-card:hover {
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.04);
    border-color: #E5E7EB;
}

.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: opacity 0.3s ease;
}

.agency-property-card:hover .card-img-wrapper img {
    opacity: 0.95;
}

.agency-property-card .card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(255, 255, 255, 0.85);
    color: #374151;
    font-size: 0.7rem;
    font-weight: 400;
    padding: 0.25rem 0.65rem;
    border-radius: var(--agency-radius);
    border: 1px solid #D1D5DB;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    backdrop-filter: blur(8px);
}

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

.agency-property-card .card-price {
    font-size: 1.25rem;
    font-weight: 400;
    color: #111;
    margin-bottom: 0.25rem;
    letter-spacing: 0.01em;
}

.agency-property-card .card-location {
    color: #9CA3AF;
    font-size: 0.8125rem;
    font-weight: 400;
    margin-bottom: 0.75rem;
}

.agency-property-card .card-location i {
    color: #D1D5DB;
    margin-right: 0.25rem;
}

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

.agency-property-card .card-features i {
    color: #D1D5DB;
    margin-right: 0.25rem;
}

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

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

/* Neuf card */
.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(255, 255, 255, 0.9);
    color: #111;
    font-size: 0.7rem;
    font-weight: 400;
    padding: 0.25rem 0.65rem;
    border-radius: var(--agency-radius);
    border: 1px solid #D1D5DB;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

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

.agency-property-card .btn-favorite {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    color: #9CA3AF;
    transition: var(--agency-transition);
    z-index: 5;
    box-shadow: none;
}

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

.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: #FAFAFA;
    padding: 5rem 0;
    border-top: 1px solid #F3F4F6;
    border-bottom: 1px solid #F3F4F6;
}

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

.agency-stat-number {
    font-size: 2.5rem;
    font-weight: 300;
    color: #111;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.agency-stat-label {
    color: #9CA3AF;
    font-size: 0.8125rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 0.25rem;
}

/* ---- Statistics Icons ---- */
.agency-stat-icon {
    font-size: 1.75rem;
    color: #D1D5DB;
    margin-bottom: 0.75rem;
    opacity: 0.7;
}

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

.agency-team-card:hover {
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.04);
    border-color: #E5E7EB;
}

.agency-team-card img {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 2px solid #F3F4F6;
}

.agency-team-card h5 {
    font-size: 1rem;
    font-weight: 400;
    margin-bottom: 0.25rem;
    color: #111;
    letter-spacing: 0.02em;
}

.agency-team-card p {
    color: #9CA3AF;
    font-size: 0.8125rem;
    font-weight: 400;
    margin-bottom: 0.25rem;
}

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

/* ---- Agent Card Extras ---- */
.agency-team-card .agent-function {
    color: #9CA3AF;
    font-size: 0.8125rem;
    font-weight: 400;
    margin-bottom: 0.25rem;
}

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

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

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

.agency-neighborhood-card:hover {
    border-color: #E5E7EB;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.04);
}

.agency-neighborhood-card h6 {
    font-weight: 400;
    font-size: 0.9375rem;
    margin-bottom: 0.25rem;
    color: #111;
    letter-spacing: 0.02em;
}

.agency-neighborhood-card small {
    color: #9CA3AF;
    font-weight: 400;
    font-size: 0.8125rem;
}

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

/* ---- About text ---- */
.agency-about-text {
    color: #6B7280;
    line-height: 1.9;
    font-size: 1rem;
    font-weight: 400;
}

/* ---- CTA Outline Light ---- */
.btn-agency-outline-light {
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
    font-weight: 400;
}

.btn-agency-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.6);
    color: #fff;
}

/* ---- CTA ---- */
.agency-cta {
    background: #111;
    color: #fff;
    text-align: center;
    padding: 5rem 0;
}

.agency-cta h2 {
    color: #fff;
    font-weight: 300;
    margin-bottom: 1rem;
    letter-spacing: 0.02em;
}

.agency-cta p {
    opacity: 0.5;
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 300;
    font-size: 0.9375rem;
}

/* ---- Buttons ---- */
.btn-agency-primary {
    background: transparent;
    color: #111;
    border: 1px solid #111;
    padding: 0.75rem 2rem;
    font-size: 0.875rem;
    font-weight: 400;
    letter-spacing: 0.02em;
    border-radius: var(--agency-radius);
    transition: var(--agency-transition);
    box-shadow: none;
}

.btn-agency-primary:hover {
    background: #111;
    color: #fff;
    box-shadow: none;
    transform: none;
}

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

.btn-agency-outline:hover {
    background: #111;
    color: #fff;
    transform: none;
    box-shadow: none;
}

/* ---- Footer ---- */
.agency-footer {
    background: #FAFAFA;
    color: #9CA3AF;
    padding: 2rem 0;
    font-size: 0.8125rem;
    border-top: 1px solid #F3F4F6;
}

.agency-footer h6 {
    color: #374151;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 0.75rem;
    margin-bottom: 1rem;
}

.agency-footer a {
    color: #9CA3AF;
    transition: var(--agency-transition);
}

.agency-footer a:hover {
    color: #111;
}

.agency-footer-bottom {
    border-top: 1px solid #F3F4F6;
    padding-top: 1.25rem;
    margin-top: 1.5rem;
    color: #D1D5DB;
    font-size: 0.75rem;
}

.agency-footer .footer-logo {
    max-height: 32px;
    opacity: 0.6;
}

/* ---- Team Cards V2 (enriched) ---- */
.agency-team-card-v2 {
    background: #fff;
    border-radius: var(--agency-radius);
    overflow: hidden;
    text-align: center;
    padding: 2rem 1.5rem 1.5rem;
    border: 1px solid #F3F4F6;
    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 1px 6px rgba(0, 0, 0, 0.04);
    border-color: #E5E7EB;
}

.agency-team-card-v2 .agent-photo-wrapper {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 1.25rem;
    border: 2px solid #F3F4F6;
    box-shadow: none;
}

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

.agency-team-card-v2:hover .agent-photo-wrapper img {
    opacity: 0.92;
}

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

.agency-team-card-v2 .agent-info h5 {
    font-size: 1rem;
    font-weight: 400;
    margin-bottom: 0.25rem;
    color: #111;
    letter-spacing: 0.02em;
}

.agency-team-card-v2 .agent-function {
    display: block;
    color: #9CA3AF;
    font-size: 0.8125rem;
    font-weight: 400;
    margin-bottom: 0.25rem;
}

.agency-team-card-v2 .agent-count {
    display: block;
    color: #D1D5DB;
    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: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #FAFAFA;
    color: #374151;
    font-size: 0.9375rem;
    transition: var(--agency-transition);
    border: 1px solid #F3F4F6;
}

.agency-team-card-v2 .agent-action-btn:hover {
    background: #111;
    color: #fff;
    border-color: #111;
}

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

.agency-project-card:hover {
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.04);
    border-color: #E5E7EB;
}

.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: opacity 0.3s ease;
}

.agency-project-card:hover .project-card-image img {
    opacity: 0.95;
}

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

.project-card-title {
    font-size: 1rem;
    font-weight: 400;
    color: #111;
    margin-bottom: 0.25rem;
    line-height: 1.3;
    letter-spacing: 0.02em;
}

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

.project-card-title a:hover {
    color: #6B7280;
}

.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: #6B7280;
    border-bottom: 1px solid #F3F4F6;
    transition: var(--agency-transition);
}

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

.project-unit-line:hover {
    background: #FAFAFA;
    color: #111;
}

.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: 400;
}

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

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

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

a.project-unit-row:hover {
    background: #FAFAFA;
    color: #111;
}

.project-unit-row .project-unit-arrow {
    opacity: 0;
    margin-left: 0.75rem;
    color: #9CA3AF;
    transition: opacity 0.2s;
}

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

.project-unit-current {
    background: #FAFAFA;
    font-weight: 400;
}

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

.agency-price-display .price-main {
    font-size: 2rem;
    font-weight: 300;
    color: #111;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

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

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

.agency-detail-agent-card .agent-photo-wrapper {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #F3F4F6;
    box-shadow: none;
}

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

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

.agency-feature-item:hover {
    border-color: #E5E7EB;
}

.agency-feature-item i {
    color: #9CA3AF;
    font-size: 1.125rem;
}

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

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

/* ---- CTA Buttons (enhanced) ---- */
.btn-agency-lg {
    padding: 0.875rem 2.5rem;
    font-size: 0.9375rem;
}

.btn-agency-cta-primary {
    background: #fff;
    color: #111;
    border: 1px solid #fff;
    padding: 0.75rem 2rem;
    font-size: 0.875rem;
    font-weight: 400;
    border-radius: var(--agency-radius);
    transition: var(--agency-transition);
    display: inline-flex;
    align-items: center;
    letter-spacing: 0.02em;
}

.btn-agency-cta-primary:hover {
    background: transparent;
    color: #fff;
    transform: none;
    box-shadow: none;
}

.btn-agency-cta-outline {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.75rem 2rem;
    font-size: 0.875rem;
    font-weight: 400;
    border-radius: var(--agency-radius);
    transition: var(--agency-transition);
    display: inline-flex;
    align-items: center;
    letter-spacing: 0.02em;
}

.btn-agency-cta-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.6);
    color: #fff;
    transform: none;
}

/* ---- Filter Bar ---- */
.agency-filter-bar {
    background: #fff;
    border-bottom: 1px solid #F3F4F6;
    box-shadow: none;
    padding: 0.75rem 0;
}

.agency-filter-bar .filter-tabs {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.agency-filter-bar .filter-tab {
    border: 1px solid #E5E7EB;
    color: #6B7280;
    font-weight: 400;
    font-size: 0.8125rem;
    padding: 0.4rem 1rem;
    border-radius: var(--agency-radius);
    background: transparent;
    transition: var(--agency-transition);
    cursor: pointer;
    letter-spacing: 0.02em;
}

.agency-filter-bar .filter-tab:hover {
    border-color: #9CA3AF;
    color: #374151;
}

.agency-filter-bar .filter-tab.active {
    background: #111;
    color: #fff;
    border-color: #111;
}

.agency-filter-bar .filter-dropdown {
    border: 1px solid #E5E7EB;
    border-radius: var(--agency-radius);
    padding: 0.4rem 1rem;
    font-size: 0.8125rem;
    font-weight: 400;
    color: #6B7280;
    background: transparent;
    cursor: pointer;
    transition: var(--agency-transition);
}

.agency-filter-bar .filter-dropdown:hover {
    border-color: #9CA3AF;
}

.agency-filter-bar .filter-dropdown:focus {
    outline: none;
    border-color: #111;
    box-shadow: none;
}

.agency-filter-bar .btn-alert {
    background: transparent;
    color: #111;
    border: 1px solid #111;
    font-weight: 400;
    font-size: 0.8125rem;
    padding: 0.4rem 1rem;
    border-radius: var(--agency-radius);
    letter-spacing: 0.02em;
}

.agency-filter-bar .btn-alert:hover {
    background: #111;
    color: #fff;
}

.agency-filter-bar .filter-sort {
    border: 1px solid #E5E7EB;
    border-radius: var(--agency-radius);
    padding: 0.4rem 1rem;
    font-size: 0.8125rem;
    font-weight: 400;
    color: #6B7280;
    background: transparent;
}

.agency-filter-bar .view-toggle .btn {
    border: 1px solid #E5E7EB;
    color: #9CA3AF;
    background: transparent;
    padding: 0.4rem 0.6rem;
}

.agency-filter-bar .view-toggle .btn.active,
.agency-filter-bar .view-toggle .btn:hover {
    background: #111;
    color: #fff;
    border-color: #111;
}

/* ---- Filter Bar Dropdowns ---- */
.agency-filter-bar .dropdown-menu {
    border: 1px solid #F3F4F6;
    border-radius: var(--agency-radius);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    padding: 0.5rem;
}

.agency-filter-bar .dropdown-item {
    font-size: 0.8125rem;
    font-weight: 400;
    color: #6B7280;
    padding: 0.4rem 0.75rem;
    border-radius: 4px;
}

.agency-filter-bar .dropdown-item:hover,
.agency-filter-bar .dropdown-item.active {
    background: #F3F4F6;
    color: #111;
}

/* ---- Listings Map View ---- */
.listings-map-view .listings-panel {
    max-height: 75vh;
    overflow-y: auto;
}

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

.listings-map-view .listings-panel::-webkit-scrollbar-track {
    background: transparent;
}

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

/* ---- Infinite Scroll / Load More ---- */
.btn-load-more {
    background: transparent;
    color: #111;
    border: 1px solid #E5E7EB;
    padding: 0.75rem 2rem;
    font-size: 0.875rem;
    font-weight: 400;
    letter-spacing: 0.02em;
    border-radius: var(--agency-radius);
    transition: var(--agency-transition);
}

.btn-load-more:hover {
    border-color: #111;
    background: #111;
    color: #fff;
}

/* ---- Pagination ---- */
.agency-pagination .page-link {
    border: 1px solid #F3F4F6;
    color: #6B7280;
    font-weight: 400;
    font-size: 0.8125rem;
    padding: 0.5rem 0.875rem;
    background: transparent;
    transition: var(--agency-transition);
}

.agency-pagination .page-link:hover {
    background: #FAFAFA;
    color: #111;
    border-color: #E5E7EB;
}

.agency-pagination .page-item.active .page-link {
    background: #111;
    border-color: #111;
    color: #fff;
}

/* ---- Breadcrumbs ---- */
.agency-breadcrumbs {
    padding: 1rem 0;
    font-size: 0.8125rem;
    color: #9CA3AF;
}

.agency-breadcrumbs a {
    color: #9CA3AF;
}

.agency-breadcrumbs a:hover {
    color: #111;
}

.agency-breadcrumbs .breadcrumb-item + .breadcrumb-item::before {
    color: #D1D5DB;
}

/* ---- Contact Form ---- */
.agency-contact-form {
    background: #fff;
    border: 1px solid #F3F4F6;
    border-radius: var(--agency-radius);
    padding: 2rem;
}

.agency-contact-form .form-control,
.agency-contact-form .form-select {
    border: 1px solid #E5E7EB;
    border-radius: var(--agency-radius);
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--agency-text);
    background: #fff;
    transition: var(--agency-transition);
}

.agency-contact-form .form-control:focus,
.agency-contact-form .form-select:focus {
    border-color: #111;
    box-shadow: none;
    outline: none;
}

.agency-contact-form .form-control::placeholder {
    color: #D1D5DB;
    font-weight: 400;
}

.agency-contact-form .form-label {
    font-size: 0.8125rem;
    font-weight: 400;
    color: #6B7280;
    letter-spacing: 0.02em;
}

.agency-contact-form .btn-submit {
    background: transparent;
    color: #111;
    border: 1px solid #111;
    padding: 0.75rem 2rem;
    font-weight: 400;
    font-size: 0.875rem;
    letter-spacing: 0.02em;
    border-radius: var(--agency-radius);
    transition: var(--agency-transition);
}

.agency-contact-form .btn-submit:hover {
    background: #111;
    color: #fff;
}

/* ---- Alert Form ---- */
.agency-alert-form {
    background: #fff;
    border: 1px solid #F3F4F6;
    border-radius: var(--agency-radius);
    padding: 2rem;
}

.agency-alert-form .form-control,
.agency-alert-form .form-select {
    border: 1px solid #E5E7EB;
    border-radius: var(--agency-radius);
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    font-weight: 400;
}

.agency-alert-form .form-control:focus,
.agency-alert-form .form-select:focus {
    border-color: #111;
    box-shadow: none;
}

/* ---- Login Page ---- */
.agency-login-card {
    background: #fff;
    border: 1px solid #F3F4F6;
    border-radius: var(--agency-radius);
    padding: 2.5rem;
    max-width: 420px;
    margin: 0 auto;
}

.agency-login-card h3 {
    font-weight: 300;
    letter-spacing: 0.02em;
    color: #111;
    margin-bottom: 1.5rem;
}

.agency-login-card .btn-google,
.agency-login-card .btn-facebook {
    background: transparent;
    border: 1px solid #E5E7EB;
    color: #374151;
    font-weight: 400;
    font-size: 0.875rem;
    padding: 0.75rem 1rem;
    border-radius: var(--agency-radius);
    transition: var(--agency-transition);
    width: 100%;
}

.agency-login-card .btn-google:hover,
.agency-login-card .btn-facebook:hover {
    border-color: #111;
    background: #FAFAFA;
}

.agency-login-card .divider {
    color: #D1D5DB;
    font-size: 0.8125rem;
}

/* ---- Photo Gallery (Swiper + Lightbox) ---- */
.agency-gallery {
    border-radius: var(--agency-radius);
    overflow: hidden;
}

.agency-gallery .swiper-button-next,
.agency-gallery .swiper-button-prev {
    color: #fff;
    opacity: 0.6;
    transition: opacity 0.3s;
}

.agency-gallery .swiper-button-next:hover,
.agency-gallery .swiper-button-prev:hover {
    opacity: 1;
}

.agency-gallery .swiper-pagination-bullet {
    background: #fff;
    opacity: 0.5;
}

.agency-gallery .swiper-pagination-bullet-active {
    opacity: 1;
    background: #fff;
}

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

.agency-map-widget .mapboxgl-canvas {
    border-radius: inherit;
}

/* ---- Share Buttons ---- */
.agency-share-buttons {
    display: flex;
    gap: 0.5rem;
}

.agency-share-buttons .btn-share {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #FAFAFA;
    color: #9CA3AF;
    border: 1px solid #F3F4F6;
    font-size: 0.875rem;
    transition: var(--agency-transition);
}

.agency-share-buttons .btn-share:hover {
    background: #111;
    color: #fff;
    border-color: #111;
}

/* ---- WhatsApp Float Button ---- */
.agency-whatsapp-float {
    background: #25D366;
    color: #fff;
    border-radius: 50%;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 2px 12px rgba(37, 211, 102, 0.3);
    transition: var(--agency-transition);
}

.agency-whatsapp-float:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
    color: #fff;
}

/* ---- Favorites Page ---- */
.agency-favorites-empty {
    text-align: center;
    padding: 4rem 2rem;
    color: #9CA3AF;
}

.agency-favorites-empty i {
    font-size: 3rem;
    color: #E5E7EB;
    margin-bottom: 1rem;
}

.agency-favorites-empty h4 {
    font-weight: 300;
    color: #374151;
    letter-spacing: 0.02em;
}

/* ---- 404 Page ---- */
.agency-404 {
    text-align: center;
    padding: 6rem 2rem;
}

.agency-404 h1 {
    font-size: 6rem;
    font-weight: 300;
    color: #E5E7EB;
    letter-spacing: -0.02em;
}

.agency-404 h3 {
    font-weight: 300;
    color: #374151;
    margin-bottom: 1rem;
}

.agency-404 p {
    color: #9CA3AF;
    margin-bottom: 2rem;
}

/* ---- Badge / Tag ---- */
.agency-badge {
    background: transparent;
    border: 1px solid #D1D5DB;
    color: #374151;
    font-weight: 400;
    font-size: 0.75rem;
    padding: 0.2rem 0.6rem;
    border-radius: var(--agency-radius);
    letter-spacing: 0.02em;
}

.agency-badge-primary {
    background: transparent;
    border: 1px solid #111;
    color: #111;
}

/* ---- Amenities Grid ---- */
.agency-amenities {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
}

.agency-amenity-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.8125rem;
    color: #6B7280;
    background: #FAFAFA;
    border-radius: var(--agency-radius);
    border: 1px solid #F3F4F6;
}

.agency-amenity-item i {
    color: #D1D5DB;
    font-size: 0.9375rem;
}

/* ---- Detail Page: Description ---- */
.agency-description {
    color: #6B7280;
    line-height: 1.9;
    font-size: 0.9375rem;
    font-weight: 400;
}

.agency-description h5 {
    font-weight: 400;
    color: #111;
    letter-spacing: 0.02em;
    margin-bottom: 1rem;
    font-size: 1.125rem;
}

/* ---- Detail Page: Title Area ---- */
.agency-detail-title {
    font-size: 1.5rem;
    font-weight: 300;
    color: #111;
    letter-spacing: 0.02em;
    line-height: 1.3;
}

.agency-detail-location {
    color: #9CA3AF;
    font-size: 0.875rem;
    font-weight: 400;
}

.agency-detail-location i {
    color: #D1D5DB;
}

.agency-detail-ref {
    color: #D1D5DB;
    font-size: 0.75rem;
    font-weight: 400;
}

/* ---- Detail Page: Similar Properties ---- */
.agency-similar-section {
    padding: 4rem 0;
    background: #FAFAFA;
    border-top: 1px solid #F3F4F6;
}

.agency-similar-section h4 {
    font-weight: 300;
    color: #374151;
    letter-spacing: 0.02em;
    margin-bottom: 2rem;
}

/* ---- Detail Page: Sidebar Sticky ---- */
.agency-sidebar-sticky {
    position: sticky;
    top: 112px;
}

/* ---- Listings Count / Results Header ---- */
.agency-results-header {
    font-size: 0.875rem;
    color: #9CA3AF;
    font-weight: 400;
    margin-bottom: 1.5rem;
}

.agency-results-header strong {
    color: #111;
    font-weight: 400;
}

/* ---- Mandat Pages ---- */
.agency-mandat-card {
    background: #fff;
    border: 1px solid #F3F4F6;
    border-radius: var(--agency-radius);
    padding: 2rem;
}

.agency-mandat-card h4 {
    font-weight: 300;
    color: #111;
    letter-spacing: 0.02em;
    margin-bottom: 1rem;
}

/* ---- Alert Pages ---- */
.agency-alert-card {
    background: #fff;
    border: 1px solid #F3F4F6;
    border-radius: var(--agency-radius);
    padding: 1.5rem;
    transition: var(--agency-transition);
}

.agency-alert-card:hover {
    border-color: #E5E7EB;
}

.agency-alert-card .alert-criteria {
    font-size: 0.8125rem;
    color: #9CA3AF;
}

.agency-alert-card .alert-toggle {
    border: 1px solid #E5E7EB;
    background: transparent;
    color: #6B7280;
    font-size: 0.8125rem;
    padding: 0.3rem 0.75rem;
    border-radius: var(--agency-radius);
    transition: var(--agency-transition);
}

.agency-alert-card .alert-toggle:hover {
    border-color: #111;
    color: #111;
}

.agency-alert-card .alert-delete {
    border: 1px solid #E5E7EB;
    background: transparent;
    color: #9CA3AF;
    font-size: 0.8125rem;
    padding: 0.3rem 0.75rem;
    border-radius: var(--agency-radius);
    transition: var(--agency-transition);
}

.agency-alert-card .alert-delete:hover {
    border-color: #dc3545;
    color: #dc3545;
}

/* ---- Agent Profile Page ---- */
.agency-agent-profile {
    padding: 4rem 0;
}

.agency-agent-profile .agent-photo-large {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #F3F4F6;
}

.agency-agent-profile h2 {
    font-weight: 300;
    color: #111;
    letter-spacing: 0.02em;
}

.agency-agent-profile .agent-bio {
    color: #6B7280;
    line-height: 1.9;
    font-size: 0.9375rem;
}

/* ---- Generic Table Styling ---- */
.agency-table {
    font-size: 0.875rem;
}

.agency-table th {
    font-weight: 400;
    color: #9CA3AF;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 0.75rem;
    border-bottom: 1px solid #F3F4F6;
    padding: 0.75rem 1rem;
}

.agency-table td {
    color: #6B7280;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #F3F4F6;
}

.agency-table tr:hover td {
    background: #FAFAFA;
}

/* ---- Toast / Flash Messages ---- */
.agency-toast {
    background: #fff;
    border: 1px solid #F3F4F6;
    border-radius: var(--agency-radius);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    padding: 1rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 400;
    color: #374151;
}

.agency-toast.success {
    border-left: 3px solid #10B981;
}

.agency-toast.error {
    border-left: 3px solid #EF4444;
}

/* ---- Responsive ---- */
@media (max-width: 991.98px) {
    .agency-hero {
        min-height: 55vh;
    }

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

    .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 #F3F4F6;
    }

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

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

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

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

    .agency-section {
        padding: 4rem 0;
    }

    .agency-amenities {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

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

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

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

    .agency-filter-bar .filter-tabs {
        gap: 0.375rem;
    }

    .agency-filter-bar .filter-tab {
        font-size: 0.75rem;
        padding: 0.35rem 0.75rem;
    }

    .agency-amenities {
        grid-template-columns: repeat(1, 1fr);
    }

    .agency-contact-form,
    .agency-alert-form {
        padding: 1.5rem;
    }

    .agency-login-card {
        padding: 1.5rem;
    }

    .agency-cta {
        padding: 3rem 0;
    }

    .agency-footer {
        padding: 1.5rem 0;
    }

    .agency-detail-title {
        font-size: 1.25rem;
    }

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

/* ---- Print ---- */
@media print {
    .agency-navbar,
    .agency-top-header,
    .agency-footer,
    .agency-whatsapp-float,
    .agency-filter-bar,
    .btn-favorite,
    .agency-share-buttons {
        display: none !important;
    }

    .agency-section {
        padding: 1rem 0;
    }

    body {
        color: #000;
        background: #fff;
    }
}
