@import url('./base.css');

body {
    display: grid;
    grid-template-columns: 77% 23%;
}

.main-sidebar {
    position: sticky;
    top: 0;
    height: 100dvh;
    overflow: auto;
    border-left: 0.5px solid var(--color-muted);
    background-color: var(--color-white);
}

/* >>>>>>>>>>>>>>>>>>>>>>>>>
 Navbar
>>>>>>>>>>>>>>>>>>>>>>>>> */

.navbar {
    width: 100%;
    z-index: 500;
    position: sticky;
    top: 0;
    background-color: var(--color-white);
    display: flex;
    align-items: stretch;
}

.navbar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 var(--space-1)
}

.navbar-left {
    display: flex;
    align-items: center;
}

.logo {
    height: 80px;
    margin-right: 10px;
    margin: 10px auto;
}

.menu-toggle {
    font-size: 24px;
    background: none;
    border: 1px solid var(--color-primary);
    color: var(--color-primary);
    border-radius: var(--radius-md);
    padding: 5px 10px;
    cursor: pointer;
    display: none;
}

/* Menu */
.navbar-menu {
    display: flex;
    flex-basis: auto;
    height: auto;
    list-style: none;
    width: 100%;
}

.navbar-menu li {
    padding: var(--space-3);
    display: flex;
    align-items: center;
    font-size: var(--font-sm);
    color: #000;
    cursor: pointer;
    border-left: 0.5px solid var(--color-muted);
    border-right: 0.5px solid var(--color-muted);
    transition: background 0.3s;
    -webkit-box-flex: 1;
    flex: 1 1 auto;
    text-align: center;
    height: 100%;
}

.navbar-menu li:first-child {
    border-left: none;
}

.navbar-menu li:hover {
    background-color: var(--color-muted);
}

.navbar-menu .active {
    background-color: var(--color-primary);
    color: var(--color-white);
    border-left: 0.5px solid var(--color-primary);
    border-right: 0.5px solid var(--color-primary);
}

.navbar-menu .active:hover {
    background-color: var(--color-primary);
}

.navbar-menu li i {
    margin-right: 8px;
}

/* >>>>>>>>>>>>>>>>>>>>>>>>>
 Banner slider
>>>>>>>>>>>>>>>>>>>>>>>>> */
.banner-slider-section {
    position: relative;
}

.banner-slider {
    width: 100%;
    height: 550px;
    margin: auto;
    position: relative;
}

.banner-slider .swiper-slide {
    width: 100%;
    background-color: var(--color-muted);
}

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

/* Banner info card */
.banner-info-card {
    z-index: 100;
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    padding: var(--space-4);
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-info-card-content {
    height: 100%;
    width: 320px;
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.banner-info-card .top-banner {
    background-color: var(--color-primary);
    color: var(--color-white);
    text-align: center;
    padding: 10px;
    font-weight: var(--weight-semibold);
}

.banner-info-card .content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    padding: var(--space-4);
    text-align: center;
}

.banner-info-card .title {
    font-size: var(--font-xl);
    font-weight: var(--weight-bold);
}

.banner-info-card .subtitle {
    font-size: var(--font-sm);
    color: var(--color-muted-foreground);
}

.banner-info-card .details {
    text-align: left;
    background-color: var(--color-white);
    padding: 12px;
    border-radius: 6px;
    font-size: 14px;
}

.banner-info-card .details p {
    display: flex;
    justify-content: space-between;
    margin: 5px 0;
}

.banner-info-card .offer-list {
    background-color: var(--color-background);
    border: 1px dashed var(--color-primary);
    color: var(--color-primary);
    text-align: left;
}

.banner-info-card .offer-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.banner-info-card .offer-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: var(--font-sm);
    font-weight: var(--weight-medium);
    color: var(--color-foreground);
}

.banner-info-card .price {
    font-size: var(--font-xl);
    font-weight: bold;
}

.banner-info-card .price span {
    font-size: var(--font-sm);
    font-weight: normal;
}

.banner-info-card .btn {
    width: 100%;
}

/* >>>>>>>>>>>>>>>>>>>>>>>>>
 About section
>>>>>>>>>>>>>>>>>>>>>>>>> */
.about-section {
    padding-top: var(--space-8);
    padding-bottom: var(--space-8);
}

.about-section h1 {
    font-size: var(--font-3xl);
    line-height: 1.2;
    margin-bottom: 20px;
}

.about-section .link {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: var(--space-3);
    width: fit-content;
}

.about-section .link p {
    font-size: var(--font-xl);
    color: var(--color-primary);
}

.about-section .stats {
    margin-top: var(--space-8);
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.about-section .stat {
    flex: 1;
    min-width: 250px;
}

.about-section .stat h2 {
    font-size: var(--font-2xl);
    margin: 0 0 10px;
    color: var(--color-foreground);
}

.about-section .label {
    font-weight: var(--weight-bold);
    margin-bottom: 10px;
}

.about-section .desc {
    font-size: var(--font-sm);
    color: var(--color-muted-foreground);
}

/* >>>>>>>>>>>>>>>>>>>>>>>>>
Price section
>>>>>>>>>>>>>>>>>>>>>>>>> */
.price-section {
    background: var(--color-foreground);
    color: var(--color-background);
    padding-top: var(--space-8);
    padding-bottom: var(--space-8);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(auto, 1fr));
    gap: 20px;
}

.property-card {
    background-color: var(--color-white);
    color: var(--color-foreground);
    border-radius: var(--radius-lg);
    padding: var(--space-5);
}

.property-card .card-items {
    display: flex;
    justify-content: space-between;
}

.property-card .card-items .card-item {
    display: flex;
    flex-direction: column;
}

.property-card .card-items .card-item h3 {
    font-size: var(--font-xl);
    font-weight: var(--weight-bold) !important;
}

.property-card .card-items .card-item p {
    margin-top: -2px;
    font-size: var(--font-xs);
    color: var(--color-foreground);
}

.property-card .link {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: var(--space-3);
    width: fit-content;
}

.property-card .link p {
    font-size: var(--font-xl);
    color: var(--color-primary);
}

/* >>>>>>>>>>>>>>>>>>>>>>>>>
Master plan section
>>>>>>>>>>>>>>>>>>>>>>>>> */
.master-plan-section {
    padding-top: var(--space-8);
    padding-bottom: var(--space-8);
}

.master-plan-section .two-col-title {
    border-radius: var(--radius-md);
    overflow: hidden;
    gap: 0 !important;
}

.master-plan-section .two-col-title .right-section {
    font-size: var(--font-3xl);
    line-height: 1.2;
    margin-bottom: 20px;
    background: var(--color-white);
    height: 100%;
}

.master-plan-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.master-plan-section .two-col-title .left-section {
    /* color: var(--color-white); */
    height: 100%;
    padding: var(--space-6);
}

/* >>>>>>>>>>>>>>>>>>>>>>>>>
Floor plan section
>>>>>>>>>>>>>>>>>>>>>>>>> */
.floor-plan-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(auto, 1fr));
    gap: 20px;
}

.floor-plan-card {
    border: 1px solid var(--color-muted);
    box-shadow: 0 0 2px rgba(0, 0, 0, 0.1);
    border-radius: var(--radius-md);
    overflow: hidden;
    line-height: 0;
}

.floor-plan-card img {
    width: 100%;
}

.floor-plan-card .btn {
    width: 100%;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

.floor-plan-card .btn img {
    width: 20px;
    height: 20px;
    fill: var(--color-white);
}

/* >>>>>>>>>>>>>>>>>>>>>>>>>
Amenities section
>>>>>>>>>>>>>>>>>>>>>>>>> */
.amenities-section {
    margin: var(--space-8) 0;
    padding-top: var(--space-7);
    padding-bottom: var(--space-7);
    background-color: var(--color-white);
}

.amenities-slider {
    width: 100%;
    margin: auto;
    position: relative;
}

.amenities-slider .swiper-slide {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    width: 100%;
}

.amenity {
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    width: 100%;
}

.amenity img {
    aspect-ratio: 4/3;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.amenity-info {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: end;
    align-items: start;
    padding: var(--space-4);
    color: var(--color-white);
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 1) 100%);
}

.amenity-info h3 {
    font-size: var(--font-lg);
    font-weight: var(--weight-medium);
    margin: 0;
}

.amenity-info p {
    font-size: var(--font-sm);
    margin: 0;
    margin-top: var(--space-1);
    color: var(--color-white);
    opacity: 0.8;
}

/* >>>>>>>>>>>>>>>>>>>>>>>>>
Gallery section
>>>>>>>>>>>>>>>>>>>>>>>>> */
.images-slider {
    width: 100%;
    margin: auto;
    position: relative;
}

.images-slider .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 4/3;
    border-radius: var(--radius-md);
    cursor: pointer;
}

/* >>>>>>>>>>>>>>>>>>>>>>>>>
Location section
>>>>>>>>>>>>>>>>>>>>>>>>> */

.location-section {
    margin-top: var(--space-8);
    margin-bottom: var(--space-8);
    padding-top: var(--space-7);
    padding-bottom: var(--space-7);
    background-color: var(--color-white);
}

.location-info {
    height: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(auto, 1fr));
    gap: var(--space-4);
}

.location-map {
    width: 100%;
    grid-column: span 2 / span 2;
}

.location-map img {
    line-height: 0;
    width: 100%;
    height: 100%;
    border-radius: var(--radius-md);
    aspect-ratio: 4/3;
    object-fit: cover;
    background: var(--color-muted);
}

.location-items {
    display: grid;
    grid-template-columns: repeat(1, minmax(auto, 1fr));
    gap: var(--space-4);
    /* height: fit-content; */
    /* Add this line to fix the height issue */
}

.location-item {
    background-color: var(--color-muted);
    border-radius: var(--radius-md);
    display: flex;
    justify-content: space-between;
    overflow: hidden;
}

.location-item .item-details {
    padding: var(--space-4);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.location-item h3 {
    font-size: var(--font-lg);
    font-weight: var(--weight-bold) !important;
}

.location-item p {
    margin-top: -2px;
    font-size: var(--font-xs);
    color: var(--color-foreground);
}


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

/* >>>>>>>>>>>>>>>>>>>>>>>>>
Virtual tour section
>>>>>>>>>>>>>>>>>>>>>>>>> */
.virtual-tour-section {
    margin-bottom: var(--space-8);
}

.tour-video-section {
    line-height: 0;
    cursor: pointer;
    position: relative;
    width: 100%;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.tour-video-section img {
    width: 100%;
    height: 100%;
    aspect-ratio: 16/9;
    border-radius: var(--radius-md);
}

.tour-video-content {
    line-height: 1.2;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    color: var(--color-white);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.tour-video-content .play-button {
    width: 54px;
    height: 54px;
    background-color: var(--color-white);
    border-radius: 50%;
    padding: var(--space-4);
    transition: all 0.3s ease-in-out;
}

.tour-video-section:hover .tour-video-content .play-button {
    width: 60px;
    height: 60px;
    transition: all 0.3s ease-in-out;
}

/* >>>>>>>>>>>>>>>>>>>>>>>>>
Developer section
>>>>>>>>>>>>>>>>>>>>>>>>> */
.developer-section {
    background-color: var(--color-white);
    padding-top: var(--space-8);
    padding-bottom: var(--space-8);
}

/* >>>>>>>>>>>>>>>>>>>>>>>>>
Footer section
>>>>>>>>>>>>>>>>>>>>>>>>> */
.footer-section ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    font-size: var(--font-2xs);
}

.disclaimer{
    font-size: var(--font-2xs);
}

.copyright {
    border-top: 1px solid var(--color-muted-foreground);
    padding: var(--space-3) 0;
    font-size: var(--font-2xs);
}

.copyright a {
    color: var(--color-primary);
    text-decoration: none;
}

.copyright a:hover {
    text-decoration: underline;
}

/* >>>>>>>>>>>>>>>>>>>>>>>>>
Popup
>>>>>>>>>>>>>>>>>>>>>>>>> */

.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.popup {
    background: #fff;
    border-radius: 8px;
    max-width: 600px;
    width: 90%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    position: relative;
}

.popup-content {
    padding: var(--space-4)
}

.popup h2 {
    margin-top: 0;
    font-size: 20px;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 18px;
    cursor: pointer;
}

.popup-details {
    margin-top: var(--space-4);
    display: grid;
    grid-template-columns: repeat(3, minmax(auto, 1fr));
    gap: 20px;
}

.feature-area {
    display: flex;
    flex-direction: column;
    padding: var(--space-3);
    background: var(--color-muted);
    border-radius: var(--radius-md);
}

.feature-area h4 {
    text-align: center;
}

.features {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    justify-content: space-between;
}

.feature {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.feature img {
    width: 32px;
    height: 32px;
}

.feature p {
    font-size: var(--font-base);
}

.form {
    grid-column: span 2 / span 2;
}

.form input,
.form select {
    width: 100%;
    padding: 10px;
    margin-top: 10px;
    box-sizing: border-box;
}

.popup-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: var(--color-primary);
    color: var(--color-white);
    font-weight: bold;
    border-radius: 0 0 8px 8px;
    margin-top: 20px;
}

/* >>>>>>>>>>>>>>>>>>>>>>>>>
Sidebar
>>>>>>>>>>>>>>>>>>>>>>>>> */
.main-sidebar-content {
    padding: 0 var(--space-3) var(--space-3) var(--space-3);
    overflow: auto;
    border-radius: 0;
}

.price-sheet {
    cursor: pointer;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    padding: var(--space-2);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-3);
    background-image: linear-gradient(to right, var(--color-primary) 0%, #537895 100%, #537895 100%, #537895 100%);
    font-size: var(--font-base);
    font-weight: var(--weight-semibold);
    color: var(--color-white);
}

.price-sheet img {
    width: 36px;
    height: 36px;
}

.sidebar-call-area {
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    background-color: var(--color-muted);
    border-radius: var(--radius-md);
    padding: var(--space-4);
    color: var(--color-foreground);
    border: 1px solid transparent;
    transition: all 0.3s ease-in-out;
}

.sidebar-call-area:hover {
    border: 1px solid var(--color-primary);
    transition: all 0.3s ease-in-out;
}

.sidebar-call-area .number {
    display: block;
    font-size: var(--font-lg);
    font-weight: var(--weight-bold);
    color: var(--color-primary);
    text-align: right;
    line-height: auto;
}

.sidebar-call-area a:hover {
    text-decoration: underline;
}

/* >>>>>>>>>>>>>>>>>>>>>>>>>
Responsive Styles
>>>>>>>>>>>>>>>>>>>>>>>>> */
@media screen and (min-width: 1100px) and (max-width: 1300px) {

    /* >>>>>>>>>>>>>>>>>>>>>>>>>
    Navbar
    >>>>>>>>>>>>>>>>>>>>>>>>> */
    .navbar-menu li {
        padding: var(--space-2);
        flex-direction: column;
        gap: var(--space-2);
        align-items: center;
        justify-content: center;
        font-size: var(--font-xs);
    }

}

@media screen and (max-width: 1100px) {
    body {
        grid-template-columns: 100%;
    }

    .main-sidebar {
        display: none;
    }

}

@media screen and (min-width: 768px) and (max-width: 1100px) {

    /* >>>>>>>>>>>>>>>>>>>>>>>>>
    Navbar
    >>>>>>>>>>>>>>>>>>>>>>>>> */
    .navbar-menu li {
        padding: var(--space-2);
        flex-direction: column;
        gap: var(--space-2);
        align-items: center;
        justify-content: center;
        font-size: var(--font-xs);
    }

    /* >>>>>>>>>>>>>>>>>>>>>>>>>
    Price section
    >>>>>>>>>>>>>>>>>>>>>>>>> */
    .property-card .card-items {
        flex-wrap: wrap;
        gap: var(--space-5);
    }

    /* >>>>>>>>>>>>>>>>>>>>>>>>>
    Location section
    >>>>>>>>>>>>>>>>>>>>>>>>> */
    .location-info {
        height: 100%;
        display: grid;
        grid-template-columns: repeat(2, minmax(auto, 1fr));
        gap: var(--space-4);
    }

    .location-map {
        width: 100%;
        grid-column: span 1 / span 1;
    }
}

@media screen and (max-width: 768px) {

    /* >>>>>>>>>>>>>>>>>>>>>>>>>
    Navbar
    >>>>>>>>>>>>>>>>>>>>>>>>> */
    .navbar {
        flex-direction: column;
    }

    .navbar-header {
        width: 100%;
    }

    .menu-toggle {
        display: block;
    }

    .navbar-menu {
        position: absolute;
        background-color: var(--color-white);
        top: 60px;
        flex-direction: column;
        display: flex;
        max-height: 0;
        overflow: hidden;
        width: 100%;
        transition: all 0.3s ease-in-out;
    }

    .navbar-menu.active {
        max-height: 500px;
        transition: all 0.3s ease-in-out;
    }

    .navbar-menu.open {
        display: flex;
    }

    .navbar-menu li {
        height: auto;
        width: 100%;
        justify-content: center;
        border-left: none;
        border-top: 1px solid #eee;
    }

    /* >>>>>>>>>>>>>>>>>>>>>>>>>
    Banner slider
    >>>>>>>>>>>>>>>>>>>>>>>>> */
    .banner-info-card {
        position: relative;
        width: 100%;
        padding: var(--space-3);
    }

    .banner-info-card-content {
        width: 100%;
    }

    .banner-info-card .details {
        background-color: var(--color-muted);
    }

    .banner-info-card .offer-list {
        background-color: var(--color-background);
    }

    /* >>>>>>>>>>>>>>>>>>>>>>>>>
    Location section
    >>>>>>>>>>>>>>>>>>>>>>>>> */
    .location-section {
        flex-direction: column;
        padding: 20px;
    }

    .location-map,
    .location-info {
        margin: 0 0 20px 0;
        max-width: 100%;
    }

    /* >>>>>>>>>>>>>>>>>>>>>>>>>
    Location section
    >>>>>>>>>>>>>>>>>>>>>>>>> */
    .location-info {
        height: 100%;
        display: grid;
        grid-template-columns: repeat(1, minmax(auto, 1fr));
        gap: var(--space-4);
    }

    .location-map {
        width: 100%;
        grid-column: span 1 / span 1;
    }
}

@media screen and (min-width: 440px) and (max-width: 768px) {

    /* >>>>>>>>>>>>>>>>>>>>>>>>>
    Price section
    >>>>>>>>>>>>>>>>>>>>>>>>> */
    .pricing-grid {
        grid-template-columns: repeat(2, minmax(auto, 1fr));
        gap: 20px;
    }

    /* >>>>>>>>>>>>>>>>>>>>>>>>>
    Floor plan section
    >>>>>>>>>>>>>>>>>>>>>>>>> */
    .floor-plan-grid {
        grid-template-columns: repeat(2, minmax(auto, 1fr));
    }

    /* >>>>>>>>>>>>>>>>>>>>>>>>>
    Popup
    >>>>>>>>>>>>>>>>>>>>>>>>> */
    .popup-details {
        grid-template-columns: repeat(1, minmax(auto, 1fr));
    }

    .form {
        grid-column: span 1 / span 1;
    }

    .features {
        flex-direction: row;
        gap: var(--space-3);
    }
}

@media screen and (max-width: 440px) {

    /* >>>>>>>>>>>>>>>>>>>>>>>>>
    Price section
    >>>>>>>>>>>>>>>>>>>>>>>>> */
    .pricing-grid {
        grid-template-columns: repeat(1, minmax(auto, 1fr));
        gap: 20px;
    }

    /* >>>>>>>>>>>>>>>>>>>>>>>>>
    Floor plan section
    >>>>>>>>>>>>>>>>>>>>>>>>> */
    .floor-plan-grid {
        grid-template-columns: repeat(1, minmax(auto, 1fr));
    }

    /* Gallery Section */
    .swiper-pagination-bullet{
        width: 8px !important;
    }

    /* >>>>>>>>>>>>>>>>>>>>>>>>>
    Popup
    >>>>>>>>>>>>>>>>>>>>>>>>> */
    .popup-details {
        grid-template-columns: repeat(1, minmax(auto, 1fr));
    }

    .form {
        grid-column: span 1 / span 1;
    }

    .feature-area {
        display: none;
    }

}