/* ===== RESET ===== */
html, body {
    margin: 0;
    padding: 0;
}

* {
    box-sizing: border-box;
}

h1, h2, h3, p {
    margin: 0;
}

/* ===== CONTAINER ===== */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* ===== HERO ===== */
.hero {
    height: 100vh;
    width: 100%;
    position: relative;

    background: url('../images/herobanner.jpg') center/cover no-repeat;
}

/* OVERLAY */
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.3);
}

/* LOGO */
.hero-logo {
    position: absolute;
    top: 25px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.hero-logo img {
    height: 50px;
}

/* HERO TEXT (BOTTOM LEFT CLEAN) */
.hero-text {
    position: absolute;
    bottom: 50px;
    left: 0;
    width: 100%;
    z-index: 2;
    color: #fff;
}

.hero-text .container {
    padding-left: 10px;
}

.hero-text h1 {
    font-size: 32px;
}

.hero-text p {
    margin-top: 10px;
    font-size: 16px;
    max-width: 40%;
}

.cards-heading{
    margin-bottom: 20px;
}

/* ===== SECTION ===== */
.section {
    padding: 60px 0;
}

/* ===== GRID ===== */
.property-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

/* TABLET */
@media (max-width: 992px) {
    .property-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* MOBILE */
@media (max-width: 600px) {
    .property-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== CARD ===== */
/* ===== CARD (3:4 RATIO) ===== */
.property-card {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 3; /* 🔥 KEY */
    overflow: hidden;
    border-radius: 14px;
    cursor: pointer;
}

/* IMAGE */
.property-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

/* HOVER ZOOM */
.property-card:hover img {
    transform: scale(1.08);
}

/* DARK GRADIENT OVERLAY */
.property-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0,0,0,0.2),
        rgba(0,0,0,0.1)
    );
    z-index: 1;
}

/* CONTENT OVER IMAGE */
.card-overlay {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    z-index: 2;
    color: #fff;
}

/* TITLE */
.card-overlay h3 {
    font-size: 20px;
    margin-bottom: 8px;
    line-height: 1.3;
}

/* LINK */
.card-overlay a {
    display: inline-block;
    font-size: 14px;
    color: #fff;
    text-decoration: none;
    border-bottom: 1px solid #fff;
    padding-bottom: 2px;
    transition: 0.3s;
}

.card-overlay a:hover {
    opacity: 0.7;
}

/* ===== BUTTON PREMIUM ===== */
.btn-view-more {
    position: relative;
    padding: 14px 35px;
    border-radius: 40px;
    background: linear-gradient(135deg, #7a2539, #a02c45);
    color: #fff;
    border: none;
    font-weight: 600;
    cursor: pointer;
    overflow: hidden;
    transition: 0.3s;
}

.btn-view-more:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(122,37,57,0.4);
}

/* LOADER */
.btn-loader {
    display: none;
    width: 18px;
    height: 18px;
    border: 2px solid #fff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    margin: auto;
}

.btn-view-more.loading .btn-text {
    display: none;
}

.btn-view-more.loading .btn-loader {
    display: block;
}

/* ===== CARD FADE-IN ===== */
.property-card {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.6s ease forwards;
}

/* ANIMATIONS */
@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* ===== SKELETON ===== */
.skeleton {
    background: linear-gradient(90deg, #eee, #ddd, #eee);
    background-size: 200% 100%;
    animation: shimmer 1.2s infinite;
    border-radius: 14px;
    aspect-ratio: 3/4;
}

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


.view-more {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
}


/* Tablet */
@media (max-width: 992px) {
    .hero-text h1 {
        font-size: 32px;
        max-width: 80%;
    }
    .hero-text p{
        max-width: 80%;
    }
}

/* Mobile */
@media (max-width: 576px) {
    .hero-text h1 {
        font-size: 24px;
        max-width: 80%;
    }
    .hero-text p{
        max-width: 80%;
    }
    .footer-logo {
        display: flex;
        justify-content: center;
        align-items: center;
    }
}



/* ===== FOOTER ===== */
.footer-custom {
    width: 100%;
    padding: 80px 0;
    background: #7a2539;
    color: #fff;
}

/* CONTAINER (3-COLUMN GRID) */
.footer-container {
    width: 85%;
    max-width: 1300px;
    margin: 0 auto;

    display: grid;
    grid-template-columns: 1fr 1.5fr 1fr;
    gap: 40px;
    align-items: start;
}

/* COMMON COLUMN STYLING */
.footer-col {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.footer-col h2 {
    font-size: 18px;
    margin-bottom: 10px;
    font-weight: 700;
}

/* ===== LOGO COLUMN ===== */
.footer-logo-col img {
    height: auto;
    width: 230px;
    max-width: 250px;
    object-fit: contain;
}



/* ===== ADDRESS COLUMN ===== */
.footer-text {
    font-size: 14px;
    opacity: 0.9;
    line-height: 1.6;
}

.footer-email {
    font-size: 14px;
    color: #fff;
    text-decoration: none;
    transition: 0.3s;
}

.footer-email:hover {
    opacity: 0.7;
}

/* ===== SOCIAL COLUMN ===== */
.footer-social-col h2 {
    font-size: 18px;
    margin-bottom: 10px;
}

/* ICON ROW */
.footer-socials {
    display: flex;
    gap: 20px;
}

/* ICON STYLE */
.footer-socials i {
    font-size: 20px;
    color: #fff;
    transition: 0.3s;
}

/* HOVER EFFECT */
.footer-socials a:hover i {
    transform: scale(1.2);
    opacity: 0.7;
}


.copyright p{
    font-size: 14px;
}


/* ===== RESPONSIVE ===== */

/* STACKED (tablet + mobile) */
@media (max-width: 992px) {
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }

    .footer-col {
        align-items: center;
    }

    .footer-logo-col {
        justify-content: center;
    }

    .footer-socials {
        justify-content: center;
    }

    .footer-logo-col img {
    height: auto;
    width: 170px;
    max-width: 250px;
    object-fit: contain;
}
}