/* ==========================================
   Hero Section Styles
   ========================================== */
.hero-section {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    background: var(--primary-gradient);
}
.hero-description-wrap {
    padding: 20px;
    border-radius: var(--border-radius);
    backdrop-filter: blur(10px);
    background-color: var(--hero-home-bg-color);
}
.hero-template {}

.hero-background{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-gradient);
    z-index: 1;
}

.footer-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg,
        rgba(27, 74, 115, 0.9) 0%,
        rgba(13, 42, 74, 0.8) 50%,
        rgba(27, 74, 115, 0.9) 100%
    );
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-content {
    padding: 15px 0;
    color: white;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    padding: 8px 20px;
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 500;
    line-height: 1.2;
    margin-bottom: 25px;
}

.hero-title .text-primary {
    color: var(--accent-color) !important;
    text-shadow: 0 0 20px rgba(212, 168, 83, 0.3);
}

.hero-subtitle {
    font-size: 1.3rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}

.hero-stats {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-color);
    line-height: 1;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

@media (max-width: 992px) {
    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
        margin-bottom: 30px;
    }
    .hero-buttons .btn {
        width: 100%;
        text-align: center;
    }
    .building-hero-image-column {
        order: -1;
        margin-bottom:20px;
    }
}


.hero-btn-primary {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--text-dark);
    font-weight: 600;
    padding: 15px 35px;
    border-radius: var(--border-radius);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 8px 25px rgba(212, 168, 83, 0.3);
    transition: all 0.3s ease;
}

.hero-btn-primary:hover,
.hero-btn-primary:focus {
    background: var(--accent-light);
    border-color: var(--accent-light);
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(212, 168, 83, 0.4);
}

.hero-btn-secondary {
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    font-weight: 600;
    padding: 15px 35px;
    border-radius: var(--border-radius);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.hero-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: white;
    color: white;
    transform: translateY(-3px);
}

/* Hero Image Styles */
.hero-image-container {
    position: relative;
    height: 600px;
}

.hero-image-background {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 80%;
    height: 80%;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-image {
    position: relative;
    height: 100%;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    z-index: 2;
}

.main-building-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    background: linear-gradient(135deg,
        #667eea 0%,
        #764ba2 50%,
        #f093fb 100%);
}

.main-building-image:not([src]),
.main-building-image[src=""] {
    background: linear-gradient(135deg,
        var(--primary-color) 0%,
        var(--secondary-color) 50%,
        #667eea 100%);
}

.hero-image:hover .main-building-image {
    transform: scale(1.05);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(44, 95, 74, 0.3) 0%,
        rgba(0, 0, 0, 0.2) 50%,
        rgba(44, 95, 74, 0.4) 100%
    );
    display: flex;
    align-items: flex-end;
    padding: 30px;
}

.quality-badge {
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary-color);
    padding: 15px 25px;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.quality-badge i {
    color: var(--accent-color);
    font-size: 1.2rem;
}

/* Floating Cards */
.floating-elements {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.floating-card {
    position: absolute;
    background: white;
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 15px;
    min-width: 200px;
    animation: float 6s ease-in-out infinite;
    z-index: 3;
}

.card-1 {
    top: 15%;
    left: -10%;
    animation-delay: 0s;
}

.card-2 {
    bottom: 15%;
    right: -15%;
    animation-delay: 3s;
}

.card-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.card-title {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 2px;
}

.card-subtitle {
    font-size: 0.85rem;
    color: var(--text-light);
}


/* Navbar Styles */
.navbar {
    transition: all 0.3s ease;
    padding: 1rem 0;
}

.navbar-brand {
    font-size: 1.5rem;
    color: var(--primary-color) !important;
}

.nav-link {
    font-weight: 500;
    color: var(--text-dark) !important;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 100%;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, rgba(44, 95, 74, 0.1) 0%, rgba(26, 58, 46, 0.05) 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: -50%;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%23E9ECEF" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
    z-index: -1;
}

.hero-image img {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-heavy);
}

/* Cards */
.card {
    border: none;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
    overflow: hidden;
}

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

.building-card {
    cursor: pointer;
    position: relative;
}

/* .building-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(44, 95, 74, 0.9) 0%, rgba(26, 58, 46, 0.9) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
} */

/* .building-card:hover::before {
    opacity: 1;
} */

.building-card .card-body {
    position: relative;
    z-index: 2;
}

/* Progress Steps */
.progress-steps {
    margin: 2rem 0;
    padding: 0 1rem;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
}

.step-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--border-color);
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    margin-bottom: 10px;
}

.step.active .step-circle {
    background-color: var(--primary-color);
    color: white;
    box-shadow: var(--shadow-medium);
}

.step.completed .step-circle {
    background-color: var(--secondary-color);
    color: white;
}

.step-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-light);
    text-align: center;
}

.step.active .step-label,
.step.completed .step-label {
    color: var(--text-dark);
    font-weight: 600;
}

.step-line {
    height: 2px;
    background-color: var(--border-color);
    margin: 0 1rem;
    position: relative;
    top: -35px;
    z-index: 1;
}

/* Apartment Grid */
.apartment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
    margin: 1rem 0;
}

.apartment-item {
    aspect-ratio: 1;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    font-weight: 500;
    position: relative;
}

.apartment-item:hover {
    border-color: var(--primary-color);
    background-color: rgba(44, 95, 74, 0.05);
}

.apartment-item.available {
    border-color: #28a745;
    color: #28a745;
}

.apartment-item.available:hover {
    background-color: #28a745;
    color: white;
}

.apartment-item.reserved {
    border-color: #ffc107;
    color: #ffc107;
    background-color: rgba(255, 193, 7, 0.1);
}

.apartment-item.sold {
    border-color: #dc3545;
    color: #dc3545;
    background-color: rgba(220, 53, 69, 0.1);
    cursor: not-allowed;
}

/* Floor Selector */
.floor-selector {
    margin: 2rem 0;
}

.floor-btn {
    min-width: 60px;
    height: 60px;
    border-radius: var(--border-radius);
    margin: 0 5px 10px 0;
    font-weight: 600;
    transition: all 0.3s ease;
}

.floor-btn.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}
.floor-stats {
    display: flex;
    justify-content: space-around;
    margin-bottom: 1rem;
    gap: 20px;
}

/* Booking Form */
.booking-form {
    background: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow-light);
    border: 1px solid var(--border-color);
}

.form-control {
    border-radius: var(--light-border-radius);
    border: 1px solid var(--border-color);
    padding: 12px 15px;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(44, 95, 74, 0.25);
}
.form-control::placeholder {
    color: #cecece;
}

.form-label {
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 8px;
}

/* Apartment Details */
.apartment-details {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    margin-bottom: 2rem;
}

.apartment-details .badge {
    font-size: 0.9rem;
    padding: 8px 15px;
}

/* Feature Icons */
.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    margin-bottom: 1rem;
}

/* ==========================================
   New Floor Plan & Apartment Card Styles
   ========================================== */

/* Floor Plan Photo Styles */
.floor-plan-image-wrapper {
    background: #f8f9fa;
    border-radius: var(--border-radius);
    padding: 20px;
    border: 2px solid #dee2e6;
}

.floor-plan-photo {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.floor-plan-img {
    width: 100%;
    height: auto;
    border-radius: var(--light-border-radius);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    max-height: 500px;
    object-fit: contain;
    background: white;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.floor-plan-img:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.zoom-hint {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 16px;
    border-radius: var(--border-radius);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 8px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.floor-plan-photo:hover .zoom-hint {
    opacity: 1;
}

/* Floor Plan Modal Styles */
.floor-plan-modal-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1a1a1a;
    padding: 20px;
}

.floor-plan-modal-img {
    max-width: 100%;
    max-height: calc(100vh - 200px);
    object-fit: contain;
    border-radius: var(--light-border-radius);
}

.floor-plan-placeholder {
    width: 100%;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border: 2px dashed #dee2e6;
    border-radius: var(--light-border-radius);
}

.floor-plan-placeholder .placeholder-content {
    text-align: center;
    color: #6c757d;
}

/* Floor Description Styles */
.floor-description {
    background: white;
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: var(--shadow-light);
    border-left: 4px solid var(--primary-color);
}

.description-content {
    font-size: 0.95rem;
    line-height: 1.6;
}

.description-item {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    padding: 8px 0;
}

.description-item:last-child {
    margin-bottom: 0;
}

/* Apartment Image Slider Styles */
.apartment-image-slider {
    position: relative;
    margin-bottom: 15px;
    border-radius: var(--border-radius);
    overflow: hidden;
    background: #f8f9fa;
}

.apartment-slider-img {
    height: 200px;
    object-fit: cover;
    border-radius: 0;
}

.apartment-image-placeholder {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    color: #6c757d;
}

.apartment-image-placeholder .placeholder-content {
    text-align: center;
}

/* Carousel Controls Styling */
.apartment-image-slider .carousel-control-prev,
.apartment-image-slider .carousel-control-next {
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    transition: all 0.3s ease;
}

.apartment-image-slider .carousel-control-prev {
    left: 10px;
}

.apartment-image-slider .carousel-control-next {
    right: 10px;
}

.apartment-image-slider .carousel-control-prev:hover,
.apartment-image-slider .carousel-control-next:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: translateY(-50%) scale(1.1);
}

.apartment-image-slider .carousel-control-prev-icon,
.apartment-image-slider .carousel-control-next-icon {
    width: 16px;
    height: 16px;
}

/* Image Counter */
.image-counter {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 8px;
    border-radius: var(--border-radius);
    font-size: 0.75rem;
    font-weight: 500;
}

/* Updated Apartment Card Styles */
.apartment-card {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.apartment-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    border-color: var(--primary-color);
}

.apartment-card.selected {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(35, 103, 162, 0.15);
    transform: translateY(-5px);
}

.apartment-card-header {
    padding: 15px 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.apartment-card-body {
    padding: 15px 20px;
}

.apartment-card-footer {
    padding: 0 20px 20px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Legend Styles Update */
.apartment-legend {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #495057;
}

.legend-item .first-room {
    background: rgb(247, 205, 192);
    border-color: rgb(247, 205, 192);
}

.legend-item .second-room {
    background: rgb(247, 207, 252);
    border-color: rgb(247, 207, 252);
}

.legend-item .third-room {
    background: rgb(161, 187, 250);
    border-color: rgb(161, 187, 250);
}

/* Responsive Adjustments for New Design */
@media (max-width: 768px) {
    .callback-btn-header {
        display: none;
    }
    .floor-plan-image-wrapper {
        padding: 15px;
    }

    .floor-description {
        padding: 20px;
        margin-top: 20px;
    }

    .description-content .row {
        --bs-gutter-x: 1rem;
    }

    .apartment-slider-img {
        height: 180px;
    }

    .apartment-image-placeholder {
        height: 180px;
    }

    .apartment-card-footer {
        flex-direction: column;
    }

    .apartment-card-footer .btn {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .hero-content {
        padding: 20px 0;
    }
    .hero-title {
        font-size: 2.5rem;
    }

    .phone-number__text {
        display: none;
    }
    .floor-plan-img {
        max-height: 300px;
    }

    .floor-plan-placeholder {
        height: 250px;
    }

    .floor-plan-section {
        display: none;
    }

    .apartment-slider-img {
        height: 160px;
    }

    .apartment-image-placeholder {
        height: 160px;
    }

    .apartment-legend {
        gap: 15px;
    }

    .legend-item {
        font-size: 0.85rem;
    }
}

/* ==========================================
   Documents Page Styles
   ========================================== */

/* Documents Hero Section */
.documents-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    min-height: 400px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.documents-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(245, 176, 65, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
}

.documents-hero .breadcrumb {
    background: none;
    margin: 0;
    padding: 0;
}

.documents-hero .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.documents-hero .breadcrumb-item a:hover {
    color: var(--accent-color);
}

.documents-hero .breadcrumb-item.active {
    color: rgba(255, 255, 255, 0.6);
}

.documents-hero .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.5);
    content: "/";
}

/* Documents Section */
.documents-section {
    padding: 80px 0;
    background: #FAFBFC;
}

.section-header {
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* Document Categories */
.document-category {
    background: white;
    border-radius: var(--border-radius);
    padding: 40px;
    box-shadow: var(--shadow-light);
    margin-bottom: 50px;
    border: 1px solid var(--border-color);
}

.category-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #F0F0F0;
}

.category-title i {
    color: var(--accent-color);
    font-size: 1.6rem;
}

/* Document Cards */
.document-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: var(--shadow-light);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.document-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
    border-color: var(--primary-color);
}

.document-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.document-icon {
    display: flex;
    align-items: center;
    gap: 8px;
}

.document-icon i {
    font-size: 2.5rem;
    color: #E74C3C;
}

.file-type {
    background: var(--primary-color);
    color: white;
    padding: 4px 8px;
    border-radius: var(--light-border-radius);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.document-meta {
    text-align: right;
    font-size: 0.85rem;
    color: var(--text-light);
}

.file-size {
    display: block;
    font-weight: 600;
    color: var(--text-dark);
}

.file-date {
    display: block;
    margin-top: 2px;
}

.document-body {
    flex: 1;
    margin-bottom: 20px;
}

.document-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 12px;
    line-height: 1.4;
}

.document-description {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}

.document-actions {
    display: flex;
    gap: 12px;
}

.btn-download {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    font-size: 0.9rem;
    padding: 10px 20px;
    border-radius: var(--light-border-radius);
    flex: 1;
    text-align: center;
    transition: all 0.3s ease;
}

.btn-download:hover {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    color: white;
    transform: translateY(-2px);
}

.btn-view {
    border-color: var(--border-color);
    color: var(--text-light);
    font-size: 0.9rem;
    padding: 10px 20px;
    border-radius: var(--light-border-radius);
    flex: 1;
    text-align: center;
    transition: all 0.3s ease;
}

.btn-view:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: rgba(44, 95, 74, 0.05);
}

/* Documents Contact Info */
.documents-contact-info {
    background: white;
    border-radius: var(--border-radius);
    padding: 40px;
    box-shadow: var(--shadow-light);
    border: 1px solid var(--border-color);
    margin-top: 40px;
}

.documents-contact-info h4 {
    color: var(--text-dark);
    font-weight: 600;
}

.documents-contact-info p {
    color: var(--text-light);
    font-size: 1rem;
}

/* Documents FAQ */
.documents-faq {
    background: #F8F9FA;
    padding: 80px 0;
}

.documents-faq .accordion-item {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius) !important;
    margin-bottom: 15px;
    overflow: hidden;
    background: white;
    box-shadow: var(--shadow-light);
}

.documents-faq .accordion-button {
    background: white;
    border: none;
    padding: 20px 25px;
    font-weight: 600;
    color: var(--text-dark);
    border-radius: var(--border-radius) !important;
    transition: all 0.3s ease;
}

.documents-faq .accordion-button:not(.collapsed) {
    background: var(--primary-color);
    color: white;
    box-shadow: none;
}

.documents-faq .accordion-button:focus {
    box-shadow: none;
    border-color: transparent;
}

.documents-faq .accordion-body {
    padding: 20px 25px;
    color: var(--text-light);
    line-height: 1.6;
    border-top: 1px solid var(--border-color);
}

.documents-faq .accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23666'%3e%3cpath fill-rule='evenodd' 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");
}

.documents-faq .accordion-button:not(.collapsed)::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ffffff'%3e%3cpath fill-rule='evenodd' 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");
}

/* ==========================================
   Documents Preview Section (Home Page)
   ========================================== */

.documents-preview {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.documents-preview-content h2 {
    color: var(--text-dark);
    font-weight: 700;
}

.documents-preview-content .lead {
    color: var(--text-light);
    font-size: 1.125rem;
    line-height: 1.7;
}

.documents-features {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.feature-item {
    display: flex;
    align-items: center;
    font-size: 1rem;
    color: var(--text-dark);
    font-weight: 500;
}

.feature-item i {
    font-size: 1.2rem;
    width: 24px;
}

.documents-preview-visual {
    position: relative;
    height: 400px;
}

.document-cards {
    position: relative;
    height: 100%;
}

.floating-document-card {
    position: absolute;
    background: white;
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 15px;
    min-width: 250px;
    transition: all 0.6s ease;
    animation: float 6s ease-in-out infinite;
}

.floating-document-card.card-1 {
    top: 20px;
    left: 20px;
    animation-delay: 0s;
}

.floating-document-card.card-2 {
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    animation-delay: 2s;
}

.floating-document-card.card-3 {
    bottom: 20px;
    left: 50px;
    animation-delay: 4s;
}

.floating-document-card:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 15px 50px rgba(0,0,0,0.2);
}

.document-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--border-radius);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.document-icon i {
    font-size: 1.4rem;
    color: white;
}

.document-info h6 {
    margin: 0;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.document-info small {
    color: var(--text-light);
    font-size: 0.8rem;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.floating-document-card.card-2 {
    animation-name: floatReverse;
}

@keyframes floatReverse {
    0%, 100% {
        transform: translateY(-50%) translateX(0px);
    }
    50% {
        transform: translateY(-50%) translateX(-5px);
    }
}

/* ==========================================
   Footer Styles
   ========================================== */

/* ==========================================
   Building Details Page Styles
   ========================================== */
.building-details-hero {
    position: relative;
    padding: 25px 0;
    min-height: 53vh;
    overflow: hidden;
    background: var(--gradient-primary);
}

.building-details-hero .hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg,
        rgba(35, 103, 162, 0.9) 0%,
        rgba(13, 42, 74, 0.8) 50%,
        rgba(35, 103, 162, 0.9) 100%
    );
    z-index: 1;
}

.building-details-hero .container {
    position: relative;
    z-index: 2;
}

.building-details-hero .breadcrumb {
    background: none;
    margin: 0;
    padding: 0;
}

.building-details-hero .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.building-details-hero .breadcrumb-item a:hover {
    color: var(--accent-color);
}

.building-details-hero .breadcrumb-item.active {
    color: rgba(255, 255, 255, 0.6);
}

.building-details-hero .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.5);
    content: "/";
}

.building-image-container {
    position: relative;
    flex: 1;
    min-height: 370px;
    border-radius: var(--border-radius);
    overflow: hidden;
    display: flex;
}

.building-main-image {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s ease;
}

.building-image-container:hover .building-main-image {
    transform: scale(1.05);
}

.building-status-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10;
}

.building-status-badge .badge {
    font-size: 1rem;
    padding: 8px 16px;
    border-radius: var(--border-radius);
    font-weight: 600;
}

.building-stats .stat-card {
    background: rgba(255, 255, 255, 0.15);
    border-radius: var(--border-radius);
    padding: 15px;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.building-stats .stat-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent-color);
    line-height: 1;
    margin-bottom: 5px;
}

.building-stats .stat-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Building Info Section */
.building-info-section {
    background: #FAFBFC;
}

.building-info-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 40px;
    box-shadow: var(--shadow-light);
    border: 1px solid var(--border-color);
}

.building-info-card .info-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
}

.building-info-card .info-item:last-child {
    margin-bottom: 0;
}

.building-info-card .info-item i {
    font-size: 1.2rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.building-info-card .info-item strong {
    color: var(--text-dark);
}

.building-info-card .info-item p {
    margin: 5px 0 0 0;
    color: var(--text-light);
}

.building-description {
    color: var(--text-light);
    line-height: 1.7;
}

.cta-section {
    border-radius: var(--border-radius);
}

.contact-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow-light);
    border: 1px solid var(--border-color);
    height: fit-content;
    position: sticky;
    top: 100px;
}

.contact-card .contact-item {
    display: flex;
    align-items: center;
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.contact-card .contact-item:hover {
    color: var(--primary-color);
}

.contact-card .contact-item a {
    color: inherit;
    text-decoration: none;
}

/* Apartments Section */
.apartments-section {
    background: #F8F9FA;
}

.floor-selector {
    background: white;
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow-light);
    border: 1px solid var(--border-color);
    margin-bottom: 40px;
}

.floor-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.floor-btn {
    min-width: 60px;
    height: 60px;
    border: 2px solid var(--border-color);
    background: white;
    color: var(--text-dark);
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

.floor-btn:hover,
.floor-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.floor-apartments {
    background: white;
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow-light);
    border: 1px solid var(--border-color);
    margin-bottom: 30px;
}

.apartment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.apartment-item {
    aspect-ratio: 1;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    position: relative;
    overflow: hidden;
}

.apartment-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

.apartment-item.available {
    border-color: #28a745;
}

.apartment-item.available:hover {
    background: #28a745;
    color: white;
}

.apartment-item.reserved {
    border-color: #ffc107;
    background-color: rgba(255, 193, 7, 0.1);
}

.apartment-item.sold {
    border-color: #dc3545;
    background-color: rgba(220, 53, 69, 0.1);
    cursor: not-allowed;
    opacity: 0.7;
}

.apartment-number {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.apartment-info {
    font-size: 0.85rem;
    text-align: center;
}

.apartment-legend {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.legend-color {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid;
}

.legend-color .available {
    background: #d4edda;
    border-color: #28a745;
}

.legend-color .reserved {
    background: #fff3cd;
    border-color: #ffc107;
}

.legend-color .sold {
    background: #f8d7da;
    border-color: #dc3545;
}

/* Building Card Enhancements for List */
.building-card {
    transition: all 0.3s ease;
    border: none;
    box-shadow: var(--shadow-light);
    overflow: hidden;
    text-decoration: none;
}

.building-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-heavy);
}

.building-card .card-img-wrapper {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.building-card .card-img-top {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.building-card:hover .card-img-top {
    transform: scale(1.05);
}

.building-card .building-status-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 10;
}

.building-card .stat-item {
    text-align: center;
    padding: 10px;
    background: var(--bg-light);
    border-radius: var(--light-border-radius);
}

.building-card .stat-number {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.building-card .stat-label {
    font-size: 0.8rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Horizontal Building Cards for #properties section */
.building-card-horizontal {
    transition: all 0.3s ease;
    border: none;
    box-shadow: var(--shadow-light);
    overflow: hidden;
}

.building-card-horizontal:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-heavy);
}

.building-card-horizontal .row {
    height: 100%;
}

.building-card-horizontal a img {
    transition: transform 0.3s ease;
}

.building-card-horizontal a:hover img {
    transform: scale(1.05);
}

.building-card-horizontal .building-status-badge-horizontal {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 10;
}

.building-card-horizontal .card-body {
    display: flex;
    flex-direction: column;
    min-height: 280px;
}

.building-card-horizontal .btn {
    transition: all 0.3s ease;
}

.building-card-horizontal .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(44, 95, 74, 0.2);
}

/* Building Card with Slider for Projects Section */
.building-card-with-slider {
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    border-radius: var(--border-radius);
}

.building-card-with-slider:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    transform: translateY(-5px);
}

.building-slider-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 350px;
    overflow: hidden;
    border-radius: var(--border-radius) 0 0 var(--border-radius);
}

.building-slider-wrapper .swiper {
    width: 100%;
    height: 100%;
}

.building-slider-wrapper .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
}

.building-slider-wrapper .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Slider Navigation */
/* .building-slider-wrapper .swiper-button-prev,
.building-slider-wrapper .swiper-button-next { */
.swiper-button-prev,
.swiper-button-next {
    color: white;
    background: var(--swiper-btn-bg);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

/* .building-slider-wrapper .swiper-button-prev:after,
.building-slider-wrapper .swiper-button-next:after { */
.swiper-button-prev:after,
.swiper-button-next:after {
    font-size: 18px;
    font-weight: bold;
}

/* .building-slider-wrapper .swiper-button-prev:hover,
.building-slider-wrapper .swiper-button-next:hover { */
.swiper-button-prev:hover,
.swiper-button-next:hover {
    background: var(--swiper-btn-bg);
    transform: scale(1.1);
}

/* Slider Pagination */
/* .building-slider-wrapper .swiper-pagination { */
.swiper-pagination {
    bottom: 15px;
}

/* .building-slider-wrapper .swiper-pagination-bullet { */
.swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: var(--swiper-bullet-bg);
    opacity: 0.6;
    transition: all 0.3s ease;
}

/* .building-slider-wrapper .swiper-pagination-bullet-active { */
.swiper-pagination-bullet-active {
    background: var(--primary-color);
    opacity: 0.6;
    width: 24px;
    border-radius: var(--light-border-radius);
}

/* Status Badge for Slider */
.building-status-badge-slider {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 10;
}

.building-status-badge-slider .badge {
    font-size: 0.85rem;
    padding: 8px 16px;
    border-radius: var(--border-radius);
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Building Stats Cards */
.building-stat-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: #f8f9fa;
    border-radius: var(--light-border-radius);;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.building-stat-card:hover {
    background: white;
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(44, 95, 74, 0.1);
    transform: translateY(-2px);
}

.building-stat-card .stat-icon {
    font-size: 1.8rem;
    min-width: 40px;
}

.building-stat-card .stat-content small {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.building-stat-card .stat-content strong {
    font-size: 1rem;
    color: var(--primary-color);
}

/* Card Body */
.building-card-with-slider .card-body {
    padding: 2rem;
}

.building-card-with-slider .card-title {
    font-size: 1.75rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.building-card-with-slider .card-text {
    line-height: 1.6;
}

.building-card-with-slider .btn-primary {
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--light-border-radius);
    transition: all 0.3s ease;
}

.building-card-with-slider .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(44, 95, 74, 0.25);
}

/* ==========================================
   Promotions Section (Акции)
   ========================================== */

.promotions-section {
    background: white;
}

.promotion-card-with-slider {
    border: none;
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.promotion-card-with-slider:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.promotion-image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 350px;
    overflow: hidden;
}

.promotion-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s ease;
}

.promotion-card-with-slider:hover .promotion-img {
    transform: scale(1.05);
}

.promotion-urgency-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.promotion-urgency-badge .badge {
    font-size: 0.9rem;
    padding: 8px 16px;
    border-radius: var(--border-radius);
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
}

.promotion-placeholder {
    padding: 40px;
}

.promotion-card-with-slider .card-body {
    background: white;
}

.promotion-card-with-slider .card-title {
    color: var(--text-dark);
    font-size: 1.75rem;
    font-weight: 700;
}

.promotion-dates {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    background: var(--bg-light);
    border-radius: var(--light-border-radius);
    margin-bottom: 15px;
}

.promotion-description {
    color: var(--text-muted);
    line-height: 1.6;
    font-size: 1rem;
}

.promotions-slider-container {
    margin-bottom: 30px;
}

.promotions-button-next,
.promotions-button-prev {
    color: var(--primary-color);
    background: white;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

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

.promotions-button-next:after,
.promotions-button-prev:after {
    font-size: 18px;
    font-weight: bold;
}

.promotions-pagination {
    bottom: -40px !important;
}

.promotions-pagination .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: var(--text-muted);
    opacity: 0.5;
}

.promotions-pagination .swiper-pagination-bullet-active {
    background: var(--primary-color);
    opacity: 1;
}

/* Responsive Design for Promotions */
@media (max-width: 768px) {
    .promotion-image-wrapper {
        min-height: 250px;
        border-radius: var(--border-radius) var(--border-radius) 0 0;
    }

    .promotion-card-with-slider .card-body {
        padding: 1.5rem;
    }

    .promotion-card-with-slider .card-title {
        font-size: 1.4rem;
    }

    .promotion-urgency-badge {
        top: 10px;
        right: 10px;
    }

    .promotion-urgency-badge .badge {
        font-size: 0.8rem;
        padding: 6px 12px;
    }
}

@media (max-width: 576px) {
    .promotion-card-with-slider .btn-primary {
        width: 100%;
    }
}

/* ==========================================
   Promotion Popup Modal
   ========================================== */

.promotion-popup-content {
    border: none;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.promotion-popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 1060;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.9;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.promotion-popup-close:hover {
    opacity: 1;
    transform: rotate(90deg);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.promotion-popup-body {
    position: relative;
    padding: 0;
    cursor: pointer;
}

.promotion-popup-link {
    display: block;
    position: relative;
    text-decoration: none;
    overflow: hidden;
}

.promotion-popup-image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.promotion-popup-link:hover .promotion-popup-image {
    transform: scale(1.05);
}

.promotion-popup-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
    padding: 30px;
    color: white;
    transition: all 0.3s ease;
}

.promotion-popup-link:hover .promotion-popup-overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.3) 100%);
}

.promotion-popup-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.promotion-popup-cta {
    display: inline-flex;
    align-items: center;
    padding: 12px 24px;
    background: var(--primary-color);
    color: white;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(44, 95, 74, 0.3);
}

.promotion-popup-link:hover .promotion-popup-cta {
    background: var(--accent-color);
    color: var(--text-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(242, 169, 59, 0.4);
}

/* Анимация появления модального окна */
#promotionPopupModal .modal-dialog {
    animation: modalSlideIn 0.5s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Responsive для popup */
@media (max-width: 768px) {
    .promotion-popup-title {
        font-size: 1.4rem;
    }

    .promotion-popup-overlay {
        padding: 20px;
    }

    .promotion-popup-cta {
        font-size: 0.9rem;
        padding: 10px 20px;
    }

    .promotion-popup-close {
        width: 35px;
        height: 35px;
        top: 10px;
        right: 10px;
    }
}

@media (max-width: 576px) {
    .promotion-popup-title {
        font-size: 1.2rem;
        margin-bottom: 10px;
    }

    .promotion-popup-overlay {
        padding: 15px;
    }

    .promotion-popup-cta {
        font-size: 0.85rem;
        padding: 8px 16px;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .building-slider-wrapper {
        min-height: 280px;
        border-radius: var(--border-radius) var(--border-radius) 0 0;
    }

    .building-card-with-slider .card-body {
        padding: 1.5rem;
    }

    .building-card-with-slider .card-title {
        font-size: 1.4rem;
    }

    .building-stat-card {
        padding: 12px;
    }

    .building-stat-card .stat-icon {
        font-size: 1.5rem;
        min-width: 35px;
    }

    .building-stat-card .stat-content small {
        font-size: 0.7rem;
    }

    .building-stat-card .stat-content strong {
        font-size: 0.9rem;
    }

    /* .building-slider-wrapper .swiper-button-prev,
    .building-slider-wrapper .swiper-button-next { */
    .swiper-button-prev,
    .swiper-button-next {
        width: 35px;
        height: 35px;
    }

    /* .building-slider-wrapper .swiper-button-prev:after,
    .building-slider-wrapper .swiper-button-next:after { */
    .swiper-button-prev:after,
    .swiper-button-next:after {
        font-size: 16px;
    }
}

@media (max-width: 576px) {
    .building-card-with-slider .btn-primary {
        width: 100%;
    }
}

/* Responsive Design for Building Details */
@media (max-width: 768px) {
    .building-details-hero {
        min-height: 50vh;
    }

    .building-image-container {
        height: 300px;
    }

    .building-stats {
        margin-bottom: 30px;
    }

    .building-stats .stat-card {
        margin-bottom: 15px;
    }

    .building-info-card,
    .contact-card {
        padding: 25px;
    }

    .contact-card {
        position: static;
        margin-top: 30px;
    }

    /* Horizontal building cards on mobile */
    .building-card-horizontal .col-md-4 {
        min-height: 250px;
    }

    .building-card-horizontal .card-body {
        padding: 1.25rem !important;
        min-height: auto;
    }

    .building-card-horizontal h4 {
        font-size: 1.3rem;
    }

    .building-card-horizontal .btn {
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
    }

    .floor-buttons {
        gap: 8px;
    }

    .floor-btn {
        min-width: 50px;
        height: 50px;
        font-size: 0.9rem;
    }

    .apartment-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 12px;
    }

    .apartment-number {
        font-size: 1.2rem;
    }

    .apartment-info {
        font-size: 0.8rem;
    }

    .apartment-legend {
        gap: 20px;
    }

    .legend-item {
        font-size: 0.85rem;
    }
}

/* ==========================================
   Projects Page Styles
   ========================================== */
.page-hero {
    position: relative;
    padding: 45px 0;
    overflow: hidden;
    background: var(--gradient-primary);
    margin: 0 auto;
}
/* .projects-hero {
    position: relative;
    padding: 25px 0;
    min-height: 50vh;
    overflow: hidden;
    background: var(--gradient-primary);
} */


.page-hero .container {
    position: relative;
    z-index: 2;
}

.page-hero .breadcrumb {
    background: none;
    margin: 0;
    padding: 0;
}

.page-hero .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-hero .breadcrumb-item a:hover {
    color: var(--accent-color);
}

.page-hero .breadcrumb-item.active {
    color: rgba(255, 255, 255, 0.6);
}

.page-hero .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.5);
    content: "/";
}

.projects-section {
    background: #FAFBFC;
}

.section-header {
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

.info-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 40px;
    box-shadow: var(--shadow-light);
    border: 1px solid var(--border-color);
}

.wrap-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.features-section {
    background: #F8F9FA;
}

.feature-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow-light);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.feature-card .feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
}

.feature-card h5 {
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 15px;
}

/* Responsive Design for Projects */
@media (max-width: 768px) {
    .projects-hero {
        min-height: 40vh;
    }

    .section-title {
        font-size: 2rem;
    }

    .section-subtitle {
        font-size: 1rem;
    }

    .info-card {
        padding: 30px 20px;
    }

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

    .wrap-buttons .btn {
        width: 100%;
        white-space: nowrap;
        margin-right: 0 !important;
    }

    .feature-card {
        padding: 25px;
        margin-bottom: 20px;
    }

    .feature-card .feature-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}

/* ==========================================
   Privacy Policy Page Styles
   ========================================== */
.privacy-hero {
    position: relative;
    padding: 80px 0 60px;
    min-height: 50vh;
    overflow: hidden;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
}

/* .privacy-hero .hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg,
        rgba(35, 103, 162, 0.9) 0%,
        rgba(13, 42, 74, 0.85) 50%,
        rgba(35, 103, 162, 0.9) 100%
    );
    z-index: 1;
} */

.privacy-hero .container {
    position: relative;
    z-index: 2;
}

.privacy-hero .breadcrumb {
    background: none;
    margin: 0;
    padding: 0;
    justify-content: center;
}

.privacy-hero .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color 0.3s ease;
}

.privacy-hero .breadcrumb-item a:hover {
    color: var(--accent-color);
}

.privacy-hero .breadcrumb-item.active {
    color: rgba(255, 255, 255, 0.7);
}

.privacy-hero .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.6);
    content: "/";
}

.privacy-hero .hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
}

.privacy-hero .hero-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto;
}

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

/* Privacy Content Styles */
.privacy-content-section {
    background: #f8f9fa;
}

.privacy-content {
    background: white;
    border-radius: var(--border-radius);
    padding: 50px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.privacy-section {
    margin-bottom: 3rem;
}

.privacy-section:last-child {
    margin-bottom: 0;
}

.privacy-section-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--accent-color);
}

.privacy-section-content {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-dark);
}

.privacy-section-content p {
    margin-bottom: 1rem;
}

.privacy-list {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.privacy-list li {
    margin-bottom: 0.75rem;
    line-height: 1.8;
}

.privacy-list ul {
    margin-top: 0.5rem;
    margin-left: 1rem;
}

.privacy-list ul li {
    margin-bottom: 0.5rem;
}

/* Responsive Design for Privacy Policy */
@media (max-width: 992px) {
    .privacy-content {
        padding: 40px 30px;
    }
}

@media (max-width: 768px) {
    .privacy-hero {
        min-height: 40vh;
        padding: 60px 0 40px;
    }

    .privacy-hero .hero-title {
        font-size: 2rem;
    }

    .privacy-hero .hero-subtitle {
        font-size: 1rem;
    }

    .privacy-content {
        padding: 30px 20px;
    }

    .privacy-section-title {
        font-size: 1.5rem;
    }
}

/* ==========================================
   Footer Styles
   ========================================== */
.site-footer {
     background: linear-gradient(135deg,
        rgba(27, 74, 115, 0.9) 0%,
        rgba(13, 42, 74, 0.8) 50%,
        rgba(27, 74, 115, 0.9) 100%
    );
    color: white;
    margin-top: 60px;
}

.footer-logo-image {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.footer-logo-text {
    font-family: var(--title-font);
    font-size: 1.9rem;
    font-weight: 700;
    color: var(--accent-color);
    letter-spacing: 1px;
}

.footer-description {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0;
    line-height: 1.6;
}

.footer-title {
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--accent-color);
}

.footer-contact p {
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.footer-contact i {
    color: var(--accent-color);
    font-size: 1rem;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    text-decoration: none;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--accent-color);
    color: var(--text-dark);
    transform: translateY(-3px);
}

.footer-divider {
    border-color: rgba(255, 255, 255, 0.2);
    margin: 30px 0 20px 0;
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0;
    font-size: 0.9rem;
}

.footer-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--accent-color);
}

@media (max-width: 768px) {
    .footer-social {
        margin-top: 15px;
    }

    .footer-logo-image {
        height: 40px;
    }

    .footer-logo-text {
        font-size: 1.3rem;
    }

    .header-logo .logo-text,
    .side-menu-header .logo .logo-text {
        font-size: 1.5rem;
    }

    .header-logo .logo-image {
        height: 35px;
    }

    .side-menu-header .logo .logo-image {
        height: 30px;
    }
}

/* ==========================================
   Modern Apartment Cards Styles
   ========================================== */

/* Modern Apartment Filters */
.apartment-filters {
    background: white;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border: 1px solid #e9ecef;
    margin-bottom: 2rem;
}

.apartment-filters .form-label {
    font-weight: 500;
    color: #495057;
    margin-bottom: 0.5rem;
}

.apartment-filters .form-control,
.apartment-filters .form-select {
    border: 1px solid #ced4da;
    border-radius: var(--light-border-radius);
    padding: 0.5rem 0.75rem;
    font-size: 0.95rem;
}

.apartment-filters .form-control:focus,
.apartment-filters .form-select:focus {
    border-color: #2c5282;
    box-shadow: 0 0 0 0.2rem rgba(44, 82, 130, 0.25);
}

#resultsCount {
    font-size: 0.9rem;
    font-weight: 500;
}

/* Modern Apartment Cards Grid */
.apartments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.apartment-card-modern {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    position: relative;
}

.apartment-card-modern:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}

.apartment-card-modern.reserved {
    border-left: 5px solid #ffc107;
}

.apartment-card-modern.sold {
    border-left: 5px solid #6c757d;
    opacity: 0.8;
}

.apartment-card-modern.available {
    border-left: 5px solid #28a745;
}

/* Apartment Gallery */
.apartment-gallery {
    position: relative;
    height: 240px;
    background: #f8f9fa;
}

.gallery-main {
    height: 100%;
    position: relative;
    overflow: hidden;
}

.main-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.main-image:hover {
    transform: scale(1.05);
}

.gallery-counter {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 6px 12px;
    border-radius: var(--border-radius);
    font-size: 0.85rem;
    font-weight: 500;
}

.favorite-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.favorite-btn:hover {
    background: rgba(255, 255, 255, 1);
    color: #dc3545;
    transform: scale(1.1);
}

.favorite-btn.active {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

.favorite-btn.active:hover {
    background: rgba(220, 53, 69, 0.2);
    color: #dc3545;
}

.gallery-thumbs {
    position: absolute;
    bottom: 12px;
    left: 12px;
    display: flex;
    gap: 8px;
}

.thumb-item {
    width: 50px;
    height: 50px;
    border-radius: var(--light-border-radius);
    overflow: hidden;
    cursor: pointer;
    position: relative;
    border: 2px solid white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

.thumb-item:hover img {
    opacity: 0.8;
}

.thumb-item.has-more .more-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
}

.apartment-placeholder-modern {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    flex-direction: column;
}

.placeholder-icon {
    font-size: 3rem;
    color: #adb5bd;
    margin-bottom: 1rem;
}

.placeholder-text {
    color: #6c757d;
    font-size: 1.1rem;
    font-weight: 500;
}

/* Apartment Info Section */
.apartment-info {
    padding: 1.5rem;
}

.apartment-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.apartment-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.apartment-number {
    font-weight: 700;
    font-size: 1.3rem;
    color: #2c5282;
}

.apartment-rooms {
    background: #f8f9fa;
    color: #495057;
    padding: 4px 12px;
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    font-weight: 500;
}

.apartment-status {
    display: flex;
    align-items: center;
}

.status-badge {
    padding: 6px 14px;
    border-radius: var(--light-border-radius);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.available {
    background: #d1f2eb;
    color: #0e6b47;
}

.status-badge.reserved {
    background: #fff3cd;
    color: #856404;
}

.status-badge.sold {
    background: #f5c6cb;
    color: #721c24;
}

.apartment-specs {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: var(--border-radius);
}

.spec-group {
    display: flex;
    justify-content: space-between;
    width: 100%;
    gap: 2rem;
}

.spec-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.spec-label {
    font-size: 0.85rem;
    color: #6c757d;
    margin-bottom: 4px;
}

.spec-value {
    font-weight: 600;
    font-size: 1.1rem;
    color: #495057;
}

.apartment-price {
    text-align: right;
}

.price-main {
    font-size: 1.4rem;
    font-weight: 700;
    color: #2c5282;
    line-height: 1;
}

.price-per-meter {
    font-size: 0.85rem;
    color: #6c757d;
    margin-top: 2px;
}

.price-mortgage {
    font-size: 0.9rem;
    color: var(--primary-color);
    margin-top: 8px;
    font-weight: 500;
}

.mortgage-amount {
    font-weight: 600;
    color: inherit;
}

.apartment-description {
    font-size: 0.95rem;
    color: #6c757d;
    line-height: 1.5;
    margin-bottom: 1.25rem;
}

/* Action Buttons */
.apartment-actions {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.btn-action {
    flex: 1;
    min-width: 100px;
    padding: 0.65rem 1rem;
    border: none;
    border-radius: var(--light-border-radius);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-action.primary {
    background: #2c5282;
    color: white;
}

.btn-action.primary:hover {
    background: #2a4a7a;
    transform: translateY(-2px);
}

.btn-action.secondary {
    background: white;
    color: #2c5282;
    border: 1px solid #2c5282;
}

.btn-action.secondary:hover {
    background: #2c5282;
    color: white;
}

.btn-action.tertiary {
    background: #28a745;
    color: white;
}

.btn-action.tertiary:hover {
    background: #218838;
    transform: translateY(-2px);
}

.btn-action.disabled {
    background: #e9ecef;
    color: #6c757d;
    cursor: not-allowed;
}

.btn-action.disabled:hover {
    transform: none;
}

/* Apartment Tags */
.apartment-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tag {
    padding: 4px 10px;
    background: #e7f3ff;
    color: #0969da;
    font-size: 0.8rem;
    border-radius: var(--border-radius);
    font-weight: 500;
}

/* No Results Message */
.no-results {
    background: white;
    border-radius: var(--border-radius);
    padding: 3rem;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* Floor Plan Section */
.floor-plan-section {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 2rem;
}

.floor-plan-container h4 {
    color: #2c5282;
    font-weight: 600;
}

/* Apartment Gallery Modal */
 #apartmentGalleryModal .modal-dialog {
    max-width: 90vw;
    max-height: 90vh;
    margin: 5vh auto;
}

#apartmentGalleryModal .modal-content {
    background: #000;
    border: none;
    height: 90vh;
    border-radius: var(--border-radius);
    overflow: hidden;
}

#apartmentGalleryModal .modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 1.5rem;
}

#apartmentGalleryModal .modal-body {
    height: calc(90vh - 80px);
    overflow: hidden;
    padding: 0;
    position: relative;
}

/* Carousel container */
#apartmentGalleryCarousel {
    height: 100%;
    width: 100%;
}

#apartmentGalleryCarousel .carousel-inner {
    height: 100%;
    width: 100%;
}

#apartmentGalleryCarousel .carousel-item {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    position: relative;
    overflow: hidden;
}

#apartmentGalleryCarousel .carousel-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, transparent 30%, rgba(0,0,0,0.3) 100%);
    z-index: 1;
    pointer-events: none;
}

/* Image styling for proper containment */
#apartmentGalleryCarousel .carousel-item img {
    max-height: calc(100% - 40px);
    object-fit: contain;
    width: auto;
    height: auto;
    border-radius: var(--light-border-radius);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 2;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    filter: brightness(1.05) contrast(1.1);
}

/* Navigation controls */
#apartmentGalleryCarousel .carousel-control-prev,
#apartmentGalleryCarousel .carousel-control-next {
    width: 70px;
    height: 70px;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, rgba(35, 103, 162, 0.9), rgba(13, 42, 74, 0.9));
    border-radius: var(--border-radius);
    border: 2px solid rgba(255, 255, 255, 0.3);
    opacity: 0.9;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

#apartmentGalleryCarousel .carousel-control-prev:hover,
#apartmentGalleryCarousel .carousel-control-next:hover {
    background: linear-gradient(135deg, rgba(35, 103, 162, 1), rgba(13, 42, 74, 1));
    opacity: 1;
    transform: translateY(-50%) scale(1.15) rotate(5deg);
    box-shadow: 0 12px 35px rgba(35, 103, 162, 0.4);
    border-color: rgba(255, 255, 255, 0.6);
}

#apartmentGalleryCarousel .carousel-control-prev {
    left: 25px;
}

#apartmentGalleryCarousel .carousel-control-next {
    right: 25px;
}

#apartmentGalleryCarousel .carousel-control-prev-icon,
#apartmentGalleryCarousel .carousel-control-next-icon {
    width: 28px;
    height: 28px;
    filter: brightness(0) invert(1) drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

/* Gallery indicators */
#apartmentGalleryCarousel .carousel-indicators {
    bottom: 25px;
    margin-bottom: 0;
    gap: 12px;
}

#apartmentGalleryCarousel .carousel-indicators button {
    width: 16px;
    height: 16px;
    border-radius: var(--light-border-radius);
    margin: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.6));
    border: 2px solid rgba(255, 255, 255, 0.8);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

#apartmentGalleryCarousel .carousel-indicators button.active {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-color: #fff;
    transform: scale(1.3) rotate(45deg);
    box-shadow: 0 6px 20px rgba(35, 103, 162, 0.4);
}

#apartmentGalleryCarousel .carousel-indicators button:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.9));
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Gallery info panel */
.gallery-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    z-index: 10;
    padding: 20px;
    color: white;
}

.gallery-info h6 {
    margin: 0;
    font-weight: 600;
    color: white;
}

.gallery-info .text-muted {
    color: rgba(255, 255, 255, 0.7) !important;
}

.gallery-info .btn {
    font-size: 0.85rem;
    padding: 6px 12px;
}

/* Close button styling */
#apartmentGalleryModal .btn-close {
    filter: brightness(0) invert(1);
    opacity: 0.8;
    font-size: 1.2rem;
}

#apartmentGalleryModal .btn-close:hover {
    opacity: 1;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    #apartmentGalleryModal .modal-dialog {
        max-width: 100vw;
        max-height: 100vh;
        margin: 0;
        border-radius: 0;
    }

    #apartmentGalleryModal .modal-content {
        height: 100vh;
        border-radius: 0;
    }

    #apartmentGalleryModal .modal-body {
        height: calc(100vh - 80px);
    }

    #apartmentGalleryCarousel .carousel-item {
        padding: 10px;
    }

    #apartmentGalleryCarousel .carousel-item img {
        max-width: calc(100% - 20px);
        max-height: calc(100% - 20px);
    }

    #apartmentGalleryCarousel .carousel-control-prev,
    #apartmentGalleryCarousel .carousel-control-next {
        width: 50px;
        height: 50px;
    }

    #apartmentGalleryCarousel .carousel-control-prev {
        left: 15px;
    }

    #apartmentGalleryCarousel .carousel-control-next {
        right: 15px;
    }

    #apartmentGalleryCarousel .carousel-control-prev-icon,
    #apartmentGalleryCarousel .carousel-control-next-icon {
        width: 20px;
        height: 20px;
    }

    #apartmentGalleryCarousel .carousel-indicators {
        bottom: 15px;
    }

    .gallery-info {
        padding: 15px;
    }

    .gallery-info .btn {
        font-size: 0.8rem;
        padding: 5px 10px;
    }
}

/* Loading state for images */
#apartmentGalleryCarousel .carousel-item.loading {
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, rgba(0,0,0,0.8) 100%);
}

#apartmentGalleryCarousel .carousel-item.loading::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 3px solid rgba(255,255,255,0.3);
    border-top: 3px solid #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ==========================================
   Building Gallery Carousel Styles
   ========================================== */

/* Building gallery carousel height limitation */
#buildingGalleryCarousel {
    max-height: 650px;
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
}

#buildingGalleryCarousel .carousel-inner {
    max-height: 650px;
}

#buildingGalleryCarousel .carousel-item {
    max-height: 650px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border-radius: var(--border-radius);
    position: relative;
    overflow: hidden;
}

#buildingGalleryCarousel .carousel-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, transparent 30%, rgba(0,0,0,0.3) 100%);
    z-index: 1;
    pointer-events: none;
}

#buildingGalleryCarousel .carousel-item img {
    max-height: 650px;
    max-width: 100%;
    object-fit: contain;
    border-radius: var(--border-radius);
    position: relative;
    z-index: 2;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    filter: brightness(1.05) contrast(1.1);
}

/* Custom slide transition effects */
#buildingGalleryCarousel {
    --bs-carousel-transition-duration: 0.4s;
}

#buildingGalleryCarousel .carousel-inner {
    perspective: 1000px;
    transform-style: preserve-3d;
}

#buildingGalleryCarousel .carousel-item {
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Fade and scale effect for slides */
#buildingGalleryCarousel .carousel-item.active {
    opacity: 1;
    transform: scale(1) translateX(0) rotateY(0deg);
}

#buildingGalleryCarousel .carousel-item:not(.active) {
    opacity: 0;
    transform: scale(0.9) rotateY(10deg);
}

/* Zoom effect on image hover */
#buildingGalleryCarousel .carousel-item img:hover {
    transform: scale(1.05);
    filter: brightness(1.1) contrast(1.15) saturate(1.1);
}

/* Loading state for images */
#buildingGalleryCarousel .carousel-item.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 50px;
    height: 50px;
    margin: -25px 0 0 -25px;
    border: 4px solid rgba(255,255,255,0.3);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: gallerySpinner 1s linear infinite;
    z-index: 3;
}

@keyframes gallerySpinner {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Building gallery controls styling */
#buildingGalleryCarousel .carousel-control-prev,
#buildingGalleryCarousel .carousel-control-next {
    width: 70px;
    height: 70px;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, rgba(35, 103, 162, 0.9), rgba(13, 42, 74, 0.9));
    border-radius: var(--border-radius);
    border: 2px solid rgba(255, 255, 255, 0.3);
    opacity: 0.9;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

#buildingGalleryCarousel .carousel-control-prev:hover,
#buildingGalleryCarousel .carousel-control-next:hover {
    background: linear-gradient(135deg, rgba(35, 103, 162, 1), rgba(13, 42, 74, 1));
    opacity: 1;
    transform: translateY(-50%) scale(1.15) rotate(5deg);
    box-shadow: 0 12px 35px rgba(35, 103, 162, 0.4);
    border-color: rgba(255, 255, 255, 0.6);
}

#buildingGalleryCarousel .carousel-control-prev {
    left: 25px;
}

#buildingGalleryCarousel .carousel-control-next {
    right: 25px;
}

#buildingGalleryCarousel .carousel-control-prev-icon,
#buildingGalleryCarousel .carousel-control-next-icon {
    width: 28px;
    height: 28px;
    filter: brightness(0) invert(1) drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

/* Hide gallery captions/descriptions */
#buildingGalleryCarousel .gallery-caption,
#buildingGalleryCarousel .carousel-caption {
    display: none !important;
}

#buildingGalleryCarousel .gallery-overlay {
    display: none !important;
}

/* Building gallery indicators */
#buildingGalleryCarousel .carousel-indicators {
    bottom: 25px;
    margin-bottom: 0;
    gap: 12px;
}

#buildingGalleryCarousel .carousel-indicators button {
    width: 16px;
    height: 16px;
    border-radius: var(--light-border-radius);
    margin: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.6));
    border: 2px solid rgba(255, 255, 255, 0.8);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

#buildingGalleryCarousel .carousel-indicators button.active {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-color: #fff;
    transform: scale(1.3) rotate(45deg);
    box-shadow: 0 6px 20px rgba(35, 103, 162, 0.4);
}

#buildingGalleryCarousel .carousel-indicators button:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.9));
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Mobile responsive for building gallery */
@media (max-width: 768px) {
    #buildingGalleryCarousel {
        max-height: 400px;
    }

    #buildingGalleryCarousel .carousel-inner {
        max-height: 400px;
    }

    #buildingGalleryCarousel .carousel-item {
        max-height: 400px;
        background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    }

    #buildingGalleryCarousel .carousel-item img {
        max-height: 400px;
        object-fit: contain;
    }

    #buildingGalleryCarousel .carousel-control-prev,
    #buildingGalleryCarousel .carousel-control-next {
        width: 35px;
        height: 35px;
        border-radius: var(--border-radius);
    }

    #buildingGalleryCarousel .carousel-control-prev {
        left: 15px;
    }

    #buildingGalleryCarousel .carousel-control-next {
        right: 15px;
    }

    #buildingGalleryCarousel .carousel-control-prev-icon,
    #buildingGalleryCarousel .carousel-control-next-icon {
        width: 22px;
        height: 22px;
    }

    #buildingGalleryCarousel .carousel-indicators {
        bottom: 15px;
        gap: 8px;
    }

    #buildingGalleryCarousel .carousel-indicators button {
        width: 12px;
        height: 12px;
        border-radius: var(--light-border-radius);
    }
}

/* Hover effect for apartment gallery indicators */
#apartmentGalleryCarousel .carousel-indicators button:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.9));
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Custom slide transition effects for apartment gallery */
#apartmentGalleryCarousel {
    --bs-carousel-transition-duration: 0.4s;
}

#apartmentGalleryCarousel .carousel-inner {
    perspective: 1000px;
    transform-style: preserve-3d;
}

#apartmentGalleryCarousel .carousel-item {
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Fade and scale effect for slides */
#apartmentGalleryCarousel .carousel-item.active {
    opacity: 1;
    transform: scale(1) translateX(0) rotateY(0deg);
}

#apartmentGalleryCarousel .carousel-item:not(.active) {
    opacity: 0;
    transform: scale(0.9) rotateY(10deg);
}

/* Zoom effect on image hover */
#apartmentGalleryCarousel .carousel-item img:hover {
    transform: scale(1.05);
    filter: brightness(1.1) contrast(1.15) saturate(1.1);
}

/* Loading state for images */
#apartmentGalleryCarousel .carousel-item.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 50px;
    height: 50px;
    margin: -25px 0 0 -25px;
    border: 4px solid rgba(255,255,255,0.3);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: apartmentGallerySpinner 1s linear infinite;
}

@keyframes apartmentGallerySpinner {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Mobile responsive for apartment gallery */
@media (max-width: 768px) {
    #apartmentGalleryCarousel {
        max-height: 400px;
    }

    #apartmentGalleryCarousel .carousel-inner {
        max-height: 400px;
    }

    #apartmentGalleryCarousel .carousel-item {
        max-height: 400px;
        background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    }

    #apartmentGalleryCarousel .carousel-item img {
        max-height: 400px;
        object-fit: contain;
    }

    #apartmentGalleryCarousel .carousel-control-prev,
    #apartmentGalleryCarousel .carousel-control-next {
        width: 35px;
        height: 35px;
        border-radius: var(--border-radius);
    }

    #apartmentGalleryCarousel .carousel-control-prev {
        left: 15px;
    }

    #apartmentGalleryCarousel .carousel-control-next {
        right: 15px;
    }

    #apartmentGalleryCarousel .carousel-control-prev-icon,
    #apartmentGalleryCarousel .carousel-control-next-icon {
        width: 22px;
        height: 22px;
    }

    #apartmentGalleryCarousel .carousel-indicators {
        bottom: 15px;
        gap: 8px;
    }

    #apartmentGalleryCarousel .carousel-indicators button {
        width: 12px;
        height: 12px;
        border-radius: var(--light-border-radius);
    }
}

/* ==========================================
   Mortgage Calculator - Site Style Integration
   ========================================== */

/* Main Calculator Section */
.mortgage-calculator-section {
    background: #d3e1ee;
    position: relative;
    overflow: hidden;
}

.mortgage-calculator-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(44, 95, 74, 0.02) 0%, rgba(139, 188, 74, 0.02) 100%);
    z-index: 1;
}

.calculator-wrapper {
    position: relative;
    z-index: 2;
}

/* Section Headers */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    position: relative;
}

/* .section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--gradient-accent);
    border-radius: 2px;
} */

.section-subtitle {
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Calculator Form Card */
.calculator-form-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: all 0.3s ease;
}

.calculator-form-card:hover {
    box-shadow: var(--shadow-heavy);
    transform: translateY(-2px);
}

.calculator-form-card .card-header {
    background: var(--gradient-primary);
    color: white;
    padding: 20px 25px;
    border: none;
}

.calculator-form-card .card-body {
    padding: 30px 25px;
}

/* Mortgage Type Buttons */
.mortgage-type-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.mortgage-type-btn {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 120px;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    background: white;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.9rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    gap: 4px;
}

.mortgage-type-btn:hover {
    border-color: var(--primary-color);
    background: rgba(44, 95, 74, 0.05);
    transform: translateY(-2px);
    box-shadow: var(--shadow-light);
}

.mortgage-type-btn.active {
    border-color: var(--primary-color);
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-medium);
}

.mortgage-type-btn.active small {
    color: rgba(255, 255, 255, 0.9);
}

.mortgage-type-btn i {
    font-size: 1.2rem;
    margin-bottom: 2px;
}

.mortgage-type-btn small {
    font-size: 0.75rem;
    font-weight: 500;
}

/* Form Elements */
.form-label {
    color: var(--text-dark);
    font-size: 1rem;
    margin-bottom: 10px;
}

.calculator-input {
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 15px 20px;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-dark);
    transition: all 0.3s ease;
    background: var(--bg-lighter);
}

.calculator-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(44, 95, 74, 0.15);
    background: white;
    transform: translateY(-1px);
}

.input-group-text {
    background: var(--primary-color);
    color: white;
    border: 2px solid var(--primary-color);
    font-weight: 600;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

/* Range Styles */
.range-wrapper {
    padding: 10px 0;
}

.calculator-range {
    height: 8px;
    background: var(--border-color);
    border-radius: var(--light-border-radius);
    outline: none;
    cursor: pointer;
}

.calculator-range::-webkit-slider-thumb {
    appearance: none;
    width: 24px;
    height: 24px;
    background: var(--gradient-primary);
    border-radius: 50%;
    cursor: pointer;
    border: 3px solid white;
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
}

.calculator-range::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: var(--shadow-medium);
}

.calculator-range::-moz-range-thumb {
    width: 24px;
    height: 24px;
    background: var(--gradient-primary);
    border-radius: 50%;
    cursor: pointer;
    border: 3px solid white;
    box-shadow: var(--shadow-light);
}

.range-labels small {
    font-size: 0.85rem;
    font-weight: 500;
}

/* Term Buttons */
.term-buttons .btn-group {
    box-shadow: var(--shadow-light);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.term-buttons .btn {
    border: 2px solid var(--border-color);
    padding: 12px 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.term-buttons .btn-outline-primary {
    color: var(--text-dark);
    border-color: var(--border-color);
}

.term-buttons .btn-check:checked + .btn {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: scale(1.05);
}

/* Rate Info Card */
.rate-info-card {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 20px;
    transition: all 0.3s ease;
}

.rate-info-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-light);
}

.rate-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

.rate-badge {
    width: 40px;
    height: 40px;
    background: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--border-color);
}

/* Results Card */
.results-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
    border: 1px solid var(--border-color);
    overflow: hidden;
    position: sticky;
    top: 20px;
}

.results-card .card-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: white;
    padding: 20px 25px;
    border: none;
}

.results-card .card-body {
    padding: 30px 25px;
}

/* Main Result */
.main-result-card {
    background: var(--gradient-primary);
    border-radius: var(--border-radius);
    padding: 25px;
    color: white;
    position: relative;
    overflow: hidden;
}

.main-result-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: float 6s ease-in-out infinite;
}

.result-label {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    z-index: 2;
}

.result-value-main {
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1;
    position: relative;
    z-index: 2;
    color: #FFF;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Additional Results */
.additional-results {
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
}

.result-item {
    display: flex;
    align-items: center;
    padding: 15px;
    margin-bottom: 10px;
    background: var(--bg-lighter);
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
}

.result-item:hover {
    background: var(--bg-light);
    transform: translateX(5px);
}

.result-icon {
    width: 45px;
    height: 45px;
    background: var(--gradient-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
}

.result-icon i {
    color: white;
    font-size: 1.1rem;
}

.result-content {
    flex: 1;
    text-align: left;
}

.result-label-small {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 2px;
}

.result-value-small {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-dark);
}

/* Action Buttons */
.result-actions .btn {
    border-radius: var(--border-radius);
    font-weight: 600;
    padding: 12px 25px;
    transition: all 0.3s ease;
}

.result-actions .btn-primary {
    background: var(--gradient-primary);
    border: none;
    box-shadow: var(--shadow-light);
}

.result-actions .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.result-actions .btn-outline-secondary {
    border: 2px solid var(--border-color);
    color: var(--text-dark);
}

.result-actions .btn-outline-secondary:hover {
    background: var(--bg-light);
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-1px);
}

/* Calculator Info */
.calculator-info .info-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: var(--shadow-light);
}

.calculator-info h6 {
    color: var(--text-dark);
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 991.98px) {
    .mortgage-type-btn {
        min-width: calc(50% - 5px);
        font-size: 0.85rem;
        padding: 10px 12px;
    }

    .results-card {
        position: relative;
        margin-top: 30px;
    }

    .section-title {
        font-size: 2rem;
    }

    .result-value-main {
        font-size: 1.8rem;
    }

    .calculator-form-card .card-body {
        padding: 25px 20px;
    }

    .results-card .card-body {
        padding: 25px 20px;
    }
}

@media (max-width: 576px) {
    .mortgage-type-btn {
        min-width: 100%;
        font-size: 0.9rem;
    }

    .term-buttons .btn-group {
        flex-direction: column;
    }

    .term-buttons .btn {
        border-radius: var(--light-border-radius) !important;
        margin-bottom: 5px;
    }

    .calculator-input {
        font-size: 1.1rem;
        padding: 12px 15px;
    }

    .result-value-main {
        font-size: 1.6rem;
    }

    .main-result-card {
        padding: 20px;
    }
}

/* ==========================================
   Страница деталей квартиры
   ========================================== */

/* Hero Section */
.apartment-hero {
    padding: 40px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.apartment-hero .breadcrumb {
    background: none;
    padding: 0;
    margin-bottom: 2rem;
}

.apartment-hero .breadcrumb-item a {
    color: var(--primary-color);
    text-decoration: none;
}

.apartment-hero .breadcrumb-item.active {
    color: var(--text-light);
}

/* Gallery Detailed */
.apartment-wrap {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-medium);
}

.main-gallery-container {
    padding: 30px;
    position: relative;
}

.main-image-wrapper {
    position: relative;
    height: fit-content;
    overflow: hidden;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius);
}

.main-gallery-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.gallery-nav:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: translateY(-50%) scale(1.1);
}

.gallery-nav.prev {
    left: 20px;
}

.gallery-nav.next {
    right: 20px;
}

.image-counter {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 6px 14px;
    border-radius: var(--border-radius);
    font-size: 0.85rem;
    font-weight: 500;
    z-index: 5;
    pointer-events: none;
}

.fullscreen-btn {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.7);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.fullscreen-btn:hover {
    background: rgba(0, 0, 0, 0.9);
}

.gallery-thumbnails {
    display: flex;
    gap: 12px;
    padding: 20px;
    overflow-x: auto;
    scrollbar-width: thin;
    scroll-behavior: smooth;
}

.thumbnail-item {
    flex-shrink: 0;
    width: 80px;
    height: 60px;
    border-radius: var(--light-border-radius);
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s ease;
    opacity: 0.7;
}

.thumbnail-item:hover {
    opacity: 1;
    transform: scale(1.05);
}

.thumbnail-item.active {
    border-color: var(--primary-color);
    opacity: 1;
    transform: scale(1);
}

.thumbnail-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-placeholder {
    height: 500px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    color: var(--text-light);
}

@media (max-width: 768px) {
    .apartment-info-detailed {
        margin-bottom: 20px;
    }
    .apartment-columns {
        display: flex;
        flex-direction: column-reverse;
    }
    .main-gallery-container {
        padding: 0;
    }
    .gallery-nav {
        display: none;
    }

    .thumbnail-item {
        width: 60px;
        height: 45px;
    }

}

/* Info Detailed */
.apartment-info-detailed {
    background: white;
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow-medium);
    height: fit-content;
    position: sticky;
    top: 100px;
}

.status-badge-detailed {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.status-badge-detailed.available {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #065f46;
}

.status-badge-detailed.reserved {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
}

.status-badge-detailed.sold {
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    color: #374151;
}

.apartment-title-detailed h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.apartment-type-detailed {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 4px;
}

.apartment-location {
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 20px;
}

.price-section-detailed {
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 20px;
    margin-bottom: 25px;
    background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 100%);
}

.main-price {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 5px;
}

.price-per-meter {
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 10px;
}

.mortgage-preview {
    font-size: 0.95rem;
    color: var(--accent-color);
    font-weight: 500;
}

.quick-specs-detailed {
    margin-bottom: 25px;
    background: none;
    border: none;
    padding: 0;
    box-shadow: none;
}

.quick-specs-detailed .spec-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-direction: row;
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    background: none;
    border-radius: 0;
    box-shadow: none;
    margin-bottom: 0;
    gap: 12px;
}
.quick-specs-detailed .spec-item .spec-icon {
    display: flex;
    align-items: center;
}
.quick-specs-detailed .spec-item:last-child {
    border-bottom: none;
}

.quick-specs-detailed .spec-item i {
    color: var(--primary-color);
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
    margin-right: 8px;
}

.quick-specs-detailed .spec-label {
    font-size: 0.9rem;
    color: var(--text-light);
    text-transform: none;
    letter-spacing: normal;
    line-height: 1.4;
    font-weight: 500;
    margin: 0;
    flex: 1;
}

.quick-specs-detailed .spec-value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
    text-align: right;
    flex-shrink: 0;
}

.action-buttons-detailed {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 25px;
}

.btn-detailed {
    padding: 16px 24px;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}

.btn-detailed.primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.btn-detailed.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(35, 103, 162, 0.3);
}

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

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

.btn-detailed.disabled {
    background: #f1f5f9;
    color: #94a3b8;
    cursor: not-allowed;
}

.contact-info-detailed {
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 16px;
}

.contact-item i {
    color: #FFF;
    font-size: 1.1rem;
    width: 20px;
}

.contact-label {
    font-size: 0.85rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
}

/* Details Section */
.apartment-details-section {
    background: white;
    padding: 15px;
}

.details-tabs .nav-tabs {
    border: none;
    background: #f8fafc;
    border-radius: var(--border-radius);
    padding: 6px;
    margin-bottom: 30px;
}

.details-tabs .nav-link {
    border: none;
    border-radius: var(--light-border-radius);
    color: var(--text-light);
    font-weight: 500;
    padding: 12px 20px;
    transition: all 0.3s ease;
}

.details-tabs .nav-link.active {
    background: white;
    color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.tab-content {
    padding: 20px 0;
}

/* Specifications */
.specs-grid {
    display: grid;
    gap: 30px;
}

.spec-category h5 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: 600;
}

.spec-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.spec-item-detailed {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
}

.spec-name {
    font-weight: 500;
    color: var(--text-dark);
}

.spec-dots {
    flex: 1;
    height: 1px;
    background: repeating-linear-gradient(to right, var(--border-color) 0, var(--border-color) 4px, transparent 4px, transparent 8px);
    margin: 0 16px;
}

.spec-val {
    font-weight: 600;
    color: var(--primary-color);
}

.features-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
}

/* Layout */
.layout-image-container {
    margin-bottom: 20px;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.layout-image {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: contain;
    background: #f8fafc;
}

.layout-placeholder {
    height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: var(--border-radius);
    color: var(--text-light);
    margin-bottom: 20px;
}

.layout-info h6 {
    color: var(--primary-color);
    margin-bottom: 12px;
}

/* Mortgage */
.mortgage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.mortgage-card {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 20px;
    text-align: center;
}

.mortgage-label {
    font-size: 0.85rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.mortgage-value {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-dark);
}

.mortgage-value.primary {
    color: var(--primary-color);
    font-size: 1.5rem;
}

.mortgage-note {
    background: #fef3c7;
    border: 1px solid #fde68a;
    border-radius: var(--light-border-radius);
    padding: 16px;
    font-size: 0.9rem;
    color: #92400e;
}

/* Building */
.building-specs {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 20px 0;
}

.building-spec {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
}

.building-spec i {
    color: var(--primary-color);
    width: 20px;
}

/* Similar Apartments */
.similar-apartments {
    background: white;
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: var(--shadow-light);
    margin-bottom: 25px;
}

.similar-apartments h5 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: 600;
}

.similar-apartment-container {
    display: grid;
    gap: 15px;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.similar-apartment-card {
    display: flex;
    gap: 15px;
    padding: 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.similar-apartment-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-light);
}

.similar-apt-image {
    width: 120px;
    height: 80px;
    border-radius: var(--light-border-radius);
    overflow: hidden;
    flex-shrink: 0;
}

.similar-apt-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.similar-apt-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
}

.similar-apt-info {
    flex: 1;
}

.similar-apt-info h6 {
    color: var(--primary-color);
    margin-bottom: 4px;
    font-weight: 600;
}

.similar-apt-info p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.similar-apt-price {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 10px;
}

/* Contact Form Sidebar */
.contact-form-sidebar {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: var(--border-radius);
    padding: 25px;
    text-align: center;
}

.contact-form-sidebar h5 {
    margin-bottom: 12px;
    font-weight: 600;
}

.contact-form-sidebar p {
    margin-bottom: 20px;
    opacity: 0.9;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .apartment-info-detailed {
        position: static;
        margin-top: 20px;
    }

    .spec-row {
        flex-direction: column;
        gap: 12px;
    }

    .action-buttons-detailed {
        gap: 10px;
    }

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

    .similar-apartment-card {
        flex-direction: column;
        text-align: center;
    }

    .similar-apt-image {
        width: 100%;
        height: fit-content;
        align-self: center;
    }
}

/* ==========================================
   Alternative Hero Section Styles
   ========================================== */
.hero-alternative {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #2C5F4A 0%, #1A3D2F 100%);
}

/* Hero Slider */
.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:  rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.hero-alternative .container {
    position: relative;
    z-index: 2;
}

/* Content Wrapper */
.hero-content-wrapper {
    /* padding: 40px 0; */
    width: 100%;
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Modern Badge */
.hero-badge-modern {
    display: inline-flex;
    align-items: center;
    background: rgba(107, 142, 35, 0.15);
    color: var(--accent-color);
    padding: 12px 24px;
    border-radius: var(--border-radius);
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 30px;
    border: 2px solid rgba(107, 142, 35, 0.3);
    box-shadow: 0 4px 15px rgba(107, 142, 35, 0.1);
    transition: all 0.3s ease;
}

.hero-badge-modern:hover {
    background: rgba(107, 142, 35, 0.25);
    border-color: rgba(107, 142, 35, 0.5);
    transform: translateY(-2px);
}

.hero-badge-modern i {
    color: var(--accent-color);
}

@media (max-width: 576px) {
    .hero-badge-modern {
        padding: 10px 20px;
        font-size: 0.7rem;
    }
}

/* Modern Title */
.hero-title-modern {
    font-size: 3.5rem;
    font-weight: 500;
    line-height: 1.1;
    color: white;
    margin-bottom: 25px;
    letter-spacing: -1px;
    text-align: center;
}

.hero-title-modern .highlight-text {
    color: var(--accent-color);
    position: relative;
    display: inline-block;
}

/* Description */
.hero-description {
    font-size: 1.2rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 1 );
    max-width: 850px;
    text-align: center;
    margin-bottom: 0;
}

/* Features Grid */
.hero-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 20px;
    background-color: var(--hero-home-bg-color);
    backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--accent-color);
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.feature-icon {
    width: 50px;
    height: 50px;
    background: var(--accent-color);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-icon i {
    font-size: 1.5rem;
    color: #FFF;
}

.feature-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.feature-text strong {
    font-size: 1.1rem;
    color: white;
    font-weight: 700;
}

.feature-text span {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Hero Actions */
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
    margin-bottom: 40px;
    animation: fadeInUp 1s ease-out;
}

.btn-hero-primary {
    background: var(--accent-color);
    color: #0d2a4a;
    padding: 16px 48px;
    border-radius: var(--border-radius);
    font-weight: 700;
    font-size: 1.2rem;
    border: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(208, 211, 12, 0.3);
}

.btn-hero-primary:hover {
    background: #e8eb1a;
    color: #0d2a4a;
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(208, 211, 12, 0.4);
}

.btn-hero-secondary {
    background: transparent;
    color: white;
    padding: 16px 32px;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.btn-hero-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
}

/* Trust Indicators */
.trust-indicators {
    display: flex;
    gap: 30px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.trust-item i {
    color: var(--accent-color);
    font-size: 1.2rem;
}

/* Visual Section */
.hero-visual-section {
    position: relative;
    width: 100%;
    animation: fadeInRight 1s ease-out;
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background-color: var(--hero-home-bg-color);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    padding: 30px 25px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--accent-color);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.stat-card:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.stat-card:hover::before {
    transform: scaleX(1);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent-color);
    line-height: 1;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.4;
}

.stat-icon {
    position: absolute;
    bottom: 10%;
    right: 5px;
    opacity: 0.1;
}

.stat-icon i {
    font-size: 3rem;
    color: white;
}

/* Hero Image Modern */
.hero-image-modern {
    position: relative;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-decoration {
    position: absolute;
    width: 100%;
    height: 100%;
}

.decoration-circle {
    position: absolute;
    border-radius: 50%;
    background: var(--accent-color);
    opacity: 0.1;
    animation: pulse 3s ease-in-out infinite;
}

.circle-1 {
    width: 250px;
    height: 250px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.circle-2 {
    width: 350px;
    height: 350px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 0.5s;
}

@keyframes pulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.1;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 0.15;
    }
}

.building-visual {
    position: relative;
    z-index: 2;
    width: 200px;
    height: 200px;
    background: rgba(208, 211, 12, 0.15);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid rgba(208, 211, 12, 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.building-visual i {
    font-size: 5rem;
    color: var(--accent-color);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 3;
    animation: fadeIn 2s ease-out 1s backwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.scroll-text {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.scroll-arrow {
    animation: bounce 2s infinite;
}

.scroll-arrow i {
    font-size: 1.5rem;
    color: var(--accent-color);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .hero-title-modern {
        font-size: 3.5rem;
    }
}

@media (max-width: 992px) {
    .hero-title-modern {
        font-size: 3rem;
    }

    .hero-description {
        max-width: 100%;
    }

    .hero-visual-section {
        padding: 25px 0px 25px;
    }
    .hero-image-modern {
        display: none;
    }

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

@media (max-width: 768px) {
    .hero-title-modern {
        font-size: 2.5rem;
    }

    .hero-features {
        gap: 15px;
    }

    .feature-item {
        padding: 15px;
    }

    .hero-actions {
        flex-direction: column;
    }

    .btn-hero-primary,
    .btn-hero-secondary {
        width: 100%;
        justify-content: center;
    }

    .trust-indicators {
        flex-wrap: wrap;
        gap: 15px;
    }

    .stats-grid {
        gap: 15px;
    }

    .stat-card {
        padding: 20px 15px;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .hero-image-modern {
        display: none;
        height: 250px;
    }

    .building-visual {
        width: 150px;
        height: 150px;
    }

    .building-visual i {
        font-size: 4rem;
    }

    .circle-1 {
        width: 200px;
        height: 200px;
    }

    .circle-2 {
        width: 280px;
        height: 280px;
    }
}

@media (max-width: 576px) {
    .hero-title-modern {
        font-size: 2rem;
        line-height: 1.5;
    }

    .hero-description {
        font-size: 1rem;
    }

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

/* ==========================================
   Apartments Slider Section Styles
   ========================================== */
.apartments-slider-section {
    background: #f8f9fa;
    position: relative;
    overflow: hidden;
}

.apartments-slider-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg,
        var(--primary-color) 0%,
        var(--accent-color) 50%,
        var(--primary-color) 100%);
}

/* Swiper Container */
.apartments-swiper-container {
    padding: 20px 0;
}

.apartmentsSwiper {
    padding: 10px 50px 50px;
    width: 100%;
}

.apartmentsSwiper .swiper-wrapper {
    display: flex !important;
    flex-direction: row !important;
}

.apartmentsSwiper .swiper-slide {
    height: auto;
    display: flex;
    flex-direction: column;
}

/* Apartment Card */
.apartment-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.apartment-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

/* Modern Apartment Card - Home Page Slider Only */
.apartments-slider-section .apartment-card-modern {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
}

.apartments-slider-section .apartment-card-modern:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.apartments-slider-section .apartment-card-modern:hover .apartment-image {
    transform: scale(1.05);
}

/* Image Wrapper - Slider Only */
.apartments-slider-section .apartment-image-wrapper {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: #f5f5f5;
}

.apartments-slider-section .card-badge-top {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
}

.apartments-slider-section .building-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    font-size: 0.75rem;
    font-weight: 500;
    color: #666;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.apartments-slider-section .building-badge i {
    font-size: 0.8rem;
    color: var(--primary-color);
}

/* Card Content - Slider Only */
.apartments-slider-section .apartment-card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.apartments-slider-section .apartment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.apartments-slider-section .apartment-title-modern {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin: 0;
    line-height: 1.3;
}

.apartments-slider-section .status-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: var(--border-radius);
    font-size: 0.7rem;
    font-weight: 500;
    white-space: nowrap;
}

.apartments-slider-section .status-available {
    background: #e8f5e9;
    color: var(--ligt-blue);
}

.apartments-slider-section .status-reserved {
    background: #fff8e1;
    color: #f57c00;
}

.apartments-slider-section .status-sold {
    background: #ffebee;
    color: #c62828;
}

/* Apartment Specs - Slider Only */
.apartments-slider-section .apartment-specs {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.apartments-slider-section .spec-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.apartments-slider-section .spec-icon {
    color: var(--primary-color);
    font-size: 0.9rem;
}

.apartments-slider-section .spec-value {
    font-size: 0.9rem;
    font-weight: 500;
    color: #666;
}

/* View Details Button - Slider Only */
.apartments-slider-section .btn-view-details {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--primary-color);
    color: white;
    border-radius: var(--light-border-radius);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    margin-top: auto;
}

.apartments-slider-section .btn-view-details:hover {
    background: var(--ligt-blue);
    color: white;
}

.apartments-slider-section .btn-view-details i {
    font-size: 0.85rem;
}

/* Apartment Card (Old styles) */
.apartment-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.apartment-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

/* Apartment Image */
.apartment-image-container {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: linear-gradient(135deg, #e0e0e0 0%, #f5f5f5 100%);
}

.apartment-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.apartment-card:hover .apartment-image {
    transform: scale(1.1);
}

.apartment-no-image {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #bbb;
}

.apartment-no-image i {
    margin-bottom: 10px;
}

.apartment-no-image p {
    margin: 0;
    font-size: 0.9rem;
}

/* Status Badge */
.badge-status {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 8px 16px;
    border-radius: var(--border-radius);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    backdrop-filter: blur(10px);
    z-index: 2;
}

.badge-available {
    background: rgba(40, 167, 69, 0.9);
    color: white;
    box-shadow: 0 2px 10px rgba(40, 167, 69, 0.3);
}

.badge-reserved {
    background: rgba(255, 193, 7, 0.9);
    color: #333;
    box-shadow: 0 2px 10px rgba(255, 193, 7, 0.3);
}

.badge-sold {
    background: rgba(220, 53, 69, 0.9);
    color: white;
    box-shadow: 0 2px 10px rgba(220, 53, 69, 0.3);
}

/* Card Body */
.apartment-card-body {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.apartment-building-name {
    font-size: 0.85rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.apartment-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
    line-height: 1.3;
}

/* Apartment Details */
.apartment-details {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    color: #666;
}

.detail-item i {
    color: var(--primary-color);
    font-size: 1rem;
}

/* Price */
.apartment-price {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 15px;
    margin-top: auto;
}

/* Swiper Navigation */
/* .apartmentsSwiper .swiper-button-next,
.apartmentsSwiper .swiper-button-prev {
    background: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
} */

/* .apartmentsSwiper .swiper-button-next:after,
.apartmentsSwiper .swiper-button-prev:after {
    font-size: 20px;
    font-weight: 900;
    color: var(--primary-color);
} */

/* .apartmentsSwiper .swiper-button-next:hover,
.apartmentsSwiper .swiper-button-prev:hover {
    background: var(--primary-color);
    transform: scale(1.1);
} */

/* .apartmentsSwiper .swiper-button-next:hover:after,
.apartmentsSwiper .swiper-button-prev:hover:after {
    color: white;
} */

/* Swiper Pagination */
.apartmentsSwiper .swiper-pagination {
    bottom: 10px;
}

/* .apartmentsSwiper .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: var(--primary-color);
    opacity: 0.3;
    transition: all 0.3s ease;
} */

/* .apartmentsSwiper .swiper-pagination-bullet-active {
    opacity: 0.6;
    width: 30px;
    border-radius: 6px;
    background: var(--primary-color);
} */

/* Responsive */
@media (max-width: 768px) {
    .apartmentsSwiper {
        padding: 10px 30px 50px;
    }

    .apartment-image-container {
        height: 200px;
    }

    .apartment-title {
        font-size: 1.1rem;
    }

    .apartment-price {
        font-size: 1.5rem;
    }

    /* .apartmentsSwiper .swiper-button-next,
    .apartmentsSwiper .swiper-button-prev {
        width: 40px;
        height: 40px;
    }

    .apartmentsSwiper .swiper-button-next:after,
    .apartmentsSwiper .swiper-button-prev:after {
        font-size: 16px;
    } */
}

@media (max-width: 576px) {
    .apartment-details {
        gap: 10px;
    }

    .detail-item {
        font-size: 0.85rem;
    }
}

/* Glossy Button with Shine Animation */
.btn-glossy {
    position: relative;
    overflow: hidden;
    /* background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%); */
    border: none;
    box-shadow: 0 4px 15px rgba(44, 95, 74, 0.3);
    transition: all 0.3s ease;
}

/* Глянцевый эффект */
/* .btn-glossy::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0) 100%);
    border-radius: inherit;
    pointer-events: none;
} */

/* Анимированная полоска света */
.btn-glossy::after {
    content: '';
    position: absolute;
    top: -0%;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.4) 50%,
        transparent 100%);
    transform: skewX(-25deg);
    animation: shine 3s infinite;
    pointer-events: none;
}

@keyframes shine {
    0% {
        left: -100%;
    }
    20% {
        left: 150%;
    }
    100% {
        left: 150%;
    }
}

.btn-glossy:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(44, 95, 74, 0.4);
    /* background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%); */
}

.btn-glossy:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(44, 95, 74, 0.3);
}

/* Вариант для акцентных кнопок */
.btn-glossy.btn-accent {
    background: linear-gradient(135deg, var(--accent-color) 0%, #5a7a1e 100%);
    box-shadow: 0 4px 15px rgba(107, 142, 35, 0.3);
}

.btn-glossy.btn-accent:hover {
    background: linear-gradient(135deg, #5a7a1e 0%, var(--accent-color) 100%);
    box-shadow: 0 6px 20px rgba(107, 142, 35, 0.4);
}

/* ЖК Континент Feature Section */
.hover-lift {
    transition: all 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(44, 95, 74, 0.15) !important;
}

.feature-icon-large {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(44, 95, 74, 0.05);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.hover-lift:hover .feature-icon-large {
    background: rgba(44, 95, 74, 0.1);
    transform: scale(1.1);
}

.feature-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(44, 95, 74, 0.05);
    border-radius: var(--border-radius);
    flex-shrink: 0;
}

/* Reviews Section */
.reviews-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.reviews-slider-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 50px;
}

.reviewsSwiper {
    padding-bottom: 50px;
}

.review-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(44, 95, 74, 0.15);
}

.review-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.review-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    margin-right: 15px;
    flex-shrink: 0;
}

.review-author-info {
    flex-grow: 1;
}

.review-author-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.review-date {
    font-size: 0.85rem;
    color: #6c757d;
}

.review-content {
    position: relative;
    flex-grow: 1;
}

.quote-icon {
    position: absolute;
    top: -10px;
    left: -5px;
    font-size: 40px;
    color: var(--primary-color);
    opacity: 0.1;
}

.review-text {
    padding: 0 40px;
    font-size: 1rem;
    line-height: 1.7;
    color: #495057;
    position: relative;
    z-index: 1;
    margin: 0;
}

/* Swiper Navigation Buttons for Reviews */
/* .reviews-button-next,
.reviews-button-prev {
    width: 45px;
    height: 45px;
    background: var(--primary-color);
    border-radius: 50%;
    color: white;
    transition: all 0.3s ease;
}

.reviews-button-next:after,
.reviews-button-prev:after {
    font-size: 18px;
    font-weight: 700;
}

.reviews-button-next:hover,
.reviews-button-prev:hover {
    background: var(--secondary-color);
    transform: scale(1.1);
} */

/* Swiper Pagination for Reviews */
/* .reviews-pagination {
    bottom: 0 !important;
} */
/*
.reviews-pagination .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: var(--primary-color);
    opacity: 0.3;
    transition: all 0.3s ease;
}

.reviews-pagination .swiper-pagination-bullet-active {
    opacity: 1;
    width: 30px;
    border-radius: 6px;
} */

/* Responsive Design for Reviews */
@media (max-width: 768px) {
    .reviews-slider-container {
        padding: 0 20px;
    }

    .review-card {
        padding: 20px;
    }

    .review-avatar {
        width: 50px;
        height: 50px;
        font-size: 20px;
        margin-right: 12px;
    }

    .review-author-name {
        font-size: 1rem;
    }

    .review-text {
        font-size: 0.95rem;
    }

    /* .reviews-button-next,
    .reviews-button-prev {
        width: 35px;
        height: 35px;
    }

    .reviews-button-next:after,
    .reviews-button-prev:after {
        font-size: 14px;
    } */
}
