.listing-detail-content {
    display: block;
    flex: 1 1 auto;
    width: 100%;
    max-width: 1200px;
    min-width: 0;
    height: 100%;
    margin: 0 auto;
    padding: 94px 30px 72px;
    overflow-x: hidden;
    overflow-y: auto;
    color: #161a22;
    background: var(--PAGE_BACKGROUND, #fff);
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.listing-detail-content::-webkit-scrollbar { display: none; }

.listing-detail-shell {
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
}

.listing-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
    margin: 0 0 10px;
    color: #737b89;
    font-size: 14px;
    line-height: 1.4;
}

.listing-breadcrumbs a,
.listing-breadcrumbs span {
    overflow: hidden;
    color: inherit;
    text-decoration: none;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.listing-breadcrumbs a:hover { color: var(--BRAND_BLUE); }
.listing-breadcrumbs i { color: #a4aab4; font-size: 10px; flex: 0 0 auto; }

.listing-heading {
    display: grid;
    grid-template-columns: minmax(0, 1.72fr) minmax(300px, .92fr);
    align-items: start;
    gap: 34px;
    margin: 0 0 24px;
}

.listing-heading h1 {
    margin: 0;
    color: #151820;
    font-size: clamp(26px, 3vw, 34px);
    font-weight: 700;
    letter-spacing: -.035em;
    line-height: 1.16;
    overflow-wrap: anywhere;
}

.listing-heading-price {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-width: 0;
    gap: 18px;
    padding-top: 1px;
    white-space: nowrap;
}

.listing-heading-price strong {
    color: #11141b;
    font-size: clamp(26px, 2.8vw, 34px);
    font-weight: 750;
    letter-spacing: -.035em;
    line-height: 1.15;
}

.listing-heading-price form,
.detail-favorite {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #f2f4f7;
    color: #161a22;
    font-size: 21px;
    transition: background .16s ease, color .16s ease, transform .16s ease;
}

.detail-favorite:hover { background: #e8edfa; transform: scale(1.04); }
.detail-favorite.is-favorite { color: #e14961; }
.listing-heading-price .detail-favorite { background: transparent; }
.listing-heading-price .detail-favorite:hover { background: transparent; color: var(--BRAND_BLUE); transform: none; }

.listing-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.72fr) minmax(300px, .92fr);
    align-items: start;
    gap: 34px;
}

.listing-primary { min-width: 0; }

.listing-gallery { min-width: 0; margin: 0 0 42px; }

.listing-gallery-stage {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: clamp(340px, 54vh, 470px);
    overflow: hidden;
    border-radius: 22px;
    background: #f3f4f6;
}

.listing-main-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    cursor: zoom-in;
    user-select: none;
    -webkit-user-drag: none;
}

.listing-gallery-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: #8a92a0;
    font-size: 15px;
}

.listing-gallery-empty i { color: #aeb7c6; font-size: 48px; }

.gallery-arrow {
    position: absolute;
    top: 50%;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    transform: translateY(-50%);
    border: 1px solid rgb(20 28 40 / 7%);
    border-radius: 50%;
    background: rgb(255 255 255 / 92%);
    color: #232a36;
    box-shadow: 0 3px 14px rgb(20 28 40 / 12%);
    cursor: pointer;
    transition: background .16s ease, transform .16s ease;
}

.gallery-arrow:hover { background: #fff; transform: translateY(-50%) scale(1.05); }
.gallery-arrow-prev { left: 14px; }
.gallery-arrow-next { right: 14px; }

.gallery-counter {
    position: absolute;
    right: 14px;
    bottom: 14px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgb(17 22 31 / 68%);
    color: #fff;
    font-size: 12px;
    line-height: 1;
}

.listing-gallery-thumbs {
    display: flex;
    gap: 9px;
    width: 100%;
    margin-top: 10px;
    padding: 2px 1px 5px;
    overflow-x: auto;
    scrollbar-width: none;
}

.listing-gallery-thumbs::-webkit-scrollbar { display: none; }

.gallery-thumb {
    flex: 0 0 76px;
    width: 76px;
    height: 76px;
    padding: 0;
    overflow: hidden;
    border: 2px solid transparent;
    border-radius: 15px;
    background: #f1f3f6;
    cursor: pointer;
    opacity: .8;
    transition: border-color .16s ease, opacity .16s ease;
}

.gallery-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.gallery-thumb:hover { opacity: 1; }
.gallery-thumb.is-active { border-color: var(--BRAND_BLUE); opacity: 1; }

.listing-info-sections { display: grid; gap: 30px; }

.listing-info-card h2 {
    margin: 0 0 16px;
    color: #151820;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -.025em;
    line-height: 1.25;
}

.listing-features dl { display: grid; gap: 13px; margin: 0; }
.listing-features dl > div { display: grid; grid-template-columns: minmax(140px, .7fr) 1fr; gap: 16px; }
.listing-features dt { color: #757d8b; }
.listing-features dd { margin: 0; color: #1f2530; font-weight: 500; }

.listing-description {
    max-width: 720px;
    margin: 0;
    color: #252b35;
    font-size: 16px;
    line-height: 1.65;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.listing-location-address { margin: 12px 0 0; color: #252b35; font-size: 15px; line-height: 1.5; overflow-wrap: anywhere; }
.listing-address-map { display: block; width: 100%; height: 290px; margin-top: 0; overflow: hidden; border: 1px solid #e4e7ec; border-radius: 15px; background: #f2f3f5; box-sizing: border-box; cursor: grab; }
.listing-address-map:active { cursor: grabbing; }

.listing-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    padding-top: 18px;
    border-top: 1px solid #e9ecf1;
    color: #7d8593;
    font-size: 13px;
    font-weight: 400;
}

.listing-meta span { font-weight: 400; }

.listing-sidebar {
    display: grid;
    gap: 20px;
    min-width: 0;
}

.listing-contact-panel,
.listing-seller-card {
    padding: 0;
    border: 0;
    background: #fff;
}

.listing-seller-card {
    padding: 16px;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
}

.listing-panel-eyebrow {
    display: block;
    margin: 0 0 12px;
    color: #7a8290;
    font-size: 13px;
    font-weight: 500;
}

.listing-contact-panel .listing-panel-eyebrow { margin-bottom: 14px; }

.detail-action-primary,
.detail-action-secondary,
.listing-seller-message {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 50px;
    padding: 0 18px;
    border: 0;
    border-radius: 14px;
    font: inherit;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background .16s ease, color .16s ease, border-color .16s ease, transform .16s ease;
}

.detail-action-primary {
    width: 100%;
    background: var(--BRAND_BLUE);
    color: #fff;
}

.listing-contact-panel .detail-action-primary { font-weight: 500; }

.detail-action-primary:hover { background: var(--BRAND_BLUE_DARK); color: #fff; }

.detail-action-secondary {
    width: 100%;
    margin-top: 9px;
    border: 1px solid #dce3f1;
    background: #fff;
    color: #1d2636;
}

.detail-action-secondary:hover { border-color: var(--BRAND_BLUE_MUTED); background: var(--BRAND_BLUE_TINT); }
.listing-contact-hint { margin: 14px 0 0; color: #77808d; font-size: 13px; line-height: 1.45; }

.listing-closed-status {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 13px 15px;
    border-radius: 13px;
    background: #f4f6f9;
    color: #545d6a;
    font-size: 14px;
}

.listing-closed-status i { color: var(--BRAND_BLUE); }

.listing-seller-heading { display: flex; align-items: center; gap: 14px; }
.listing-seller-profile-link { color: inherit; text-decoration: none; }
.listing-seller-profile-link:hover h2 { color: var(--BRAND_BLUE); }
.listing-seller-avatar { display: flex; flex: 0 0 58px; align-items: center; justify-content: center; width: 58px; height: 58px; border-radius: 50%; background: var(--seller-avatar-color, #6c63c7); color: #fff; font-size: 23px; font-weight: 600; line-height: 1; }
.listing-seller-main { min-width: 0; }
.listing-seller-heading .listing-panel-eyebrow { margin: 0 0 4px; }
.listing-seller-heading h2 { margin: 0; color: #171b23; font-size: 19px; font-weight: 700; overflow-wrap: anywhere; }
.listing-seller-rating { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 7px; margin-top: 5px; color: #444d5b; font-size: 13px; line-height: 1.25; }
.listing-seller-rating strong { color: #252b35; font-size: 13px; font-weight: 500; }
.seller-rating-stars, .seller-review-stars { display: inline-flex; gap: 1px; color: #d9dde4; letter-spacing: -.04em; white-space: nowrap; }
.seller-rating-stars { font-size: 14px; }
.seller-rating-stars .is-filled, .seller-review-stars .is-filled { color: #f2b500; }
.listing-seller-rating a { color: var(--BRAND_BLUE); text-decoration: none; white-space: nowrap; }
.listing-seller-rating a:hover { text-decoration: underline; }
.seller-rating-empty { color: #737b89; }

.listing-seller-details {
    display: grid;
    gap: 10px;
    margin-top: 18px;
    color: #5f6876;
    font-size: 14px;
}

.listing-seller-details span { display: flex; align-items: flex-start; gap: 9px; }
.listing-seller-details i { width: 15px; margin-top: 2px; color: #8892a1; text-align: center; }

.listing-reviews {
    width: min(760px, 100%);
    margin: 42px 0 0;
    scroll-margin-top: 28px;
}

.listing-reviews-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.listing-reviews-heading > div { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; }
.listing-reviews-heading h2 { margin: 0; color: #171b23; font-size: 25px; font-weight: 700; letter-spacing: -.025em; }
.listing-reviews-heading span { color: #78818f; font-size: 14px; }

.seller-review-form {
    display: grid;
    gap: 11px;
    margin: 0 0 24px;
    padding: 18px;
    border: 1px solid #e5e7eb;
    border-radius: 15px;
    background: #fff;
}

.review-form-label { color: #343b47; font-size: 14px; font-weight: 600; }
.review-form-label span { color: #838b97; font-size: 13px; font-weight: 400; }
.review-rating-input { display: inline-flex; flex-direction: row-reverse; justify-self: start; align-items: center; gap: 3px; }
.review-rating-input input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; clip-path: inset(50%); }
.review-rating-input label { color: #d9dde4; font-size: 29px; line-height: 1; cursor: pointer; transition: color .12s ease; }
.review-rating-input input:checked ~ label,
.review-rating-input label:hover,
.review-rating-input label:hover ~ label { color: #f2b500; }
.review-rating-input input:focus-visible + label { outline: 2px solid var(--BRAND_BLUE); outline-offset: 2px; border-radius: 3px; }
.seller-review-form textarea { width: 100%; min-height: 92px; padding: 12px 14px; resize: vertical; border: 1px solid #dfe3e9; border-radius: 11px; background: #fff; color: #222832; font: inherit; font-size: 14px; line-height: 1.5; }
.seller-review-form textarea:focus { outline: 2px solid rgb(32 75 190 / 18%); border-color: var(--BRAND_BLUE); }
.review-form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.review-submit { width: auto; min-height: 43px; padding: 0 17px; border-radius: 11px; font-size: 14px; }
.review-edit-note, .review-signin-note { color: #737b89; font-size: 14px; line-height: 1.5; }
.review-signin-note { margin: 0 0 22px; }
.review-signin-note a { color: var(--BRAND_BLUE); text-decoration: none; }
.review-signin-note a:hover { text-decoration: underline; }
.seller-review-item { padding: 17px 0; border-bottom: 1px solid #edf0f4; }
.seller-review-item:first-child { border-top: 1px solid #edf0f4; }
.seller-review-item > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.seller-review-item > header > div { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; }
.seller-review-item > header strong { color: #242a34; font-size: 15px; font-weight: 600; }
.seller-review-item time { flex: 0 0 auto; color: #89919d; font-size: 12px; }
.seller-review-stars { font-size: 14px; }
.seller-review-item > p { margin: 9px 0 0; color: #4f5866; font-size: 14px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
.review-delete { margin-top: 10px; padding: 0; border: 0; background: transparent; color: #7e8794; font: inherit; font-size: 13px; cursor: pointer; }
.review-delete:hover { color: #c43c50; }
.seller-reviews-empty { margin: 0 0 20px; padding: 16px; border-radius: 12px; background: #f6f7f9; color: #737b89; font-size: 14px; }
.seller-reviews-pagination { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 16px; color: #7a8290; font-size: 14px; }
.seller-reviews-pagination a { color: var(--BRAND_BLUE); text-decoration: none; }
.seller-reviews-pagination a:hover { text-decoration: underline; }

.seller-profile-content { max-width: 1420px; padding-top: 126px; }
.seller-profile-content .listing-detail-shell { max-width: 1360px; }
.seller-profile-layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); align-items: start; gap: 60px; }
.seller-profile-sidebar { display: grid; align-content: start; justify-items: start; gap: 10px; min-width: 0; padding: 4px 0; }
.seller-profile-avatar { flex-basis: 120px; width: 120px; height: 120px; margin-bottom: 1px; font-size: 56px; font-weight: 400; }
.seller-profile-sidebar h1 { margin: 0; color: #141820; font-size: 21px; font-weight: 650; letter-spacing: -.02em; overflow-wrap: anywhere; }
.seller-profile-review-link { min-height: 19px; color: var(--BRAND_BLUE); font-size: 14px; line-height: 1.35; text-decoration: none; }
.seller-profile-review-link:hover { text-decoration: underline; }
.seller-profile-review-link .seller-rating-stars { margin: 0 3px; vertical-align: -1px; }
.seller-profile-follow-stats { display: flex; flex-wrap: wrap; gap: 4px; margin: 0; color: #303640; font-size: 14px; line-height: 1.4; }
.seller-profile-follow-stats span + span::before { content: ", "; }
.seller-profile-joined { margin: 0; color: #303640; font-size: 14px; line-height: 1.4; }
.seller-profile-sidebar form { width: 100%; margin: 0; }
.seller-profile-message, .seller-profile-follow { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 44px; padding: 0 16px; border: 0; border-radius: 12px; font: inherit; font-size: 14px; font-weight: 500; text-decoration: none; cursor: pointer; transition: background .16s ease, color .16s ease; }
.seller-profile-message { margin-top: 20px; background: var(--BRAND_BLUE); color: #fff; }
.seller-profile-message:hover { background: var(--BRAND_BLUE_DARK); color: #fff; }
.seller-profile-message:disabled { background: #e9ebef; color: #7b8491; cursor: not-allowed; }
.seller-profile-follow { margin-top: 0; background: #f0f1f3; color: #252b35; }
.seller-profile-follow:hover { background: #e5e7eb; }
.seller-profile-follow.is-following { background: var(--BRAND_BLUE_TINT); color: var(--BRAND_BLUE); }
.seller-profile-own-note { margin: 8px 0 0; color: #737b89; font-size: 14px; }

.seller-profile-main-column { min-width: 0; }
.seller-profile-tabs { position: relative; display: flex; align-items: stretch; gap: 27px; min-height: 44px; margin-bottom: 24px; border-bottom: 1px solid #d8dadd; }
.seller-profile-tabs a { position: relative; display: inline-flex; align-items: flex-start; gap: 4px; padding: 1px 0 12px; color: #767b82; font-size: 21px; font-weight: 650; line-height: 1.15; text-decoration: none; }
.seller-profile-tabs a.is-active { color: #171b23; }
.seller-profile-tabs a.is-active::after { position: absolute; right: 0; bottom: -1px; left: 0; height: 3px; background: var(--BRAND_BLUE); content: ""; }
.seller-profile-tabs::after { position: absolute; z-index: 1; bottom: -1px; left: 0; width: var(--tab-indicator-width, 0px); height: 3px; border-radius: 3px 3px 0 0; background: var(--BRAND_BLUE); content: ""; opacity: 0; transform: translateX(var(--tab-indicator-left, 0px)); transition: transform .24s cubic-bezier(.22,.7,.25,1), width .24s cubic-bezier(.22,.7,.25,1), opacity .12s ease; pointer-events: none; }
.seller-profile-tabs.has-slider::after { opacity: 1; }
.seller-profile-tabs.has-slider a.is-active::after { display: none; }
.seller-profile-tabs sup { margin-top: -3px; color: #8b9097; font-size: 12px; font-weight: 600; }

.seller-profile-search { display: flex; align-items: stretch; gap: 12px; margin: 0 0 30px; }
.seller-profile-search-box { position: relative; display: flex; flex: 1 1 auto; align-items: center; gap: 10px; min-width: 0; height: 48px; padding: 0 16px; border: 1px solid transparent; border-radius: 13px; background: #f0f0f1; color: #747a82; }
.seller-profile-search-box:focus-within { border-color: var(--BRAND_BLUE_MUTED); background: #fff; }
.seller-profile-search-box > i { flex: 0 0 auto; font-size: 14px; }
.seller-profile-search-box input { flex: 1 1 auto; min-width: 0; height: 100%; padding: 0; border: 0; outline: 0; background: transparent; color: #1f252e; font: inherit; font-size: 14px; }
.seller-profile-search-box input::placeholder { color: #777d85; }
.seller-profile-sort { position: relative; flex: 0 0 auto; }
.seller-profile-sort summary { display: grid; width: 32px; height: 32px; place-items: center; border-radius: 8px; color: #343a43; list-style: none; cursor: pointer; }
.seller-profile-sort summary::-webkit-details-marker { display: none; }
.seller-profile-sort summary:hover { background: #e4e5e7; }
.seller-profile-sort-menu { position: absolute; z-index: 20; top: calc(100% + 7px); right: 0; display: grid; gap: 8px; width: 190px; padding: 13px; border: 1px solid #e1e3e7; border-radius: 12px; background: #fff; box-shadow: 0 8px 24px rgb(20 30 50 / 12%); color: #363d47; font-size: 13px; }
.seller-profile-sort-menu select { width: 100%; min-height: 36px; padding: 0 8px; border: 1px solid #dfe2e7; border-radius: 8px; background: #fff; color: #202630; font: inherit; }
.seller-profile-search > button { flex: 0 0 140px; min-height: 48px; border: 0; border-radius: 13px; background: var(--BRAND_BLUE); color: #fff; font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; }
.seller-profile-search > button:hover { background: var(--BRAND_BLUE_DARK); }

.seller-profile-listings { transition: opacity .16s ease; }
.seller-profile-listings.is-switching { opacity: .32; pointer-events: none; }
.seller-profile-ad-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 17px; }
.seller-profile-ad-card { min-width: 0; color: #171b23; }
.seller-profile-ad-photo-wrap { position: relative; overflow: hidden; border-radius: 14px; background: #f1f2f4; }
.seller-profile-ad-photo { display: flex; align-items: center; justify-content: center; width: 100%; aspect-ratio: 1 / 1; overflow: hidden; color: #808792; text-decoration: none; }
.seller-profile-ad-photo img { width: 100%; height: 100%; object-fit: cover; }
.seller-profile-ad-photo > span { display: flex; align-items: center; gap: 6px; font-size: 12px; }
.seller-profile-ad-status { position: absolute; top: 9px; left: 9px; padding: 4px 7px; border-radius: 6px; background: rgb(25 28 32 / 78%); color: #fff; font-size: 10px; }
.seller-profile-ad-info { display: grid; gap: 3px; padding-top: 8px; }
.seller-profile-ad-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 7px; min-height: 36px; }
.seller-profile-ad-title-row > a { min-width: 0; color: #242a33; font-size: 14px; line-height: 1.3; text-decoration: none; }
.seller-profile-ad-title-row > a:hover { color: var(--BRAND_BLUE); }
.seller-profile-ad-title-row form { flex: 0 0 auto; margin: -3px -4px 0 0; }
.seller-profile-ad-favorite { display: grid; width: 30px; height: 30px; padding: 0; place-items: center; border: 0; border-radius: 50%; background: transparent; color: #11151b; font-size: 17px; cursor: pointer; }
.seller-profile-ad-favorite:hover { background: #f0f1f3; }
.seller-profile-ad-info > strong { color: #12161d; font-size: 16px; font-weight: 700; }
.seller-profile-ad-city { color: #262c35; font-size: 13px; line-height: 1.4; }
.seller-profile-ad-city i { margin-right: 3px; font-size: 11px; }
.seller-profile-ad-info time { color: #818791; font-size: 12px; }
.seller-profile-ad-card.is-completed .seller-profile-ad-photo img { filter: saturate(.8); }
.seller-profile-empty { margin: 0; padding: 24px 0; color: #737b89; font-size: 14px; }
.seller-profile-pagination { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 26px; color: #737b89; font-size: 14px; }
.seller-profile-pagination a { color: var(--BRAND_BLUE); text-decoration: none; }
.seller-profile-pagination a:hover { text-decoration: underline; }
.seller-profile-reviews { margin-top: 54px; }

.modal {
    display: none;
    position: fixed;
    z-index: 1500;
    inset: 0;
    padding: 24px;
    overflow-y: auto;
    background: rgb(12 18 29 / 48%);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    width: min(460px, 100%);
    margin: min(16vh, 120px) auto 32px;
    overflow: hidden;
    border: 1px solid rgb(20 30 50 / 8%);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 22px 70px rgb(15 25 45 / 24%);
    animation: modalFadeIn .2s ease-out;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.modal-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 22px 24px 18px; border-bottom: 1px solid #edf0f4; }
.modal-header h2 { margin: 0; color: #171b23; font-size: 21px; font-weight: 700; }
.modal-header .listing-panel-eyebrow { margin-bottom: 5px; }

.close {
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #f1f3f6;
    color: #626c7a;
    font-size: 23px;
    line-height: 1;
    cursor: pointer;
}

.close:hover { background: #e8ebf0; color: #1d2430; }
.modal-body { padding: 20px 24px 24px; color: #515b69; line-height: 1.55; }
.modal-body > p:first-child { margin: 0 0 10px; }

.contact-info {
    display: block;
    width: 100%;
    margin: 0;
    padding: 14px 16px;
    border: 1px solid #dce3f1;
    border-radius: 12px;
    background: #f7f9fc;
    color: #1e2735;
    font: inherit;
    font-size: 16px;
    overflow-wrap: anywhere;
    text-align: left;
    user-select: text;
}

.contact-copy-hint { margin: 10px 0 18px; color: #7b8491; font-size: 13px; }
.modal-body .detail-action-primary { min-height: 46px; }

.image-viewer-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    inset: 0;
    overflow: hidden;
    background: rgb(0 0 0 / 94%);
    touch-action: none;
}

.image-viewer-container { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.image-viewer-img { max-width: 100%; max-height: 100%; object-fit: contain; transform-origin: center; transition: transform .25s ease; user-select: none; -webkit-user-drag: none; }

.image-viewer-nav {
    position: absolute;
    top: 50%;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    padding: 0;
    transform: translateY(-50%);
    border: 1px solid rgb(255 255 255 / 25%);
    border-radius: 50%;
    background: rgb(255 255 255 / 16%);
    color: #fff;
    font-size: 20px;
    cursor: pointer;
}

.image-viewer-nav:hover { background: rgb(255 255 255 / 28%); }
.image-viewer-prev { left: 22px; }
.image-viewer-next { right: 22px; }

.image-viewer-close {
    position: absolute;
    top: 18px;
    right: 24px;
    z-index: 3;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgb(255 255 255 / 14%);
    color: #fff;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
}

.image-viewer-counter { position: absolute; z-index: 3; top: 28px; left: 24px; color: #fff; font-size: 15px; }

@media (max-width: 980px) {
    .listing-detail-content { padding-right: 22px; padding-left: 22px; }
    .listing-detail-grid { grid-template-columns: minmax(0, 1.45fr) minmax(280px, .95fr); gap: 24px; }
    .listing-gallery-stage { height: clamp(320px, 48vh, 430px); }
    .seller-profile-layout { grid-template-columns: 260px minmax(0, 1fr); gap: 34px; }
    .seller-profile-ad-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
}

@media (max-width: 760px) {
    .listing-address-map { height: 250px; }
    .listing-detail-content { padding: 136px 16px 96px; }
    .seller-profile-content { padding-top: 164px; }
    .listing-breadcrumbs { gap: 7px; margin-bottom: 11px; font-size: 12px; }
    .listing-heading { display: block; margin-bottom: 18px; }
    .listing-heading h1 { font-size: 25px; line-height: 1.2; }
    .listing-heading-price { justify-content: space-between; margin-top: 11px; }
    .listing-heading-price strong { font-size: 27px; }
    .listing-heading-price .detail-favorite { width: 40px; height: 40px; }
    .listing-detail-grid { display: flex; flex-direction: column; gap: 24px; }
    .listing-primary { display: contents; }
    .listing-gallery { order: 1; width: 100%; margin-bottom: 0; }
    .listing-sidebar { position: static; order: 2; display: grid; width: 100%; gap: 13px; }
    .listing-info-sections { order: 3; width: 100%; gap: 25px; }
    .listing-gallery-stage { height: min(58vh, 440px); min-height: 270px; border-radius: 18px; }
    .gallery-thumb { flex-basis: 66px; width: 66px; height: 66px; border-radius: 13px; }
    .gallery-arrow { width: 38px; height: 38px; }
    .gallery-arrow-prev { left: 9px; }
    .gallery-arrow-next { right: 9px; }
    .listing-contact-panel { padding: 0; }
    .listing-seller-card { padding: 14px; }
    .listing-contact-panel .listing-panel-eyebrow { margin-bottom: 11px; }
    .detail-action-primary, .detail-action-secondary { min-height: 48px; }
    .listing-info-card h2 { font-size: 22px; }
    .seller-profile-layout { grid-template-columns: minmax(0, 1fr); gap: 36px; }
    .seller-profile-sidebar { grid-template-columns: auto minmax(0, 1fr); column-gap: 16px; align-items: center; }
    .seller-profile-avatar { grid-row: span 5; flex-basis: 92px; width: 92px; height: 92px; margin: 0; font-size: 42px; }
    .seller-profile-sidebar h1, .seller-profile-review-link, .seller-profile-follow-stats, .seller-profile-joined { grid-column: 2; }
    .seller-profile-sidebar form, .seller-profile-sidebar > .seller-profile-message, .seller-profile-own-note { grid-column: 1 / -1; }
    .seller-profile-message { margin-top: 12px; }
    .seller-profile-follow { margin-top: 8px; }
    .seller-profile-ad-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
    .seller-profile-tabs a { font-size: 18px; }
    .seller-profile-search > button { flex-basis: 105px; }
    .seller-profile-reviews { margin-top: 42px; }
}

@media (max-width: 480px) {
    .listing-detail-content { padding-right: 13px; padding-left: 13px; }
    .listing-heading h1 { font-size: 23px; }
    .listing-heading-price strong { font-size: 25px; }
    .listing-features dl > div { grid-template-columns: 115px minmax(0, 1fr); gap: 10px; font-size: 14px; }
    .listing-description { font-size: 15px; }
    .seller-profile-section-heading h2, .listing-reviews-heading h2 { font-size: 22px; }
    .seller-profile-search { gap: 8px; }
    .seller-profile-search > button { flex-basis: 82px; }
    .seller-profile-search-box { padding: 0 11px; }
    .seller-profile-tabs { gap: 20px; }
    .seller-profile-ad-grid { gap: 12px; }
    .seller-profile-ad-title-row > a { font-size: 13px; }
    .modal { padding: 14px; }
    .modal-content { margin-top: 15vh; border-radius: 17px; }
    .modal-header, .modal-body { padding-right: 18px; padding-left: 18px; }
    .image-viewer-nav { width: 40px; height: 40px; }
    .image-viewer-prev { left: 10px; }
    .image-viewer-next { right: 10px; }
}

@media (prefers-reduced-motion: reduce) {
    .seller-profile-listings, .seller-profile-tabs::after { transition: none; }
}
