/* ==========================================================================
   Skyline Theme — Tech Modern Glassmorphism
   Futuristic UI with blur effects, teal glow, and glass surfaces.
   ========================================================================== */

/* ---- 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: 600;
    letter-spacing: -0.01em;
}

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

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

::selection {
    background: rgba(0, 188, 212, 0.2);
    color: var(--agency-primary);
}

/* ---- Navbar (Glassmorphism) ---- */
.agency-navbar {
    background: rgba(44, 62, 80, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: none;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
}

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

.agency-navbar .nav-link:hover {
    color: #fff !important;
    border-bottom-color: var(--agency-secondary);
    text-shadow: 0 0 12px rgba(0, 188, 212, 0.4);
}

.agency-navbar .nav-link.active {
    color: #fff !important;
    border-bottom-color: var(--agency-secondary);
    text-shadow: 0 0 8px rgba(0, 188, 212, 0.3);
}

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

.agency-navbar-brand span {
    color: var(--agency-secondary);
    text-shadow: 0 0 16px rgba(0, 188, 212, 0.3);
}

/* Navbar logo glow */
.agency-navbar .navbar-logo {
    filter: drop-shadow(0 0 6px rgba(0, 188, 212, 0.15));
}

/* ---- Top Header ---- */
.agency-top-header {
    background: var(--agency-primary);
    border-bottom: 1px solid rgba(0, 188, 212, 0.15);
}

.agency-top-header a:hover {
    color: var(--agency-secondary) !important;
    text-shadow: 0 0 8px rgba(0, 188, 212, 0.3);
}

/* ---- Hero Section ---- */
.agency-hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--agency-bg-light);
}

.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(44, 62, 80, 0.8) 0%, rgba(0, 188, 212, 0.4) 100%);
}

/* Futuristic grid overlay on hero */
.agency-hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background-image:
        linear-gradient(rgba(0, 188, 212, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 188, 212, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}

.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: 600;
    line-height: 1.1;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.3);
}

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

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

/* ---- Search Bar (Glassmorphism) ---- */
.agency-search-bar {
    display: flex;
    gap: 0;
    max-width: 640px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 188, 212, 0.12), 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.6);
}

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

.agency-search-bar .form-select: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 2rem;
    font-weight: 600;
    font-size: 0.9375rem;
    white-space: nowrap;
    transition: var(--agency-transition);
    box-shadow: 0 4px 12px rgba(0, 188, 212, 0.2);
}

.agency-search-bar .btn-search:hover {
    background: linear-gradient(135deg, var(--agency-secondary), var(--agency-primary));
    box-shadow: 0 6px 24px rgba(0, 188, 212, 0.35);
}

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

.agency-hero-search .agency-search-row {
    display: flex;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.2), 0 4px 16px rgba(0, 188, 212, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

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

.agency-hero-search .agency-search-field i {
    color: var(--agency-secondary);
    font-size: 1.1rem;
    flex-shrink: 0;
    filter: drop-shadow(0 0 4px rgba(0, 188, 212, 0.3));
}

.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='%23999' 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.02em;
    box-shadow: inset 0 0 20px rgba(0, 188, 212, 0.1);
}

.agency-hero-search .agency-search-submit:hover {
    background: linear-gradient(135deg, var(--agency-secondary), var(--agency-primary));
    box-shadow: 0 4px 16px rgba(0, 188, 212, 0.3);
}

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

.agency-section-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}

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

/* Accent line — gradient bar */
.agency-blue-bar,
.agency-accent-line {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--agency-primary), var(--agency-secondary));
    margin: 0.75rem auto 2rem;
    border-radius: 3px;
}

/* ---- Property Cards (Glassmorphism hover) ---- */
.agency-property-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    transition: var(--agency-transition);
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.agency-property-card:hover {
    background: linear-gradient(135deg, #fff 0%, #F0F3F5 100%);
    box-shadow: 0 8px 32px rgba(0, 188, 212, 0.12);
    transform: translateY(-4px);
    border-color: rgba(0, 188, 212, 0.1);
}

.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: rgba(0, 188, 212, 0.1);
    color: var(--agency-secondary);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(0, 188, 212, 0.15);
}

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

.agency-property-card .card-price {
    font-size: 1.375rem;
    font-weight: 600;
    color: var(--agency-primary);
    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;
    filter: drop-shadow(0 0 3px rgba(0, 188, 212, 0.3));
}

.agency-property-card .card-features {
    display: flex;
    gap: 1.25rem;
    font-size: 0.8125rem;
    color: var(--agency-text-light);
}

.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: var(--agency-text-light);
    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(220, 53, 69, 0.9);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

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

.agency-property-card .btn-favorite {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: none;
    width: 36px;
    height: 36px;
    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 8px rgba(0, 0, 0, 0.1);
}

.agency-property-card .btn-favorite:hover,
.agency-property-card .btn-favorite.is-favorite {
    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 (Gradient + Teal Glow) ---- */
.agency-stats {
    background: linear-gradient(135deg, #2C3E50 0%, #1A2530 50%, #2C3E50 100%);
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

/* Subtle teal glow orb behind stats */
.agency-stats::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 300px;
    background: radial-gradient(ellipse, rgba(0, 188, 212, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

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

.agency-stat-number {
    font-size: 2.75rem;
    font-weight: 600;
    color: #fff;
    line-height: 1.1;
    text-shadow: 0 0 24px rgba(0, 188, 212, 0.3);
}

.agency-stat-label {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 0.25rem;
}

.agency-stat-icon {
    font-size: 2rem;
    color: var(--agency-secondary);
    margin-bottom: 0.75rem;
    opacity: 0.8;
    filter: drop-shadow(0 0 8px rgba(0, 188, 212, 0.35));
}

/* ---- Team Cards (Glassmorphism + Teal Glow) ---- */
.agency-team-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    text-align: center;
    padding: 2rem 1.5rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    transition: var(--agency-transition);
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.agency-team-card:hover {
    box-shadow: 0 8px 32px rgba(0, 188, 212, 0.12);
    transform: translateY(-6px);
    border-color: rgba(0, 188, 212, 0.1);
}

.agency-team-card img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 3px solid var(--agency-bg-light);
    box-shadow: 0 4px 16px rgba(0, 188, 212, 0.15);
    transition: var(--agency-transition);
}

.agency-team-card:hover img {
    box-shadow: 0 6px 24px rgba(0, 188, 212, 0.25);
}

.agency-team-card h5 {
    font-size: 1rem;
    font-weight: 600;
    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: 500;
    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 — Teal Glow) ---- */
.agency-team-card-v2 {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    text-align: center;
    padding: 2rem 1.5rem 1.5rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    transition: var(--agency-transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.agency-team-card-v2:hover {
    box-shadow: 0 12px 40px rgba(0, 188, 212, 0.15);
    transform: translateY(-6px);
    border-color: rgba(0, 188, 212, 0.12);
}

.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-bg-light);
    box-shadow: 0 4px 16px rgba(0, 188, 212, 0.15);
    transition: var(--agency-transition);
}

.agency-team-card-v2:hover .agent-photo-wrapper {
    box-shadow: 0 6px 24px rgba(0, 188, 212, 0.25);
}

.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: 600;
    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: 500;
    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: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--agency-bg-light);
    color: var(--agency-primary);
    font-size: 1rem;
    transition: var(--agency-transition);
    border: 1px solid transparent;
}

.agency-team-card-v2 .agent-action-btn:hover {
    background: linear-gradient(135deg, var(--agency-primary), var(--agency-secondary));
    color: #fff;
    box-shadow: 0 4px 12px rgba(0, 188, 212, 0.25);
    border-color: transparent;
}

/* ---- Neighborhood Cards (Glass) ---- */
.agency-neighborhood-card {
    background: rgba(240, 243, 245, 0.7);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 14px;
    padding: 1.25rem;
    text-align: center;
    transition: var(--agency-transition);
}

.agency-neighborhood-card:hover {
    border-color: rgba(0, 188, 212, 0.2);
    background: #fff;
    box-shadow: 0 8px 24px rgba(0, 188, 212, 0.1);
    transform: translateY(-3px);
}

.agency-neighborhood-card h6 {
    font-weight: 600;
    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 Backgrounds ---- */
.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: rgba(240, 243, 245, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: var(--agency-radius-lg);
    padding: 3rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

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

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

/* Glow orb on CTA */
.agency-cta::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(0, 188, 212, 0.2) 0%, transparent 70%);
    pointer-events: none;
}

.agency-cta::after {
    content: '';
    position: absolute;
    bottom: -60px;
    left: -60px;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(0, 188, 212, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.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: 300;
    position: relative;
    z-index: 1;
}

/* ---- Buttons (Pill shape + Teal Glow) ---- */
.btn-agency-primary {
    background: linear-gradient(135deg, var(--agency-secondary), var(--agency-secondary-dark, #0097A7));
    color: #fff;
    border: none;
    padding: 0.85rem 2.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    border-radius: 24px;
    transition: var(--agency-transition);
    box-shadow: 0 4px 12px rgba(0, 188, 212, 0.2);
}

.btn-agency-primary:hover {
    background: linear-gradient(135deg, var(--agency-secondary-dark, #0097A7), var(--agency-secondary));
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0, 188, 212, 0.35);
}

.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.02em;
    border-radius: 24px;
    transition: var(--agency-transition);
    display: inline-block;
}

.btn-agency-outline:hover {
    background: var(--agency-primary);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(44, 62, 80, 0.25);
}

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

.btn-agency-outline-light:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #fff;
    color: #fff;
    box-shadow: 0 4px 16px rgba(0, 188, 212, 0.2);
}

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

/* CTA Buttons */
.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: 24px;
    transition: var(--agency-transition);
    display: inline-flex;
    align-items: center;
    position: relative;
    z-index: 1;
}

.btn-agency-cta-primary:hover {
    background: transparent;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0, 188, 212, 0.3);
}

.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: 24px;
    transition: var(--agency-transition);
    display: inline-flex;
    align-items: center;
    position: relative;
    z-index: 1;
}

.btn-agency-cta-outline:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: #fff;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 188, 212, 0.2);
}

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

/* Subtle top glow on footer */
.agency-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 188, 212, 0.3), transparent);
}

.agency-footer h6 {
    color: #fff;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    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);
    text-shadow: 0 0 8px rgba(0, 188, 212, 0.25);
}

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

/* ---- Filter Bar (Glassmorphism) ---- */
.agency-filter-bar {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

/* Filter bar tabs — pill style */
.agency-filter-bar .filter-tabs .nav-link {
    border-radius: 20px;
    padding: 0.5rem 1.25rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--agency-text-light);
    transition: var(--agency-transition);
    border: 1px solid transparent;
}

.agency-filter-bar .filter-tabs .nav-link:hover {
    color: var(--agency-primary);
    background: rgba(0, 188, 212, 0.06);
}

.agency-filter-bar .filter-tabs .nav-link.active {
    background: linear-gradient(135deg, var(--agency-primary), var(--agency-secondary));
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(0, 188, 212, 0.2);
}

/* Filter dropdowns */
.agency-filter-bar .filter-dropdown .btn {
    border-radius: 20px;
    border: 1px solid var(--agency-border);
    font-size: 0.8125rem;
    padding: 0.45rem 1rem;
    color: var(--agency-text);
    background: rgba(255, 255, 255, 0.7);
    transition: var(--agency-transition);
}

.agency-filter-bar .filter-dropdown .btn:hover,
.agency-filter-bar .filter-dropdown .btn:focus {
    border-color: var(--agency-secondary);
    box-shadow: 0 2px 8px rgba(0, 188, 212, 0.1);
}

.agency-filter-bar .filter-dropdown .dropdown-menu {
    border-radius: 14px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    background: rgba(255, 255, 255, 0.96);
    padding: 0.5rem;
}

.agency-filter-bar .filter-dropdown .dropdown-item {
    border-radius: 10px;
    font-size: 0.8125rem;
    padding: 0.5rem 1rem;
    transition: var(--agency-transition);
}

.agency-filter-bar .filter-dropdown .dropdown-item:hover,
.agency-filter-bar .filter-dropdown .dropdown-item.active {
    background: rgba(0, 188, 212, 0.08);
    color: var(--agency-secondary);
}

/* Filter bar alert button */
.agency-filter-bar .btn-alert-filter {
    border-radius: 20px;
    background: linear-gradient(135deg, #F5A623, #F7C948);
    color: #fff;
    font-weight: 600;
    font-size: 0.8125rem;
    border: none;
    padding: 0.45rem 1rem;
    box-shadow: 0 2px 8px rgba(245, 166, 35, 0.25);
    transition: var(--agency-transition);
}

.agency-filter-bar .btn-alert-filter:hover {
    box-shadow: 0 4px 16px rgba(245, 166, 35, 0.35);
    transform: translateY(-1px);
}

/* Sort & view toggle */
.agency-filter-bar .btn-sort,
.agency-filter-bar .btn-view-toggle {
    border-radius: 20px;
    border: 1px solid var(--agency-border);
    font-size: 0.8125rem;
    background: rgba(255, 255, 255, 0.7);
    color: var(--agency-text);
    transition: var(--agency-transition);
}

.agency-filter-bar .btn-sort:hover,
.agency-filter-bar .btn-view-toggle:hover {
    border-color: var(--agency-secondary);
    color: var(--agency-secondary);
}

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

/* ---- Listings Map View ---- */
.listings-map-view .listings-panel {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

/* ---- Project Card (Neuf) ---- */
.agency-project-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    transition: var(--agency-transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.agency-project-card:hover {
    box-shadow: 0 8px 32px rgba(0, 188, 212, 0.12);
    transform: translateY(-4px);
    border-color: rgba(0, 188, 212, 0.1);
}

.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-size: 1.0625rem;
    font-weight: 600;
    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: 6px;
}

.project-unit-line:last-child { border-bottom: none; }
.project-unit-line:hover { background: rgba(0, 188, 212, 0.04); 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 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: rgba(0, 188, 212, 0.04);
    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: rgba(0, 188, 212, 0.04);
    font-weight: 500;
}

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

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

.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, glass) ---- */
.agency-detail-agent-card {
    background: rgba(240, 243, 245, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 16px;
    padding: 2rem 1.5rem;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.agency-detail-agent-card .agent-photo-wrapper {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 4px 16px rgba(0, 188, 212, 0.15);
}

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

/* ---- Detail Page: Features Grid ---- */
.agency-feature-item {
    background: rgba(240, 243, 245, 0.7);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border-radius: 12px;
    padding: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: var(--agency-transition);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.agency-feature-item:hover {
    box-shadow: 0 4px 12px rgba(0, 188, 212, 0.08);
    border-color: rgba(0, 188, 212, 0.1);
}

.agency-feature-item i {
    color: var(--agency-secondary);
    font-size: 1.25rem;
    filter: drop-shadow(0 0 3px rgba(0, 188, 212, 0.2));
}

/* ---- Contact Form (Glass) ---- */
.agency-contact-form .form-control,
.agency-contact-form .form-select {
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    padding: 0.75rem 1rem;
    font-size: 0.9375rem;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    transition: var(--agency-transition);
}

.agency-contact-form .form-control:focus,
.agency-contact-form .form-select:focus {
    border-color: var(--agency-secondary);
    box-shadow: 0 0 0 3px rgba(0, 188, 212, 0.1);
    outline: none;
}

.agency-contact-form .form-label {
    font-weight: 500;
    font-size: 0.875rem;
    color: var(--agency-text);
    margin-bottom: 0.4rem;
}

/* ---- Login / Auth Page ---- */
.agency-auth-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.agency-auth-card .btn-google,
.agency-auth-card .btn-facebook {
    border-radius: 24px;
    font-weight: 500;
}

/* ---- Alert Pages ---- */
.agency-alert-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

/* ---- Breadcrumbs ---- */
.agency-breadcrumb {
    background: rgba(240, 243, 245, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border-radius: 12px;
    padding: 0.75rem 1.25rem;
    font-size: 0.8125rem;
}

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

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

/* ---- Pagination ---- */
.agency-pagination .page-link {
    border-radius: 20px;
    border: 1px solid var(--agency-border);
    color: var(--agency-text);
    font-size: 0.875rem;
    padding: 0.5rem 0.9rem;
    margin: 0 0.15rem;
    transition: var(--agency-transition);
    background: rgba(255, 255, 255, 0.8);
}

.agency-pagination .page-link:hover {
    background: rgba(0, 188, 212, 0.08);
    border-color: var(--agency-secondary);
    color: var(--agency-secondary);
}

.agency-pagination .page-item.active .page-link {
    background: linear-gradient(135deg, var(--agency-primary), var(--agency-secondary));
    border-color: transparent;
    color: #fff;
    box-shadow: 0 4px 12px rgba(0, 188, 212, 0.2);
}

/* ---- Photo Gallery (Lightbox overlay glow) ---- */
.agency-gallery-thumb {
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: var(--agency-transition);
    border: 2px solid transparent;
}

.agency-gallery-thumb:hover {
    border-color: rgba(0, 188, 212, 0.3);
    box-shadow: 0 4px 16px rgba(0, 188, 212, 0.12);
    transform: translateY(-2px);
}

.agency-gallery-main {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

/* ---- Map Widget ---- */
.agency-map-container {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.mapboxgl-canvas {
    border-radius: inherit;
}

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

.agency-favorites-empty i {
    font-size: 3rem;
    color: var(--agency-text-light);
    opacity: 0.4;
    margin-bottom: 1rem;
}

/* ---- Infinite Scroll Button ---- */
.agency-load-more {
    border-radius: 24px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    font-size: 0.875rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid var(--agency-border);
    color: var(--agency-text);
    transition: var(--agency-transition);
}

.agency-load-more:hover {
    border-color: var(--agency-secondary);
    color: var(--agency-secondary);
    box-shadow: 0 4px 16px rgba(0, 188, 212, 0.12);
}

/* ---- Share Buttons (glass) ---- */
.agency-share-buttons .share-btn {
    background: rgba(240, 243, 245, 0.8);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border-radius: 50%;
    transition: var(--agency-transition);
}

.agency-share-buttons .share-btn:hover {
    background: var(--agency-secondary);
    color: #fff;
    box-shadow: 0 4px 12px rgba(0, 188, 212, 0.25);
}

/* ---- Mandat Pages ---- */
.agency-mandat-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

/* ---- Amenities Grid ---- */
.agency-amenity-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--agency-text);
    padding: 0.5rem 0;
}

.agency-amenity-item i {
    color: var(--agency-secondary);
    font-size: 1rem;
    width: 1.5rem;
    text-align: center;
    filter: drop-shadow(0 0 3px rgba(0, 188, 212, 0.2));
}

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

/* ---- Cards inside sidebar (glass) ---- */
.agency-sidebar-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.04);
    margin-bottom: 1.5rem;
}

/* ---- Tooltip & Popover theme ---- */
.tooltip-inner {
    background: rgba(44, 62, 80, 0.9);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-radius: 10px;
    font-size: 0.8125rem;
    padding: 0.5rem 0.75rem;
}

/* ---- Badge (Neon tinted) ---- */
.badge-agency {
    background: rgba(0, 188, 212, 0.1);
    color: var(--agency-secondary);
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.75rem;
    padding: 0.35rem 0.75rem;
    letter-spacing: 0.02em;
}

.badge-agency-primary {
    background: rgba(44, 62, 80, 0.1);
    color: var(--agency-primary);
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.75rem;
    padding: 0.35rem 0.75rem;
}

/* ---- Loading Spinner ---- */
.agency-spinner {
    border: 3px solid rgba(0, 188, 212, 0.15);
    border-top-color: var(--agency-secondary);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    animation: skyline-spin 0.8s linear infinite;
}

@keyframes skyline-spin {
    to { transform: rotate(360deg); }
}

/* ---- Toast / Notification ---- */
.agency-toast {
    background: rgba(44, 62, 80, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #fff;
    border-radius: 14px;
    padding: 1rem 1.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    font-size: 0.875rem;
}

/* ---- Skeleton Loading (glass shimmer) ---- */
.agency-skeleton {
    background: linear-gradient(90deg, rgba(240, 243, 245, 0.6) 25%, rgba(255, 255, 255, 0.8) 50%, rgba(240, 243, 245, 0.6) 75%);
    background-size: 200% 100%;
    animation: skyline-shimmer 1.5s ease-in-out infinite;
    border-radius: 12px;
}

@keyframes skyline-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ---- Mobile Menu (glass overlay) ---- */
.offcanvas.agency-mobile-menu {
    background: rgba(44, 62, 80, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.offcanvas.agency-mobile-menu .nav-link {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    transition: var(--agency-transition);
}

.offcanvas.agency-mobile-menu .nav-link:hover,
.offcanvas.agency-mobile-menu .nav-link.active {
    background: rgba(0, 188, 212, 0.12);
    color: #fff;
}

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

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

::-webkit-scrollbar-thumb {
    background: rgba(44, 62, 80, 0.2);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(44, 62, 80, 0.35);
}

/* ---- Focus Styles (Accessible + On-brand) ---- */
*:focus-visible {
    outline: 2px solid var(--agency-secondary);
    outline-offset: 2px;
    border-radius: 4px;
}

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

@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 rgba(0, 0, 0, 0.06);
    }
    .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 rgba(0, 0, 0, 0.06);
    }
    .agency-search-bar .btn-search {
        border-radius: 0 0 var(--agency-radius) var(--agency-radius);
    }
    .agency-navbar {
        background: rgba(44, 62, 80, 0.92);
    }
    .agency-filter-bar {
        background: rgba(255, 255, 255, 0.95);
    }
}

@media (max-width: 767.98px) {
    .agency-section {
        padding: 3rem 0;
    }
    .agency-hero {
        min-height: 60vh;
    }
    .agency-hero-bg::before {
        display: none;
    }
    .agency-stat-number {
        font-size: 2rem;
    }
    .agency-search-bar {
        border-radius: 16px;
    }
    .agency-hero-search .agency-search-row {
        border-radius: 16px;
    }
    .btn-agency-primary,
    .btn-agency-outline,
    .btn-agency-cta-primary,
    .btn-agency-cta-outline {
        border-radius: 20px;
    }
}
