﻿.body-content {
    background: #FFF;
    max-width: 1000px !important;
    padding: 0px 0 20px 0 !important;
}

.carousel-container {
    padding: 20px;
}

.display-none {
    display: none !important;
}

.rating-icons {
    display: flex;
    gap: 30px; /* ensures 30px spacing between each child */
}

.rating-icons a {
    margin-right: 30px;
}
.rating-icons a:last-child {
    margin-right: 0; /* remove extra spacing after last icon */
}


.price-section {
    background: #188c4c;
    border-radius: 4px;
    padding: 6px 8px;
    color: #fff;
    margin: 4px auto !important;
    max-width: 300px;
    width: 80%;
    text-align: center;
}

.price-section-title {
    font-weight: 600;
    font-size: clamp(1rem, 2vw, 1.25rem);
}

.price-section-amount {
    font-weight: 600;
    font-size: clamp(1.25rem, 3vw, 1.5rem);
    font-family: 'NotoSans-Medium', sans-serif;
    margin: 2px 0;
}

/* ****************** IMAGES BELOW TEXTBOX PORTION STARTS ********************** */
#uploadedImagesPreview {
    display: flex;
    flex-wrap: wrap;
}

.preview-wrapper {
    position: relative;
    display: inline-block;
    margin: 6px;
}

    .preview-wrapper img {
        max-height: 70px;
        border-radius: 8px;
        display: block;
    }

/* X button styling */
.preview-remove-btn {
    position: absolute;
    top: -8px;
    right: -8px;
    background: rgba(0,0,0,0.75);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    font-size: 14px;
    line-height: 20px;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

    .preview-remove-btn:hover {
        background: red;
    }

/* Mobile layout: exactly 3 images per row */
@media (max-width: 479px) {
    #uploadedImagesPreview {
        display: grid;
        grid-template-columns: repeat(3, 1fr); /* always 3 equal columns */
        gap: 6px; /* spacing between images */
    }

    .side-sheet-preview-wrapper {
        display: grid;
        grid-template-columns: repeat(3, 1fr); /* always 3 equal columns */
        gap: 6px; /* spacing between images */
    }

    .preview-wrapper {
        width: 100%;
        aspect-ratio: 1 / 1; /* make each cell square */
        border: 2px solid #0061bc; /* blue-lined border */
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden; /* keep image inside */
        box-sizing: border-box;
    }

        .preview-wrapper img {
            max-width: 100%;
            max-height: 100%;
            object-fit: contain; /* no stretching, keep aspect ratio */
            border-radius: 6px; /* optional: softer inside */
        }
    .preview-remove-btn {
        position: absolute;
        top: 2px;
        right: 4px;
    }
}
/* ****************** IMAGES BELOW TEXTBOX PORTION ENDS ********************** */

#sideSheet_text + .mdc-notched-outline .mdc-floating-label {
    font-size: clamp(0.75rem, 2vw, 0.9rem) !important;
}

.mr-20-30 {
    margin-right: 30px !important;
}

.px-20 {
    padding-left: 20px;
    padding-right: 20px;
}

.price-guide-header-title {
    /* background: #e0f5f5; */
    padding: 10px 20px;
    text-align: center;
}

    .price-guide-header-title h1 {
        margin-bottom: 0px;
    }

.price-guide-header-H3 {
    padding: 20px;
    text-align: center;
}

.bglightgrey, .bglightgrey textarea {
    background-color: #f5f5f5 !important;
}


.search-row {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.search-panel {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 0 10px;
}

.body-container {
    padding: 0 20px;
}

.categoryimg-container {
    padding: 20px 0 0 0;
    /* padding: 5px 30px; */
}

    .categoryimg-container img {
        width: 50%;
    }

h2.category-h3 {
    font-size: 2em;
}

.buttonbar-panel {
    text-align: right;
}

.categoryChk .mdc-checkbox {
    height: 18px !important;
}

.clear-icon {
    right: 18px;
}

.oval-blue-outline-btn.oval-sm-btn {
    font-size: 16px !important;
    width: 80% !important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.linkbtn {
    color: #0044FE !important;
    cursor: pointer;
}

.bottom-sheet .row {
    display: flex;
}

.bottom-sheet h2 {
    font-size: clamp(1.6rem, 2.5vw, 2rem);
    font-weight: bolder;
}

.mt-10 {
    margin-top: 10px !important;
}

.mb-10 {
    margin-bottom: 10px !important;
}

#newAppraisalImages_bottomsheet {
    height: 95vh !important; /* 95% of viewport height */
    max-width: 450px !important;
}

    #newAppraisalImages_bottomsheet .header-image {
        width: 100% !important; /* 95% of viewport height */
    }

.newAppraisalImages-content {
    height: calc(90vh - 100px) !important; /* adjust based on header/footer */
    overflow-x: hidden;
    overflow-y: auto;
}

    .newAppraisalImages-content p {
        margin-top: -10px;
    }

#sortable ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    margin-bottom: 10px;
}

#sortable li {
    background-color: #FFFFFF;
    display: flex;
    justify-content: center;
    margin: 5px;
    padding: 5px;
    width: 30%;
    height: 125px;
    cursor: pointer;
    list-style: none;
    float: left;
    position: relative;
    border: 1px solid #0061bc;
    border-radius: 5px;
}

#sortable::after {
    content: "";
    display: table;
    clear: both;
}


#sortable li img {
    max-width: 100%;
    max-height: 100%;
}

#sortable li button.m-mdc-dislog-close {
    background-color: white !important;
    top: -10px;
    right: -10px;
    left: auto;
    width: 20px !important;
    height: 20px !important;
    font-size: 12px !important;
    position: absolute;
}

    #sortable li button.m-mdc-dislog-close i.mdc-fab__icon {
        font-size: 20px;
    }

.mobile-only {
    display: none;
}

.appr-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

@media (max-width: 500px) {
    .bottom-nav__action span {
        display: block !important;
    }
    .mr-20-30 {
        margin-right: 20px !important;
    }
}

@media (max-width: 479px) {
    .search-row {
        flex-direction: column;
    }

    .detail-field-row .m-col-8 {
        margin-left: 0px !important;
    }

    .carousel-item .carousel_wrap h5, .carousel_item_price {
        font-size: 17px !important;
    }

    .search-panel {
        margin-top: 10px;
    }

    .buttonbar-panel {
        text-align: left;
    }

    /* new appraisal bt 1 start */
    #newAppraisalImages_bottomsheet {
        height: 90vh !important;
    }

    .newAppraisalImages-content {
        height: calc(85vh - 100px) !important;
    }

    #sortable li {
        width: 45%
    }

    .mobile-only {
        display: unset;
    }
}

/*sideSheet portion starts*/
.side-sheet-scrim {
    position: fixed;
    inset: 0; /* shorthand for top/right/bottom/left:0 */
    background: rgba(0,0,0,0.5); /* grey overlay */
    z-index: 1000;
}

.side-sheet {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 100%;
    height: 100%;
    background: white;
    box-shadow: -3px 0 8px rgba(0,0,0,0.3);
    display: flex;
    flex-direction: column;
    transition: right 0.3s ease;
    z-index: 1000; /*as bottomsheet z-index is 1001*/
}

    .side-sheet.open {
        right: 0;
    }

/* Desktop: 75% width */
@media (min-width: 601px) {
    .side-sheet {
        width: 75%;
        max-width: none; /* remove the 400px restriction */
    }
}

.side-sheet-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #ddd;
}

.side-sheet-body {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
}

.side-sheet-footer {
    padding: 10px;
    border-top: 1px solid #ddd;
    /*display: flex;*/
    /*gap: 15px;
    flex-wrap: wrap;*/
}

.close-btn {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
}
.icon-link-side-sheet {
    display: inline-flex;
    align-items: center;
    font-size: clamp(0.7rem, 2vw, 0.9rem); /* responsive text size */
    padding: clamp(2px, 0.5vw, 4px) clamp(4px, 1vw, 8px); /* responsive padding */
    margin-right: 8px;
    text-decoration: none;
    color: #333;
    border: 1px solid #ccc;
    border-radius: 4px;
    transition: background-color 0.2s;
}

    .icon-link-side-sheet i {
        font-size: clamp(0.7rem, 2vw, 0.9rem); /* responsive icon */
        margin-right: 4px;
    }

    .icon-link-side-sheet:hover {
        background-color: #f0f0f0;
        cursor: pointer;
    }

    .icon-link-side-sheet:last-child {
        margin-right: 0;
    }

    .mt-05 {
        margin-top: 5px !important;
    }

    .qa-pair {
        margin-bottom: 15px;
        border-bottom: 1px solid #eee;
        padding-bottom: 10px;
    }

/* Blue question bubble */
.question-bubble {
    border: 1px solid #66b0ff;
    border-radius: 20px;
    padding: 10px 15px;
    display: inline-block;
    margin-bottom: 10px;
    font-weight: bold;
}

/* Loading spinner */
.loading-answer {
    display: flex;
    align-items: center;
    gap: 10px;
    font-style: italic;
}

    .loading-answer .spinner {
        width: 20px;
        height: 20px;
        animation: spin 1s linear infinite;
    }

#sideSheet_text {
    height: 1.5em !important;
    line-height: 1.3em !important;
    padding: 5px 10px 5px 5px !important;
    margin: 13px !important;
    box-sizing: border-box !important;
    /* overflow: hidden !important; */
    /* resize: none !important; */
    font-family: inherit !important;
    min-height: 0 !important;
}

/* Optional spinning animation if using a static GIF instead of animated one */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/*sideSheet portion ends*/

/*similar items portion starts*/
#similarItemsContainer {
    padding: 10px 5px;
}

.similar-items-heading {
    font-size: clamp(18px, 5vw, 24px) !important;
    font-weight: 700 !important;
    color: #2a7ae2 !important;
    margin-bottom: 1rem !important;
    border-bottom: 2px solid #2a7ae2 !important;
    padding-bottom: 0.25rem !important;
}

.no-similar-items {
    font-size: 1.1rem;
    color: #666;
    font-style: italic;
    padding: 1rem 0;
    text-align: center;
}

#clone_template_listview {
    list-style: none;
    padding: 0;
    margin: 0;
}

/*list-view start*/
.agentsmanager_tab_content .mdc-list .mdc-list-item__graphic {
    width: auto;
    height: 100%;
}

.agentsmanager_tab_content .mdc-list span.mdc-list-item__graphic {
    width: 110px;
}

.mdc-list {
    max-height: 100% !important;
    /*margin-bottom: 80px;*/ /*making room for the + fab icon*/
}

    .mdc-list .mdc-list-item {
        font-size: .75rem;
    }

    .mdc-list .mdc-list-item__graphic .hide {
        display: block !important;
        height: 100%;
        width: 85px;
        visibility: hidden;
    }

.mdc-list-item__secondary-text {
    max-width: 660px;
}

.list-item-hr {
    display: inline-flex;
    justify-content: flex-end;
    padding: 0 16px;
    width: 100%;
}

    .list-item-hr hr {
        max-width: 100%;
        width: 100%;
    }

/*new*/
.agent-list-item {
    display: flex;
    padding: 0 6px;
}

    .agent-list-item .agent-list-item__graphic {
        display: flex;
        justify-content: center;
        width: 90px;
        height: 90px;
        margin-right: 10px;
    }

        .agent-list-item .agent-list-item__graphic img {
            max-height: 90px;
            max-width: 90px;
        }

    .agent-list-item .agent-list-item__text {
        display: flex;
        font-size: 14px !important;
        flex-direction: column;
        width: 100%;
    }

.agent-list-item__text .agent-list-item__titleline {
    display: flex;
    justify-content: flex-start; /* Align all items to start */
    position: relative;
    font-size: clamp(1rem, 1.5vw, 1.1rem);
}

.agent-list-item__text .agent-list-item__secondary-text {
    color: rgba(0, 0, 0, 0.54);
    font-size: 0.75rem;
    min-height: 24px;
    word-break: break-word;
}

.agent-list-item__text .agent-list-item__last-text {
    display: flex;
    font-size: 0.75rem;
    justify-content: space-between; /* space items evenly */
    align-items: center; /* vertically center align */
}

.agent-list-item__last-text .item-price {
    flex: 0 0 33%; /* roughly 1/3 width */
    text-align: start; /* left align */
    font-weight: bold;
    font-size: 0.9rem;
}

.agent-list-item__last-text .item-source {
    flex: 0 0 34%; /* roughly 1/3 width */
    text-align: center; /* center align */
    font-weight: bold;
    font-size: 0.9rem;
}

.agent-list-item__last-text .item-date {
    flex: 0 0 33%; /* roughly 1/3 width */
    text-align: end; /* right align */
    font-weight: bold;
    font-size: 0.9rem;
}

.item-instructions {
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Limit to 2 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: clamp(14px, 2vw, 14px) !important; /* Adjust font size as needed */
    line-height: 1.3em; /* Adjust line height for better spacing */
    max-height: calc(1.3em * 2); /* Limit height to 2 lines */
}


.agent-list-item__titleline .mdc-fab {
    align-items: flex-start;
    display: flex;
    height: 25px;
    justify-content: flex-end;
}
.similarItemsList li {
    list-style: none !important;
}
/*similar items portion ends*/
