﻿.navbar {
    position: absolute;
    width: 100%;
    top: 0;
    z-index: 3; /* Ensure navbar is above the carousel */
}

.hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero {
    position: relative;
    top: 0;
    margin-top: 0;
    width: 100%;
    height: 100vh;
}

.text-container {
    position: absolute;
    top: 50%;
    left: 2%;
    transform: translateY(-50%);
    margin: 10px;
    font-size: 2.3rem;
    color: white;
    z-index: 2;
    max-width: 40%;
    margin-left: 30px;
}

    .text-container::before {
        content: "";
        position: absolute;
        top: -10px;
        left: -10px;
        width: calc(100% + 40px);
        height: calc(100% + 60px);
        background: rgba(0, 0, 0, 0.7);
        z-index: -1;
    }

.subText {
    font-size: 2.0rem;
}

.overlay {
    position: absolute;
    top: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-heading {
    color: white;
}

    .hero-heading h1, .section-header,
    .property-details-top {
        text-transform: uppercase;
    }

.main-section {
    margin-top: 3rem;
}

.section-header {
    display: flex;
    justify-content: center;
}

    .section-header::after {
        content: '';
        position: absolute;
        display: block;
        border-bottom: 3px solid #8ec63f;
        width: 100px;
        margin: auto;
        padding: 20px;
    }

.property-pics {
    margin-top: 2rem;
    height: 95vh;
}

    .property-pics .carousel-item {
        height: 95vh;
        background: rgba(0, 0, 0, 0.5);
    }

        .property-pics .carousel-item img {
            object-fit: cover;
            width: 100%;
            height: 100%;
        }

.property-details {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
}

.property-details-bottom > button {
    background: transparent;
    color: #fff;
}

    .property-details-bottom > button:hover {
        background: #fff;
        color: #333;
    }

.carousel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem;
    color: #fff;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transform: translateY(calc(20vh));
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.property-pics:hover .carousel-caption {
    opacity: 1;
    transform: translateY(calc(0vh));
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.overlay a {
    text-decoration: none;
    color: #fff;
}

.btn-custom {
    background-color: #84BD00;
    color: white;
    margin-left: 0;
}

    .btn-custom:hover {
        background-color: #008BB2;
    }

.carousel-control-next-icon, .carousel-control-prev-icon {
    display: inline-block;
    width: 3rem;
    height: 3rem;
    background-repeat: no-repeat;
    background-position: 50%;
    background-size: 100% 100%;
    background-color: #333;
    padding: 0rem;
    border-radius: 50%;
    border: 8px solid #333;
}

@media (max-width: 768px) {

    .text-container {
        position: absolute;
        left: 50%;
        transform: translate(-50%, -50%);
        font-size: 1.5rem;
        color: white;
        z-index: 2;
        width: 100%;
        margin-left: 0 !important;
        text-align: center
    }

        .text-container::before {
            content: "";
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 85vw;
            height: calc(100% + 100px);
            background: rgba(0, 0, 0, 0.7);
        }
}