:root {
    --primary-color: #1a2639;
    --primary-light: #2d3a57;
    --accent-color: #c8a97e;
    --accent-light: #d8bd9a;
    --accent-dark: #9f8661;
    --dark-color: #0d1117;
    --light-color: #f9f9f9;
    --success-color: #4cd964;
    --success-dark: #36ad4a;
    --warning-color: #ffcc00;
    --danger-color: #ff3b30;
    --text-light: #f4f4f4;
    --text-dark: #141414;
    --text-muted: #8a94a6;
    --shadow-sm: 0 5px 15px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 25px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 30px 60px rgba(0, 0, 0, 0.18);
    --transition-fast: 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-normal: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-slow: 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --border-radius-sm: 8px;
    --border-radius-md: 12px;
    --border-radius-lg: 20px;
    --border-radius-xl: 30px;
    --bg-gradient-1: #f8f9fa;
    --bg-gradient-2: #f3f4f6;
    --bg-gradient-3: #edf0f5;
    --font-primary: 'Playfair Display', serif;
    --font-secondary: 'Poppins', sans-serif;
    --vh: 1vh; 
}

body {
    font-family: var(--font-secondary);
    color: var(--text-dark);
    line-height: 1.7;
    overflow-x: hidden;
    position: relative;
    background: linear-gradient(135deg, var(--bg-gradient-1), var(--bg-gradient-2), var(--bg-gradient-3), var(--bg-gradient-2));
    background-size: 400% 400%;
    animation: gradientFlow 15s ease infinite;
}

@keyframes gradientFlow {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-primary);
    font-weight: 700;
}

p {
    font-weight: 300;
    font-size: 1.05rem;
}

a {
    text-decoration: none;
    transition: var(--transition-normal);
}

.btn {
    font-weight: 500;
    padding: 0.8rem 2rem;
    border-radius: var(--border-radius-md);
    transition: all var(--transition-normal);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
}

.section-spacing {
    padding: 7rem 0;
}

.gold-accent {
    color: var(--accent-color);
}

.animated-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -10;
    opacity: 0.6;
}

.gradient-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg,
            rgba(26, 38, 57, 0.015) 0%,
            rgba(200, 169, 126, 0.015) 25%,
            rgba(45, 58, 87, 0.015) 50%,
            rgba(200, 169, 126, 0.015) 75%,
            rgba(26, 38, 57, 0.015) 100%);
    background-size: 400% 400%;
    animation: gradientMove 25s ease infinite;
    opacity: 0.7;
}

@keyframes gradientMove {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.waves {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background-color: transparent;
    transition: 500ms;
}

.waves::before,
.waves::after {
    content: "";
    position: absolute;
    width: 300vw;
    height: 300vw;
    top: -65vw;
    left: 50%;
    transform: translate(-50%, -75%);
}

.waves::before {
    border-radius: 44%;
    background: rgba(200, 169, 126, 0.05);
    animation: waves 12s linear infinite;
}

.waves::after {
    border-radius: 44%;
    background: rgba(26, 38, 57, 0.05);
    animation: waves 18s linear infinite;
}

@keyframes waves {
    0% {
        transform: translate(-50%, -75%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -75%) rotate(360deg);
    }
}

.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.particle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.3;
}

@keyframes float-up {
    0% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }

    20% {
        opacity: 0.3;
    }

    100% {
        transform: translateY(-100px) scale(1);
        opacity: 0;
    }
}

.particle:nth-child(1) {
    width: 6px;
    height: 6px;
    background: var(--accent-color);
    left: 10%;
    animation: float-up 15s ease-in infinite;
    animation-delay: 0s;
}

.particle:nth-child(2) {
    width: 8px;
    height: 8px;
    background: var(--primary-light);
    left: 20%;
    animation: float-up 18s ease-in infinite;
    animation-delay: 1s;
}

.navbar {
    background-color: rgba(26, 38, 57, 0.9);
    backdrop-filter: blur(10px);
    padding: 1.2rem 2rem;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all var(--transition-normal);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.navbar.scrolled {
    padding: 0.8rem 2rem;
    background-color: rgba(26, 38, 57, 0.95);
    box-shadow: var(--shadow-sm);
}

.navbar-brand {
    color: var(--text-light) !important;
    font-family: var(--font-primary);
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    position: relative;
    padding: 0.5rem 0;
}

.navbar-brand .brand-accent {
    color: var(--accent-color);
}

.navbar-nav .nav-link {
    color: var(--text-light);
    font-weight: 400;
    margin: 0 1rem;
    padding: 0.5rem 0;
    position: relative;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width var(--transition-normal);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 100%;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--accent-color);
}

.login-btn {
    background: transparent;
    color: var(--text-light);
    padding: 0.5rem 2rem;
    border: 1px solid var(--accent-color);
    border-radius: var(--border-radius-lg);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    font-weight: 500;
    letter-spacing: 1px;
}

.login-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(200, 169, 126, 0.2), transparent);
    transition: all var(--transition-slow);
}

.login-btn:hover::before {
    left: 100%;
}

.login-btn:hover {
    background-color: var(--accent-color);
    color: var(--text-dark);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(200, 169, 126, 0.3);
}

.hero-section {
    background: linear-gradient(rgba(26, 38, 57, 0.8), rgba(26, 38, 57, 0.9)), url('../img/background.png') center/cover fixed;
    color: white;
    padding: 12rem 0 9rem;
    margin-bottom: 0;
    position: relative;
    overflow: hidden;
    height: calc(100vh - 80px);
    min-height: 500px;
    display: flex;
    align-items: center;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero-section h1 {
    font-size: 4.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s forwards;
    text-shadow: 2px 2px 15px rgba(0, 0, 0, 0.2);
    line-height: 1.2;
}

.hero-section h1 .highlight {
    color: var(--accent-color);
    position: relative;
    display: inline-block;
}

.hero-section h1 .highlight::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 8px;
    background-color: var(--accent-color);
    opacity: 0.3;
    z-index: -1;
}

.hero-section p {
    font-size: 1.35rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s 0.3s forwards;
    max-width: 700px;
    margin: 0 auto;
    font-weight: 300;
    line-height: 1.8;
}

.hero-btns {
    margin-top: 2.5rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s 0.6s forwards;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.btn-primary {
    background: var(--accent-color);
    color: var(--text-dark);
    border: none;
    padding: 1rem 2.5rem;
    margin-right: 1rem;
    border-radius: var(--border-radius-lg);
    font-weight: 500;
    letter-spacing: 1px;
    box-shadow: 0 5px 15px rgba(200, 169, 126, 0.3);
}

.btn-primary:hover {
    background: var(--accent-dark);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(200, 169, 126, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--text-light);
    border: 1px solid var(--text-light);
    padding: 1rem 2.5rem;
    border-radius: var(--border-radius-lg);
    font-weight: 500;
    letter-spacing: 1px;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.1);
}

.property-search {
    background: white;
    border-radius: var(--border-radius-lg);
    padding: 2.5rem;
    margin-top: -5rem;
    box-shadow: var(--shadow-xl);
    position: relative;
    z-index: 10;
}

.property-search h4 {
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    color: var(--primary-color);
}

.search-input {
    height: 60px;
    border-radius: var(--border-radius-md);
    border: 1px solid #e9ecef;
    padding: 0 1.5rem;
    font-size: 1rem;
    transition: all var(--transition-normal);
}

.search-input:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 4px rgba(200, 169, 126, 0.1);
}

.search-select {
    height: 60px;
    border-radius: var(--border-radius-md);
    border: 1px solid #e9ecef;
    padding: 0 1.5rem;
    font-size: 1rem;
    background-position: right 1.5rem center;
}

.search-select:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 4px rgba(200, 169, 126, 0.1);
}

.search-btn {
    height: 60px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--border-radius-md);
    font-weight: 500;
    letter-spacing: 1px;
    transition: all var(--transition-normal);
}

.search-btn:hover {
    background: var(--primary-light);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(26, 38, 57, 0.2);
}

.featured-properties {
    padding: 8rem 0 6rem;
    background-color: var(--light-color);
    position: relative;
}

.featured-properties::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('img/pattern.png') repeat;
    opacity: 0.03;
    z-index: 0;
}

.swiper-featured {
    margin-top: 3rem;
    overflow: visible;
}

.swiper-slide {
    height: 580px;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-normal);
}

.swiper-slide-active {
    transform: scale(1.05);
    box-shadow: var(--shadow-xl);
    z-index: 2;
}

.swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.7s ease;
}

.swiper-slide:hover img {
    transform: scale(1.1);
}

.swiper-slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
    padding: 3rem 2rem 2rem;
    backdrop-filter: blur(5px);
    transition: all var(--transition-normal);
}

.swiper-slide:hover .swiper-slide-content {
    padding-bottom: 3rem;
}

.swiper-slide-content h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.swiper-slide-content p {
    font-size: 1rem;
    opacity: 0.8;
    margin-bottom: 1rem;
}

.swiper-pagination {
    position: relative;
    margin-top: 2rem;
}

.swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: var(--primary-color);
    opacity: 0.3;
    transition: all var(--transition-normal);
}

.swiper-pagination-bullet-active {
    opacity: 1;
    background: var(--accent-color);
    transform: scale(1.5);
}

.swiper-button-next,
.swiper-button-prev {
    color: white;
    background: rgba(26, 38, 57, 0.7);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    transition: all 0.3s ease;
    top: 45%;
}

.swiper-button-next {
    right: -25px;
}

.swiper-button-prev {
    left: -25px;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: var(--accent-color);
    transform: scale(1.1);
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 1.2rem;
}

.property-feature {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 30px;
    margin-right: 0.75rem;
    margin-bottom: 0.75rem;
    font-size: 0.85rem;
}

.property-feature i {
    margin-right: 5px;
    color: var(--accent-color);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
}

.section-header .subtitle {
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 1rem;
    display: block;
}

.section-header h2 {
    font-size: 3.2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--accent-color);
}

.section-header p {
    color: var(--text-muted);
    max-width: 700px;
    margin: 1.5rem auto 0;
    font-size: 1.1rem;
    line-height: 1.8;
}

.properties-grid {
    padding: 7rem 0;
    background-color: var(--bg-gradient-2);
    position: relative;
}

.property-filter {
    margin-bottom: 3rem;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.filter-btn {
    background: transparent;
    color: var(--text-dark);
    border: none;
    padding: 0.5rem 1.5rem;
    margin: 0.5rem;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all var(--transition-normal);
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--accent-color);
    color: white;
    box-shadow: 0 5px 15px rgba(200, 169, 126, 0.3);
}

.property-card {
    background: white;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    margin-bottom: 2rem;
    height: 100%;
    border: none;
    position: relative;
}

.property-card:hover {
    transform: translateY(-15px);
    box-shadow: var(--shadow-xl);
}

.property-card .status-tag {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 2;
    padding: 0.5rem 1rem;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.status-available {
    background: var(--primary-color);
    color: white;
}

.status-rented {
    background: var(--warning-color);
    color: var(--text-dark);
}

.status-sold {
    background: var(--danger-color);
    color: white;
}

.property-image-container {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.property-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.property-card:hover .property-image {
    transform: scale(1.1);
}

.property-details {
    padding: 2rem;
    background: white;
    position: relative;
}

.property-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.property-price .period {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--text-muted);
}

.property-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--primary-color);
    transition: color var(--transition-normal);
}

.property-card:hover .property-title {
    color: var(--accent-color);
}

.property-location {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.property-location i {
    margin-right: 8px;
    color: var(--accent-color);
}

.property-features {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.property-features span {
    display: flex;
    align-items: center;
}

.property-features i {
    margin-right: 8px;
    color: var(--accent-color);
    font-size: 1.1rem;
}

.inquiry-btn {
    background: var(--primary-color);
    color: white;
    padding: 0.9rem 1.5rem;
    border: none;
    border-radius: var(--border-radius-md);
    transition: all var(--transition-normal);
    width: 100%;
    position: relative;
    overflow: hidden;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.85rem;
}

.inquiry-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: all var(--transition-slow);
}

.inquiry-btn:hover::before {
    left: 100%;
}

.inquiry-btn:hover {
    background: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(200, 169, 126, 0.3);
}

.features-section {
    padding: 7rem 0;
    background-color: white;
    position: relative;
}

.features-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('img/pattern.png') repeat;
    opacity: 0.03;
}

.feature-box {
    padding: 3rem 2rem;
    border-radius: var(--border-radius-lg);
    background: white;
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: all var(--transition-normal);
    position: relative;
    z-index: 1;
    overflow: hidden;
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.feature-box::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--accent-color);
    transition: all var(--transition-normal);
}

.feature-box:hover {
    transform: translateY(-15px);
    box-shadow: var(--shadow-lg);
}

.feature-box:hover::before {
    height: 8px;
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: rgba(200, 169, 126, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: all var(--transition-normal);
}

.feature-box:hover .feature-icon {
    background: var(--accent-color);
    transform: rotateY(180deg);
}

.feature-icon i {
    font-size: 2rem;
    color: var(--accent-color);
    transition: all var(--transition-normal);
}

.feature-box:hover .feature-icon i {
    color: white;
    transform: rotateY(180deg);
}

.feature-box h4 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.feature-box p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.7;
}

.testimonials-section {
    padding: 7rem 0;
    background: linear-gradient(rgba(26, 38, 57, 0.9), rgba(26, 38, 57, 0.9)), url('img/bg.png') center/cover fixed;
    position: relative;
    color: white;
}

.testimonial-swiper {
    padding: 3rem 1rem;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius-lg);
    padding: 3rem;
    text-align: center;
    transition: all var(--transition-normal);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.testimonial-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.15);
}

.testimonial-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: 0 auto 2rem;
    overflow: hidden;
    border: 3px solid var(--accent-color);
    position: relative;
}

.testimonial-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-content {
    position: relative;
    padding-top: 2rem;
    margin-bottom: 2rem;
}

.testimonial-content::before {
    content: '\f10d';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.5rem;
    color: var(--accent-color);
}

.testimonial-author h5 {
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
}

.testimonial-author span {
    color: var(--accent-color);
    font-size: 0.9rem;
}

.modal-content {
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    border: none;
    box-shadow: var(--shadow-xl);
}

.modal.fade .modal-dialog {
    transform: scale(0.8) translateY(-50px);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    opacity: 0;
}

.modal.show .modal-dialog {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.modal-header {
    background: var(--primary-color);
    color: white;
    padding: 2rem;
    border: none;
    position: relative;
    overflow: hidden;
}

.modal-header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, transparent 0%, rgba(255, 255, 255, 0.05) 100%);
    z-index: 1;
}

.modal-header h5 {
    font-size: 1.5rem;
    font-weight: 700;
    position: relative;
    z-index: 2;
}

.modal-body {
    padding: 2.5rem;
}

.form-control {
    padding: 1rem 1.2rem;
    border-radius: var(--border-radius-md);
    border: 2px solid #e9ecef;
    transition: all var(--transition-normal);
    font-size: 1rem;
}

.form-control:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 0.25rem rgba(200, 169, 126, 0.2);
    transform: translateY(-2px);
}

.form-label {
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
}

.input-group-text {
    background-color: var(--accent-color);
    color: white;
    border: none;
    border-radius: var(--border-radius-md) 0 0 var(--border-radius-md);
}

.btn-primary-modal {
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--border-radius-md);
    padding: 1rem;
    font-weight: 500;
    letter-spacing: 1px;
    transition: all var(--transition-normal);
    text-transform: uppercase;
    font-size: 0.9rem;
}

.btn-primary-modal:hover {
    background: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(200, 169, 126, 0.3);
}

.btn-close {
    color: white;
    opacity: 1;
    filter: brightness(0) invert(1);
    position: relative;
    z-index: 2;
}

.cta-section {
    padding: 7rem 0;
    background: linear-gradient(rgba(200, 169, 126, 0.9), rgba(200, 169, 126, 0.85)), url('img/bg.png') center/cover fixed;
    color: white;
    text-align: center;
}

.cta-section h2 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.cta-section p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 2.5rem;
    opacity: 0.9;
}

.btn-cta {
    background: white;
    color: var(--accent-dark);
    border: none;
    padding: 1rem 3rem;
    border-radius: var(--border-radius-lg);
    font-weight: 600;
    letter-spacing: 1px;
    transition: all var(--transition-normal);
    text-transform: uppercase;
    font-size: 0.9rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn-cta:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

footer {
    background: var(--primary-color);
    color: white;
    padding: 6rem 0 0;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--accent-color);
}

.footer-logo {
    margin-bottom: 1.5rem;
}

.footer-logo a {
    font-family: var(--font-primary);
    color: white;
    font-size: 2rem;
    font-weight: 700;
}

.footer-logo .accent {
    color: var(--accent-color);
}

footer h5 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1.8rem;
    position: relative;
    padding-bottom: 1rem;
}

footer h5::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--accent-color);
}

footer p {
    font-size: 0.95rem;
    opacity: 0.8;
    margin-bottom: 1.2rem;
    line-height: 1.8;
}

.footer-contact li {
    margin-bottom: 1.2rem;
    display: flex;
    align-items: flex-start;
}

.footer-contact li i {
    margin-right: 15px;
    color: var(--accent-color);
    font-size: 1.2rem;
    margin-top: 5px;
}

.footer-contact li div {
    flex: 1;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 1rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    transition: all var(--transition-normal);
    position: relative;
    padding-left: 15px;
}

.footer-links a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-color);
    transition: all var(--transition-normal);
}

.footer-links a:hover {
    color: var(--accent-color);
    padding-left: 20px;
}

.footer-links a:hover::before {
    left: 8px;
}

.social-icons {
    display: flex;
    margin-top: 1.5rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    color: white;
    font-size: 1.2rem;
    transition: all var(--transition-normal);
}

.social-icon:hover {
    background: var(--accent-color);
    color: white;
    transform: translateY(-5px);
}

.newsletter-form {
    position: relative;
    margin-top: 1.5rem;
}

.newsletter-input {
    height: 55px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-md);
    color: white;
    padding: 0 120px 0 1.2rem;
    width: 100%;
}

.newsletter-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.newsletter-input:focus {
    border-color: var(--accent-color);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: none;
}

.newsletter-btn {
    position: absolute;
    right: 5px;
    top: 5px;
    height: 45px;
    background: var(--accent-color);
    color: white;
    border: none;
    border-radius: var(--border-radius-sm);
    padding: 0 1.5rem;
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all var(--transition-normal);
}

.newsletter-btn:hover {
    background: var(--accent-dark);
}

.copyright {
    background: rgba(0, 0, 0, 0.2);
    padding: 1.5rem 0;
    margin-top: 5rem;
    text-align: center;
}

.copyright p {
    margin-bottom: 0;
    font-size: 0.9rem;
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--accent-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    z-index: 99;
    opacity: 0;
    visibility: hidden;
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--primary-color);
    transform: translateY(-5px) rotate(360deg);
    box-shadow: var(--shadow-lg);
}

.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease;
}

.loader {
    width: 60px;
    height: 60px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--accent-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.fade-in {
    animation: fadeIn 0.8s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.property-card.fade-animation {
    animation: cardFade 0.5s ease;
}

@keyframes cardFade {
    0% {
        opacity: 0.5;
        transform: scale(0.98);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Loading animation for buttons */
@keyframes btnLoading {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

.btn-loading {
    position: relative;
    overflow: hidden;
}

.btn-loading::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: btnLoading 1.5s infinite;
}

.invalid-feedback {
    display: none;
    color: #ff3b30;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.is-invalid+.invalid-feedback,
.is-invalid~.invalid-feedback {
    display: block;
}

.form-control.is-invalid {
    border-color: #ff3b30;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23ff3b30'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23ff3b30' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.form-control.is-invalid:focus {
    border-color: #ff3b30;
    box-shadow: 0 0 0 0.25rem rgba(255, 59, 48, 0.25);
}

.property-detail-container {
    display: flex;
    flex-direction: column;
}

.property-detail-image {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.property-detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.property-detail-image .status-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 5px 10px;
    color: white;
    font-weight: 500;
    border-radius: 4px;
}

.status-available {
    background-color: #22c55e;
}

.status-rented {
    background-color: #f59e0b;
}

.status-sold {
    background-color: #ef4444;
}

.property-detail-content {
    padding: 20px;
}

.property-detail-price h4 {
    color: #3b82f6;
    font-weight: 700;
    font-size: 1.75rem;
}

.feature-box {
    padding: 15px;
    background-color: #f9fafb;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.feature-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.feature-box i {
    font-size: 1.5rem;
    color: #3b82f6;
}

.feature-box p {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0;
}

.feature-label {
    font-size: 0.875rem;
    color: #6b7280;
}

.view-details-btn {
    display: block;
    width: 100%;
    padding: 10px 15px;
    background-color: #f3f4f6;
    color: #4b5563;
    border: none;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.view-details-btn:hover {
    background-color: #e5e7eb;
    color: #111827;
}

.clear-field-btn {
    padding: 0.375rem 0.5rem;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    border-color: #ced4da;
}

.clear-field-btn:hover {
    background-color: #f1f3f5;
}

.clear-all-btn {
    font-size: 0.875rem;
    padding: 0.25rem 0.75rem;
}

.search-results-summary .btn-outline-primary {
    border-color: #c8a97e;
    color: #c8a97e;
}

.search-results-summary .btn-outline-primary:hover {
    background-color: #c8a97e;
    color: white;
}

.search-results-summary {
    background-color: #f8fafc;
    border-radius: 8px;
    padding: 15px;
    margin-top: 20px;
}

.search-results-summary .alert {
    margin-bottom: 0;
}

@media (min-width: 768px) {
    .property-detail-container {
        flex-direction: row;
    }
    
    .property-detail-image {
        width: 40%;
        height: auto;
        min-height: 450px;
    }
    
    .property-detail-content {
        width: 60%;
    }
}

@media (max-width: 767.98px) {
    body {
        font-size: 0.95rem;
    }

    .navbar {
        padding: 0.8rem 1rem !important;
    }

    .navbar-brand {
        font-size: 1.4rem;
    }

    .hero-section {
        padding: 8rem 0 5rem !important;
        height: calc(100 * var(--vh));
    }

    .hero-section h1 {
        font-size: 2.2rem !important;
        line-height: 1.3;
    }

    .hero-section p {
        font-size: 1rem !important;
        line-height: 1.6;
    }

    .hero-btns {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .hero-btns .btn {
        width: 100%;
        margin: 0.5rem 0 !important;
    }

    .property-search {
        margin-top: 0 !important;
        padding: 1.25rem !important;
        border-radius: 10px;
    }

    .property-search .row > div {
        margin-bottom: 0.75rem;
    }

    .search-select, .search-btn {
        height: 50px !important;
    }

    .clear-field-btn {
        height: 50px;
    }

    .property-card {
        height: auto;
        margin-bottom: 1.5rem;
    }

    .property-image-container {
        height: 200px !important;
    }

    .property-details {
        padding: 1.25rem !important;
    }

    .property-price {
        font-size: 1.3rem !important;
    }

    .property-title {
        font-size: 1.2rem !important;
    }

    .property-features {
        flex-wrap: wrap;
        gap: 8px !important;
    }

    .property-features span {
        font-size: 0.8rem;
    }

    .view-details-btn, .inquiry-btn {
        padding: 0.7rem !important;
        font-size: 0.85rem;
    }

    .swiper-slide {
        height: 400px !important;
    }

    .swiper-slide-content {
        padding: 2rem 1.5rem 1.5rem !important;
    }

    .swiper-slide-content h3 {
        font-size: 1.4rem !important;
    }

    .testimonial-card {
        padding: 1.5rem !important;
    }

    .testimonial-avatar {
        width: 80px;
        height: 80px;
    }

    .modal-header {
        padding: 1.25rem !important;
    }

    .modal-body {
        padding: 1.25rem !important;
    }

    .modal-content {
        margin: 0.5rem;
    }

    .property-detail-image {
        height: 220px !important;
    }

    footer {
        padding: 3rem 0 0 !important;
    }

    footer h5 {
        margin-top: 1.5rem;
    }

    .copyright {
        margin-top: 2rem !important;
    }

    .navbar-collapse {
        background-color: rgba(26, 38, 57, 0.95);
        padding: 1rem;
        border-radius: 0 0 10px 10px;
        margin-top: 0.5rem;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .navbar-nav .nav-item:last-child .nav-link {
        border-bottom: none;
    }
    
    .section-header {
        margin-bottom: 2rem;
    }

    .section-header h2 {
        font-size: 2.2rem;
    }

    .properties-grid, .features-section, .featured-properties {
        padding: 4rem 0;
    }

    .row {
        margin-right: -0.5rem;
        margin-left: -0.5rem;
    }

    .row > [class*="col-"] {
        padding-right: 0.5rem;
        padding-left: 0.5rem;
    }
}

@media (max-width: 575.98px) {
    .section-header h2 {
        font-size: 1.8rem !important;
    }

    .section-header p {
        font-size: 0.9rem !important;
    }

    .property-filter {
        gap: 0.3rem !important;
    }

    .filter-btn {
        padding: 0.4rem 0.7rem !important;
        font-size: 0.75rem !important;
    }

    .feature-box {
        padding: 1.5rem !important;
    }

    .feature-icon {
        width: 60px;
        height: 60px;
    }

    .feature-icon i {
        font-size: 1.5rem !important;
    }

    .cta-section h2 {
        font-size: 2rem !important;
    }

    .cta-section p {
        font-size: 0.95rem !important;
    }

    .btn-cta {
        width: 100%;
        padding: 0.8rem 1.5rem !important;
    }

    .input-group-text {
        padding: 0.4rem 0.75rem;
    }

    .form-control {
        padding: 0.75rem 1rem !important;
        font-size: 0.95rem !important;
    }

    .property-detail-features .col-4 {
        padding: 0.3rem;
    }

    .property-detail-price h4 {
        font-size: 1.5rem !important;
    }

    #modalPropertyTitle {
        font-size: 1.3rem !important;
    }

    .back-to-top {
        bottom: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
    }
    
    .row.g-4 {
        --bs-gutter-x: 1rem;
    }
    
    .swiper-button-next, 
    .swiper-button-prev {
        width: 35px;
        height: 35px;
    }
    
    .swiper-button-next:after, 
    .swiper-button-prev:after {
        font-size: 1rem;
    }
}

@media (max-width: 359.98px) {
    .navbar-brand {
        font-size: 1.2rem !important;
    }

    .hero-section h1 {
        font-size: 1.8rem !important;
    }

    .property-card {
        margin-left: -0.5rem;
        margin-right: -0.5rem;
        border-radius: 0;
    }

    .property-features span {
        font-size: 0.75rem !important;
    }

    .swiper-slide {
        height: 350px !important;
    }

    .search-title {
        font-size: 1.1rem !important;
    }

    .modal-header h5 {
        font-size: 1.25rem !important;
    }

    .form-label {
        font-size: 0.9rem !important;
    }
}

@supports (-webkit-touch-callout: none) {
    .hero-section, 
    .animated-background {
        height: -webkit-fill-available;
    }
}

@media (hover: none) {
    .property-card:hover {
        transform: none;
    }
    
    .property-card:active {
        transform: scale(0.98);
    }
    
    .feature-box:hover {
        transform: none;
    }
    
    .back-to-top:active {
        transform: scale(0.9);
    }
}

@media (hover: none) {
    .form-control, .form-select {
        font-size: 16px !important; 
    }
    
    select.form-select {
        background-position: right 0.75rem center !important;
        padding-right: 2rem !important;
    }
    
    .btn, .inquiry-btn, .view-details-btn {
        padding-top: 0.75rem !important;
        padding-bottom: 0.75rem !important;
    }
}

.row {
    margin-right: 0;
    margin-left: 0;
}

@media (max-height: 700px) {
    .modal-dialog-scrollable .modal-content {
        max-height: 85vh;
    }
    
    .property-detail-image {
        height: 180px !important;
    }
}

@media (max-width: 575.98px) {
    #inquiryModal .modal-body {
        padding: 1rem !important;
    }
    
    #inquiryModal .form-label {
        margin-bottom: 0.4rem;
    }
    
    #inquiryModal .mb-4 {
        margin-bottom: 1rem !important;
    }
    
    #inquiryModal .btn-primary-modal {
        padding: 0.8rem !important;
    }
}

.testimonial-avatar img {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.btn, .btn-primary, .btn-outline, .inquiry-btn, .view-details-btn {
    white-space: normal;
}

html {
    scroll-behavior: smooth;
}

@media (max-width: 767.98px) {
    .search-results-summary .alert {
        padding: 0.75rem;
    }
    
    .search-results-summary p {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }
}

.touch-device .btn:active, 
.touch-device .property-card:active, 
.touch-device .feature-box:active {
    transform: scale(0.97);
}

.high-dpi img {
    image-rendering: -webkit-optimize-contrast;
}

img {
    opacity: 1;
    transition: opacity 0.3s;
}

img.loading {
    opacity: 0.5;
}

img.loaded {
    opacity: 1;
}

.keyboard-visible .hero-section,
.keyboard-visible .featured-properties,
.keyboard-visible .cta-section {
    background-attachment: scroll;
}

@supports (-webkit-touch-callout: none) {
    .form-control, 
    input, 
    select, 
    textarea {
        font-size: 16px !important; 
    }
}

.was-validated .form-control:invalid:focus {
    box-shadow: 0 0 0 0.25rem rgba(255, 59, 48, 0.25);
}

.mobile-only {
    display: none;
}

@media (max-width: 767.98px) {
    .mobile-only {
        display: block;
    }
    
    .desktop-only {
        display: none;
    }
}