/* Single Listing Page Styles */

.tas-single-container {
    width: 100%;
    max-width: 1400px;
    margin: 40px auto;
    padding: 0 20px;
    font-family: inherit;
    color: #333;
    box-sizing: border-box;
}

.tas-single-container *,
.tas-single-container *::before,
.tas-single-container *::after {
    box-sizing: border-box;
}

.tas-single-header {
    margin-bottom: 40px;
}

.tas-back-btn {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: #000000;
    font-size: 16px;
    margin-top: 20px;
    margin-left: -3px;
    margin-bottom: 15px;
}

.tas-back-btn:hover {
    color: #000;
}

.tas-single-title {
    font-size: clamp(20px, 1.2vw, 24px);
    font-weight: 800;
    margin: 8px 0 10px 0;
    line-height: 1.2;
}

.tas-single-location {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #000000;
    font-size: 16px;
}

.tas-single-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: flex-start;
}

.tas-single-main {
    flex: 1 1 55%;
    min-width: 0; /* Prevent flex overflow */
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.tas-single-sidebar {
    flex: 1 1 300px;
    min-width: 0;
}

/* Gallery Slider */
.tas-single-gallery-wrapper {
    position: relative;
    margin-bottom: 30px;
    border-radius: 0;
    overflow: hidden;
    background: #f8f8f8;
}

.tas-gallery-slider {
    margin: 0;
    width: 100%;
    overflow: hidden;
}

.tas-gallery-slide {
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.tas-gallery-blur-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    filter: blur(7px);
    z-index: -1;
}

.tas-gallery-slide img {
    width: 100%;
    height: 100%;
    display: block;
    aspect-ratio: 4/3;
    object-fit: contain; /* Contain the image, allowing blur to show on sides */
    max-height: 600px;
}

.tas-slide-counter {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #0000004f;
    color: #fff;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 5px;
    z-index: 10;
    line-height: 20px;
}

.tas-slider-arrows {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 15px;
    pointer-events: none;
}

.tas-single-gallery-wrapper .tas-slider-arrows button {
    pointer-events: auto;
    background: #FFFFFF;
    border-radius: 50% !important;
    width: 28px;
    height: 28px;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

.tas-single-gallery-wrapper .tas-slider-arrows button:hover {
    transform: scale(1.1);
}

/* Description Section */
.tas-single-section {
    margin-bottom: 40px;
}

.tas-single-section h2 {
    font-size: clamp(16px, 1.2vw, 25px);
    font-weight: 600;
    font-family: "Montserrat";
    margin-bottom: 7px;
}

.tas-description-content p {
    line-height: 1.6;
    color: #000000;
}

/* Details Section */
.tas-details-badge {
    display: inline-block;
    background-color: #c1f10d;
    padding: 8px 20px;
    font-weight: 500;
    font-size: 14px;
    color: #000;
}

.tas-details-list {
    list-style: none;
    padding: 0;
    margin: 0;
    border-top: 2px solid #c1f10d;
    padding-top: 15px;
}

.tas-details-list li {
    display: flex;
    justify-content: flex-start;
    padding: 5px 0;
    font-size: 14px;
}

.tas-details-list li strong {
    width: 200px;
    font-weight: 600;
    color: #000;
    font-size: 16px;
}

.tas-details-list li span {
    font-size: 16px;
    color: #000000;
}

.tas-details-features {
    list-style: none;
    padding: 0;
    margin: 20px 0 0 0;
}

.tas-details-features li {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 14px;
    color: #333;
}

/* Sidebar Components */
.tas-single-price-box {
    background-color: #c1f10d;
    padding: 30px;
    border-radius: 10px;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #000;
}

.tas-single-price-box-mobile {
    display: none;
    margin-top: 25px;
    margin-bottom: 0;
}

.tas-single-contact-form-box,
.tas-single-contact-info-box {
    background: #f2f5f7;
    padding: 20px 30px;
    margin: 25px 0px;
    border-radius: 10px;
}

.tas-single-contact-form-box h3,
.tas-single-contact-info-box h3 {
    font-size: clamp(15px, 1.2vw, 22px);
    font-weight: 600;
    margin-top: 0;
    color: #000;
}
.tas-single-contact-info-box > p{
    color: #000000;
    padding-bottom: 20px;
}

.tas-form-group {
    margin-bottom: 15px;
}

.tas-form-group label {
    display: block;
    font-size: 14px !important;
    margin-bottom: 5px;
    color: #000;
    font-weight: 500;
}

.tas-form-group input[type="text"],
.tas-form-group input[type="email"],
.tas-form-group input[type="tel"],
.tas-form-group textarea {
    width: 100%;
    padding: 12px;
    border-radius: 4px;
    font-size: 13px;
    box-sizing: border-box;
    font-family: inherit;
    background: #fff;
}

.tas-form-group input:focus,
.tas-form-group textarea:focus {
    outline: none;
    border-color: #999;
}

.tas-form-checkbox label {
    display: flex;
    align-items: flex-start;
    gap: 5px;
    font-size: 12px;
    font-weight: 400;
    color: #555;
    cursor: pointer;
}

.tas-form-checkbox input {
    margin-top: 6px;
}
.tas-form-checkbox label > span,
.tas-form-checkbox label > span a {
   color: #000;
}
.tas-submit-btn {
    width: 100%;
    background-color: #c1f10d;
    color: #000;
    border: none;
    padding: 12px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: opacity 0.2s;
}

.tas-submit-btn:hover {
    opacity: 0.9;
}

.tas-submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

#tas-contact-form-message {
    margin-bottom: 15px;
    font-size: 14px;
    display: none;
    padding: 10px;
    border-radius: 4px;
}

#tas-contact-form-message.success {
    background-color: #e6f9e6;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
    display: block;
}

#tas-contact-form-message.error {
    background-color: #ffebee;
    color: #c62828;
    border: 1px solid #ef9a9a;
    display: block;
}

.tas-seller-row {
    display: flex;
    margin-bottom: 12px;
    font-size: 14px;
}

.tas-seller-row strong {
    width: 80px;
    font-weight: 600;
    color: #000;
    font-size: clamp(14px, 1.2vw, 16px);
}

.tas-seller-row span {
    color: #000000;
    font-size: clamp(14px, 1.2vw, 16px);
}

.tas-login-link {
    display: inline-block;
    text-decoration: none;
    font-size: 16px;
}
.tas-login-link:hover {
    text-decoration: underline;
}
 .tas-top-bar  > .tas-category{
        font-size: 13px;
        color: #000000;
    }
/* Responsive */
@media (max-width: 767px) {
    .tas-back-btn {
        margin-bottom: 24px;
    }
    .tas-single-price-box-mobile{
        display: block;
    }
    .tas-single-container {
        padding: 0;
        margin: 20px auto 40px;
        display: flex;
        flex-direction: column;
    }
    .tas-single-layout, .tas-single-main {
        display: contents;
    }
    .tas-top-bar {
        order: 1;
        padding: 15px 16px 5px;
    }
   
    .tas-single-gallery-wrapper {
        order: 2;
        margin-bottom: 15px;
    }
    .tas-single-header {
        order: 3;
        margin-bottom: 30px;
    }
    .tas-single-section.tas-single-description {
        order: 4;
    }
    .tas-single-section.tas-single-details {
        order: 5;
    }
    .tas-single-sidebar {
        order: 6;
    }
    .tas-single-container .tas-single-section.tas-single-description,
    .tas-single-container .tas-single-section.tas-single-details,
    .tas-single-container .tas-single-sidebar,
    .tas-single-container .tas-single-header {
        padding: 0 20px;
    }
    .tas-single-container .tas-single-layout {
        flex-direction: column;
        gap: 20px;
    }
    
    .tas-single-container .tas-slider-arrows {
        display: none;
    }
    
    .tas-single-main,
    .tas-single-sidebar {
        width: 100%;
        max-width: 100%;
        flex: 1 1 100%;
        min-width: 0;
    }
    
    .tas-details-list li strong {
        margin-bottom: 4px;
        width: 50%;
    }
    .tas-details-list li span{
        width: 50%;
    }
    .tas-single-price-box{
        width:60%;
        padding: 15px;
        font-size: 17px;
    }
    .tas-single-sidebar .tas-single-price-box{
        display: none;
    }
}

/* Popup Modal Styles */
.tas-popup-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 999999;
    display: flex;
    flex-direction: column;
}

.tas-popup-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: -1;
}

.tas-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    color: #fff;
    z-index: 10;
}

.tas-popup-counter-main {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 500;
}

.tas-popup-close {
    background: transparent;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

.tas-popup-close:hover {
    transform: scale(1.1);
}

.tas-popup-content {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.tas-popup-slider {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.tas-popup-slide {
    position: relative;
    outline: none;
    height: 80vh;
    box-sizing: border-box;
}

.tas-popup-slide.slick-active {
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.tas-popup-slide img {
    max-width: 100%;
    max-height: 80vh;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.tas-popup-slider-arrows {
    position: absolute;
    top: 50%;
    left: 20px;
    right: 20px;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    z-index: 10;
}

.tas-popup-slider-arrows button {
    pointer-events: auto;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: transform 0.2s;
}

.tas-popup-slider-arrows button:hover {
    transform: scale(1.1);
}

.tas-open-popup-trigger {
    cursor: pointer;
}


@media (max-width: 767px) {
    .tas-gallery-slide img {
        height: auto;
        aspect-ratio: auto;
    }
    .tas-gallery-blur-bg {
        display: none;
    }
    .tas-popup-slider-arrows {
        display: none;
    }
    .tas-popup-slide {
        height: calc(100vh - 60px);
    }
    .tas-popup-content {
        padding: 0;
    }
    .tas-single-title{
        margin-top: 30px;
    }
    .tas-single-contact-info-box > p{
        padding-bottom: 10px;
    }
    
}

