/* ==================== Global Styles ==================== */
:root {
    /* Monochrome + navy theme */
    --primary-color: #111827;   /* near-black — headings, strong text */
    --secondary-color: #1a1f36; /* navy — replaces all blue accents */
    --accent-color: #1a1f36;    /* navy — replaces red/"off" states */
    --text-color: #1f2937;      /* body text */
    --text-light: #6b7280;      /* muted text */
    --bg-light: #f6f7f9;        /* soft off-white section background */
    --border-color: #e5e7eb;    /* clean light borders */
    --success-color: #111827;   /* price & checks — black, bold */
    --warning-color: #6b7280;   /* kept consistent, neutral */
    --white: #ffffff;

    /* Rounding tokens */
    --radius-card: 16px;
    --radius-btn: 10px;
    --radius-input: 10px;
    --radius-pill: 999px;

    /* Soft, classy elevation */
    --shadow: 0 4px 16px rgba(17, 24, 39, 0.06);
    --shadow-hover: 0 12px 32px rgba(17, 24, 39, 0.12);
}

/* ==================== Fonts ==================== */
@font-face {
    font-family: 'IranSans';
    src: url('/fonts/iransans.woff2') format('woff2'),
         url('/fonts/iransans.woff') format('woff'),
         url('/fonts/iransans.ttf') format('truetype'),
         url('/fonts/iransans.eot');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

body {
    font-family: 'IranSans', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
    margin: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

h1, h2, h3, h4 {
    line-height: 1.2;
}

/* ==================== Navbar ==================== */
.navbar {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(26, 31, 54, 0.08);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

.navbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.navbar-brand a {
    display: flex;
    align-items: center;
}

.navbar-logo {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-card);
    margin-right: 0.75rem;
    object-fit: cover;
}

.navbar-brand h1 {
    color: var(--primary-color);
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.navbar-menu {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    margin: 0;
}

.navbar-menu a {
    color: var(--text-color);
    font-weight: 500;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    transition: all 0.3s ease;
    position: relative;
}

.navbar-menu a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0.15rem;
    width: 0;
    height: 3px;
    background: var(--secondary-color);
    border-radius: 10px;
    transition: width 0.3s ease;
    transform: translateX(-50%);
}

.navbar-menu a:hover::after,
.navbar-menu a.active::after {
    width: 60%;
}

.navbar-menu a:hover,
.navbar-menu a.active {
    color: var(--secondary-color);
}

.navbar-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.btn-login,
.btn-register,
.btn-dashboard {
    padding: 0.6rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-login {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    box-shadow: 0 12px 24px rgba(26, 31, 54, 0.12);
}

.btn-login .btn-icon {
    display: inline-flex;
    margin-right: 0.5rem;
    font-size: 0.95rem;
}

.btn-register,
.btn-dashboard {
    background: var(--secondary-color);
    color: var(--white);
}

.btn-login:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: 0 16px 32px rgba(26, 31, 54, 0.16);
}

.btn-register:hover,
.btn-dashboard:hover {
    background: var(--primary-color);
}

.btn-logout {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: var(--radius-btn);
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-logout:hover {
    background: var(--secondary-color);
}

.navbar-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
}

.navbar-toggle span {
    width: 28px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 999px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.navbar-toggle.open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.navbar-toggle.open span:nth-child(2) {
    opacity: 0;
}

.navbar-toggle.open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* ==================== Hero Section ==================== */
.hero {
    background-size: cover;
    background-position: center;
    padding: 7rem 0 4rem;
    color: var(--white);
}

.hero__inner {
    text-align: center;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.14);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 0.35rem 1.25rem;
    border-radius: var(--radius-pill);
    font-size: 0.85rem;
    margin-bottom: 1.25rem;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 0.75rem;
    font-weight: 800;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.85);
}

/* ====== Hero Search ====== */
.hero-search {
    max-width: 960px;
    margin: 0 auto;
}

.hero-search__form {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr auto;
    gap: 1rem;
    align-items: end;
}

.hero-search__field label {
    display: block;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 0.35rem;
    text-align: right;
}

.hero-search__field input,
.hero-search__field select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.12);
    color: var(--white);
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.hero-search__field input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.hero-search__field input:focus,
.hero-search__field select:focus {
    outline: none;
    border-color: var(--builder-gold);
    background: rgba(255, 255, 255, 0.18);
}

.hero-search__field select option {
    color: var(--text-color);
    background: var(--white);
}

.hero-search__btn {
    padding: 0.75rem 2rem;
    background: var(--builder-gold);
    color: var(--text-light);
    border: none;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.hero-search__btn:hover {
    background: var(--builder-gold-dark);
    color: var(--white);
}

/* ====== Hero CTAs ====== */
.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

/* ====== Legacy search-bar (still used on standalone search page) ====== */
.search-bar {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    max-width: 900px;
    margin: 0 auto;
}

.search-inputs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.search-inputs input,
.search-inputs select {
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    font-size: 1rem;
}

.search-inputs button {
    background: var(--secondary-color);
    color: var(--white);
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.search-inputs button:hover {
    background: var(--primary-color);
}

/* ==================== Sections ==================== */
section {
    padding: 4rem 0;
}

section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    text-align: center;
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

/* ==================== Property Cards ==================== */
.properties-grid,
.buildings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.swiper-slide {
    box-sizing: border-box;
}

.swiper-slide > * {
    width: 100%;
}

.property-card,
.building-card {
    display: block;
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    margin: 20px 0;
}

.building-card {
    display: block;
    text-decoration: none;
    color: inherit;
}

.property-card:hover,
.building-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.property-image img,
.building-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.building-image {
    position: relative;
}

.property-details,
.building-info {
    padding: 1.5rem;
}

.property-details h3,
.building-info h3 {
    font-size: 1.0rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.building-info h3 {
    font-weight: 800;
}

.price {
    color: var(--success-color);
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0.5rem 0;
}

.location,
.address {
    color: var(--text-light);
    margin-bottom: 1rem;
    font-size: 0.8rem;
}

.updated-date {
    color: var(--text-light);
    font-size: 0.75rem;
    margin: 0 0 0.75rem;
    line-height: 1.4;
}

.property-meta,
.building-stats {
    display: flex;
    gap: 1rem;
    color: var(--text-light);
    font-size: 0.7rem;
}

/* ==================== Comparison Table ==================== */
.comparison-table {
    background: var(--bg-light);
}

.table-wrapper {
    overflow-x: auto;
    margin-top: 2rem;
}

.comparison {
    width: 100%;
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    border-spacing: 0;
}

.comparison thead {
    background: var(--primary-color);
    color: var(--white);
}

.comparison th,
.comparison td {
    padding: 0.5rem 0.75rem;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.95rem;
}

.comparison th img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 10px;
    margin: 0 auto 0.4rem;
}

.comparison th h4 {
    font-size: 0.95rem;
}

.feature-name {
    font-weight: 600;
    text-align: right;
    background: var(--bg-light);
}

.btn-view {
    background: var(--secondary-color);
    color: var(--white);
    padding: 0.5rem 1.5rem;
    border-radius: 10px;
    display: inline-block;
    transition: all 0.3s ease;
}

.btn-view:hover {
    background: var(--primary-color);
}

/* ==================== Map Section (City Cards) ==================== */
.map-section {
    padding: 4rem 0;
}

.map-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
    align-items: start;
}

/* Left side — map placeholder */
.map-layout__map {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    min-height: 400px;
}

.map-placeholder {
    width: 100%;
    height: 100%;
    min-height: 400px;
    background: var(--bg-light);
    border-radius: 16px;
}

.map-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 400px;
}

.map-placeholder__fallback {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 400px;
    color: var(--text-light);
    gap: 0.75rem;
    font-size: 1.1rem;
}

.map-placeholder__icon {
    font-size: 3rem;
}

/* Right side — city cards (2-col grid) */
.map-layout__cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.city-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--builder-navy);
    color: var(--white);
    border-radius: 16px;
    padding: 1.15rem 1.25rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.city-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
    border-color: var(--builder-gold);
}

.city-card__name {
    font-size: 1rem;
    font-weight: 600;
}

.city-card__city {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
}

.city-card__count {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1;
    margin-right: auto;
}

.city-card__label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.65);
}

/* Responsive */
@media (max-width: 768px) {
    .map-layout {
        grid-template-columns: 1fr;
    }

    .map-layout__map {
        min-height: 250px;
    }

    .map-placeholder,
    .map-placeholder img,
    .map-placeholder__fallback {
        min-height: 250px;
    }

    .map-layout__cards {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .map-layout__cards {
        grid-template-columns: 1fr;
    }
}

/* ==================== Property Gallery ==================== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.gallery-item {
    position: relative;
    cursor: pointer;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.gallery-image {
    position: relative;
    overflow: hidden;
}

.gallery-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-image img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(17, 24, 39, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.overlay-content {
    text-align: center;
    color: var(--white);
    padding: 2rem;
}

.overlay-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.overlay-content .price {
    color: var(--text-light);
    margin: 0.5rem 0;
}

.property-quick-info {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 1rem 0;
    font-size: 0.9rem;
}

.btn-view-details {
    background: var(--white);
    color: var(--primary-color);
    padding: 0.75rem 2rem;
    border-radius: 10px;
    display: inline-block;
    margin-top: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-view-details:hover {
    background: var(--secondary-color);
    color: var(--white);
}

.gallery-navigation {
    text-align: center;
    margin-top: 2rem;
}

.gallery-prev,
.gallery-next {
    background: var(--secondary-color);
    color: var(--white);
    border: none;
    padding: 0.75rem 1.5rem;
    margin: 0 0.5rem;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1.25rem;
    transition: all 0.3s ease;
}

.gallery-prev:hover,
.gallery-next:hover {
    background: var(--primary-color);
}

/* ==================== CTA Section ==================== */
.cta-section {
    background: var(--secondary-color);
    color: var(--white);
    text-align: center;
}

.cta-content h2 {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn-primary,
.btn-secondary {
    padding: 1rem 2.5rem;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--white);
    color: var(--primary-color);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--white);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--bg-light);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary-color);
}

.btn-view-all {
    background: var(--secondary-color);
    color: var(--white);
    padding: 1rem 2.5rem;
    border-radius: 10px;
    display: inline-block;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-view-all:hover {
    background: var(--primary-color);
}

/* ==================== Footer ==================== */
.footer {
    text-align: center;
    color: var(--white);
    padding: 0;
}

.footer .container {
    background: var(--primary-color);
    border-radius: 16px;
}

.footer-content {
    display: flex;
    gap: 2rem;
    padding: 40px 20px;
}

.footer-section h1,
.footer-section h2,
.footer-section h3,
.footer-section h4,
.footer-section h5 {
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--white);
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--white);
    padding-right: 5px;
}

.footer-section h1 {
    font-size: 28px;
    font-weight: 800;
}

.footer-section h2 {
    font-size: 24px;
    font-weight: 800;
}

.footer-section h3 {
    font-size: 18px;
    font-weight: 900;
}

.footer-section h5 {
    font-size: 12px;
    font-weight: 800;
}

.footer-intros {
    display: flex;
    flex-direction: row;
    flex-grow: 2;
    justify-content: center;
    align-items: center;
    gap: 3rem;
}

.footer-intros i {
    font-size: 50px;
    color: var(--white);
    margin-bottom: 10px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
}

.contact-info li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.8);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-badges {
    display: flex;
    gap: 1rem;
}

.footer-badges img {
    width: 80px;
    height: auto;
}

/* ==================== Utilities ==================== */
.text-center {
    text-align: center;
}

.mt-8 {
    margin-top: 2rem;
}

.inline {
    display: inline;
}

/* ==================== Responsive Design ==================== */
@media (max-width: 1024px) {
    .map-container {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }

    .footer-content {
        flex-wrap: wrap;
        gap: 1.5rem;
    }

    .footer-section:first-child,
    .footer-section:last-child {
        flex: 1 1 220px;
    }

    .footer-intros {
        order: 3;
        flex: 1 1 100%;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .navbar-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        box-shadow: var(--shadow);
        padding: 1rem;
        gap: 1rem;
        border-bottom-left-radius: var(--radius-card);
        border-bottom-right-radius: var(--radius-card);
    }

    .navbar-menu.active {
        display: flex;
    }

    .navbar-toggle {
        display: flex;
    }

    .navbar-actions {
        display: none;
    }

    .navbar-actions .btn-login {
        width: 100%;
        justify-content: center;
    }

    .navbar-content {
        position: relative;
    }

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

    .search-inputs {
        grid-template-columns: 1fr;
    }

    .properties-grid,
    .buildings-grid {
        grid-template-columns: 1fr;
    }

    .comparison {
        font-size: 0.9rem;
    }

    .comparison th,
    .comparison td {
        padding: 0.5rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 2.5rem;
        padding: 32px 16px;
    }

    .footer-section {
        width: 100%;
    }

    .footer-section .btn-outline-gold,
    .footer-section .btn-gold {
        margin-inline: auto;
    }

    .footer-intros {
        flex-direction: column;
        gap: 1.75rem;
    }

    .social-links {
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 4rem 0;
    }

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

    section h2 {
        font-size: 1.75rem;
    }

    .cta-content h2 {
        font-size: 1.75rem;
    }

    .footer-content {
        padding: 24px 14px;
        gap: 2rem;
    }

    .footer-section h1 {
        font-size: 22px;
    }

    .footer-section h2 {
        font-size: 20px;
    }

    .footer-section h3 {
        font-size: 16px;
    }

    .footer-intros {
        gap: 1.5rem;
    }

    .social-links a {
        width: 36px;
        height: 36px;
    }

    .btn-outline-gold,
    .btn-gold {
        padding: 0.6rem 1.4rem;
    }
}

/* ==================== Builder Page ==================== */
:root {
    --builder-navy: #1a1f36;
    --builder-navy-light: #242b48;
    --builder-gold: #111827;      /* black — was gold accent */
    --builder-gold-dark: #1a1f36; /* navy — was dark gold */
}

.builder-hero {
    position: relative;
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 6rem 0;
}

.builder-hero__inner {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    flex-wrap: wrap;
}

.builder-hero__logo {
    flex-shrink: 0;
    width: 130px;
    height: 130px;
    border-radius: var(--radius-card);
    overflow: hidden;
    background: var(--builder-gold);
    box-shadow: 0 8px 24px rgba(17, 24, 39, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
}

.builder-hero__logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.builder-hero__logo-placeholder {
    font-size: 3rem;
    font-weight: 700;
    color: var(--builder-navy);
}

.builder-hero__body {
    flex: 1;
    min-width: 280px;
}

.builder-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.14);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 0.35rem 1rem;
    border-radius: var(--radius-pill);
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.builder-hero__title {
    font-size: 2.75rem;
    margin-bottom: 0.75rem;
}

.builder-hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 1rem;
}

.builder-hero__desc {
    max-width: 600px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
}

.builder-hero__actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-gold,
.btn-outline-gold {
    display: block;
    padding: 0.75rem 2rem;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-gold {
    background: var(--builder-gold);
    color: var(--text-light);
    border: 2px solid var(--text-light);
}

.btn-gold:hover {
    background: var(--builder-gold-dark);
    border-color: var(--builder-gold-dark);
    color: var(--white);
}

.btn-outline-gold {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-outline-gold:hover {
    background: var(--white);
    color: var(--builder-navy);
}

/* ====== Stats ====== */
.builder-stats {
    background: var(--builder-navy);
    padding: 3rem 0;
}

.builder-stats__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 2rem;
    text-align: center;
}

.builder-stat__num {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1.1;
}

.builder-stat__label {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.95rem;
    margin-top: 0.25rem;
}

/* ====== Section heads (gold variant) ====== */
.section-head {
    position: relative;
    margin-bottom: 2rem;
}

.section-head h2 {
    color: var(--builder-navy);
    font-weight: 900;
    font-size: 22px;
    text-align: right;
    width: auto;
    position: relative;
    padding-right: 45px;
}

.section-head h2::before {
    content: '';
    display: block;
    position: absolute;
    right: 0;
    top: 50%;
    width: 30px;
    height: 3px;
    background: var(--builder-navy);
}

.section-head a {
    color: var(--builder-navy);
    font-weight: 900;
    font-size: 16px;
    text-decoration: none;
    position: absolute;
    left: 0;
    top: 0;
}

.section-head--gold h2 {
    color: var(--builder-navy);
}

.section-head--gold h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--builder-gold);
    margin: 0.75rem auto 0;
}

/* ====== About ====== */
.builder-about {
    padding: 4rem 0;
}

.builder-about__content {
    max-width: 800px;
    margin: 0 auto;
    color: var(--text-color);
    line-height: 2;
    text-align: justify;
}

/* ====== Timeline ====== */
.builder-timeline-section {
    background: var(--bg-light);
    padding: 2.5rem 0;
}

.builder-timeline {
    list-style: none;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    max-width: 100%;
    margin: 0 auto;
    position: relative;
    padding: 1.5rem 0 0;
    overflow-x: auto;
    scroll-snap-type: x proximity;
}

.builder-timeline::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 2rem;
    height: 2px;
    background: var(--builder-gold);
}

.builder-timeline__item {
    position: relative;
    flex: 0 0 280px;
    min-width: 240px;
    padding-top: 2.75rem;
    scroll-snap-align: start;
}

.builder-timeline__item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 45%;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--builder-gold);
    border: 3px solid var(--white);
    box-shadow: 0 0 0 2px var(--builder-gold);
}

.builder-timeline__year {
    display: block;
    color: var(--builder-navy);
    font-weight: 800;
    font-size: 0.9rem;
    text-align: center;
}

.builder-timeline__body {
    border: none;
    padding: 1rem 1.25rem 1.15rem;
    text-align: center;
}

.builder-timeline__body h3 {
    color: var(--builder-navy);
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.builder-timeline__body p {
    color: var(--text-light);
    margin: 0;
}

@media (max-width: 1024px) {
    .builder-timeline__item {
        flex: 0 0 240px;
        min-width: 220px;
    }
}

@media (max-width: 768px) {
    .builder-timeline {
        padding: 0.75rem 0 0;
        gap: 0.85rem;
    }

    .builder-timeline::before {
        top: 1.75rem;
    }

    .builder-timeline__item {
        flex: 0 0 220px;
        min-width: 200px;
        padding-top: 2.5rem;
    }

    .builder-timeline__item::before {
        top: 1.6rem;
        left: 1rem;
        width: 14px;
        height: 14px;
    }
}

@media (max-width: 480px) {
    .builder-timeline__item {
        flex: 0 0 180px;
        min-width: 170px;
    }
}


/* ====== Projects ====== */
.builder-projects {
    padding: 4rem 0;
}

.builder-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.builder-gallery__item {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    aspect-ratio: 4 / 3;
}

.builder-gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.builder-gallery__item:hover img {
    transform: scale(1.05);
}

.builder-empty {
    text-align: center;
    color: var(--text-light);
    padding: 2rem;
}

/* ====== Features ====== */
.builder-features {
    background: var(--builder-navy);
    color: var(--white);
    padding: 4rem 0;
    margin-bottom: 4rem;
}

.builder-features .section-head--white h2 {
    color: var(--white);
}

.builder-features .section-subtitle {
    color: rgba(255, 255, 255, 0.7);
}

.builder-features__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.builder-feature {
    background: var(--builder-navy-light);
    padding: 2rem 1.5rem;
    border-radius: var(--radius-card);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
}

.builder-feature:hover {
    transform: translateY(-4px);
    border-color: var(--white);
}

.builder-feature__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.builder-feature h3 {
    color: var(--white);
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
}

.builder-feature p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    margin: 0;
}

/* ====== Contact ====== */
.builder-contact {
    padding: 4rem 0;
}

.builder-contact__card {
    background: linear-gradient(135deg, var(--builder-navy), var(--builder-navy-light));
    border-radius: 16px;
    padding: 3rem;
    color: var(--white);
    box-shadow: var(--shadow-hover);
}

.builder-contact__info h2 {
    color: var(--white);
    text-align: right;
}

.builder-contact__info .section-subtitle {
    color: rgba(255, 255, 255, 0.7);
    text-align: right;
}

.builder-contact__list {
    list-style: none;
    margin: 1.5rem 0;
    padding: 0;
}

.builder-contact__list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
}

.builder-contact__list span {
    color: var(--builder-gold);
    font-weight: 600;
    margin-left: 0.5rem;
}

.builder-contact__list a {
    color: var(--builder-gold);
}

.builder-social {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.builder-social__link {
    padding: 0.5rem 1.25rem;
    border: 1px solid var(--builder-gold);
    border-radius: 999px;
    color: var(--builder-gold);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.builder-social__link:hover {
    background: var(--builder-gold);
    color: var(--builder-navy);
}

/* ====== Builder page responsive ====== */
@media (max-width: 600px) {
    .builder-hero {
        padding: 4rem 0;
    }

    .builder-hero__inner {
        flex-direction: column;
        text-align: center;
    }

    .builder-hero__meta,
    .builder-hero__actions {
        justify-content: center;
    }

    .builder-hero__title {
        font-size: 2rem;
    }

    .builder-contact__card {
        padding: 2rem 1.5rem;
    }
}

/* ==================== Homepage Stats Bar ==================== */
.home-stats {
    background: var(--builder-navy);
    padding: 2.5rem 0;
}

.home-stats__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    text-align: center;
}

.home-stat__num {
    display: block;
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--builder-gold);
    line-height: 1.2;
}

.home-stat__label {
    display: block;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.95rem;
    margin-top: 0.25rem;
}

/* ==================== Section Helpers ==================== */
.section-more {
    text-align: center;
    margin-top: 2.5rem;
}

.home-empty {
    text-align: center;
    color: var(--text-light);
    padding: 3rem 0;
}

/* ==================== Featured Buildings Section ==================== */
.featured-buildings {
    padding: 4rem 0;
}

/* ==================== Featured Builders Section ==================== */
.featured-builders {
    background: var(--bg-light);
    padding: 4rem 0;
}

.activity-feed {
    padding: 4rem 0;
}

.activity-feed__grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    margin-top: 2rem;
}

.activity-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow);
    padding: 1.7rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.activity-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.activity-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.activity-card__tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.4rem 0.9rem;
    border-radius: var(--radius-pill);
    background: rgba(26, 31, 54, 0.06);
    color: var(--secondary-color);
    font-size: 0.85rem;
    font-weight: 700;
}

.activity-card__title {
    margin: 0 0 0.85rem;
    font-size: 1rem;
    line-height: 1.5;
    color: var(--primary-color);
}

.activity-card__text {
    margin: 0 0 1rem;
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.7;
}

.activity-card time {
    color: var(--text-light);
    font-size: 0.83rem;
}

.activity-empty {
    grid-column: 1 / -1;
    padding: 2rem;
    border-radius: var(--radius-card);
    border: 1px dashed var(--border-color);
    text-align: center;
    color: var(--text-light);
    background: var(--bg-light);
}

.home-builders-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.home-builder-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--white);
    padding: 1.25rem 1.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.home-builder-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
    border-color: var(--builder-gold);
}

.home-builder-card__logo {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--builder-navy);
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-builder-card__logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-builder-card__logo span {
    color: var(--builder-gold);
    font-size: 1.5rem;
    font-weight: 700;
}

.home-builder-card__body {
    flex: 1;
    min-width: 0;
}

.home-builder-card__body h3 {
    font-size: 1.05rem;
    color: var(--builder-navy);
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.home-builder-card__body p {
    font-size: 0.85rem;
    color: var(--text-light);
    margin: 0;
}

.home-builder-card__arrow {
    color: var(--builder-gold);
    font-size: 1.25rem;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.home-builder-card:hover .home-builder-card__arrow {
    transform: translateX(-4px);
}

/* ==================== CTA Section ==================== */
.home-cta {
    background: var(--builder-navy);
    padding: 5rem 0;
    text-align: center;
}

.home-cta__inner h2 {
    color: var(--white);
    font-size: 2.25rem;
    margin-bottom: 1rem;
}

.home-cta__inner p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.15rem;
    margin-bottom: 2rem;
}

.home-cta__buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ==================== Homepage Responsive ==================== */
@media (max-width: 768px) {
    .hero-search__form {
        grid-template-columns: 1fr 1fr;
    }

    .hero-search__btn {
        grid-column: 1 / -1;
    }

    .home-stats__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .home-builder-card {
        flex-direction: column;
        text-align: center;
    }

    .home-builder-card__arrow {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 5rem 0 3rem;
    }

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

    .hero-search__form {
        grid-template-columns: 1fr;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
}

/* ==================== Property Detail Page ==================== */
.property-detail {
    background: var(--bg-light);
}

.pd-breadcrumb {
    padding: 1.25rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    font-size: 0.9rem;
    color: var(--text-light);
}

.pd-breadcrumb a {
    color: var(--builder-navy);
    font-weight: 500;
}

.pd-breadcrumb a:hover {
    color: var(--builder-gold-dark);
}

.pd-breadcrumb__sep {
    color: var(--border-color);
}

.pd-breadcrumb__current {
    color: var(--text-light);
    font-weight: 500;
}

/* ---- Section scaffolding ---- */
.pd-section {
    padding: 1.5rem 0 2.5rem;
}

.pd-section--hero {
    padding-top: 0;
}

.pd-grid {
    display: grid;
    gap: 1.75rem;
    align-items: start;
}

.pd-grid--2 {
    grid-template-columns: 1.15fr 1fr;
}

.pd-grid--3 {
    grid-template-columns: 1fr 1.15fr 1fr;
}

/* ---- Section heads ---- */
.pd-section__head {
    position: relative;
    margin-bottom: 1.25rem;
}

.pd-section__head h2 {
    color: var(--builder-navy);
    font-size: 1.35rem;
    font-weight: 800;
    margin: 0;
    padding-right: 16px;
    position: relative;
}

.pd-section__head h2::before {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 24px;
    border-radius: 3px;
    background: var(--builder-gold);
}

/* ============ SECTION 1: Gallery + Info ============ */

/* Gallery */
.pd-gallery {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    position: sticky;
    top: 90px;
}

.pd-gallery__main {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-hover);
    aspect-ratio: 4 / 3;
    background: var(--bg-light);
}

.pd-gallery__main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.pd-gallery__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: none;
    background: rgba(26, 31, 54, 0.75);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s ease;
    backdrop-filter: blur(4px);
}

.pd-gallery__nav:hover {
    background: var(--builder-gold);
    color: var(--text-light);
}

.pd-gallery__nav--prev {
    right: 14px;
}

.pd-gallery__nav--next {
    left: 14px;
}

.pd-gallery__counter {
    position: absolute;
    bottom: 14px;
    left: 14px;
    background: rgba(26, 31, 54, 0.8);
    color: var(--white);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.3rem 0.85rem;
    border-radius: 999px;
    backdrop-filter: blur(4px);
}

.pd-gallery__caption {
    margin: 0.6rem 0 0;
    padding: 0.7rem 0.95rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    color: var(--text-main);
    font-size: 0.95rem;
    line-height: 1.7;
    box-shadow: var(--shadow-sm);
}

.pd-gallery__thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(78px, 1fr));
    gap: 0.5rem;
}

.pd-gallery__thumb {
    border: none;
    padding: 0;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    background: var(--bg-light);
    aspect-ratio: 1 / 1;
    transition: all 0.25s ease;
    opacity: 0.7;
    outline: 2px solid transparent;
    outline-offset: 2px;
}

.pd-gallery__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.pd-gallery__thumb:hover {
    opacity: 1;
}

.pd-gallery__thumb.is-active {
    opacity: 1;
    outline-color: var(--builder-gold);
}

/* Info column */
.pd-info {
    background: var(--white);
    border-radius: 16px;
    padding: 1.75rem;
    box-shadow: var(--shadow);
}

.pd-info__head {
    margin-bottom: 1.25rem;
}

.pd-info__badges {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.85rem;
}

.pd-badge {
    display: inline-block;
    padding: 0.3rem 0.9rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
}

.pd-badge--type {
    background: rgba(17, 24, 39, 0.08);
    color: var(--primary-color);
}

.pd-badge--status {
    background: rgba(26, 31, 54, 0.08);
    color: var(--builder-navy);
}

.pd-title {
    font-size: 1.65rem;
    font-weight: 800;
    color: var(--builder-navy);
    margin: 0 0 0.5rem;
    line-height: 1.3;
}

.pd-location {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--text-light);
    font-size: 0.95rem;
    margin: 0;
}

.pd-updated {
    color: var(--text-light);
    margin-top: 0.75rem;
    font-size: 0.95rem;
}

.pd-location svg {
    color: var(--builder-gold-dark);
    flex-shrink: 0;
}

/* Specs grid */
.pd-specs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    padding: 1.25rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1.5rem;
}

.pd-spec {
    background: var(--bg-light);
    border-radius: 16px;
    padding: 0.9rem 0.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.pd-spec__icon {
    color: var(--builder-gold-dark);
    line-height: 0;
    margin-bottom: 0.15rem;
}

.pd-spec__value {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--builder-navy);
    line-height: 1;
}

.pd-spec__label {
    font-size: 0.78rem;
    color: var(--text-light);
}

/* Price bar + CTA */
.pd-pricebar {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.pd-pricebar__price {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.pd-pricebar__amount {
    font-size: 1.9rem;
    font-weight: 800;
    color: var(--success-color);
    line-height: 1;
}

.pd-pricebar__unit {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-light);
}

.pd-pricebar__cta {
    display: flex;
    gap: 0.75rem;
}

/* Buttons */
.pd-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.25rem;
    border-radius: 16px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.25s ease;
    border: 2px solid transparent;
    flex: 1;
}

.pd-btn svg {
    flex-shrink: 0;
}

.pd-btn--call {
    background: var(--builder-navy);
    color: var(--white);
}

.pd-btn--call:hover {
    background: var(--builder-navy-light);
}

.pd-btn--whatsapp {
    background: var(--white);
    color: var(--primary-color);
    border-color: var(--border-color);
}

.pd-btn--whatsapp:hover {
    background: var(--bg-light);
}

.pd-btn--visit {
    background: var(--builder-gold);
    color: var(--white);
    border-color: var(--builder-gold);
}

.pd-btn--visit:hover {
    background: var(--builder-gold-dark);
    color: var(--text-light);
}

.pd-btn--call2 {
    background: transparent;
    color: var(--builder-navy);
    border-color: var(--builder-navy);
}

.pd-btn--call2:hover {
    background: var(--builder-navy);
    color: var(--white);
}

/* ============ SECTION 2: Plan + Features ============ */

.pd-plan {
    position: relative;
}

.pd-plan__img {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    aspect-ratio: 4 / 3;
    background: var(--bg-light);
}

.pd-plan__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.pd-plan__img:hover img {
    transform: scale(1.04);
}

.pd-plan__img--empty {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    background: var(--white);
}

.pd-features-block {
    background: var(--white);
    border-radius: 16px;
    padding: 1.75rem;
    box-shadow: var(--shadow);
}

.pd-features {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem 1rem;
}

.pd-feature {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.95rem;
    color: var(--text-color);
    padding: 0.5rem 0;
}

.pd-feature__check {
    color: var(--white);
    background: var(--primary-color);
    border-radius: 50%;
    padding: 3px;
    flex-shrink: 0;
}

/* ============ SECTION 3: Options + Map + About ============ */

.pd-col {
    background: var(--white);
    border-radius: 16px;
    padding: 1.75rem;
    box-shadow: var(--shadow);
    height: 100%;
    box-sizing: border-box;
}

/* Options list */
.pd-options {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.pd-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0.9rem;
    border-radius: 16px;
    background: var(--bg-light);
    transition: all 0.25s ease;
}

.pd-option:hover {
    background: rgba(17, 24, 39, 0.06);
}

.pd-option__icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: var(--white);
    box-shadow: var(--shadow);
}

.pd-option.is-on .pd-option__icon {
    color: var(--primary-color);
}

.pd-option.is-off .pd-option__icon {
    color: #9ca3af;
}

.pd-option__name {
    font-weight: 600;
    color: var(--builder-navy);
    font-size: 0.95rem;
}

.pd-option__state {
    margin-right: auto;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 0.2rem 0.7rem;
    border-radius: 999px;
}

.pd-option.is-on .pd-option__state {
    background: rgba(17, 24, 39, 0.1);
    color: var(--primary-color);
}

.pd-option.is-off .pd-option__state {
    background: rgba(17, 24, 39, 0.06);
    color: var(--text-light);
}

/* Map */
.pd-map {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    aspect-ratio: 1 / 1;
    min-height: 240px;
}

.pd-map iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.pd-map--empty {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    background: var(--bg-light);
}

/* About + CTA */
.pd-about {
    color: var(--text-color);
    line-height: 1.9;
    font-size: 0.95rem;
    text-align: justify;
    margin-bottom: 1.5rem;
}

.pd-about p {
    margin: 0 0 0.75rem;
}

.pd-cta-box {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.pd-cta-box .pd-btn {
    flex: none;
}

/* ============ Property Detail Responsive ============ */
@media (max-width: 992px) {
    .pd-grid--2 {
        grid-template-columns: 1fr;
    }

    .pd-grid--3 {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .pd-gallery {
        position: static;
    }

    .pd-features {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .pd-specs {
        grid-template-columns: repeat(2, 1fr);
    }

    .pd-features {
        grid-template-columns: 1fr;
    }

    .pd-title {
        font-size: 1.35rem;
    }

    .pd-pricebar__amount {
        font-size: 1.6rem;
    }

    .pd-pricebar__cta {
        flex-direction: column;
    }

    .pd-info,
    .pd-features-block,
    .pd-col {
        padding: 1.25rem;
    }
}

/* ==================== Buildings Pages ==================== */

/* ---- Buildings list page header ---- */
.bd-list-header {
    background: linear-gradient(135deg, var(--builder-navy), var(--builder-navy-light));
    color: var(--white);
    padding: 2.5rem 0 2rem;
}

.bd-list-header__title {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.bd-list-header .pd-breadcrumb {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.75rem;
}

.bd-list-header .pd-breadcrumb a,
.bd-list-header .pd-breadcrumb__current {
    color: var(--white);
}

.bd-list-header__subtitle {
    color: rgba(255, 255, 255, 0.85);
    max-width: 620px;
}

/* ---- Buildings list body ---- */
.bd-list {
    background: var(--bg-light);
    padding: 2.5rem 0 4rem;
}

.bd-list__pagination {
    margin-top: 2.5rem;
    display: flex;
    justify-content: center;
}

/* =====================================================
   PAGINATION
   ===================================================== */
.pagination { display: flex; justify-content: center; }

.pagination__list {
    display: flex;
    align-items: center;
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.pagination__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-input);
    background: var(--white);
    color: var(--text-color);
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.pagination__link:hover {
    background: var(--bg-light);
    border-color: var(--secondary-color);
    color: var(--secondary-color);
}
.pagination__link--active {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--white);
    cursor: default;
}
.pagination__link--disabled {
    color: var(--text-light);
    cursor: not-allowed;
    opacity: 0.6;
}
.pagination__ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 38px;
    color: var(--text-light);
}

/* ---- Building card badges + meta ---- */
.building-card__badges {
    position: absolute;
    top: 12px;
    inset-inline-start: 12px;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    z-index: 1;
}

.building-card__badge {
    background: rgba(26, 31, 54, 0.85);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    backdrop-filter: blur(2px);
}

.building-card__badge--gold {
    background: var(--builder-gold);
    color: var(--text-light);
}

.building-info {
    position: relative;
}

.building-stats {
    align-items: center;
    flex-wrap: wrap;
}

.building-stats span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.building-stats svg {
    opacity: 0.7;
}

.building-card__view {
    display: inline-block;
    margin-top: 1rem;
    color: var(--builder-gold-dark);
    font-weight: 600;
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.building-card:hover .building-card__view {
    transform: translateX(-4px);
}

/* ---- Units section on the building detail page ---- */
.building-detail {
    background: var(--bg-light);
}

.bd-units {
    padding-top: 1rem;
}

.bd-units__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.bd-units__count {
    background: var(--builder-gold);
    color: var(--builder-navy);
    font-weight: 700;
    font-size: 0.85rem;
    padding: 0.3rem 0.9rem;
    border-radius: 999px;
}

/* Link wrapper around the property card */
.property-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}


/* Swiper navigation round buttons */
.swiper-button-prev,
.swiper-button-next {
    width: 40px;
    height: 40px;
    border-radius: 9999px;
    background: rgba(0,0,0,0.6);
    color: var(--white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: background .15s ease, transform .12s ease;
}

.swiper-button-prev svg,
.swiper-button-next svg {
    display: none;
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
    background: rgba(0,0,0,0.75);
    transform: translateY(-1px);
}

.swiper-button-prev { left: 8px; }
.swiper-button-next { right: 8px; }

.swiper-button-prev::after,
.swiper-button-next::after {
    content: "";
    position: absolute;
    width: 10px;
    height: 10px;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
}

.swiper-button-prev::after {
    transform: translate(-50%, -50%) rotate(-135deg);
}

/* Ensure buttons sit above slides */
.swiper { position: relative; }
.swiper .swiper-button-prev,
.swiper .swiper-button-next { position: absolute; top: 50%; z-index: 10; transform: translateY(-50%); }

/* Adjust size on small screens */
@media (max-width: 640px) {
    .swiper-button-prev,
    .swiper-button-next { width: 34px; height: 34px; }
}

/* =====================================================
   LOGIN PAGE
   ===================================================== */
.login-body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
    font-family: 'IRANSans', sans-serif;
}

.login-wrapper { width: 100%; max-width: 420px; padding: 24px; }

.login-card {
    background: var(--white);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow);
    padding: 40px 32px;
}

.login-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.login-brand img { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; }
.login-brand h1 { font-size: 20px; font-weight: 700; margin: 0; }

.login-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 14px;
    margin: 0 0 24px;
}

.login-alert {
    background: rgba(220, 38, 38, 0.08);
    color: #b91c1c;
    border-radius: var(--radius-input);
    padding: 10px 14px;
    font-size: 13px;
    margin-bottom: 16px;
    text-align: center;
}

.login-form { display: flex; flex-direction: column; gap: 16px; }

.login-field { display: flex; flex-direction: column; gap: 6px; }
.login-field label { font-size: 13px; font-weight: 600; color: var(--text-color); }
.login-field input {
    padding: 11px 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-input);
    font-family: inherit;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}
.login-field input:focus { border-color: var(--secondary-color); }

.login-submit {
    background: var(--secondary-color);
    color: var(--white);
    border: none;
    border-radius: var(--radius-btn);
    padding: 12px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}
.login-submit:hover { background: var(--primary-color); transform: translateY(-1px); }
