/* Listing gallery geometry, including compact landscape phones. */
@media(min-width:641px){
 .listing-page:has(.listing-detail--desktop){max-width:none;gap:48px}.listing-detail--desktop{max-width:none;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;display:grid;grid-template-columns:minmax(0,1.08fr) minmax(0,1fr);gap:36px;align-items:start}
 .desktop-media{min-width:0}.desktop-publisher-wrap{margin:20px 0 0 70px}.desktop-publisher{display:flex;align-items:center;gap:12px;color:var(--text-primary);padding-block:4px;width:fit-content;max-width:100%;text-decoration:none}.desktop-publisher__avatar{position:relative;width:54px;height:54px;flex:0 0 54px;display:grid;place-items:center;border-radius:50%;overflow:hidden;background:#e9ecef;font-size:16px;color:#6b7280}.desktop-publisher__avatar img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;border-radius:50%}.desktop-publisher__avatar img[hidden]{display:none}.desktop-publisher__body{min-width:0;display:flex;flex-direction:column;gap:4px}.desktop-publisher__title{font-size:16px;line-height:1.35;font-weight:500;overflow-wrap:anywhere}.desktop-publisher:hover .desktop-publisher__title{text-decoration:underline;text-underline-offset:3px}.desktop-publisher__city{font-size:13px;line-height:1.4;color:var(--text-secondary)}.desktop-publisher__rating{display:flex;align-items:center;gap:5px;font-size:13px;line-height:1.4;color:#5f6570}.desktop-publisher__rating svg{width:13px;height:13px;fill:#d9a03a}
 .gallery--desktop{display:grid;grid-template-columns:58px minmax(0,1fr);gap:12px;margin:0;padding:0;border:0;background:none;min-width:0;align-items:stretch;box-shadow:none}
 .gallery--desktop.gallery--single{grid-template-columns:1fr;padding-left:70px}.desktop-photo{width:100%;aspect-ratio:4/5;position:relative;overflow:hidden;border-radius:14px;background:#f3f4f5}
 .desktop-photo-open{border:0;background:transparent;width:100%;height:100%;display:block;padding:0;cursor:zoom-in}.desktop-main-image{width:100%;height:100%;object-fit:cover;object-position:center;display:block}.desktop-main-image[hidden]{display:none}
 .desktop-thumbnails{display:flex;flex-direction:column;min-height:0;position:relative;height:100%;gap:8px}.thumb-list{position:absolute;inset:28px 0;display:flex;flex-direction:column;gap:10px;overflow:auto;scrollbar-width:none;overscroll-behavior:contain;padding:2px;scroll-behavior:smooth}.thumb-list::-webkit-scrollbar{display:none}
 .desktop-thumb{width:54px;aspect-ratio:4/5;flex-shrink:0;overflow:hidden;border:2px solid transparent;border-radius:8px;padding:0;background:#f3f4f5;cursor:pointer;transition:border-color 150ms}.desktop-thumb.active{border-color:#111}.desktop-thumb img{width:100%;height:100%;display:block;object-fit:cover;object-position:center;border-radius:5px}.image-error{background:#e5e7eb}
 .thumb-scroll{height:22px;width:100%;display:grid;place-items:center;border:0;background:none;color:#111;cursor:pointer}.thumb-scroll:last-child{margin-top:auto}.thumb-scroll:disabled{opacity:.25;cursor:default}.thumb-scroll svg{width:18px;height:18px}
 .desktop-photo-nav{position:absolute;top:50%;transform:translateY(-50%);height:36px;width:36px;border:1px solid rgba(255,255,255,.5);border-radius:50%;background:rgba(255,255,255,.94);color:#111;box-shadow:0 2px 10px #0001;display:grid;place-items:center;cursor:pointer}.desktop-photo-nav:hover{background:#fff}.desktop-photo-nav svg{width:20px;height:20px}.desktop-photo-nav.prev{left:10px}.desktop-photo-nav.next{right:10px}.photo-counter{position:absolute;bottom:12px;right:12px;padding:5px 9px;background:#fffE;border-radius:20px;font-size:12px;color:#555;pointer-events:none;font-variant-numeric:tabular-nums}
 .desktop-info{min-width:0}.desktop-toolbar{display:flex;align-items:center;justify-content:flex-end;gap:10px;min-height:36px}.desktop-actions{display:flex;gap:6px;flex-shrink:0}.desktop-actions .btn{border:0;background:transparent;box-shadow:none;padding:6px 8px;min-height:36px;font-size:13px;gap:7px;color:#6b7280}.desktop-actions .btn:hover{background:#f4f4f4;color:#111}.desktop-actions .detail-action-btn svg{width:17px;height:17px}.desktop-actions #favorite-add{position:static;width:36px;height:36px;min-height:36px;padding:8px;transform:none;border:0}.desktop-actions #favorite-add svg{width:20px;height:20px}.desktop-actions #favorite-add.active{color:#e25575;background:#fff0f4}
 .desktop-info .listing-detail__header{margin:20px 0 20px}.desktop-info .listing-detail__title{font-size:28px;font-weight:500;line-height:1.24;letter-spacing:-.025em;overflow-wrap:anywhere}
 .desktop-price{margin-bottom:20px;display:flex;flex-direction:column;gap:4px}.desktop-price strong{font-size:24px;font-weight:600;line-height:1.3;letter-spacing:-.02em}.desktop-price.is-free{color:#239b56}.desktop-price.is-model-payment{color:var(--warning)}.desktop-price-label{font-size:13px}
 .desktop-location,.desktop-date{display:flex;align-items:flex-start;gap:8px;font-size:14px;line-height:1.5;overflow-wrap:anywhere}.desktop-location{color:#454b55}.desktop-date{font-size:13px;color:#91969e;margin-top:9px}.desktop-location svg,.desktop-date svg{width:17px;height:17px;flex-shrink:0;margin-top:2px}
 .desktop-info .listing-detail__quick-actions{margin:24px 0;align-items:center;gap:12px}.desktop-info #contacts-open{flex:0 0 auto;padding:12px 24px;min-height:46px;border-radius:12px;font-size:14px}.contact-channels{font-size:12px;color:var(--text-secondary);line-height:1.6;min-width:0;flex:1;overflow-wrap:anywhere}
 .desktop-description{font-size:16px;line-height:1.65;white-space:pre-wrap;overflow-wrap:anywhere;color:#333;margin-top:24px;border-top:1px solid #eceef0;padding-top:24px}.desktop-info .listing-detail__catalog-card{margin-top:24px}.desktop-info .profile-card--published{min-width:0}
 .listing-page:has(.listing-detail--desktop) .listing-similar .section-header h2{font-size:24px;font-weight:500;letter-spacing:-.02em}
}
@media(min-width:641px) and (max-width:1100px){.listing-detail--desktop{gap:28px}.desktop-publisher-wrap{margin-left:60px}.desktop-info .listing-detail__title{font-size:25px}.gallery--desktop{grid-template-columns:50px minmax(0,1fr);gap:10px}.desktop-thumb{width:46px}.gallery--desktop.gallery--single{padding-left:60px}.desktop-actions .btn span{display:none}.contact-channels{flex-basis:100%}.desktop-description{font-size:16px}}
@media(min-width:641px){
 .desktop-info{display:flex;flex-direction:column;min-height:var(--desktop-photo-height,0px)}
 .desktop-summary{flex-shrink:0}.desktop-summary .listing-detail__header{margin:0 0 18px}.desktop-summary .listing-detail__title{font-size:28px;line-height:1.25}
 .desktop-price{flex-direction:row;align-items:center;gap:10px;margin-bottom:18px}.desktop-price>svg{width:21px;height:21px;flex:0 0 21px;color:#737985;fill:currentColor}.desktop-price-text{display:flex;flex-direction:column;gap:3px}.desktop-price strong{font-size:25px;font-weight:500}.desktop-price.is-free>svg,.desktop-price.is-model-payment>svg{color:currentColor}
 .desktop-description{margin:20px 0 24px;padding-top:0;border:0;line-height:1.55;flex-shrink:0}.desktop-description .expandable-text__toggle{font-size:14px;margin-top:6px;min-height:26px}.desktop-bottom{margin-top:auto;padding-top:0;flex-shrink:0}
 .desktop-bottom .listing-detail__quick-actions{margin:0;gap:8px;flex-wrap:nowrap;align-items:center;justify-content:flex-start}
 .desktop-bottom .desktop-actions .btn{flex:0 0 auto;min-height:44px;border-radius:12px;font-size:14px;font-weight:500;padding:10px 16px}
 .desktop-bottom #contacts-open{background:#111;color:#fff;border:1px solid #111;padding:10px 18px;min-height:44px}
 .desktop-bottom #share-open{background:transparent;border:1px solid #dce0e5;color:#484e58;padding:10px 16px}.desktop-bottom #share-open:hover{background:#fff;color:#111}
 .desktop-bottom .desktop-actions #favorite-add{height:44px;width:44px;min-height:44px;border:1px solid #dce0e5;border-radius:12px;padding:11px;flex:0 0 44px}
 .desktop-bottom .desktop-actions #favorite-add svg{width:20px;height:20px}
 .desktop-bottom .desktop-actions .btn span{display:inline}
 .desktop-bottom .desktop-publisher-wrap{margin:20px 0 0}.desktop-bottom .desktop-publisher__avatar{width:46px;height:46px;flex-basis:46px}.desktop-bottom .desktop-publisher__title{font-size:15px}.desktop-bottom .desktop-publisher{gap:11px;padding:0}.desktop-bottom .desktop-publisher__body{gap:3px}
}
@media(min-width:641px) and (max-width:1100px){.desktop-summary .listing-detail__title{font-size:25px}.desktop-bottom .desktop-actions .btn{font-size:13px;padding-inline:12px}.desktop-bottom #contacts-open,.desktop-bottom #share-open{padding-inline:14px}.desktop-price strong{font-size:24px}}
@media(min-width:641px){
  #listing-content.listing-detail--desktop{align-items:start}
  #listing-content .desktop-info{height:var(--desktop-photo-height,auto);min-height:0;display:flex;flex-direction:column;gap:0;overflow:visible}
  #listing-content .desktop-reading{position:relative;display:flex;flex-direction:column;flex:1;min-height:0;min-width:0;overflow:visible}
  #listing-content .desktop-summary{flex:none}
  #listing-content .desktop-description-wrap{position:relative;flex:1;min-height:0;margin:20px 0 18px;display:flex}
  #listing-content .desktop-description{flex:1;min-height:0;margin:0;padding:0 10px 0 0;overflow-y:auto;overflow-x:hidden;scrollbar-width:thin;scrollbar-color:#b8bdc5 transparent;overscroll-behavior-y:auto;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.55;font-size:16px}
  #listing-content .desktop-description::-webkit-scrollbar,#listing-content .desktop-info--combined .desktop-reading::-webkit-scrollbar{width:6px}
  #listing-content .desktop-description::-webkit-scrollbar-thumb,#listing-content .desktop-info--combined .desktop-reading::-webkit-scrollbar-thumb{background:#b8bdc5;border-radius:6px}
  #listing-content .desktop-description-wrap:after{content:'';position:absolute;bottom:0;left:0;right:8px;height:28px;background:linear-gradient(transparent,var(--bg));pointer-events:none;opacity:0}
  #listing-content .has-more-text:not(.desktop-info--combined) .desktop-description-wrap:after{opacity:1}
  #listing-content .desktop-scroll-hint{flex:none;margin:0 0 12px;font-size:12px;line-height:1.4;color:var(--text-secondary)}
  #listing-content .desktop-scroll-hint[hidden]{display:none}
  #listing-content .desktop-bottom{flex:none;margin-top:0}
  #listing-content .desktop-info--combined .desktop-reading{display:block;overflow-y:auto;overflow-x:hidden;scrollbar-width:thin;scrollbar-color:#b8bdc5 transparent;margin-bottom:18px;padding-right:10px;overscroll-behavior-y:auto}
  #listing-content .desktop-info--combined .desktop-description-wrap{display:block;margin:20px 0 0}
  #listing-content .desktop-info--combined .desktop-description{overflow:visible;padding:0}
  #listing-content .desktop-info--combined.has-more-text .desktop-reading{mask-image:linear-gradient(#000 calc(100% - 24px),transparent)}
  #listing-content .desktop-info--combined .desktop-description-wrap:after{display:none}
  #listing-content .photo-fallback{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:12px;font-size:14px;color:#737985;pointer-events:none;background:#f3f4f5}
  #listing-content .photo-fallback[hidden]{display:none}
  #listing-content .photo-fallback svg{width:42px;height:42px}
  #listing-content .desktop-publisher__body{overflow-wrap:anywhere}
  #listing-content .desktop-publisher__avatar img[hidden]{display:none}
  #listing-content button:focus-visible,#listing-content a:focus-visible,#listing-content [tabindex='0']:focus-visible{outline:2px solid #111;outline-offset:3px}
  #listing-content .desktop-description:focus-visible,#listing-content .desktop-reading:focus-visible{outline-offset:-2px}
  #listing-content .thumb-list{scroll-behavior:auto}
}
@media(min-width:641px) and (prefers-reduced-motion:reduce){#listing-content .desktop-thumb{transition:none}}

/* Keep the scroll affordance visible on hover even when the OS hides overlay scrollbars. */
@media(min-width:641px){
  #listing-content .desktop-info{position:relative}
  #listing-content .gallery--desktop button{touch-action:manipulation}
  #listing-content .desktop-scroll-indicator{position:absolute;right:0;top:var(--text-scroll-top,0px);height:var(--text-scroll-height,0px);width:6px;border-radius:6px;background:#e6e8eb;pointer-events:none;opacity:0;transition:opacity 120ms ease}
  #listing-content .desktop-scroll-indicator>span{display:block;width:100%;height:var(--text-scroll-thumb,0px);transform:translateY(var(--text-scroll-offset,0px));border-radius:inherit;background:#858d98}
  #listing-content .has-text-overflow:has(.desktop-reading:hover,.desktop-reading:focus-within) .desktop-scroll-indicator{opacity:1}
}
@media(min-width:641px) and (hover:none){
  #listing-content .has-text-overflow .desktop-scroll-indicator{opacity:1}
}
@media(min-width:641px) and (max-width:1023px){
  #listing-content.listing-detail--desktop{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:24px}
  #listing-content .desktop-summary .listing-detail__title{font-size:23px}
  #listing-content .desktop-bottom #contacts-open,#listing-content .desktop-bottom #share-open{padding-inline:10px;font-size:13px}
  #listing-content .desktop-bottom .listing-detail__quick-actions{gap:6px}
  #listing-content .desktop-bottom .desktop-publisher-wrap{margin-top:14px}
}
@media(prefers-reduced-motion:reduce){#listing-content .desktop-scroll-indicator{transition:none}}

/* Compact intermediate windows: gallery left, summary/actions right, description below. */
@media(min-width:641px) and (max-width:1023px) and (max-height:599px){
  #listing-content.listing-detail--desktop{display:grid;grid-template-columns:minmax(0,calc(min(52svh,240px) + 60px)) minmax(0,1fr);gap:24px;align-items:start}
  #listing-content .desktop-media{width:100%;display:flex;justify-content:flex-start}
  #listing-content .gallery--desktop{width:min(100%,calc(min(52svh,240px) + 60px));grid-template-columns:50px minmax(0,1fr);gap:10px;margin:0}
  #listing-content .gallery--desktop.gallery--single{width:min(52svh,240px);grid-template-columns:1fr;padding:0}
  #listing-content .desktop-photo{aspect-ratio:4/5}
  #listing-content .desktop-photo-open,#listing-content .desktop-thumb,#listing-content .desktop-photo-nav{touch-action:manipulation}
  #listing-content .desktop-info{width:100%;height:auto;min-height:0}
  #listing-content .desktop-reading{display:block;overflow:visible;flex:none}
  #listing-content>.desktop-description-wrap{grid-column:1/-1;display:block;margin:0}
  #listing-content .desktop-description{overflow:visible;padding:0}
  #listing-content .desktop-description-wrap:after,#listing-content .desktop-scroll-hint,#listing-content .desktop-scroll-indicator{display:none}
  #listing-content .desktop-bottom{margin:18px 0 0}
  #listing-content .desktop-bottom .listing-detail__quick-actions{flex-wrap:wrap}
}
