/* Single Property Page Styles Refined */
.single-property-page {
    font-family: 'Inter', sans-serif;
    color: #333;
    padding-bottom: 50px;
    background-color: #fcfcfc;
}

.hero-main-card {
    border: 1px solid #CACACA;
    border-radius: 8px;
    padding: 24px 32px;
    margin-bottom: 60px;
}

/* Side by Side Hero */
.hero-flex-container {
    display: flex;
    gap: 30px;
}

.hero-left-gallery {
    flex: 0 0 70%;
    max-width: 70%;
}

.hero-right-info {
    flex: 1;
    max-width: 30%;
}

.single-property-page1 .container.py-5 {
    max-width: 90%;
}

/* Gallery Structure: 1 Main Top + 3 Below */
.gallery-main-top img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 12px;
}

.clp-listing-card {
    background: transparent;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: none !important;
    transition: inherit;
    display: flex;
    flex-direction: column;
    position: relative;
    min-width: 0;
}

.clp-listing-card:hover {
    transform: inherit !important;
    box-shadow: none !important;
}

.gallery-thumbs-row {
    display: flex;
    gap: 12px;
}

.thumb-box {
    flex: 1;
    position: relative;
    cursor: pointer;
}

.thumb-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.thumb-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 600;
    border-radius: 8px;
    font-size: 1.1rem;
}

/* Right Side Content */
.info-address {
    color: #2c2c2c;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 26px;
    font-weight: 500;
}

.info-header {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 24px;
}

.info-header .info-price {
    font-size: 20px;
    font-weight: 500;
    color: #2c2c2c;
    margin-right: 24px;
}

.info-header .info-fees {
    font-size: 16px;
    color: #2c2c2c;
    font-weight: 400;
}

.info-description-summary {
    color: #2c2c2c;
    font-size: 20px;
    margin-bottom: 32px;
    font-weight: 400;
}

.info-actions {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 80px;
    max-width: 100%;
}

.info-actions .btn-apply-now {
    width: 100% !important;
    display: block;
}

.info-actions-bottom {
    display: flex;
    gap: 16px;
    width: 100%;
}

.info-actions-bottom .btn-book-tour,
.info-actions-bottom .btn-contact-us {
    flex: 1;
    width: auto !important;
}

.btn-contact-us {
    background-color: #fff;
}

.btn-premium {
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-premium-blue {
    background-color: #598DC9;
    color: #fff;
    font-size: 16px !important;
    font-weight: 400;
    border: 1px solid #598DC9;
    transition: 0.5s all;
}

.btn-premium-blue:hover {
    background: transparent;
    color: #598DC9;
}

.btn-premium-outline {
    border: 1px solid #598DC9;
    color: #598DC9;
    font-size: 16px !important;
    font-weight: 400;
    transition: 0.5s all;
}

.btn-premium-outline:hover {
    background: #598DC9;
    color: #fff;
}

/* Meta Grid In Sidebar Style */
.meta-grid-new {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.meta-item-new {
    background-color: #F9FBFD;
    padding: 8px 24px;
    border-radius: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #2c2c2c;
    font-size: 18px !important;
    font-weight: 500;
    width: 100%;
}

.meta-icon-new {
    width: 20px;
    color: #555;
}

/* Content Sections */
.content-section {
    margin-bottom: 50px;
}

.content-section h2 {
    font-size: 26px;
    font-weight: 500;
    margin-bottom: 16px;
    color: #2c2c2c;
}

.description-text p {
    margin-bottom: 12px;
    font-size: 19px;
    line-height: 1.6;
    color: #2c2c2c;
}

.description-text p span {
    font-size: 19px;
    font-weight: 400;
    color: #2c2c2c;
}

.description-text ul {
    padding-left: 20px;
    margin-bottom: 16px;
}

.description-text ul li {
    font-size: 19px;
    line-height: 1.6;
    color: #2c2c2c;
    margin-bottom: 8px;
}

.description-text ul li span {
    font-size: 19px;
    font-weight: 400;
    color: #2c2c2c;
}

#property-map-new .epl-tab-section {
    margin-top: 0 !important;
}

.amenities-list-new {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.amenity-item-new {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #2c2c2c;
    font-size: 19px;
}


.amenity-item-new i {
    color: #27ae60;
    font-size: 16px;
}

/* Map Section */
#property-map-new {
    border-radius: 12px;
    overflow: hidden;
}

.similar-homes-header h2 {
    font-size: 34px !important;
    font-weight: 500;
    color: #2c2c2c;
    margin-bottom: 0;
}

.similar-homes-header a.text-primary {
    font-size: 18px;
    font-weight: 400;
    color: #0F3C7C;
    text-decoration: underline;
}

.text-primary {
    color: #598dc9 !important;
}

/* Similar Homes Carousel */
.similar-homes-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.similar-slider-container {
    position: relative;
    padding: 0 12px;
    overflow: visible;
}

.similar-homes-swiper {
    padding: 10px 0 50px;
    width: 100%;
    margin: 0 auto;
    overflow: hidden;
}

.similar-homes-swiper .swiper-button-next {
    right: -10px;
}

.similar-homes-swiper .swiper-button-prev {
    left: -10px;
}


/*.similar-homes-carousel-section .swiper {
    overflow: visible;
}
*/

.new_form p {
    width: 100%;
}

.similar-homes-swiper .swiper-button-next,
.similar-homes-swiper .swiper-button-prev {
    color: #333;
    background: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 20;
    top: 47%;
}

.clp-card-slider .swiper-button-next {
    right: 5px;
    background: transparent !important;
    opacity: 1;
    box-shadow: none;
}

.clp-card-slider .swiper-button-prev {
    left: 6px;
    background: transparent !important;
    opacity: 1;
    box-shadow: none;
}

.swiper-button-next.swiper-button-disabled,
.swiper-button-prev.swiper-button-disabled {
    opacity: 1 !important;
}

.similar-homes-swiper .swiper-button-next:after,
.similar-homes-swiper .swiper-button-prev:after {
    font-size: 1.2rem;
    font-weight: bold;
}

.single-property-page1 .container.py-5 {
    overflow: visible !important;
}

.single-property-page1 .similar-swiper-prev.swiper-button-prev.swiper-button-disabled {
    opacity: 0 !important;
}



span.wpcf7-spinner {
    display: none;
}


.similar_main_container.single-property-page1 {
    background: #f6f6f6;
}

.similar_main_container.single-property-page1 section.similar-homes-carousel-section.mt-5.container.py-5 {
    padding-top: 60px !important;
    margin-top: 0px !important;
    margin-bottom: 0 !important;
    padding-bottom: 60px !important;
}

/* Responsive */
@media(max-width: 1440px) {

    .clp-card-content {
        padding: 15px;
    }

    .clp-card-address,
    .clp-property-type {
        font-size: 14px;
    }

    .clp-card-price {
        font-size: 16px;
    }

    .meta-item {
        font-size: 13px;
    }

    .btn-outline-primary {
        font-size: 14px;
    }

    .clp-btn {
        padding: 8px;
    }

}


@media (max-width: 1199px) {
    .info-description-summary {
        font-size: 16px;
        margin-bottom: 20px;
    }

    .info-address {
        margin-bottom: 20px;
        font-size: 16px;
    }

    .info-header .info-price {
        font-size: 20px;
        margin-right: 20px;
    }

    .info-actions {
        margin-bottom: 50px;
        max-width: 100%;
    }

    .info-actions .btn-apply-now {
        width: 100% !important;
    }

    .similar-homes-header h2 {
        font-size: 28px !important;
    }

    .new_sbtn input.wpcf7-form-control.wpcf7-submit.has-spinner.btn.btn-pill {
        padding: 10px 40px !important;
        font-weight: 500;
        font-size: 16px !important;
    }

    .gslide-media {
        padding: 0 20px;
    }

    .hero-right-info {
        flex: 1;
        max-width: 40%;
    }

    .hero-left-gallery {
        flex: 0 0 60%;
        max-width: 60%;
    }
}




@media (max-width: 991px) {
    .hero-flex-container {
        flex-direction: column;
    }

    .hero-left-gallery,
    .hero-right-info {
        max-width: 100%;
    }

    .amenities-list-new {
        grid-template-columns: repeat(2, 1fr);
    }

    .glightbox-clean .gprev {
        top: 50%;
        left: 10px;
    }

    .glightbox-clean .gnext {
        top: 50%;
        right: 10px;
    }
}


@media(max-width: 580px) {
    .meta-item-new {
        font-size: 16px !important;
    }

    .description-text p span,
    .description-text ul li span {
        font-size: 16px;
    }

    .description-text ul {
        margin-bottom: 0px;
    }

    .amenity-item-new,
    .clp-card-address,
    .clp-property-type,
    .btn-outline-primary,
    .btn-primary.btn-apply {
        font-size: 16px;
    }

    .clp-card-price {
        font-size: 18px;
    }

    .meta-item {
        font-size: 15px;
    }
}

@media (max-width: 576px) {
    .amenities-list-new {
        grid-template-columns: 1fr;
    }

    .gallery-thumbs-row {
        flex-wrap: wrap;
    }

    .thumb-box {
        flex: 0 0 calc(50% - 6px);
    }
}

/* GLightbox Premium Styling Overrides */
.goverlay {
    background: rgba(0, 0, 0, 0.9) !important;
}

.gprev,
.gnext {
    background: #fff !important;
    width: 45px !important;
    height: 45px !important;
    border-radius: 50% !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.gprev svg path,
.gnext svg path {
    fill: #333 !important;
}

.gcounter {
    bottom: 20px !important;
    top: auto !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 1.1rem !important;
    color: #fff !important;
    opacity: 0.9 !important;
    letter-spacing: 1px !important;
}

.glightbox-container .gslide-description {
    background: transparent !important;
}

.gslide-title {
    color: #fff !important;
    font-family: 'Inter', sans-serif !important;
}

/* Responsive GLightbox fixes */
@media (max-width: 768px) {

    .gprev,
    .gnext {
        width: 35px !important;
        height: 35px !important;
    }
}


@media(max-width: 580px) {
    .hero-main-card {
        border: 0;
        border-radius: 0;
        padding: 0;
        margin-bottom: 40px;
    }

    .single-property-page1 .container.py-5 {
        max-width: 100%;
    }

    .gallery-main-top img {
        height: 300px;
    }

    .clp-map-column {
        padding-left: 0 !important;
        order: 1;
    }

    .clp-listings-column {
        padding-right: 0;
        order: 2;
    }

    .clp-map-column {
        height: 360px !important;
        margin-bottom: 20px !important;
    }

    .thumb-box img {
        height: 100px;
    }

    .hero-flex-container {
        gap: 20px;
    }

    .info-header .info-price {
        font-size: 18px;
    }

    .info-header {
        margin-bottom: 15px;
    }

    .info-address {
        margin-bottom: 15px;
    }

    .info-description-summary {
        margin-bottom: 15px;
    }

    .info-actions {
        margin-bottom: 30px;
        max-width: 100%;
    }

    .btn-premium {
        padding: 10px 20px;
    }

    .meta-grid-new {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .meta-item-new {
        width: 100%;
        margin-bottom: 0;
    }

    .content-section h2 {
        font-size: 20px;
        margin-bottom: 15px;
    }

    .content-section {
        margin-bottom: 20px;
    }

    .contact_form h2 {
        font-size: 20px;
        margin-bottom: 15px;
    }

    .new_sbtn input.wpcf7-form-control.wpcf7-submit.has-spinner.btn.btn-pill {
        padding: 10px 40px !important;
        font-weight: 500 !important;
        font-size: 16px !important;
    }

    .similar-homes-header {
        margin-bottom: 15px;
        flex-wrap: wrap;
    }

    .similar-homes-header h2 {
        font-size: 20px !important;
    }

    .similar-homes-header a.text-primary {
        font-size: 16px;
    }

    .clp-btn {
        padding: 8px !important;
    }

    .similar-slider-container .similar-swiper-next,
    .similar-slider-container .similar-swiper-prev {
        width: 40px !important;
        height: 40px !important;
    }

    .clp-filter-item {
        width: 47% !important;
    }

    .clp-filter-flex {
        gap: 15px !important;
    }

    .clp-filter-flex {
        justify-content: space-between;
    }

    .clp-filter-item.reset-filter {
        margin-top: 25px !important;
    }
}


html, body, .single-property-page1 {
    overflow: visible !important;
    overflow-x: visible !important;
}

/* ==========================================================================
   Card Redesign Styles (Reference: index.html)
   ========================================================================== */
.property-redesign {
    max-width: 1180px;
    margin: 40px auto;
    padding: 0;
    font-family: inherit;
    color: #333;
}

.property-description-layout {
    display: grid;
    grid-template-columns: 1fr 330px;
    gap: 24px;
    align-items: start;
    margin-top: 30px;
}

.property-main-description {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.property-info-card {
    background: #fff;
    border: 1px solid #e6eaf2;
    border-radius: 8px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
    padding: 26px;
}

.property-info-card h2 {
    font-size: 24px !important;
    font-weight: 600 !important;
    margin: 0 0 18px !important;
    color: #333 !important;
    border-bottom: 0 !important;
    padding-bottom: 0 !important;
}

.property-info-card h3 {
    font-size: 18px !important;
    font-weight: 600 !important;
    margin: 25px 0 12px !important;
    color: #333 !important;
}

.property-info-card p {
    font-size: 16px !important;
    line-height: 1.75 !important;
    margin: 0 0 15px !important;
    color: #444 !important;
}

.quick-info-grid,
.amenities-grid,
.location-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.quick-info-grid div,
.amenities-grid span,
.location-grid div {
    background: #f7f9fd;
    border-radius: 6px;
    padding: 12px 14px;
    font-size: 14px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

.amenities-grid span {
    color: #2f6f3e;
    font-weight: 500;
}

.property-sidebar-info {
    position: -webkit-sticky;
    position: sticky;
    top: 120px;
    align-self: start;
    z-index: 10;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid #eef1f6;
    padding: 12px 0;
    font-size: 14px;
}

.detail-row span {
    color: #666;
}

.detail-row strong {
    color: #333;
    text-align: right;
    font-weight: 600;
}

.rules-box {
    background: #f7f9fd;
    border-radius: 6px;
    padding: 12px 14px;
    margin-bottom: 10px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

@media (max-width: 991px) {
    .property-description-layout {
        grid-template-columns: 1fr;
    }

    .property-sidebar-info {
        position: relative;
        top: auto;
    }
}

@media (max-width: 575px) {
    .quick-info-grid,
    .amenities-grid,
    .location-grid {
        grid-template-columns: 1fr;
    }

    .property-info-card {
        padding: 20px;
    }
}