/* ==========================================================================
   Startup Theme — Tech Disruptive Gradient Flashy
   Bold gradients, playful, modern, vibrant — Silicon Valley energy
   ========================================================================== */

/* ---- Global ---- */
body {
    font-family: var(--agency-font-body);
    color: var(--agency-text);
    background-color: var(--agency-bg);
    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-primary);
    font-weight: 700;
    letter-spacing: -0.02em;
}

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

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

/* Gradient text utility */
.startup-gradient-text {
    background: linear-gradient(135deg, var(--agency-primary), var(--agency-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ---- Top Header ---- */
.agency-top-header {
    background: #0F172A;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.75rem;
    padding: 0.4rem 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1031;
    letter-spacing: 0.02em;
    border-bottom: 1px solid rgba(79, 70, 229, 0.2);
}

.agency-top-header-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.2s;
}

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

/* ---- Navbar ---- */
.agency-navbar-spacer {
    height: 104px;
}

.agency-navbar {
    background: rgba(79, 70, 229, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 0;
    position: fixed;
    top: 32px;
    width: 100%;
    z-index: 1030;
    border: none;
    box-shadow: 0 4px 24px rgba(79, 70, 229, 0.25);
}

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

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

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

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

.agency-logo {
    max-height: 40px;
    filter: brightness(0) invert(1);
    transition: var(--agency-transition);
}

/* Scrolled navbar */
.agency-navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 2px 20px rgba(79, 70, 229, 0.1);
}

.agency-navbar.scrolled .nav-link {
    color: var(--agency-text) !important;
}

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

.agency-navbar.scrolled span[style*="color"],
.agency-navbar.scrolled a span[style*="color"] {
    color: var(--agency-primary) !important;
}

.agency-navbar.scrolled .btn[style*="color"] {
    color: var(--agency-primary) !important;
}

.agency-navbar.scrolled .agency-logo {
    filter: none;
}

/* ---- Hero Section ---- */
.agency-hero {
    margin-top: -104px;
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    text-align: center;
}

.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(79, 70, 229, 0.85) 0%, rgba(16, 185, 129, 0.6) 50%, rgba(79, 70, 229, 0.7) 100%);
}

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

.agency-hero-content h1 {
    color: #fff;
    font-size: clamp(2.75rem, 5.5vw, 4.5rem);
    font-weight: 700;
    line-height: 1.08;
    margin-bottom: 1.25rem;
    letter-spacing: -0.03em;
}

.agency-hero-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.25rem;
    font-weight: 400;
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.agency-hero-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.25rem;
    font-weight: 400;
    margin-bottom: 2.5rem;
}

/* ---- Search Bar (hero) ---- */
.agency-search-bar {
    display: flex;
    gap: 0;
    max-width: 680px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 16px 56px rgba(0, 0, 0, 0.2);
}

.agency-search-bar .form-select,
.agency-search-bar .form-control {
    border: none;
    border-radius: 0;
    padding: 1rem 1.25rem;
    font-size: 0.9375rem;
    font-family: var(--agency-font-body);
    border-right: 1px solid var(--agency-border);
    background-color: transparent;
    color: var(--agency-text);
}

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

.agency-search-bar .btn-search {
    background: linear-gradient(135deg, var(--agency-primary), var(--agency-secondary));
    color: #fff;
    border: none;
    padding: 1rem 2.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    white-space: nowrap;
    transition: var(--agency-transition);
    letter-spacing: 0.01em;
}

.agency-search-bar .btn-search:hover {
    opacity: 0.9;
    transform: scale(1.02);
}

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

.agency-hero-search .agency-search-row {
    display: flex;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 16px 56px rgba(0, 0, 0, 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 var(--agency-border);
    gap: 0.5rem;
}

.agency-hero-search .agency-search-field i {
    color: var(--agency-primary);
    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: 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='%234F46E5' 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: 60px;
    padding: 0 2.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    white-space: nowrap;
    border: none;
    border-radius: 0;
    background: linear-gradient(135deg, var(--agency-primary), var(--agency-secondary));
    color: #fff;
    cursor: pointer;
    transition: var(--agency-transition);
    display: flex;
    align-items: center;
    letter-spacing: 0.01em;
}

.agency-hero-search .agency-search-submit:hover {
    opacity: 0.92;
}

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

.agency-section-title {
    text-align: center;
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

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

.agency-accent-line,
.agency-gold-line,
.agency-blue-bar {
    width: 64px;
    height: 4px;
    background: linear-gradient(90deg, var(--agency-primary), var(--agency-secondary));
    margin: 0.75rem auto 2.5rem;
    border-radius: 4px;
}

/* ---- Property Cards ---- */
.agency-property-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(79, 70, 229, 0.06);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.agency-property-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 48px rgba(79, 70, 229, 0.15);
}

.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 cubic-bezier(0.4, 0, 0.2, 1);
}

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

.agency-property-card .card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.1), rgba(16, 185, 129, 0.1));
    color: var(--agency-primary);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.35rem 0.85rem;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(79, 70, 229, 0.15);
}

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

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

.agency-property-card .card-price-conversion {
    font-size: 0.75rem;
    color: var(--agency-text-light);
    margin-bottom: 0.25rem;
}

.agency-property-card .card-location {
    color: var(--agency-text-light);
    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: var(--agency-text-light);
    border-top: 1px solid var(--agency-border);
    padding-top: 0.75rem;
    margin-top: auto;
}

.agency-property-card .card-features span {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

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

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

.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: linear-gradient(135deg, #dc3545, #ff6b7a);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.35rem 0.85rem;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.agency-property-card .card-photo-count {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    color: #fff;
    font-size: 0.75rem;
    padding: 0.2rem 0.65rem;
    border-radius: 50px;
}

.agency-property-card .btn-favorite {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: none;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.1rem;
    color: var(--agency-text-light);
    transition: var(--agency-transition);
    z-index: 5;
    box-shadow: 0 2px 10px rgba(79, 70, 229, 0.1);
}

.agency-property-card .btn-favorite:hover,
.agency-property-card .btn-favorite.is-favorite {
    color: #dc3545;
    transform: scale(1.1);
}

.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 Section ---- */
.agency-stats {
    background: linear-gradient(135deg, var(--agency-primary) 0%, var(--agency-secondary) 100%);
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.agency-stats::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.agency-stats::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 50%;
}

.agency-stat-item {
    text-align: center;
    padding: 1.5rem;
    position: relative;
    z-index: 1;
}

.agency-stat-number {
    font-family: var(--agency-font-heading);
    font-size: 3rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.agency-stat-label {
    color: rgba(255, 255, 255, 0.75);
    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: rgba(255, 255, 255, 0.5);
    margin-bottom: 0.75rem;
}

/* ---- Team Cards ---- */
.agency-team-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    text-align: center;
    padding: 2rem 1.5rem;
    box-shadow: 0 4px 20px rgba(79, 70, 229, 0.06);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
}

.agency-team-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 48px rgba(79, 70, 229, 0.15);
}

.agency-team-card img {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1.25rem;
    border: 4px solid transparent;
    background-image: linear-gradient(#fff, #fff), linear-gradient(135deg, var(--agency-primary), var(--agency-secondary));
    background-origin: border-box;
    background-clip: content-box, border-box;
    transition: transform 0.4s ease;
}

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

.agency-team-card h5 {
    font-family: var(--agency-font-heading);
    font-size: 1.0625rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: var(--agency-primary);
}

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

.agency-team-card small {
    color: var(--agency-text-light);
    font-size: 0.75rem;
}

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

.agency-team-card .agent-listings-count {
    color: var(--agency-text-light);
    font-size: 0.75rem;
}

.agency-team-card .agent-phone {
    color: var(--agency-text-light);
    font-size: 0.8125rem;
    margin-top: 0.5rem;
}

/* ---- Team Cards V2 (enriched) ---- */
.agency-team-card-v2 {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    text-align: center;
    padding: 2rem 1.5rem 1.5rem;
    box-shadow: 0 4px 20px rgba(79, 70, 229, 0.06);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.agency-team-card-v2:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 48px rgba(79, 70, 229, 0.15);
}

.agency-team-card-v2 .agent-photo-wrapper {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 1.25rem;
    padding: 4px;
    background: linear-gradient(135deg, var(--agency-primary), var(--agency-secondary));
    box-shadow: 0 4px 20px rgba(79, 70, 229, 0.2);
}

.agency-team-card-v2 .agent-photo-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    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: var(--agency-primary);
}

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

.agency-team-card-v2 .agent-count {
    display: block;
    color: var(--agency-text-light);
    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: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.08), rgba(16, 185, 129, 0.08));
    color: var(--agency-primary);
    font-size: 1rem;
    transition: var(--agency-transition);
    border: none;
}

.agency-team-card-v2 .agent-action-btn:hover {
    background: linear-gradient(135deg, var(--agency-primary), var(--agency-secondary));
    color: #fff;
    transform: scale(1.1);
}

/* ---- Neighborhood Cards ---- */
.agency-neighborhood-card {
    background: #fff;
    border: 1px solid var(--agency-border);
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.agency-neighborhood-card:hover {
    border-color: var(--agency-primary);
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.03), rgba(16, 185, 129, 0.03));
    box-shadow: 0 12px 32px rgba(79, 70, 229, 0.1);
    transform: translateY(-4px);
}

.agency-neighborhood-card h6 {
    font-family: var(--agency-font-heading);
    font-weight: 700;
    font-size: 0.9375rem;
    margin-bottom: 0.25rem;
    color: var(--agency-primary);
}

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

/* ---- Section Light & Alt ---- */
.agency-section-light {
    background: var(--agency-bg-light);
}

.agency-section-alt {
    background: var(--agency-bg-light);
}

/* ---- About Preview ---- */
.agency-about-preview {
    background: var(--agency-bg-light);
}

.agency-about-text {
    color: var(--agency-text-light);
    line-height: 1.9;
    font-size: 1.0625rem;
}

/* ---- About Section ---- */
.agency-about-logo {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.05), rgba(16, 185, 129, 0.05));
    border-radius: 24px;
    padding: 3rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 32px rgba(79, 70, 229, 0.08);
}

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

/* ---- Filter Bar ---- */
.agency-filter-bar {
    background: #F8FAFC;
    border-radius: 12px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--agency-border);
}

.agency-filter-bar .filter-tabs .nav-link {
    border-radius: 50px;
    padding: 0.4rem 1rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--agency-text-light);
    transition: var(--agency-transition);
    border: none;
}

.agency-filter-bar .filter-tabs .nav-link:hover {
    color: var(--agency-primary);
    background: rgba(79, 70, 229, 0.06);
}

.agency-filter-bar .filter-tabs .nav-link.active {
    background: linear-gradient(135deg, var(--agency-primary), var(--agency-secondary));
    color: #fff;
    font-weight: 600;
}

.agency-filter-bar .form-select {
    border-radius: 50px;
    border: 1px solid var(--agency-border);
    padding: 0.4rem 1rem;
    font-size: 0.8125rem;
    background-color: #fff;
    transition: var(--agency-transition);
}

.agency-filter-bar .form-select:focus {
    border-color: var(--agency-primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.agency-filter-bar .btn-alert {
    background: linear-gradient(135deg, var(--agency-primary), var(--agency-secondary));
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 0.4rem 1rem;
    font-size: 0.8125rem;
    font-weight: 600;
    transition: var(--agency-transition);
}

.agency-filter-bar .btn-alert:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 16px rgba(79, 70, 229, 0.3);
}

.agency-filter-bar .btn-view-toggle {
    border-radius: 50px;
    padding: 0.4rem 0.65rem;
    border: 1px solid var(--agency-border);
    background: #fff;
    color: var(--agency-text-light);
    transition: var(--agency-transition);
}

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

/* ---- Buttons ---- */
.btn-agency-primary {
    background: linear-gradient(135deg, var(--agency-primary), var(--agency-secondary));
    color: #fff;
    border: none;
    padding: 0.85rem 2.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    border-radius: 50px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 16px rgba(79, 70, 229, 0.25);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-agency-primary:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 28px rgba(79, 70, 229, 0.35);
    color: #fff;
}

.btn-agency-outline {
    background: transparent;
    color: var(--agency-primary);
    border: 2px solid var(--agency-primary);
    padding: 0.75rem 2.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    border-radius: 50px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-agency-outline:hover {
    background: var(--agency-primary);
    color: #fff;
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.25);
}

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

.btn-agency-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: #fff;
    border-radius: 50px;
}

.btn-agency-outline-light:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #fff;
    color: #fff;
    transform: scale(1.02);
}

/* ---- CTA Section ---- */
.agency-cta {
    background: linear-gradient(135deg, var(--agency-primary) 0%, var(--agency-secondary-dark, #059669) 100%);
    color: #fff;
    text-align: center;
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.agency-cta::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 50%;
}

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

.agency-cta p {
    opacity: 0.85;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
    position: relative;
    z-index: 1;
}

.btn-agency-cta-primary {
    background: #fff;
    color: var(--agency-primary);
    border: 2px solid #fff;
    padding: 0.9rem 2.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    position: relative;
    z-index: 1;
}

.btn-agency-cta-primary:hover {
    background: transparent;
    color: #fff;
    transform: scale(1.04);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.2);
}

.btn-agency-cta-outline {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.5);
    padding: 0.9rem 2.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    position: relative;
    z-index: 1;
}

.btn-agency-cta-outline:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #fff;
    color: #fff;
    transform: scale(1.04);
}

/* ---- Footer ---- */
.agency-footer {
    background: #0F172A;
    color: rgba(255, 255, 255, 0.65);
    padding: 0 0 2rem;
    font-size: 0.875rem;
    position: relative;
}

.agency-footer::before {
    content: '';
    display: block;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--agency-primary), var(--agency-secondary), var(--agency-primary));
}

.agency-footer .footer-content {
    padding: 4rem 0 0;
}

.agency-footer h6 {
    color: #fff;
    font-family: var(--agency-font-heading);
    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.55);
    transition: var(--agency-transition);
}

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

.agency-footer-logo {
    max-height: 30px;
    filter: brightness(0) invert(1);
    margin-bottom: 1rem;
}

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

/* ---- Project Card (Neuf) ---- */
.agency-project-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(79, 70, 229, 0.06);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.agency-project-card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 20px 48px rgba(79, 70, 229, 0.15);
}

.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 cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

.project-card-title {
    font-family: var(--agency-font-heading);
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--agency-primary);
    margin-bottom: 0.25rem;
    line-height: 1.3;
}

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

.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: var(--agency-text);
    border-bottom: 1px solid var(--agency-border);
    transition: var(--agency-transition);
    border-radius: 8px;
}

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

.project-unit-line:hover {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.04), rgba(16, 185, 129, 0.04));
    color: var(--agency-primary);
}

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

.project-unit-line:hover i {
    opacity: 1;
    color: var(--agency-secondary);
}

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

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

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

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

a.project-unit-row:hover {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.04), rgba(16, 185, 129, 0.04));
    color: var(--agency-primary);
}

.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: linear-gradient(135deg, rgba(79, 70, 229, 0.04), rgba(16, 185, 129, 0.04));
    font-weight: 500;
}

/* ---- Detail Page: Price Display ---- */
.agency-price-display {
    border-bottom: 3px solid transparent;
    border-image: linear-gradient(90deg, var(--agency-primary), var(--agency-secondary)) 1;
    padding-bottom: 1rem;
}

.agency-price-display .price-main {
    font-family: var(--agency-font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--agency-primary);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.agency-price-display .price-conversions {
    color: var(--agency-text-light);
    font-size: 0.9rem;
    margin-left: 0.75rem;
    font-weight: 400;
}

/* ---- Detail Page: Agent Card (sidebar) ---- */
.agency-detail-agent-card {
    background: #fff;
    border-radius: 16px;
    padding: 2rem 1.5rem;
    text-align: center;
    box-shadow: 0 4px 20px rgba(79, 70, 229, 0.08);
    border: 1px solid var(--agency-border);
}

.agency-detail-agent-card .agent-photo-wrapper {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    overflow: hidden;
    padding: 4px;
    background: linear-gradient(135deg, var(--agency-primary), var(--agency-secondary));
    box-shadow: 0 4px 20px rgba(79, 70, 229, 0.2);
}

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

/* ---- Detail Page: Features Grid ---- */
.agency-feature-item {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.04), rgba(16, 185, 129, 0.04));
    border-radius: 12px;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: var(--agency-transition);
}

.agency-feature-item:hover {
    box-shadow: 0 4px 16px rgba(79, 70, 229, 0.08);
    transform: translateY(-2px);
}

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

/* ---- Contact Form ---- */
.agency-contact-form {
    background: #fff;
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 8px 32px rgba(79, 70, 229, 0.08);
}

.agency-contact-form .form-control,
.agency-contact-form .form-select {
    border-radius: 12px;
    border: 1px solid var(--agency-border);
    padding: 0.75rem 1rem;
    font-size: 0.9375rem;
    transition: var(--agency-transition);
}

.agency-contact-form .form-control:focus,
.agency-contact-form .form-select:focus {
    border-color: var(--agency-primary);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
}

.agency-contact-form .btn-submit {
    background: linear-gradient(135deg, var(--agency-primary), var(--agency-secondary));
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 0.85rem 2.5rem;
    font-weight: 600;
    font-size: 0.9375rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.agency-contact-form .btn-submit:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 28px rgba(79, 70, 229, 0.3);
}

/* ---- Login Page ---- */
.agency-login-card {
    background: #fff;
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 8px 32px rgba(79, 70, 229, 0.08);
    max-width: 440px;
    margin: 0 auto;
}

.agency-login-card .btn-google,
.agency-login-card .btn-facebook {
    border-radius: 50px;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.agency-login-card .btn-google:hover,
.agency-login-card .btn-facebook:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

/* ---- Alerts Page ---- */
.agency-alert-card {
    background: #fff;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(79, 70, 229, 0.06);
    border: 1px solid var(--agency-border);
    transition: var(--agency-transition);
}

.agency-alert-card:hover {
    box-shadow: 0 8px 32px rgba(79, 70, 229, 0.1);
}

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

.agency-favorites-empty i {
    font-size: 4rem;
    background: linear-gradient(135deg, var(--agency-primary), var(--agency-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    display: block;
}

/* ---- Map Widget ---- */
.agency-map-container {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(79, 70, 229, 0.08);
}

/* ---- Photo Gallery ---- */
.agency-gallery {
    border-radius: 16px;
    overflow: hidden;
}

.agency-gallery .swiper-button-next,
.agency-gallery .swiper-button-prev {
    color: #fff;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.8), rgba(16, 185, 129, 0.6));
    width: 44px;
    height: 44px;
    border-radius: 50%;
    backdrop-filter: blur(4px);
}

.agency-gallery .swiper-button-next::after,
.agency-gallery .swiper-button-prev::after {
    font-size: 1rem;
}

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

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

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

.agency-breadcrumbs a {
    color: var(--agency-text-light);
}

.agency-breadcrumbs a:hover {
    color: var(--agency-primary);
}

.agency-breadcrumbs .separator {
    color: var(--agency-text-light);
    margin: 0 0.5rem;
    opacity: 0.5;
}

/* ---- Pagination ---- */
.agency-pagination .page-link {
    border-radius: 50px;
    margin: 0 0.15rem;
    padding: 0.5rem 0.85rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--agency-text);
    border: 1px solid var(--agency-border);
    transition: var(--agency-transition);
}

.agency-pagination .page-link:hover {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.08), rgba(16, 185, 129, 0.08));
    border-color: var(--agency-primary);
    color: var(--agency-primary);
}

.agency-pagination .page-item.active .page-link {
    background: linear-gradient(135deg, var(--agency-primary), var(--agency-secondary));
    border-color: transparent;
    color: #fff;
}

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

.agency-share-buttons .btn-share {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.08), rgba(16, 185, 129, 0.08));
    color: var(--agency-primary);
    transition: var(--agency-transition);
    border: none;
}

.agency-share-buttons .btn-share:hover {
    background: linear-gradient(135deg, var(--agency-primary), var(--agency-secondary));
    color: #fff;
    transform: scale(1.1);
}

/* ---- Mandat Pages ---- */
.agency-mandat-section {
    padding: 5rem 0;
}

.agency-mandat-card {
    background: #fff;
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 8px 32px rgba(79, 70, 229, 0.08);
    border: 1px solid var(--agency-border);
}

.agency-mandat-card .form-control,
.agency-mandat-card .form-select {
    border-radius: 12px;
    border: 1px solid var(--agency-border);
    padding: 0.75rem 1rem;
    transition: var(--agency-transition);
}

.agency-mandat-card .form-control:focus,
.agency-mandat-card .form-select:focus {
    border-color: var(--agency-primary);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
}

/* ---- Listings: Infinite Scroll ---- */
.agency-load-more {
    text-align: center;
    padding: 2rem 0;
}

.agency-load-more .btn-load-more {
    background: linear-gradient(135deg, var(--agency-primary), var(--agency-secondary));
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 0.85rem 2.5rem;
    font-weight: 600;
    font-size: 0.9375rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 16px rgba(79, 70, 229, 0.25);
}

.agency-load-more .btn-load-more:hover {
    transform: scale(1.04);
    box-shadow: 0 8px 28px rgba(79, 70, 229, 0.35);
}

/* ---- Map Split View ---- */
.listings-map-view {
    min-height: 75vh;
}

.listings-map-view .listings-panel {
    max-height: 75vh;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--agency-primary) transparent;
}

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

.listings-map-view .listings-panel::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--agency-primary), var(--agency-secondary));
    border-radius: 3px;
}

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

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

.agency-amenity-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.04), rgba(16, 185, 129, 0.04));
    border-radius: 12px;
    font-size: 0.8125rem;
    transition: var(--agency-transition);
}

.agency-amenity-item:hover {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.08), rgba(16, 185, 129, 0.08));
    transform: translateX(4px);
}

.agency-amenity-item i {
    color: var(--agency-secondary);
    font-size: 1rem;
    flex-shrink: 0;
}

/* ---- Description Section (Property Detail) ---- */
.agency-description {
    line-height: 1.9;
    font-size: 1rem;
    color: var(--agency-text);
}

/* ---- Similar Properties ---- */
.agency-similar-section {
    padding: 4rem 0;
    background: var(--agency-bg-light);
}

/* ---- Forms General ---- */
.form-control,
.form-select {
    font-family: var(--agency-font-body);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--agency-primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

/* ---- Badge Pills (general) ---- */
.agency-badge {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.1), rgba(16, 185, 129, 0.1));
    color: var(--agency-primary);
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.75rem;
    padding: 0.35rem 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    letter-spacing: 0.02em;
}

.agency-badge-success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(16, 185, 129, 0.15));
    color: var(--agency-secondary);
}

.agency-badge-danger {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.1), rgba(220, 53, 69, 0.15));
    color: #dc3545;
}

/* ---- WhatsApp Float ---- */
.whatsapp-float {
    border-radius: 50px;
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.35);
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 32px rgba(37, 211, 102, 0.45);
}

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

/* ---- Selection / Accent Colors ---- */
::selection {
    background: rgba(79, 70, 229, 0.2);
    color: var(--agency-text);
}

/* ---- Scrollbar Styling ---- */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--agency-bg-light);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--agency-primary), var(--agency-secondary));
    border-radius: 4px;
}

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

/* ---- Responsive ---- */
@media (max-width: 1199.98px) {
    .agency-amenities-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

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

    .agency-search-bar {
        flex-direction: column;
        border-radius: 16px;
    }

    .agency-search-bar .form-select {
        border-right: none;
        border-bottom: 1px solid var(--agency-border);
    }

    .agency-search-bar .btn-search {
        border-radius: 0 0 16px 16px;
    }

    .agency-hero-search .agency-search-row {
        flex-direction: column;
        border-radius: 16px;
    }

    .agency-hero-search .agency-search-field {
        border-right: none;
        border-bottom: 1px solid var(--agency-border);
    }

    .agency-hero-search .agency-search-submit {
        border-radius: 0 0 16px 16px;
        justify-content: center;
    }

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

@media (max-width: 767.98px) {
    /* Hide top header on mobile */
    .agency-top-header {
        display: none;
    }

    .agency-navbar {
        top: 0;
    }

    .agency-navbar-spacer {
        height: 72px;
    }

    .agency-hero {
        margin-top: -72px;
        min-height: 65vh;
    }

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

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

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

    .agency-amenities-grid {
        grid-template-columns: 1fr;
    }

    .agency-property-card:hover {
        transform: translateY(-4px) scale(1.01);
    }

    .agency-team-card:hover,
    .agency-team-card-v2:hover {
        transform: translateY(-4px);
    }
}

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

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

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

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

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

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

    .agency-contact-form,
    .agency-mandat-card,
    .agency-login-card {
        padding: 1.5rem;
        border-radius: 12px;
    }
}
