:root {
    --color-primary: #000000;
    --color-secondary: #f4f11a;
    --color-tertiary: #2f4399;
    --color-white: #ffffff;
    --color-gray-100: #f8f9fa;
    --color-gray-800: #343a40;

    --font-main: 'Outfit', sans-serif;

    --transition-fast: 0.3s ease;
    --transition-medium: 0.5s ease;

    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.1);

    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: 1px solid rgba(255, 255, 255, 0.2);
    --glass-blur: blur(15px);
}

body {
    font-family: var(--font-main);
    color: var(--color-primary);
    background-color: var(--color-white);
    overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    letter-spacing: -0.02em;
}

.text-accent {
    color: var(--color-secondary);
}

.text-blue {
    color: var(--color-tertiary);
}

/* Buttons */
.btn-primary-custom {
    background-color: var(--color-secondary);
    color: var(--color-primary);
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 50px;
    border: none;
    transition: var(--transition-fast);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary-custom::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background-color: var(--color-primary);
    transition: var(--transition-fast);
    z-index: -1;
}

.btn-primary-custom:hover::before {
    width: 100%;
}

.btn-primary-custom:hover {
    color: var(--color-secondary);
    box-shadow: 0 10px 20px rgba(244, 241, 26, 0.3);
}

.btn-secondary-custom {
    background-color: transparent;
    border: 2px solid var(--color-tertiary);
    color: var(--color-tertiary);
    font-weight: 600;
    padding: 10px 28px;
    border-radius: 50px;
    transition: var(--transition-fast);
}

.btn-secondary-custom:hover {
    background-color: var(--color-tertiary);
    color: var(--color-white);
}

/* Glassmorphism Navbar */
.navbar-custom {
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: var(--glass-border);
    padding: 1rem 0;
    transition: var(--transition-medium);
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--color-white) !important;
}

.nav-link {
    color: rgba(255, 255, 255, 0.7) !important;
    font-weight: 500;
    margin: 0 10px;
    transition: var(--transition-fast);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-secondary) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--color-secondary);
    transition: var(--transition-fast);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: var(--color-white);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: -2;
    transform: scale(1.1);
    /* For parallax effect */
    transition: transform 0.1s linear;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.7) 100%);
    z-index: -1;
}

.hero-content {
    text-align: center;
    z-index: 1;
    max-width: 800px;
    padding: 0 20px;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1s forwards 0.5s;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 40px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1s forwards 0.8s;
}

/* Search Box */
.search-box-container {
    background: rgba(255, 255, 255, 0.95);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    margin-top: 2rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1s forwards 1.1s;
}

/* Property Cards */
.property-card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-fast);
    background: var(--color-white);
}

.property-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.card-img-wrapper {
    overflow: hidden;
    position: relative;
    height: 250px;
}

.card-img-top {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.property-card:hover .card-img-top {
    transform: scale(1.1);
}

.card-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--color-secondary);
    color: var(--color-primary);
    padding: 5px 12px;
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: 4px;
    text-transform: uppercase;
}

.card-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.card-features {
    display: flex;
    gap: 15px;
    color: var(--color-gray-800);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.card-feature-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Footer */
footer {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding-top: 4rem;
    padding-bottom: 2rem;
}

.footer-link {
    color: #aaaaaa;
    text-decoration: none;
    transition: var(--transition-fast);
    display: block;
    margin-bottom: 10px;
}

.footer-link:hover {
    color: var(--color-secondary);
    padding-left: 5px;
}

/* Animations Keyframes */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Utilities */
.section-padding {
    padding: 80px 0;
}

.bg-gray {
    background-color: var(--color-gray-100);
}

/* Property Detail Gallery */
.gallery-main {
    height: 500px;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
}

.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-thumb {
    height: 120px;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.7;
    transition: var(--transition-fast);
}

.gallery-thumb:hover {
    opacity: 1;
    transform: scale(1.02);
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Amenity Badges */
.amenity-badge {
    background-color: var(--color-gray-100);
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    color: var(--color-gray-800);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-fast);
}

.amenity-badge:hover {
    background-color: var(--color-secondary);
    color: var(--color-primary);
}

.sticky-sidebar {
    position: sticky;

    top: 100px;
}

/* Floating WhatsApp */
.floating-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
}

.floating-whatsapp:hover {
    transform: scale(1.1);
    color: white;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.floating-whatsapp i {
    font-size: 32px;
}


/* Gallery Grid - Masonry-ish */
.gallery-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: 250px 250px;
    gap: 15px;
    height: 515px;
    /* 250+250+15 */
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Main image spans 2 rows and 1 column of the first block, 
   but let's make it simpler: 
   Cols: A B C 
   Rows: 1 2 */

.gallery-item.main {
    grid-column: 1 / 2;
    /* First col */
    grid-row: 1 / 3;
    /* Span both rows */
}

/* Overlay for main image */
.gallery-overlay {
    position: absolute;
    bottom: 20px;
    right: 20px;
    opacity: 0;
    transition: 0.3s;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* "More" Link overlay */
.gallery-more-link {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.2rem;
    text-decoration: none;
    transition: 0.3s;
}

.gallery-more-link:hover {
    background: rgba(0, 0, 0, 0.7);
    color: var(--color-secondary);
}

/* Responsive Gallery */
@media (max-width: 991px) {
    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 300px 150px 150px;
        height: auto;
    }

    .gallery-item.main {
        grid-column: 1 / 3;
        grid-row: 1 / 2;
    }
}

@media (max-width: 576px) {
    .gallery-grid {
        display: flex;
        flex-direction: column;
        height: auto;
        gap: 10px;
    }

    .gallery-item {
        height: 250px;
    }
}

/* Spec Items */
.spec-item {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

@media (min-width: 768px) {
    .spec-item {
        flex-direction: row;
        gap: 15px;
        text-align: left;
    }
}

/* Detail Lists */
.detail-list li {
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
    color: var(--color-gray-800);
}

/* Shadow Soft */
.shadow-soft {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

/* Cookie Consent */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1050;
    padding: 1.5rem 0;
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.cookie-consent.show {
    transform: translateY(0);
}