/* Reset some default styles */
body, h1, h2, h3, p, ul, li {
    margin: 0;
    padding: 0;
}

body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
    display: flex;
    flex-direction: column;
    height: 100vh;
}


.info-symbol {
    display: inline-block;
    font-size: 14px; /* Adjust the font size as needed */
    color: #000000; /* Adjust the color as needed */
    cursor: pointer;
    margin-right: 3px;
    z-index: 1; /* Set a z-index value to position the tooltip above other elements */
}

.info-symbol:hover::after {
    content: attr(title);
    display: block;
    position: absolute;
    background-color: #000000; /* Adjust the background color as needed */
    color: #fff; /* Adjust the text color as needed */
    padding: 5px;
    border-radius: 5px;
    font-size: 12px; /* Adjust the font size as needed */
    white-space: pre-line;
    max-width: 200px;
    z-index: 2; /* Set a higher z-index value than other elements to ensure it appears on top */
}

.main-content {
    display: flex;
    flex-direction: column;
    margin: auto; /* Add margin for spacing */
}

.media-container {
    display: flex;
    margin-top: -5px;
    flex-direction: column;
}

.back-button {
    color: #333;
    position: relative;
    align-self: center;
}

.listings-container {
    flex: 1;
    overflow-wrap: break-word; /* Allows long words to break and wrap to the next line */
    overflow: visible;
    border: 1px solid #e2e2e2;
    width: 1220px;
    box-sizing: border-box;
    align-self: center;
    margin-top: 10px;
    margin-bottom: 20px;
    padding: 5px;
    padding-bottom: 0;
    border-radius: 15px;
    box-shadow: 0 2px 6px 1px rgba(0, 0, 0, 0.06);
}

.content-container {
    align-self: center;
    padding: 10px;
    display: flex;
    align-items: flex-start;
    min-width: 0;
}

.listing {
    border: 2px solid #ddd;
    margin-left: 8px;
    width: 670px;
    height: 130px;
    padding: 5px;
    display: flex;
    margin-bottom: 10px;
    transition: outline 0.3s ease; /* Add a smooth transition effect for the outline */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05); /* Adjust values based on your preference */
    position: relative; /* Add relative positioning for absolute positioning within */
}

.media-slider {
    position: relative;
    width: 595px; /* Set a specific width or percentage */
    height: 555px; /* Fallback before JS syncs height to the info column */
    display: flex;
    overflow: hidden;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}

.media-slider--with-thumbs {
    height: 475px;
}

.media-slider.media-height-animated:not(.fullscreen-slider) {
    transition: height 180ms ease;
}

@media (prefers-reduced-motion: reduce) {
    .media-slider.media-height-animated:not(.fullscreen-slider) {
        transition: none;
    }
}

.detail-media-action-group {
    position: absolute;
    top: 9px;
    right: 9px;
    z-index: 6;
    display: flex;
    align-items: center;
    gap: 8px;
}

.detail-media-action-group .custom-enlarge-button {
    position: static;
    top: auto;
    right: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    color: white;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    font-size: 10px;
    cursor: pointer;
    z-index: 5;
    transition: background 0.3s, transform 0.1s;
}

.detail-media-action-group .custom-enlarge-button:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

.detail-media-action-group .custom-enlarge-button i {
    font-size: 18px;
    line-height: 1;
}

.fullscreen-slider .detail-media-action-group,
body.detail-fullscreen-media-open .detail-media-action-group {
    display: none;
}

.slider-media {
    position: relative;
    width: 595px;
    height: 100%;
    object-fit: contain;
}

.external-media-frame {
    position: relative;
    overflow: hidden;
    background: #111;
}

.external-media-frame__image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.external-media-attribution {
    position: absolute;
    right: 10px;
    bottom: 10px;
    z-index: 2;
    pointer-events: none;
    padding: 3px 7px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.58);
    color: #ffffff;
    font-size: 0.72rem;
    line-height: 1.1;
}

.media {
    display: flex;
    height: 100%;
    /* Make sure that each child is 100% the width of the .media-slider container */
}

.slide-arrow {
    --slide-arrow-icon: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%3E%3Cpath%20fill='%23000'%20d='M8.47%204.47a1.25%201.25%200%200%201%201.77%200l6.47%206.47c.59.59.59%201.54%200%202.12l-6.47%206.47a1.25%201.25%200%201%201-1.77-1.77L14.23%2012%208.47%206.24a1.25%201.25%200%200%201%200-1.77z'/%3E%3C/svg%3E");
    width: 46px;
    height: 46px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    appearance: none;
    font-size: 0;
    line-height: 0;
    position: absolute;
    z-index: 1;
    top: 50%;
    transform: translateY(-50%) scale(1);
    transform-origin: center;
    border-radius: 50%;
    background-color: #f5f5f5;
    color: #222;
    border: 1px solid rgba(0, 0, 0, 0.08);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
        opacity 0.2s ease,
        visibility 0s linear 0.2s,
        background-color 0.2s ease,
        box-shadow 0.2s ease,
        color 0.2s ease,
        transform 0.18s ease;
}

.slide-arrow::before {
    content: "";
    width: 24px;
    height: 24px;
    background-color: currentColor;
    -webkit-mask-image: var(--slide-arrow-icon);
    mask-image: var(--slide-arrow-icon);
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
}

.slide-arrow:hover {
    opacity: 1;
    transform: translateY(-50%) scale(1.07);
    background-color: #ffffff;
    color: #111;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

@media (hover: hover) and (pointer: fine) {
    .media-slider.slider-ready.has-multiple-media:hover .slide-arrow {
        opacity: 0.85;
        visibility: visible;
        pointer-events: auto;
        transition-delay: 0s;
    }

    .media-slider.slider-ready.has-multiple-media:hover .slide-arrow:hover {
        opacity: 1;
    }
}

.left-arrow {
    left: 12px;
}

.left-arrow::before {
    transform: rotate(180deg);
}

.right-arrow {
    right: 12px;
}

.media-thumbnails {
    display: flex;
    overflow-x: auto;
    gap: 10px; /* Space between thumbnails */
    padding-top: 10px;
    width: 595px;
    max-width: 595px;
    box-sizing: border-box;
}

.media-thumbnails[hidden] {
    display: none;
}

.media-thumbnails-wrapper {
    position: relative;
    width: 595px;
    max-width: 595px;
    align-self: flex-start;
    box-sizing: border-box;
}

.media-thumbnails-wrapper .media-thumbnails {
    width: 100%;
    max-width: 100%;
}

.thumbs-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 25px;
    height: 25px;
    padding: 0;
    display: none;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.92);
    color: #222;
    font-size: 12px;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
    transition:
        opacity 0.2s ease,
        background-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.18s ease;
}

.media-thumbnails-wrapper.has-overflow .thumbs-arrow {
    display: flex;
}

.thumbs-left-arrow {
    left: -4px;
}

.thumbs-right-arrow {
    right: -4px;
}

.thumbs-arrow:hover {
    opacity: 1;
    background-color: #ffffff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.22);
    transform: translateY(-50%) scale(1.07);
}

.thumbs-arrow.is-disabled {
    display: none !important;
    cursor: not-allowed;
    pointer-events: none;
}

.media-thumbnail {
    width: 40px; /* Adjust based on your preference */
    height: 45px;
    cursor: pointer;
    object-fit: cover;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
    border-radius: 5px;
}

.selected-thumbnail {
    border: 3px solid #65bcff; /* Blue border, change the color as needed */
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
}

.information {
    margin-top: -8px;
    margin-left: 13px;
    flex: 1 1 0;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

.extra-title {
    font-size: 23px;
    margin-top: 0;
    font-weight: 600;
    color: #111;
    line-height: 1.1;
    white-space: nowrap;
    flex: 0 0 auto;
}

.item-detail-price-summary {
    min-width: 0;
    margin: 0;
}

.item-detail-price-line {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    column-gap: 7px;
    row-gap: 2px;
    min-width: 0;
}

.item-detail-price-line .detail-price-status-wrapper {
    margin-top: 0;
}

.item-detail-price-value {
    color: #111;
    font-size: 27px;
    font-weight: 600;
    line-height: 1.1;
}

.item-detail-checkout-fee-note {
    margin: 0 0 -2px;
    color: #666;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.35;
}

.detail-price-status-wrapper {
    position: relative;
    display: inline-flex;
    margin-top: -3px;
    align-items: center;
    vertical-align: middle;
    cursor: default;
    outline: none;
}

.detail-price-status-label {
    display: inline-flex;
    align-items: center;
    padding: 2px 6px;
    border-radius: 4px;
    background: #333;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    vertical-align: middle;
}

.detail-price-status-wrapper::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 0;
    bottom: calc(100% + 8px);
    transform: translateY(4px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 50;
    width: max-content;
    max-width: min(260px, calc(100vw - 32px));
    padding: 6px 8px;
    border-radius: 6px;
    background: #000;
    color: #fff;
    font-size: 12px;
    line-height: 1.35;
    white-space: pre-line;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
    transition: opacity 0.16s ease, transform 0.16s ease, visibility 0s linear 0.16s;
}

.detail-price-status-wrapper::before {
    content: "";
    position: absolute;
    left: 14px;
    bottom: calc(100% + 3px);
    width: 10px;
    height: 10px;
    background: #000;
    transform: rotate(45deg);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 51;
    transition: opacity 0.16s ease, visibility 0s linear 0.16s;
}

.detail-price-status-wrapper:hover::after,
.detail-price-status-wrapper:focus-visible::after {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition-delay: 0s;
}

.detail-price-status-wrapper:hover::before,
.detail-price-status-wrapper:focus-visible::before {
    opacity: 1;
    visibility: visible;
    transition-delay: 0s;
}

.detail-price-status-wrapper:focus-visible .detail-price-status-label {
    outline: 2px solid #111;
    outline-offset: 2px;
}

.detail-summary {
    padding-top: 10px;
    border-top: 1px solid #e2e2e2;
}

.detail-summary-row {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    min-width: 0;
    overflow: visible;
}

.detail-summary-row--price-dominant > .extra-title ~ * {
    display: none;
}

.detail-summary-row--price-dominant > .extra-title {
    display: flex;
    align-items: center;
    column-gap: 4px;
    flex: 1 1 auto;
    min-width: 0;
    max-width: 100%;
}

.detail-summary-row--price-dominant .detail-price-value {
    flex: 0 0 auto;
}

.detail-summary-row--price-dominant .detail-price-status-wrapper {
    flex: 0 1 auto;
    min-width: 0;
    max-width: 100%;
}

.detail-summary-row--price-dominant .detail-price-status-label {
    display: block;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.detail-summary-row > .extra-title:only-child {
    flex: 1 1 auto;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

.detail-summary-separator {
    font-size: 23px;
    color: black;
    line-height: 1;
    flex: 0 0 auto;
    margin-left: 4px;
}

.detail-summary-location {
    display: flex;
    align-items: center;
    min-width: 0;
    flex: 1 1 auto;
    gap: 2px;
    margin-left: 7px;
    overflow: visible;
}

.detail-summary-location .location-icon {
    display: block;
    width: 18px;
    min-width: 18px;
    max-width: 18px;
    height: 18px;
    min-height: 18px;
    max-height: 18px;
    object-fit: contain;
    object-position: center;
    margin-left: -5px;
    margin-right: -2px;
    flex: 0 0 auto;
}

.detail-summary-location .locate-txt {
    margin-left: 0;
}

.item-detail-summary {
    margin-top: 5px;
    padding-top: 0;
    border-top: none;
}

.item-detail-price {
    font-size: 24px;
}

.item-detail-price .info-symbol {
    vertical-align: middle;
    margin: -3px -2px 0 -3px;
}

.title {
    margin-bottom: 8px;
    margin-top: 3px;
    font-size: 23px;
    -webkit-text-stroke: 1px #000000;
}

.company-title {
    margin-bottom: 7px;
    margin-top: -2px;
    color: #0003b3;
    font-size: 16px;
}

.company-title a,
.company-title a:visited,
.company-title a:hover,
.company-title a:focus-visible {
    color: inherit;
}

.lease-company-row {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: -2px;
    margin-bottom: 7px;
}

.lease-company-row .company-title {
    margin: 0;
}

.lease-company-contact {
    position: relative;
    display: inline-flex;
    align-items: center;
    line-height: 1;
}

.msg-btn.lease-inline-msg-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    padding: 0;
    color: #2468a8;
    background: transparent;
    border: 1px solid transparent;
    margin-left: -3px;
    border-radius: 50%;
    line-height: 1;
    animation: none;
    -webkit-text-stroke: 0;
    box-shadow: none;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.msg-btn.lease-inline-msg-btn i {
    font-size: 13px;
}

.msg-btn.lease-inline-msg-btn:hover,
.msg-btn.lease-inline-msg-btn:focus-visible {
    color: #0b4f92;
    background: #eef5ff;
    border-color: #c9ddf4;
    outline: none;
}

.lease-company-contact .contact-info-dropdown {
    top: calc(100% + 2px);
    right: 0;
    margin-right: 0;
}

.wrap-url {
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-all;
    max-width: 100%; /* Ensure the link doesn't overflow the container */
    display: inline-block;
    white-space: normal;
}

.customHeaders {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    margin-bottom: 5px;
    font-size: 18px;
    color: #393939;
    padding-top: 10px;
    border-top: 1px solid #ececec;
}

.customLine {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    font-size: 18px;
    color: #393939;
    padding-top: 10px;
    margin-top: 12px;
    border-top: 1px solid #e9e9e9;
}

.description,
.title,
.contactinfo,
.company-title,
.extra-title {
    /* Ensure text wraps inside the information column instead of widening it */
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.description-clamp-preview {
    width: 100%;
    min-width: 0;
    max-width: 100%;
}

.description-clamp-preview .short-description {
    white-space: pre-line;
}

.description-clamp-preview .read-more {
    color: #333;
    white-space: nowrap;
}

.description-clamp-preview .read-more::before {
    content: '...';
    display: inline-block;
    margin-right: 4px;
    text-decoration: none;
}

.biggerDesc {
    margin-top: 1px;
    font-size: 18.8px;
    color: #111;
    text-shadow: 0 0 0.3px #333;
}

.category {
    font-size: 15px;
    color: #0e7bff;
    margin-top: 2px;
}

.safety-pol {
    font-size: 15px;
    border: 1px solid #b0b0b0; 
    padding: 8px; 
    margin-top: 5px;                
    border-radius: 8px; 
    box-shadow: 0px 1.5px 3px rgba(0, 0, 0, 0.1); 
    color: #333;
}

.contactinfo {
    margin-top: 10px;
}

.moredetails {
    display: flex;
    margin-top: 10px;
    margin-bottom: -5px;
    min-width: 0;
}

.specificDetails {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 3px;
    font-size: 15px;
    color: #616161;
    width: 100%;
    min-width: 0;
}

.moredetails .specificDetails {
    overflow: hidden;
    white-space: nowrap;
}

.specificDetails-listing {
    display: flex;
    align-items: center;
    gap: 3px;
    margin-bottom: 5px;
    flex: 0 1 auto;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
}

.specificDetails-listing .profile-pic,
.specificDetails-listing a,
.specificDetails-listing .info-symbol,
.specificDetails-posted,
.specificDetails-posted tg-icon {
    flex: 0 0 auto;
}

.specificDetails-divider {
    margin-top: -3px;
}

.specificDetails-name {
    flex: 0 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.specificDetails-posted {
    display: flex;
    align-items: center;
    gap: 3px;
    margin-bottom: 5px;
    min-width: 0;
    flex: 0 1 auto;
}

.specificDetails-posted-time {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.listing-meta-message-btn {
    flex: 0 0 auto;
    margin-bottom: 5px;
    margin-left: 2px;
    padding: 5px 14px;
    border: 1.3px solid #c7c7c7;
    border-radius: 999px;
    background: #fff;
    color: #1f1f1f;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.listing-meta-message-btn:hover {
    border-color: #1f1f1f;
    background: #f5f5f5;
}

.extraDetails {
    gap: 3px;
    display: flex;
    font-size: 13px;
    color: #616161;
    margin-top: 6px;
}

.meta-item + .meta-item {
    margin-left: 12px;
    padding-left: 12px;
    /* border-left: 2px solid #787878; */
}

.profile-pic {
    margin-left: 3px;
    margin-right: 2px;
    border: 1px solid #7f7f7f;
    box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.1); 
    width: 27px; /* Adjust as needed */
    height: 27px; /* Adjust as needed */
    border-radius: 50%; /* Makes the image circular */
    object-fit: cover; /* Ensures the image is nicely cropped */
}

.reply-button {
    width: 50px;
    padding: 1px;
    background-color: white;
    color: black;
    border-radius: 10px;
    border: 1px solid black;
    cursor: pointer;
    text-decoration: none;
    font-size: 15px;
}

.reply-button:hover {
    background-color: #d3d3d3;
}

.comments-container {
    overflow: hidden;
    border: 1px solid #ececec;
    flex: 1;
    min-width: 0;
    width: auto;
    height: fit-content;
    max-width: 490px;
    align-self: left;
    padding: 5px;
    margin-bottom: 20px;
    border-radius: 12px;
    box-sizing: border-box;
    box-shadow: 0 0 3px 1px rgba(0, 0, 0, 0.05);
}

.detail-location-row {
    display: flex;
    align-items: center;
    min-width: 0;
    margin-bottom: 5px;
}

.detail-location-heading {
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #333;
    font-weight: 600;
}

.detail-distance-row {
    min-width: 0;
}

.detail-distance-text {
    margin-bottom: 5px;
}

.detail-location-input {
    min-width: 0;
    max-width: 100%;
    font-size: 15px;
    color: #333;
    padding: 2px 0;
    border: none;
    border-bottom: 1.2px dotted #bbb;
    border-radius: 0;
    background: transparent;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: bottom;
    transition: border-color 0.15s;
    margin-left: 3px;
}

.detail-location-input::placeholder {
    color: #9e9e9e;
}

.detail-location-input:focus {
    outline: none;
    border-bottom-color: #007acd;
}

.side-by-side-container {
    display: flex; 
    gap: 15px;
    width: 1220px;
    max-width: 1220px;
    align-self: center;
    box-sizing: border-box;
    justify-content: space-between;
}

.side-by-side-container > * {
    flex: 1 1 0;
    min-width: 0;
}

.side-by-side-column {
    display: block;
    min-width: 0;
}

.side-panel-card {
    max-width: none;
    padding: 10px;
}

.side-by-side-column .side-panel-card {
    flex-grow: 1;
}

.comments-content-box {
    overflow: auto;
    padding: 5px 10px; /* Adds extra 5px padding on left and right */
    border: 1px solid #cecece;
    width: auto;
    height: auto;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    margin: 0 2px 5px 2px;
    word-wrap: break-word;
}

.comment-header {
    justify-content: space-between; /* Adjusts content to each end */
    display: flex;
}

.replying-to {
    font-size: 13px;
    color: #616161;
    margin-top: -2px;
}

.comment-body {
    margin: 3px 3px 3px 0;
    flex-wrap: wrap;
    overflow: hidden;
    flex-grow: 1; /* Ensures the comment body takes up the remaining space */
}

.comment-actions {
    display: flex;
    justify-content: space-between;
}

.comment-profile-pic {
    margin-right: 2px;
    border: 1px solid #7f7f7f;
    width: 25px; /* Adjust as needed */
    height: 25px; /* Adjust as needed */
    border-radius: 50%; /* Makes the image circular */
    object-fit: cover; /* Ensures the image is nicely cropped */
}

.commentProfile {
    display: flex;
}

.replying-to {
    margin-top: 2px;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.modal-content {
    background-color: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    max-width: 400px;
    margin: 0 auto;
}

.close-btn {
    position: absolute;
    top: 0px;
    right: 5px;
    font-size: 20px;
    cursor: pointer;
}

.condition-info-modal.is-open {
    display: flex;
    z-index: 20001;
}

.condition-info-modal__dialog {
    width: min(460px, calc(100vw - 32px));
    max-height: min(720px, calc(100vh - 48px));
    overflow-y: auto;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.22);
    color: #262626;
}

.condition-info-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 24px 18px;
    border-bottom: 1px solid #eeeeee;
}

.condition-info-modal__header h2 {
    margin: 0;
    color: #222;
    font-size: 25px;
    line-height: 1.15;
}

.condition-info-modal__close {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: #444;
    cursor: pointer;
    font-size: 22px;
}

.condition-info-modal__close:hover,
.condition-info-modal__close:focus-visible {
    background: #f2f2f2;
    color: #111;
}

.condition-info-modal__body {
    padding: 20px 24px 26px;
}

.condition-info-modal__row {
    margin-bottom: 22px;
    color: #9a9a9a;
}

.condition-info-modal__row:last-child {
    margin-bottom: 0;
}

.condition-info-modal__row h3 {
    margin: 0 0 6px;
    color: inherit;
    font-size: 21px;
    line-height: 1.15;
}

.condition-info-modal__row p {
    margin: 0;
    color: inherit;
    font-size: 17px;
    line-height: 1.35;
}

.condition-info-modal__row.is-selected {
    color: #222;
}

.top-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}

.button-container {
    gap: 5px;
    position: relative;
    display: flex;
    justify-content: flex-end; /* Push buttons to the end of the container */
    flex-grow: 1; /* Allow the buttons to take up the remaining space */
}

.watchlist-button, .buy-button, .special-msg, .edit-btn, .finish-btn, .dm-btn, .apply-btn {
    border-radius: 999px;
    border: 0px;
    background-color: #d2d2d2; /* Background color */
    font-size: 20px;
    cursor: pointer;
    padding: 5px 10px; /* Adjust padding as needed */
}

.apply-btn {
    background: #fff5f3;
    border: 1px solid #e6a89f; /* Light gray border */
    color: #b43b2e;
    text-decoration: none;
}

.apply-btn:hover,
.apply-btn:focus-visible {
    background: #ffedea;
    border-color: #e6a89f;
    color: #942d23;
}

.lease-primary-actions {
    display: flex;
    gap: 8px;
    width: 100%;
    max-width: 100%;
    margin-top: 10px;
    margin-bottom: -10px;
    box-sizing: border-box;
}

.lease-primary-actions > * {
    flex: 1;
    min-width: 0;
}

.lease-primary-actions .apply-btn,
.lease-primary-actions .special-msg,
.lease-primary-actions .edit-btn,
.lease-primary-actions .finish-btn {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-sizing: border-box;
}

.detail-primary-actions {
    display: flex;
    gap: 5px;
    width: 100%;
    margin-top: 7px;
    margin-bottom: -12px;
    position: relative;
}

.detail-primary-actions > div {
    display: flex;
    flex: 1;
    min-width: 0;
}

.detail-primary-actions form,
.detail-primary-actions .button-container {
    flex: 1;
}

.detail-primary-actions .buy-button,
.detail-primary-actions .edit-btn,
.detail-primary-actions .finish-btn,
.detail-primary-actions .special-msg {
    width: 100%;
}

.detail-primary-actions .detail-order-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.detail-owner-actions-menu {
    position: relative;
    width: 100%;
}

.detail-owner-actions-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.detail-owner-actions-trigger[aria-expanded="true"] {
    background-color: #f5f5f5;
    color: #0061a1;
}

.detail-owner-actions-trigger i {
    font-size: 0.85em;
}

.detail-owner-actions-panel {
    display: none;
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    width: 97%;
    max-width: calc(100vw - 32px);
    flex-direction: column;
    gap: 4px;
    padding: 4px;
    background: #ffffff;
    border: 1px solid #cfd6e0;
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.12);
    z-index: 30;
}

.detail-owner-actions-menu.is-open .detail-owner-actions-panel {
    display: flex;
}

.detail-owner-actions-panel form,
.lease-primary-actions .detail-owner-actions-panel form,
.detail-primary-actions .detail-owner-actions-panel form {
    flex: none;
    width: 100%;
    margin: 0;
}

.detail-owner-action-item {
    width: 100%;
    min-height: auto;
    padding: 8px 12px;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 7px;
    margin: 0;
    border: 0;
    border-radius: 5px;
    background: transparent;
    color: #1b2330;
    box-shadow: none;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    line-height: 1;
    text-align: left;
    white-space: normal;
    box-sizing: border-box;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
}

.detail-owner-action-item:hover {
    background: #f5f7fa;
}

.detail-owner-action-item:focus-visible {
    outline: 2px solid #1a73e8;
    outline-offset: 1px;
}

.detail-owner-action-item i {
    width: 14px;
    font-size: 13px;
    color: inherit;
    text-align: center;
}

.detail-owner-action-item.is-danger {
    color: #b42318;
}

.detail-owner-action-item.is-danger:hover,
.detail-owner-action-item.is-danger:focus-visible {
    background: #fff1f1;
}

.buy-button {
    color: white;
    background-color: #007acd;
    flex: 1;
    -webkit-text-stroke: 0.8px rgba(255, 255, 255, 0.8); 
}

.buy-button:hover {
    background-color: #35a0e7; /* Background color */
}

.share-icon {
    font-size: 0.9rem;
    opacity: 0.75;
}
  
.special-msg, .dm-btn, .edit-btn, .finish-btn {
    color: #004e82;
    background-color: #ececec;
    flex: 1;
    border: 0.5px solid #d3d3d3; /* Light gray border */
}

.special-msg:hover, .dm-btn:hover, .edit-btn:hover, .finish-btn:hover {
    background-color: #f5f5f5; /* Background color */
    color: #0061a1;
}

.copyButton {
    font-size: 15px;
    color: #c44a3f;
    text-decoration-color: rgba(196, 74, 63, 0.32);
}

.watchlist-button:hover {
    background-color: rgb(32, 162, 32);; /* Adjust hover background color */
}

.bundle-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    margin-bottom: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Adjust values based on your preference */
}

.bundle-table thead {
    background-color: #f4f4f4;
}

.bundle-table th, .bundle-table td {
    border: 2px solid #ddd;
    padding: 8px;
    text-align: center;
}

.bundle-table th {
    background-color: #f4f4f4;
    font-weight: bold;
}

.bundle-table tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

.bundle-table tbody tr:hover {
    cursor: pointer;
    border: 3px solid #8eceff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Adjust values based on your preference */

}
.table-section-header {
    font-weight: bold;
    background-color: #f4f4f4;
    padding: 10px;
    font-size: 16px;
    border: 2px solid #ddd; /* Ensure it matches the table cell borders */
}

.timestamp {
    margin-top: 5px;
}

/* Message Button with Glow */
.msg-btn {
    --glow-color-light: rgba(52, 152, 219, 0.4); /* Light blue glow */
    --glow-color-bright: rgb(59, 177, 255); /* Bright blue glow */
    animation: glowing 4s infinite ease-in-out;
    background-color: #35a0e7;
    color: #fff;
    border-radius: 7px;
    border: 0px;
    font-size: 20px;
    cursor: pointer;
    padding: 4px 10px;
    position: relative;
    -webkit-text-stroke: 0.4px rgba(255, 255, 255, 0.8); 
}

.msg-btn:hover {
    background-color: #235d97;
}

/* Chat Button without Glow */
.chat-btn {
    background-color: #e73535;
    color: #fff;
    border-radius: 5px;
    border: 0px;
    font-size: 18px;
    cursor: pointer;
    padding: 5px 10px;
    position: relative;
    transition: background-color 0.3s ease; /* Smooth color transition */
    margin-bottom: 2px;
}

.chat-btn:hover {
    background-color: #972323;
}

/* Glow Animation (only for msg-btn) */
@keyframes glowing {
    0% {
        box-shadow: 0 0 3px var(--glow-color-light);
    }
    50% {
        box-shadow: 0 0 10px var(--glow-color-bright);
    }
    100% {
        box-shadow: 0 0 3px var(--glow-color-light);
    }
}

.chat-btn img {
    width: 22px; 
    height: 22px;
    margin-bottom: -3.5px;
    filter: drop-shadow(2px 2px 2px rgba(255, 255, 255, 0.1));
}

/* Style for the dropdown container */
.contact-info-dropdown, .share-dropdown {
    position: absolute;
    top: 100%;
    margin-right: -5px;
    background-color: #fff;
    border: 1px solid #cecece;
    border-radius: 10px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    width: 225px; /* Adjust the width as needed */
    max-width: calc(100vw - 32px);
    z-index: 100; /* Ensure it is above other elements */
    padding: 10px;
}

.share-dropdown {
    width: 100px;
    margin-left: -28px;
}

.special-contact {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    left: 0;
    /* width: calc((100% - 40px) / 2); */
    width: max(calc((100% - 40px) / 2), 220px);
    margin-right: 0;
}

.another-container {
    position: relative; /* This container now acts as the positioning context for dropdowns */
    display: inline-block; /* Keeps the button and dropdown aligned correctly */
}
/* Additional style for the content inside the dropdown */
.contact-info-content p, .share-content p {
    margin: 0;
}

.contact-info-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

/* .contact-info-section-label {
    color: #555;
    font-size: 13px;
    text-align: center;
    font-weight: 700;
    margin: 6px 0 0 !important;
} */

.contact-info-row {
    --contact-row-color: #333;
    --contact-row-icon-color: var(--contact-row-color);
    --contact-row-hover-bg: #f6f7f9;
    --contact-row-underline: rgba(51, 51, 51, 0.2);
    --contact-row-underline-hover: rgba(51, 51, 51, 0.48);
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 26px;
    padding: 5px 8px;
    border-radius: 8px;
    color: var(--contact-row-color);
    font-size: 15.5px;
    line-height: 1.2;
    text-decoration: none;
    transition: background-color 0.16s ease, color 0.16s ease;
}

.contact-info-row:hover,
.contact-info-row:focus-visible {
    color: var(--contact-row-color);
    background-color: var(--contact-row-hover-bg);
    outline: none;
}

.contact-info-row:focus-visible {
    box-shadow: 0 0 0 2px rgba(0, 122, 205, 0.18);
}

.contact-info-row-text {
    min-width: 0;
    overflow-wrap: anywhere;
    text-decoration-line: underline;
    text-decoration-thickness: 1px;
    text-decoration-color: var(--contact-row-underline);
    text-underline-offset: 3px;
}

.contact-info-row:hover .contact-info-row-text,
.contact-info-row:focus-visible .contact-info-row-text {
    text-decoration-color: var(--contact-row-underline-hover);
}

.contact-info-row-icon {
    width: 20px;
    flex: 0 0 20px;
    color: var(--contact-row-icon-color, var(--contact-row-color));
    font-size: 18px;
    text-align: center;
}

.contact-info-row--instagram {
    --contact-row-color: #9f2f78;
    --contact-row-icon-color: #b5178a;
    --contact-row-hover-bg: rgba(181, 23, 138, 0.07);
    --contact-row-underline: rgba(159, 47, 120, 0.22);
    --contact-row-underline-hover: rgba(159, 47, 120, 0.46);
}

.contact-info-row--instagram .contact-info-row-icon {
    background: linear-gradient(135deg, #833ab4 0%, #c13584 45%, #f56040 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.contact-info-row--messenger {
    --contact-row-color: #006aff;
    --contact-row-icon-color: #0084ff;
    --contact-row-hover-bg: rgba(0, 132, 255, 0.08);
    --contact-row-underline: rgba(0, 106, 255, 0.24);
    --contact-row-underline-hover: rgba(0, 106, 255, 0.50);
}

.contact-info-row--facebook {
    --contact-row-color: #1877f2;
    --contact-row-icon-color: #1877f2;
    --contact-row-hover-bg: rgba(24, 119, 242, 0.07);
    --contact-row-underline: rgba(24, 119, 242, 0.22);
    --contact-row-underline-hover: rgba(24, 119, 242, 0.46);
}

.contact-info-row--copy {
    --contact-row-color: #c44a3f;
    --contact-row-hover-bg: rgba(196, 74, 63, 0.07);
    --contact-row-underline: rgba(196, 74, 63, 0.26);
    --contact-row-underline-hover: rgba(196, 74, 63, 0.5);
    font-weight: 500;
}

.contact-info-hint {
    color: #838383;
    font-size: 13px;
    /* line-height: 1.32; */
    margin-top: 4px;
    margin-left: 10px;
}

.contact-detail-row {
    align-items: flex-start;
    color: #222;
    cursor: default;
    margin: 0;
}

.contact-detail-row:hover {
    background-color: transparent;
}

.contact-detail-icon {
    color: #111;
    font-size: 17px;
    line-height: 1.2;
    margin-right: 0;
    margin-top: 1px;
}

.contact-detail-value {
    flex: 1;
    min-width: 0;
    line-height: 1.22;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.contact-detail-value a {
    color: #004eea;
    overflow-wrap: anywhere;
    word-break: break-word;
    text-decoration-line: underline;
    text-decoration-thickness: 1px;
    text-decoration-color: rgba(0, 78, 234, 0.28);
    text-underline-offset: 3px;
}

.contact-detail-value a:hover,
.contact-detail-value a:focus-visible {
    color: #004eea;
    text-decoration-color: rgba(0, 78, 234, 0.55);
}

/* Toast Notification Styles */
.toast {
    display: none; /* Hidden by default */
    position: fixed;
    top: 15%; /* Center vertically */
    left: 50%; /* Center horizontally */
    transform: translate(-50%, -50%); /* Adjust for true center */
    background-color: #4caf50; /* Green background */
    color: white; /* White text color */
    padding: 15px;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 300; /* Ensure it appears above other elements */
    display: flex; /* Align icon and message */
    align-items: center; /* Center vertically */
    justify-content: center; /* Center horizontally */
}

.toast-icon {
    margin-right: 10px; /* Space between icon and message */
}

.toast-message {
    font-size: 16px;
}

.safety-icon {
    width: 14px; 
    height: 14px; 
    margin-bottom: -2.5px;
}

.locate-txt {
    color: #515151; 
    white-space: nowrap; 
    overflow: hidden; 
    text-overflow: ellipsis;
    font-size: 15px; 
    margin-left: -3px; 
    margin-top: 1px; 
    min-width: 0;
    flex: 1 1 auto;
    max-width: 100%;
}

.custom-fullscreen-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9); /* Dark background for focus */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 12px;
    box-sizing: border-box;
    padding: 18px;
    z-index: 30000;
}

body.detail-fullscreen-media-open {
    overflow: hidden;
}

.fullscreen-slider {
    flex: 0 0 auto;
    max-width: 92vw;
}

.fullscreen-slider .media {
    max-width: none;
}

.fullscreen-slider .slider-media {
    flex-shrink: 0;
}

.fullscreen-media-thumbnails {
    flex: 0 0 auto;
    margin: 0;
    padding: 0 2px 4px;
    scrollbar-width: thin;
}

.custom-close-button {
    position: absolute;
    top: 7px;
    right: 7px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 46px;
    height: 46px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 10px;
    cursor: pointer;
    z-index: 5;
    transition: background 0.3s, transform 0.1s;
}

.custom-close-button:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

.custom-close-button i {
    font-size: 35px;
}

.item-details-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 14px;
    table-layout: fixed;
}

.item-details-table td {
    padding: 8px 12px;
    border: none;
    border-bottom: 1px solid #e9e9e9;
    vertical-align: top;
    word-wrap: break-word;
    overflow-wrap: break-word;
    line-height: 1.25;
    box-sizing: border-box;
    color: #393530;
}

.item-details-table td:first-child {
    font-weight: 600;
    /* border-right: 1px solid #e9e3db; */
}

.item-details-table tr:last-child td {
    border-bottom: none;
}

.item-details-table td:first-child strong {
    display: inline-flex;
    align-items: flex-start;
    gap: 6px;
    line-height: 1.15;
}

.item-details-table td:first-child i {
    width: 14px;
    flex: 0 0 14px;
    text-align: center;
    margin-top: 0;
}

.item-details-table .category {
    font-size: inherit;
    text-underline-offset: 2px;
}

.item-details-table .condition-text,
.bundle-table .condition-text {
    display: block;
    color: #393530;
    font-weight: normal;
    line-height: 1.25;
}

.item-details-table .main-text-in-table {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #222222;
    font-weight: bold;
}

.condition-info-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: -3px;
    width: 18px;
    height: 18px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: #11608C;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
}

.condition-info-trigger:hover,
.condition-info-trigger:focus-visible {
    color: #0d4d68;
    background: rgba(17, 96, 140, 0.08);
}

.item-details-table .deal-method,
.deal-method {
    display: block;
    color: #393530;
    font-weight: normal;
    line-height: 1.25;
}

.item-details-table .deal-method-header,
.deal-method-header {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.item-details-table .deal-method-label,
.item-details-table .deal-method-fee,
.deal-method-label,
.deal-method-fee {
    display: inline-flex;
    align-items: center;
    min-height: 18px;
    padding: 2px 6px;
    border: 1px solid #c5c5c5;
    border-radius: 999px;
    background: #f1f1f1;
    color: #393530;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.1;
}

.item-details-table .deal-method-tooltip-wrapper,
.deal-method-tooltip-wrapper {
    margin-top: 0;
    cursor: help;
}

.item-details-table .deal-method-tooltip-wrapper::after,
.deal-method-tooltip-wrapper::after {
    font-weight: 400;
}

.item-details-table .subtext-in-table {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 4px;
    color: #555;
    font-size: 13px;
    font-weight: 400;
}

.item-details-table .subtext-in-table span {
    color: inherit;
    font-weight: inherit;
}

.item-details-table .deal-method-tracked,
.deal-method-tracked {
    display: inline-flex;
    align-items: center;
    color: #6c6c6c;
    font-weight: 500;
}

.item-details-table .deal-method-tracked::before,
.deal-method-tracked::before {
    content: "\2022";
    margin-right: 6px;
}

.item-details-table.item-details-table--label-first td {
    vertical-align: middle;   /* key change */
    padding: 14px 12px;   /* one consistent row padding */
  }

/* Item listing detail: label + icon left, explanatory value text right */
.item-details-table.item-details-table--label-first td:first-child {
    width: 40%;
    color: #555;
}

.item-details-table.item-details-table--label-first td:last-child {
    width: 60%;
    text-align: left;
}

.item-details-table.item-details-table--label-first td:first-child i {
    width: 26px;
    flex: 0 0 26px;
    text-align: center;
    margin-top: 1px;
}

.item-details-table__label-with-icon {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    min-width: 0;
}

.item-details-table__label-icon {
    flex: 0 0 26px;
    color: #444;
    font-size: 22px;
    line-height: 1.35;
}

.item-details-table__value-stack {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1 1 auto;
    align-items: flex-start;
}

.item-details-table__row-label {
    display: inline-block;
    max-width: 100%;
    color: #555;
    line-height: 1.3;
    margin-top: 3px;
}

.payment-methods {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 4px;
}

.payment-card {
    display: block;
    width: 38px;
    height: 24px;
    object-fit: contain;
    border: 1px solid #888;
    box-shadow: 0px 1px 1px rgba(0, 0, 0, 0.05);
    border-radius: 3px;
}

.payment-methods__toggle {
    box-sizing: border-box;
    display: none;
    width: 38px;
    height: 24px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid #888;
    border-radius: 3px;
    background: #fff;
    color: #444;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
}

.payment-methods__toggle:focus-visible {
    outline: 2px solid #087ac1;
    outline-offset: 2px;
}

.item-detail-specs-mobile {
    display: none;
}

.item-detail-condition-value {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.specificDetails--nonstaff .specificDetails-posted-label {
    display: none;
}

@media (max-width: 1250px) {
    .payment-methods--collapsible .payment-card--compact-overflow {
        display: none;
    }
    .payment-methods--collapsible.is-expanded .payment-card--compact-overflow {
        display: block;
    }
    .payment-methods--collapsible .payment-methods__toggle {
        display: inline-flex;
    }
    .listings-container,
    .side-by-side-container {
        width: 1025px;
        max-width: 1025px;
    }
    .media-slider {
        width: 480px;
        height: 480px; /* Fallback for 1026-1250px before JS syncs height */
    }
    .slider-media,
    .media-slider--with-thumbs .slider-media {
        width: 480px;
        height: 100%;
    }
    .media-thumbnails,
    .media-thumbnails-wrapper {
        width: 480px;
        max-width: 480px;
    }
}

@media (max-width: 1025px) {
    .content-container {
        flex-direction: column;
        width: 100%;
        box-sizing: border-box;
        align-items: center;
    }
    .content-container .information {
        margin-left: 0;
    }
    .side-by-side-container {
        flex-direction: column;
        gap: 3px;
        max-width: 700px;
    }
    .side-by-side-container > * {
        flex: 0 1 auto;
    }
    .listings-container {
        max-width: 700px;
    }
    .comments-container {
        max-width: 700px;
    }
    .media-container.has-single-media + .information {
        margin-top: 5px;
    }
    .media-thumbnails {
        padding-bottom: 10px;
    }
}

@media (min-width: 801px) and (max-width: 1025px) {
    .media-container {
        width: 100%;
        align-items: flex-start;
    }
    .media {
        flex: 0 0 100%;
        width: 100%;
        max-width: 100%;
    }
    .slider-media,
    .media-slider--with-thumbs .slider-media {
        flex: 0 0 100%;
        min-width: 100%;
        max-width: 100%;
        width: 100%;
        height: 100%;
    }
    .media-slider {
        width: min(100%, 680px);
        height: min(680px, calc(100vw - 40px));
    }
    .media-thumbnails {
        width: min(100%, 680px);
        max-width: min(100%, 680px);
        justify-content: flex-start;
        align-self: flex-start;
    }
    .media-thumbnails-wrapper {
        width: min(100%, 680px);
        max-width: min(100%, 680px);
        align-self: flex-start;
    }
}

@media (max-width: 800px) {
    .side-by-side-container, .listings-container, .comments-container {
        max-width: 500px;
    }
    .slider-media {
        width: 480px;
    }
    .media-slider--with-thumbs .slider-media {
        width: 480px;
        height: 525px;
    }
    .media-slider {
        height: 480px;
        width: 480px;
    }
}

@media (max-width: 700px) {

    .specificDetails--nonstaff .specificDetails-listing {
        flex: 0 1 auto;
        flex-shrink: 1;
    }

    .specificDetails--nonstaff .specificDetails-posted {
        flex: 0 1 auto;
        flex-shrink: 3;
        overflow: hidden;
    }
}

@media (max-width: 480px) {
    html,
    body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    body > * {
        max-width: 100%;
        box-sizing: border-box;
    }

    .site-header {
        width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }

    .site-header .header-left,
    .site-header .header-right,
    .site-header .header-right ul {
        min-width: 0;
    }

    .main-content {
        --detail-mobile-gutter: clamp(5px, 2.5vw, 10px);
        --detail-mobile-content-padding: clamp(6px, 2.5vw, 10px);
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .detail-price-status-wrapper::after {
        left: auto;
        right: 0;
        width: max-content;
        max-width: min(180px, calc(100vw - 32px));
        white-space: normal;
        overflow-wrap: normal;
        word-break: normal;
    }

    .listing {
        width: 100%;
        max-width: 100%;
        height: fit-content;
    }
    .listings-container,
    .side-by-side-container {
        width: calc(100% - (var(--detail-mobile-gutter) * 2));
        max-width: none;
        margin-left: auto;
        margin-right: auto;
    }

    .content-container {
        width: 100%;
        padding: var(--detail-mobile-content-padding);
        box-sizing: border-box;
    }

    .side-by-side-container > *,
    .side-by-side-column,
    .side-by-side-container .comments-container,
    .side-by-side-container .side-panel-card {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .side-by-side-container .comments-container {
        margin-left: 0;
    }
    .modal-content {
        width: 300px;
    }
    .media-container {
        width: 100%;
        min-width: 0;
    }
    .media {
        flex: 0 0 100%;
        width: 100%;
        max-width: 100%;
        height: 100%;
    }
    .media-slider {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 15;
        box-sizing: border-box;
    }
    .media-thumbnails {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    .media-thumbnails-wrapper {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    .slider-media,
    .media-slider--with-thumbs .slider-media {
        flex: 0 0 100%;
        width: 100%;
        min-width: 100%;
        max-width: 100%;
        height: 100%;
        object-fit: contain;
    }
    .bundle-table {
        width: 100%;
    }
    .bundle-table th, .bundle-table td {
        font-size: 12px;
        padding: 6px;
    }
    .phone-remove {
        display: none;
    }
    .customHeaders {
        width: 100%;
        min-width: 0;
        max-width: 100%;
    }
    .locate-txt {
        max-width: 100%;
    }
    .curated-watchlist {
        font-size: 16px;
    }

    .detail-owner-actions-trigger {
        font-size: 16px;
        line-height: 1.1;
        min-height: 36px;
        box-sizing: border-box;
        align-items: center;
        gap: 6px;
        padding-top: 5px;
        padding-bottom: 5px;
        padding-left: 8px;
        padding-right: 8px;
    }

    .detail-owner-actions-trigger span {
        white-space: nowrap;
    }
}

#dupeToast {
    position: fixed;
    top: 350px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #3d3d3d;
    color: #fff;
    padding: 15px 38px 15px 20px;
    border-radius: 5px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    display: none;
    z-index: 1000;
    font-size: 14px;
    text-align: center;
}

#dupeToast a {
    color: #ffffff;
    text-decoration: underline;
    font-weight: 600;
}

.dupe-toast__message {
    display: block;
}

.dupe-toast__close {
    position: absolute;
    top: 6px;
    right: 10px;
    width: 20px;
    height: 20px;
    background: transparent;
    border: none;
    color: inherit;
    font-size: 16px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    padding: 0;
}

.detail-specs {
    margin: 0 0 4px;
    padding-left: 10px;
    padding-right: 5px;
}

.detail-specs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 0;
}

.detail-specs-grid > .detail-spec:nth-child(2n+1) {
    padding-right: 18px;
}

.detail-specs-grid > .detail-spec:nth-child(2n) {
    padding-left: 18px;
}

.detail-specs-blocks {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 0;
    border-top: 1px solid #e9e9e9;
}

.detail-specs-blocks > .detail-spec:nth-child(2n+1),
.detail-specs-blocks > .detail-spec-stack:nth-child(2n+1) {
    padding-right: 24px;
}

.detail-specs-blocks > .detail-spec:nth-child(2n),
.detail-specs-blocks > .detail-spec-stack:nth-child(2n) {
    padding-left: 24px;
}

.detail-specs--match-grid .detail-specs-blocks > .detail-spec:nth-child(2n+1),
.detail-specs--match-grid .detail-specs-blocks > .detail-spec-stack:nth-child(2n+1) {
    padding-right: 18px;
}

.detail-specs--match-grid .detail-specs-blocks > .detail-spec:nth-child(2n),
.detail-specs--match-grid .detail-specs-blocks > .detail-spec-stack:nth-child(2n) {
    padding-left: 18px;
}

.detail-specs--tight-right .detail-specs-grid > .detail-spec:nth-child(2n) {
    padding-left: 5px;
}

.detail-specs--tight-right .detail-specs-blocks > .detail-spec:nth-child(2n),
.detail-specs--tight-right .detail-specs-blocks > .detail-spec-stack:nth-child(2n) {
    padding-left: 5px;
}

.detail-spec-stack {
    display: flex;
    flex-direction: column;
}

.detail-spec {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 0;
}

.detail-specs-grid > .detail-spec:nth-child(n+3),
.detail-specs-blocks > .detail-spec:nth-child(n+3) {
    border-top: 1px solid #e9e9e9;
}

.detail-spec-stack > .detail-spec + .detail-spec {
    border-top: 1px solid #e9e9e9;
}

.detail-specs--standalone .detail-specs-blocks {
    border-top: none;
}

.detail-spec-fullspan {
    grid-column: 1 / -1;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.detail-spec-icon {
    color: #444;
    font-size: 22px;
    width: 26px;
    flex-shrink: 0;
    line-height: 1.4;
    text-align: center;
}

.detail-spec-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.detail-spec-label {
    font-size: 13px;
    color: #666;
    line-height: 1.3;
}

.detail-spec-value, .detail-spec-value-smaller {
    font-size: 15px;
    color: #222;
    line-height: 1.4;
    word-wrap: break-word;
}

.detail-spec-value-smaller {
    font-size: 14px;
    line-height: 1.3;
}

.housing-utilities-detail__groups {
    display: flex;
    flex-direction: column;
}

.housing-utilities-detail__groups {
    gap: 8px;
}

.housing-utilities-detail__group {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    gap: 4px;
}

.housing-utilities-detail__heading {
    flex: 0 0 auto;
    color: #666;
    font-size: 12px;
    font-weight: 600;
}

.housing-utilities-detail__value {
    min-width: 0;
}

.housing-details-actions {
    display: flex;
    justify-content: center;
    margin: -10px 5px 10px 10px;
    padding: 0;
}

.housing-details-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 40px;
    padding: 0 10px;
    font-size: 18px;
    line-height: 1.2;
    border-radius: 999px;
    background-color: #f6f6f6;
    border: 0.4px solid #d3d3d3;
    border: none;
    color: #222;
    cursor: pointer;
    -webkit-text-stroke: 0.2px currentColor;
}

.housing-details-button:hover,
.housing-details-button:focus-visible {
    background: #e6e6e6;
    outline: none;
}

.detail-modal {
    z-index: 180;
}

.detail-modal.is-open {
    display: flex;
}

.detail-modal__dialog {
    width: min(680px, calc(100vw - 32px));
    max-width: 680px;
    max-height: min(760px, calc(100vh - 40px));
    overflow-y: auto;
    padding: 0;
    border-radius: 8px;
    color: #111;
}

.detail-modal__header {
    position: sticky;
    top: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 24px 64px 16px 26px;
    border-bottom: 1.2px solid #ececec;
    background: #fff;
}

.detail-modal__heading {
    min-width: 0;
    flex: 1;
}

.detail-modal__heading h2 {
    margin: 0;
    color: #111;
    font-size: 28px;
    line-height: 1.15;
}

.detail-modal__heading p {
    margin: 6px 0 0;
    color: #555;
    font-size: 14px;
    line-height: 1.35;
}

.detail-modal__close {
    position: absolute;
    top: 14px;
    right: 16px;
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: #444;
    cursor: pointer;
    font-size: 22px;
}

.detail-modal__close:hover,
.detail-modal__close:focus-visible {
    background: #f2f2f2;
    color: #111;
    outline: none;
}

.detail-modal__body {
    padding: 10px 26px 18px;
}

.description-modal__content {
    color: #222;
    font-size: 17px;
    line-height: 1.55;
    overflow-wrap: break-word;
}

.housing-details-specs {
    margin: 0;
    padding: 0;
}

.housing-details-specs .detail-specs-blocks {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.housing-details-specs .detail-specs-blocks > .detail-spec:nth-child(2n+1) {
    padding-right: 24px;
    padding-left: 0;
}

.housing-details-specs .detail-specs-blocks > .detail-spec:nth-child(2n) {
    padding-right: 0;
    padding-left: 24px;
}

.housing-details-specs .detail-specs-blocks > .detail-spec:nth-child(1),
.housing-details-specs .detail-specs-blocks > .detail-spec:nth-child(2) {
    padding-top: 12px;
}

.housing-details-specs .detail-specs-blocks > .detail-spec:nth-last-child(1),
.housing-details-specs .detail-specs-blocks > .detail-spec:nth-last-child(2) {
    padding-bottom: 10px;
}

.detail-modal__scroll-zone {
    position: sticky;
    left: 0;
    z-index: 2;
    height: 0;
    pointer-events: none;
    display: none;
}

.detail-modal__dialog.has-overflow-y .detail-modal__scroll-zone {
    display: block;
}

.detail-modal__scroll-zone--up {
    top: var(--detail-modal-header-h, 70px);
}

.detail-modal__scroll-zone--down {
    bottom: 0;
}

.detail-modal__scroll-arrow {
    position: absolute;
    left: 50%;
    width: 32px;
    height: 32px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.95);
    color: #222;
    font-size: 12px;
    line-height: 1;
    cursor: pointer;
    opacity: 0.5;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    pointer-events: auto;
    transition:
        opacity 0.2s ease,
        background-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.18s ease;
}

.detail-modal__scroll-arrow--up {
    top: 10px;
    transform: translateX(-50%);
}

.detail-modal__scroll-arrow--down {
    bottom: 10px;
    transform: translateX(-50%);
}

.detail-modal__scroll-arrow:hover {
    background-color: #ffffff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.22);
    opacity: 1;
}

.detail-modal__scroll-arrow--down:hover {
    transform: translateX(-50%) scale(1.07);
}

.detail-modal__scroll-arrow--up:hover {
    transform: translateX(-50%) scale(1.07);
}

.detail-modal__scroll-arrow.is-disabled {
    display: none !important;
    cursor: not-allowed;
    pointer-events: none;
}

@media (max-width: 1250px) and (min-width: 801px) {
    .detail-specs--tight-right .detail-specs-blocks {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }

    .detail-specs--tight-right .detail-specs-blocks .detail-popover-line {
        display: inline;
    }

    .detail-specs--tight-right .detail-specs-blocks .detail-popover-line-label {
        display: inline;
        white-space: normal;
    }

    .detail-specs--tight-right .detail-specs-blocks .detail-popover-trigger-wrap {
        display: inline-flex;
        vertical-align: baseline;
    }
}

@media (max-width: 800px) {
    .housing-details-actions {
        margin: -5px 5px 15px 10px;
    }

    .detail-modal__dialog {
        width: min(500px, calc(100vw - 20px));
        max-height: calc(100vh - 250px);
    }

    .detail-modal__header {
        padding: 20px 58px 14px 20px;
    }

    .detail-modal__body {
        padding: 10px 20px 18px;
    }
    

    .housing-details-specs .detail-specs-blocks {
        grid-template-columns: 1fr;
    }

    .housing-details-specs .detail-specs-blocks > .detail-spec:nth-child(2n+1),
    .housing-details-specs .detail-specs-blocks > .detail-spec:nth-child(2n) {
        padding-right: 0;
        padding-left: 0;
    }

    .housing-details-specs .detail-specs-blocks > .detail-spec + .detail-spec {
        border-top: 1px solid #e9e9e9;
    }
    
    .detail-specs--tight-right .detail-specs-blocks {
        grid-template-columns: 1fr;
    }
    .detail-specs--tight-right .detail-specs-blocks > .detail-spec:nth-child(2n+1),
    .detail-specs--tight-right .detail-specs-blocks > .detail-spec-stack:nth-child(2n+1) {
        padding-right: 0;
    }
    .detail-specs--tight-right .detail-specs-blocks > .detail-spec:nth-child(2n),
    .detail-specs--tight-right .detail-specs-blocks > .detail-spec-stack:nth-child(2n) {
        padding-left: 0;
    }
    .detail-specs--tight-right .detail-specs-blocks > .detail-spec-stack,
    .detail-specs--tight-right .detail-specs-blocks > .detail-spec + .detail-spec,
    .detail-specs--tight-right .detail-specs-blocks > .detail-spec-stack + .detail-spec {
        border-top: 1px solid #e9e9e9;
    }

    .item-details-table--desktop {
        display: none;
    }

    .item-detail-specs-mobile {
        display: block;
    }

    .item-detail-specs-mobile .detail-specs-blocks {
        grid-template-columns: 1fr;
    }

    .item-detail-specs-mobile .detail-spec {
        padding-left: 0;
        padding-right: 0;
    }

    .item-detail-specs-mobile .detail-spec + .detail-spec {
        border-top: 1px solid #e9e9e9;
    }
}

@media (max-width: 700px) {
    .detail-specs-blocks {
        grid-template-columns: 1fr;
    }
    .detail-specs-blocks > .detail-spec:nth-child(2n+1),
    .detail-specs-blocks > .detail-spec-stack:nth-child(2n+1) {
        padding-right: 0;
    }
    .detail-specs-blocks > .detail-spec:nth-child(2n),
    .detail-specs-blocks > .detail-spec-stack:nth-child(2n) {
        padding-left: 0;
    }
    .detail-specs-blocks > .detail-spec-stack,
    .detail-specs-blocks > .detail-spec + .detail-spec,
    .detail-specs-blocks > .detail-spec-stack + .detail-spec {
        border-top: 1px solid #e9e9e9;
    }

    .detail-specs--match-grid .detail-specs-blocks > .detail-spec:nth-child(2n+1),
    .detail-specs--match-grid .detail-specs-blocks > .detail-spec-stack:nth-child(2n+1) {
        padding-right: 0;
    }

    .detail-specs--match-grid .detail-specs-blocks > .detail-spec:nth-child(2n),
    .detail-specs--match-grid .detail-specs-blocks > .detail-spec-stack:nth-child(2n) {
        padding-left: 0;
    }
    
    .detail-specs--tight-right .detail-specs-blocks {
        grid-template-columns: 1fr;
    }
    .detail-specs--tight-right .detail-specs-blocks > .detail-spec:nth-child(2n+1),
    .detail-specs--tight-right .detail-specs-blocks > .detail-spec-stack:nth-child(2n+1) {
        padding-right: 0;
    }
    .detail-specs--tight-right .detail-specs-blocks > .detail-spec:nth-child(2n),
    .detail-specs--tight-right .detail-specs-blocks > .detail-spec-stack:nth-child(2n) {
        padding-left: 0;
    }
    .detail-specs--tight-right .detail-specs-blocks > .detail-spec-stack,
    .detail-specs--tight-right .detail-specs-blocks > .detail-spec + .detail-spec,
    .detail-specs--tight-right .detail-specs-blocks > .detail-spec-stack + .detail-spec {
        border-top: 1px solid #e9e9e9;
    }
}

.detail-spec-fullrow {
    grid-column: 1 / -1;
    padding-left: 0 !important;
    padding-right: 0 !important;
    padding-top: 16px;
    border-top: 1px solid #e9e9e9;
    justify-content: space-between;
}

.detail-spec-fullrow .detail-spec-text {
    flex-direction: row;
    align-items: baseline;
    gap: 12px;
    flex: 1;
    justify-content: space-between;
}

/* Detail popover: reusable anchored panel (trigger + panel inside .detail-popover-anchor) */
.detail-spec-value-stack {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.detail-popover-anchor {
    display: block;
    align-self: stretch;
    min-width: 0;
}

.detail-popover-line {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    min-width: 0;
}

.detail-popover-line-label {
    display: inline-flex;
    align-items: center;
    line-height: 1.3;
}

.detail-popover-trigger-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    margin-left: -5px;
}

.detail-popover-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    line-height: 1;
    vertical-align: middle;
    color: #11608C;
    border-radius: 4px;
}

.detail-popover-trigger:hover {
    color: #0d4d68;
}

.detail-popover-trigger:focus {
    outline: none;
}

.detail-popover-trigger:focus-visible {
    background-color: rgba(0, 0, 0, 0.06);
}

.detail-popover-trigger-icon {
    font-size: 14px;
    line-height: 1;
    pointer-events: none;
    transform: translateY(0.05em);
}

.detail-spec-follow-line {
    display: block;
}

.detail-timeframe-start-line {
    margin-top: 2px;
}

.detail-timeframe-start-text {
    line-height: 1.3;
    white-space: normal;
}

.detail-lease-timeframe-lines {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
}

.detail-lease-timeframe-line {
    display: block;
    line-height: 1.3;
    min-width: 0;
}

.detail-lease-timeframe-final-with-popover {
    display: inline;
    white-space: normal;
}

.detail-lease-timeframe-popover-wrap {
    margin-left: -6px;
    margin-bottom: -2px;
}

/* Arrow + surface aligned with .popover-filter-popover (new-listings.css) */
.detail-popover-panel {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    z-index: 1005;
    width: max-content;
    max-width: min(340px, calc(100vw - 32px));
    padding: 12px 14px;
    background: #fff;
    color: #2f2f2f;
    white-space: normal;
    overflow-wrap: break-word;
    border: 1px solid #c9c9c9;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    transform: translateX(-50%);
}

.detail-popover-panel--fixed {
    position: fixed;
    top: var(--detail-popover-fixed-top);
    left: var(--detail-popover-fixed-left);
}

.detail-popover-panel::before {
    content: "";
    position: absolute;
    top: -8px;
    left: 50%;
    width: 16px;
    height: 16px;
    background: #fff;
    border-top: 1px solid #c9c9c9;
    border-left: 1px solid #c9c9c9;
    transform: translateX(-50%) rotate(45deg);
}

.detail-popover-panel-title {
    margin: 0 0 6px;
    font-size: 13px;
    font-weight: bold;
    color: #111;
}

.detail-popover-panel-body {
    margin: 0;
    font-size: 14px;
    line-height: 1.4;
    color: #444;
}

/* =====================================================================
   Comments (refreshed) — scoped to comments_card.html + comment_item.html.
   Additive only: legacy comment classes (.comments-content-box, .reply-button,
   .comment-header, .replying-to, …) are intentionally left untouched so the
   not-yet-migrated detail pages keep their current appearance.
   ===================================================================== */
.comment-section__title {
    color: #333;
    font-size: 18px;
    margin-bottom: 4px;
    margin-left: 3px;
}

.comment-section__prompt {
    color: #666;
    font-size: 14px;
    margin: 2px 6px 10px;
}

/* New-comment / reply form — unified composer: textarea + inline action button */
.comment-form {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    margin: 6px 3px 10px;
    padding: 4px 5px;
    border: 1px solid #cbcbcb;
    border-radius: 8px;
    background-color: #fff;
}

.comment-form:focus-within {
    border-color: #007acd;
    box-shadow: 0 0 0 2px rgba(0, 122, 205, 0.15);
}

/* Top-level composer starts compact (half width) and expands to full width once
   the user focuses it or has started typing. Reply composers are unaffected. */
.comment-section > .comment-form {
    width: 50%;
    transition: width 0.2s ease;
}

.comment-section > .comment-form:focus-within,
.comment-section > .comment-form:has(.comment-textarea:not(:placeholder-shown)) {
    width: 97.5%;
}

@media (max-width: 600px) {
    .comment-section > .comment-form {
        width: 95%;
    }
}

/* Multi-line: stack so the textarea uses the full width and the button drops to
   its own bottom-right row (no empty strip beside the button). Toggled by JS. */
.comment-form--expanded {
    flex-direction: column;
    align-items: stretch;
}

.comment__reply-form .comment-form {
    margin: 0;
}

.comment-textarea {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 30px;
    overflow-y: auto;
    box-sizing: border-box;
    padding: 5px 8px;
    border: none;
    background-color: transparent;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.4;
    /* Auto-grows via JS up to a cap; resize grip lets the user override and
       drag it taller for more room (JS then stops auto-managing the height). */
    resize: vertical;
}

.comment-textarea:focus {
    outline: none;
}

/* Buttons: --submit (primary, used for Post and Submit Reply) + --reply (secondary toggle) */
.comment-btn {
    cursor: pointer;
    font-size: 14px;
    line-height: 1.2;
    border-radius: 999px;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

/* Idle (empty textarea) — gray; signals there's nothing to post yet */
.comment-btn--submit {
    flex: 0 0 auto;
    align-self: flex-end;
    padding: 5px 16px;
    color: #fff;
    background-color: #c9c9c9;
    border: 1px solid #c9c9c9;
    -webkit-text-stroke: 0.4px rgba(255, 255, 255, 0.7);
}

.comment-form--expanded .comment-btn--submit {
    margin-top: 4px;
}

/* Active (user is typing) — blue; the textarea always has a placeholder,
   so :placeholder-shown is true exactly when the field is empty */
.comment-textarea:not(:placeholder-shown) + .comment-btn--submit {
    background-color: #007acd;
    border-color: #007acd;
}

.comment-textarea:not(:placeholder-shown) + .comment-btn--submit:hover,
.comment-textarea:not(:placeholder-shown) + .comment-btn--submit:focus-visible {
    background-color: #0a89dd;
    border-color: #0a89dd;
    outline: none;
}

.comment-btn--reply {
    padding: 2px 11px;
    font-size: 13px;
    color: #4a4a4a;
    background-color: transparent;
    border: 1px solid #bfbfbf;
}

.comment-btn--reply:hover,
.comment-btn--reply:focus-visible {
    color: #007acd;
    border-color: #9dcef0;
    background-color: #f3f9fe;
    outline: none;
}

/* Thread list */
.comment-thread {
    list-style: none;
    margin: 0;
    padding: 0;
}

.comment-thread .comment {
    margin-top: 10px;
}

/* Comment card */
.comment__card {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 10px;
    background-color: #fff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.comment__header {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.comment__avatar {
    width: 25px;
    height: 25px;
    flex: 0 0 auto;
    border-radius: 50%;
    border: 1px solid #7f7f7f;
    object-fit: cover;
}

.comment__identity {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
    min-width: 0;
}

.comment__name {
    font-weight: 700;
    color: #2b2b2b;
    overflow-wrap: anywhere;
}

.comment__badge {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    border-radius: 5px;
}

.comment__social {
    display: inline-flex;
    align-items: center;
    line-height: 1;
    font-size: 18px;
    text-decoration: none;
}

.comment__social--ig { color: #c13584; }
.comment__social--fb { color: #1877f2; }

.comment__reply-context {
    margin-left: auto;
    color: #616161;
    font-size: 13px;
    white-space: nowrap;
}

.comment__body {
    color: #2b2b2b;
    font-size: 14px;
    line-height: 1.4;
}

.comment__body p {
    margin: 0;
    overflow-wrap: anywhere;
}

.comment__actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 2px;
}

.comment__time {
    color: #777;
    font-size: 12.5px;
}

.comment__reply-form {
    margin-top: 6px;
}

/* Nested replies — thread rail + capped indent (stops compounding past ~2 levels) */
.comment__replies {
    list-style: none;
    margin: 8px 0 0 6px;
    padding-left: 12px;
    border-left: 2px solid #ececec;
}

.comment__replies .comment {
    margin-top: 8px;
}

.comment__replies .comment__replies .comment__replies {
    margin-left: 0;
    padding-left: 8px;
    border-left-color: #f0f0f0;
}
