.listing-detail-page{background:#fff;color:var(--ink)}
.listing-detail-page .sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.ld-wrap{width:min(100% - 48px,1280px);margin-inline:auto}

/* Header */
.ld-header{position:sticky;top:0;z-index:30;border-bottom:1px solid var(--line);background:rgba(255,255,255,.94);backdrop-filter:blur(12px)}
.ld-header-in{display:flex;min-height:74px;align-items:center;gap:28px}
.ld-logo{display:inline-block;transform:skewX(-8deg);color:var(--ink);font-size:24px;font-weight:700;letter-spacing:-.03em;text-decoration:none;white-space:nowrap}
.ld-logo:hover{color:var(--ink)}
.ld-logo b{color:var(--brand)}
.ld-search{display:flex;min-height:46px;max-width:560px;flex:1;align-items:center;gap:10px;padding:0 18px;border-radius:999px;background:var(--soft)}
.ld-search svg{width:20px;height:20px;flex:none;fill:none;stroke:var(--muted);stroke-width:1.8;stroke-linecap:round}
.ld-search input{width:100%;min-width:0;border:0;outline:0;background:transparent;color:var(--ink);font-size:15px}
.ld-search input::placeholder{color:#737b87}
.ld-header-actions{display:flex;margin-left:auto;align-items:center;gap:10px}
.ld-header-actions .btn{min-height:44px;padding-inline:18px;font-size:15px;font-weight:500}
.ld-me{display:inline-flex;min-height:44px;padding:4px 14px 4px 4px;align-items:center;gap:8px;border:1px solid var(--line);border-radius:999px;color:var(--ink);font-size:14px;text-decoration:none}
.ld-me:hover{border-color:#b7bdc5;color:var(--ink)}
.ld-me span{display:grid;width:34px;height:34px;place-items:center;border-radius:50%;background:var(--warm);color:var(--brand-text);font-size:12px;font-weight:600}
.ld-me b{max-width:110px;overflow:hidden;font-weight:500;text-overflow:ellipsis;white-space:nowrap}
.ld-login{display:inline-flex;min-height:42px;padding:0 16px;align-items:center;gap:8px;border:1px solid var(--line);border-radius:999px;font-size:14px;font-weight:500;text-decoration:none}
.ld-login svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}

/* Owner view */
.ld-page{padding-top:20px}
.ld-owner{display:grid;margin-bottom:18px;padding:16px 18px;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:12px 18px;border:1px solid #cfe6d7;border-radius:20px;background:#f3faf5}
.ld-owner-ok{display:grid;width:42px;height:42px;place-items:center;border:1px solid #cfe6d7;border-radius:50%;background:#fff;color:#15803d}
.ld-owner-ok svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
.ld-owner-copy>b{display:block;font-size:15.5px;font-weight:600}
.ld-owner-meta{display:flex;margin-top:3px;gap:5px 16px;flex-wrap:wrap;color:var(--text);font-size:13px}
.ld-owner-meta span{display:inline-flex;align-items:center;gap:5px}
.ld-owner-meta svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.ld-owner-actions{display:flex;justify-content:flex-end;gap:8px;flex-wrap:wrap}
.ld-owner-actions .btn{min-height:40px;padding-inline:14px;border:1px solid var(--line);background:#fff;font-size:13.5px;font-weight:500}
.ld-owner-actions .btn-brand{border-color:var(--brand);background:var(--brand)}
.ld-top-status{display:inline-flex;min-height:40px;padding:0 14px;align-items:center;border-radius:999px;background:#fff1e0;color:#8c4700;font-size:13.5px;font-weight:600}
.ld-top-status.coming{border:1px solid var(--line);background:var(--soft);color:var(--muted);font-weight:500}
.ld-owner-note{display:flex;padding-top:10px;grid-column:2/-1;justify-content:space-between;gap:12px;flex-wrap:wrap;border-top:1px solid #ddeeE3;color:var(--muted);font-size:12.5px}
.ld-owner-note button{padding:0;border:0;background:none;color:var(--ink);font-size:13px;font-weight:500;text-decoration:underline;text-underline-offset:3px;cursor:pointer}
.ld-buyer-bar{display:none;margin-bottom:18px;padding:10px 16px;align-items:center;justify-content:space-between;gap:12px;border-radius:14px;background:var(--ink);color:#fff;font-size:14px}
.ld-buyer-bar button{min-height:34px;padding:0 14px;border:0;border-radius:999px;background:#fff;color:var(--ink);font-size:13.5px;font-weight:500;cursor:pointer}
.ld-buyer-mode .ld-owner{display:none}
.ld-buyer-mode .ld-buyer-bar{display:flex}

/* Breadcrumbs and page grid */
.ld-crumbs{display:flex;padding:3px 0 18px;align-items:center;gap:8px;flex-wrap:wrap;color:var(--muted);font-size:13.5px}
.ld-crumbs a{color:var(--muted);text-decoration:none}
.ld-crumbs a:hover{text-decoration:underline}
.ld-crumbs [aria-current=page]{max-width:340px;overflow:hidden;color:var(--ink);text-overflow:ellipsis;white-space:nowrap}
.ld-layout{display:grid;grid-template-columns:minmax(0,1fr) 440px;align-items:start;gap:32px}
.ld-left{display:flex;min-width:0;flex-direction:column;gap:24px}
.ld-right{position:sticky;top:94px;display:flex;min-width:0;flex-direction:column;gap:16px}

/* Gallery */
.ld-photo-stage{position:relative;display:flex;height:500px;align-items:center;justify-content:center;overflow:hidden;border-radius:24px;background:#f0f2f4}
.ld-photo-stage>img{width:100%;height:100%;object-fit:cover}
.ld-placeholder{width:min(44%,300px);fill:none;stroke:#a9b0b9;stroke-width:1.3;stroke-linecap:round;stroke-linejoin:round}
.ld-placeholder circle{fill:#f0f2f4}
.ld-service-placeholder{width:120px;height:120px;stroke-width:1.1}
.ld-photo-tag{position:absolute;display:inline-flex;min-height:28px;padding:4px 11px;align-items:center;gap:5px;border-radius:999px;font-size:12.5px;font-weight:600}
.ld-photo-tag svg{width:13px;height:13px;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
.ld-top-tag{top:16px;left:16px;background:var(--brand);color:var(--ink)}
.ld-sale-tag{top:16px;right:16px;background:#c81e1e;color:#fff;font-weight:700}
.ld-photo-count{bottom:16px;left:16px;background:rgba(14,17,22,.76);color:#fff}
.ld-gallery-arrow{position:absolute;top:50%;display:grid;width:48px;height:48px;padding:0;place-items:center;transform:translateY(-50%);border:0;border-radius:50%;background:#fff;box-shadow:0 2px 10px rgba(14,17,22,.14);cursor:pointer}
.ld-gallery-arrow:hover{background:#f9f9f8}
.ld-gallery-arrow.prev{left:16px}.ld-gallery-arrow.next{right:16px}
.ld-gallery-arrow svg{width:22px;height:22px;fill:none;stroke:var(--ink);stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.ld-thumbs{display:grid;margin-top:10px;grid-template-columns:repeat(6,minmax(86px,1fr));gap:10px;overflow-x:auto;scrollbar-width:thin}
.ld-thumb{height:86px;padding:0;overflow:hidden;border:2px solid transparent;border-radius:14px;background:#f0f2f4;cursor:pointer}
.ld-thumb[aria-current=true]{border-color:var(--brand)}
.ld-thumb img{display:block;width:100%;height:100%;object-fit:cover}

/* Content cards */
.ld-card,.ld-box{border:1px solid var(--line);border-radius:24px;background:#fff}
.ld-card{padding:26px 28px}
.ld-card h2{margin:0 0 6px;font-size:22px;font-weight:600;letter-spacing:-.01em}
.ld-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}
.ld-card-head p{margin:0;color:var(--muted);font-size:14px}
.ld-specs{display:grid;margin:12px 0 0;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 32px}
.ld-specs div{display:flex;padding:12px 0;justify-content:space-between;gap:16px;border-bottom:1px solid #eef0f2;font-size:15px}
.ld-specs dt{color:var(--muted)}
.ld-specs dd{margin:0;color:var(--ink);font-weight:500;text-align:right}
.ld-pills{display:flex;margin-top:14px;gap:8px;flex-wrap:wrap}
.ld-pill{min-height:40px;padding:0 14px;border:1px solid var(--line);border-radius:999px;background:#fff;color:var(--ink);font-size:14px;font-weight:500;cursor:pointer}
.ld-pill[aria-selected=true]{border-color:var(--ink);background:var(--ink);color:#fff}
.ld-equipment{display:grid;margin:16px 0 0;padding:0;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:10px 18px;color:var(--text);font-size:15px;list-style:none}
.ld-equipment li{display:flex;align-items:center;gap:8px}
.ld-equipment svg{width:16px;height:16px;flex:none;fill:none;stroke:var(--brand);stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.ld-description>div{color:var(--text)}
.ld-description p{margin:10px 0 0}
.ld-history{display:grid;margin-top:16px;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.ld-history div{display:flex;padding:12px 14px;align-items:center;gap:10px;border-radius:14px;background:var(--soft);color:var(--text);font-size:14.5px}
.ld-history svg{width:20px;height:20px;flex:none;fill:none;stroke:#15803d;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.ld-map{position:relative;height:220px;margin-top:14px;overflow:hidden;border-radius:18px;background:#eef0f2}
.ld-roads{display:block;width:100%;height:100%;fill:none}
.ld-roads .major{stroke:#fff;stroke-width:10}.ld-roads .minor{stroke:#fff;stroke-width:4}
.ld-pin{position:absolute;top:50%;left:50%;width:40px;height:48px;transform:translate(-50%,-100%)}
.ld-pin path{fill:var(--brand)}.ld-pin circle{fill:#fff}
.ld-map-foot{display:flex;margin-top:12px;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;color:var(--text)}
.ld-map-foot small{color:var(--muted);font-size:13px}
#ld-location-title{scroll-margin-top:96px}

/* Price and contact */
.ld-box{padding:24px}
.ld-main-box{display:flex;flex-direction:column;gap:18px}
.ld-badges{display:flex;margin-bottom:10px;gap:8px;flex-wrap:wrap}
.ld-badge{display:inline-flex;padding:4px 10px;align-items:center;gap:5px;border-radius:999px;background:var(--soft);color:var(--ink);font-size:12px;font-weight:600}
.ld-badge-top{background:var(--brand)}
.ld-badge-seller{background:var(--ink);color:#fff}
.ld-badge-contact{background:#eaf5ee;color:#17633a}
.ld-badge svg{width:13px;height:13px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.ld-main-box h1{max-width:none;margin:0;font-size:30px;font-weight:600;line-height:1.15;letter-spacing:-.02em}
.ld-subtitle{margin:5px 0 0;color:var(--muted);font-size:15px}
.ld-location-top{display:flex;margin-top:10px;align-items:center;gap:4px 8px;flex-wrap:wrap;color:var(--ink);font-size:14px}
.ld-location-top svg{width:16px;height:16px;flex:none;fill:none;stroke:var(--brand);stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.ld-location-top a{color:var(--muted);font-size:13px;text-decoration:underline;text-underline-offset:2px}
.ld-divider{padding-top:16px;border-top:1px solid #eef0f2}
.ld-price{display:flex;flex-direction:column;line-height:1.15}
.ld-price-old{color:var(--muted);font-size:16px;text-decoration:line-through}
.ld-price strong{color:var(--ink);font-size:38px;font-weight:600;letter-spacing:-.025em}
.ld-price strong.sale{color:#c81e1e}
.ld-price strong.negotiable{font-size:31px}
.ld-price small{margin-top:6px;color:var(--muted);font-size:13px}
.ld-key{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.ld-key div{min-width:0;padding:10px 12px;border-radius:14px;background:var(--soft)}
.ld-key small,.ld-key b{display:block;overflow:hidden;text-overflow:ellipsis}
.ld-key small{color:var(--muted);font-size:12px;white-space:nowrap}
.ld-key b{font-size:14px;font-weight:600;line-height:1.35}
.ld-contact{display:flex;flex-direction:column;gap:8px}
.ld-contact .btn{min-height:50px;border:1px solid var(--line);font-size:15px;font-weight:500}
.ld-contact svg,.ld-owner-profile-link+svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.ld-contact .ld-phone{width:100%;min-height:58px;border-color:var(--brand);background:var(--brand);color:var(--ink);font-size:17px;font-weight:600}
.ld-contact .ld-phone:hover{border-color:#e57500;background:#e57500;color:var(--ink)}
.ld-contact-row{display:grid;grid-template-columns:1fr 1fr 52px;gap:8px}
.ld-contact-row .ld-write{border-color:#15803d;background:#15803d;color:#fff;font-weight:600}
.ld-contact-row .ld-write:hover{border-color:#116a33;background:#116a33;color:#fff}
.ld-favorite{width:52px;padding:0}
.ld-favorite[aria-pressed=true]{border-color:var(--brand);background:#fff4e8}
.ld-favorite[aria-pressed=true] svg{fill:var(--brand);stroke:var(--brand)}
.ld-owner-profile-link{width:100%;min-height:52px;font-weight:500}
.ld-posted{display:flex;gap:4px 14px;flex-wrap:wrap;color:var(--muted);font-size:12.5px}

/* Viewing request */
.ld-visit{margin:0}
.ld-visit-label{color:var(--text);font-size:13px;font-weight:600}
.ld-visit .ld-pills{margin-top:8px}
.ld-pill[aria-pressed=true]{border-color:var(--ink);background:var(--ink);color:#fff;font-weight:600}
.ld-visit-submit{width:100%;min-height:50px;margin-top:12px;border-color:var(--ink);background:var(--ink);color:#fff;font-weight:600}
.ld-visit-submit:hover{border-color:#262b33;background:#262b33;color:#fff}
.ld-visit-submit:disabled{cursor:wait;opacity:.65}
.ld-visit-status{margin-top:12px;padding:11px 13px;border-radius:12px;background:#eaf5ee;color:#17633a;font-size:13px;line-height:1.45}
.ld-visit-status.error{background:#fdecec;color:#a71919}
.ld-visit-status strong{font-weight:600}

/* Inquiry */
.lc-form{margin-top:-4px;padding:14px;border:1px solid #daddE1;border-radius:14px;background:#fafafa}
.lc-form label{display:block;margin-bottom:6px;color:var(--ink);font-size:13.5px;font-weight:600}
.lc-form textarea{width:100%;min-height:104px;padding:10px 12px;resize:vertical;border:1px solid #cbd0d6;border-radius:10px;outline:none;background:#fff;color:var(--ink);font:inherit;line-height:1.45}
.lc-form textarea:focus{border-color:var(--ink);box-shadow:0 0 0 3px rgba(14,17,22,.06)}
.lc-form-actions{display:flex;margin-top:9px;align-items:center;justify-content:space-between;gap:10px}
.lc-form-actions>span{color:var(--muted);font-size:12.5px;line-height:1.35}
.lc-form-actions>span.ok{color:#15803d;font-weight:500}.lc-form-actions>span.error{color:#c81e1e}
.lc-form-actions .btn{min-height:40px;padding-inline:16px;flex:none}
.lc-form>small{display:block;margin-top:8px;color:#68717d;font-size:11.5px}

/* Seller and safety */
.ld-seller{display:flex;align-items:center;gap:14px}
.ld-avatar{display:grid;width:56px;height:56px;flex:none;place-items:center;border-radius:16px;background:var(--warm);color:var(--brand-text);font-size:18px;font-weight:700}
.ld-seller b,.ld-seller span{display:block}
.ld-seller b{font-size:17px;font-weight:600}
.ld-seller div>span{color:var(--muted);font-size:13.5px;line-height:1.4}
.ld-seller-stats{display:grid;margin:16px 0 0;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;text-align:center}
.ld-seller-stats div{padding:10px 6px;border-radius:12px;background:var(--soft)}
.ld-seller-stats b,.ld-seller-stats small{display:block}
.ld-seller-stats b{font-size:16px}.ld-seller-stats small{color:var(--muted);font-size:11.5px;line-height:1.3}
.ld-call-hours{margin:12px 0 0;color:var(--muted);font-size:13px}.ld-call-hours b{color:var(--text);font-weight:500}
.ld-safety{display:flex;padding:16px 18px;align-items:flex-start;gap:12px;border-radius:20px;background:var(--warm);color:var(--text);font-size:13.5px}
.ld-safety svg{width:22px;height:22px;flex:none;fill:none;stroke:var(--brand-text);stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}

/* Similar listings */
.ld-similar{padding-top:64px}
.ld-similar-head{display:flex;margin-bottom:20px;align-items:flex-end;justify-content:space-between;gap:16px;flex-wrap:wrap}
.ld-similar-head h2{margin:0;font-size:30px;font-weight:600;letter-spacing:-.02em}
.ld-similar-head .btn{border:1px solid var(--line);background:#fff;font-weight:500}
.ld-similar-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}
.ld-similar-card{min-width:0;padding:8px;overflow:hidden;border:1px solid var(--line);border-radius:22px;background:#fff}
.ld-similar-card>a{display:flex;height:100%;flex-direction:column;color:var(--ink);text-decoration:none}
.ld-similar-photo{position:relative;display:flex;height:170px;align-items:center;justify-content:center;overflow:hidden;border-radius:16px;background:#f0f2f4}
.ld-similar-photo img{width:100%;height:100%;object-fit:cover}
.ld-similar-photo svg{width:100px;fill:none;stroke:#a9b0b9;stroke-width:1.5;stroke-linejoin:round}
.ld-similar-photo>span{position:absolute;top:10px;left:10px;padding:3px 9px;border-radius:999px;background:#fff;color:var(--ink);font-size:11px;font-weight:600}
.ld-similar-body{display:flex;padding:13px 10px 8px;flex:1;flex-direction:column;gap:5px}
.ld-similar-body b{font-size:16px;font-weight:600;line-height:1.3}
.ld-similar-body small{color:var(--muted);font-size:13px}
.ld-similar-body strong{margin-top:auto;padding-top:6px;font-size:20px;font-weight:600}

/* Toast */
.ld-toast{position:fixed;z-index:60;bottom:28px;left:50%;max-width:calc(100% - 32px);padding:12px 16px;transform:translateX(-50%);border-radius:12px;background:var(--ink);box-shadow:0 14px 30px -10px rgba(14,17,22,.45);color:#fff;font-size:14px}

.listing-detail-page .footer{margin-top:72px}

@media(max-width:1100px){
  .ld-layout{grid-template-columns:minmax(0,1fr) 380px;gap:24px}
  .ld-photo-stage{height:410px}
  .ld-similar-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .ld-owner{grid-template-columns:auto minmax(0,1fr)}
  .ld-owner-actions{grid-column:2;justify-content:flex-start}
  .ld-owner-note{grid-column:2}
}

@media(max-width:840px){
  .ld-wrap{width:min(100% - 32px,1280px)}
  .ld-search{display:none}
  .ld-header-in{min-height:66px;gap:12px}
  .ld-header-actions{gap:7px}
  .ld-header-actions .btn{min-height:40px;padding-inline:13px;font-size:13.5px}
  .ld-me{min-height:40px;padding-right:5px}.ld-me b{display:none}.ld-me span{width:30px;height:30px}
  .ld-layout{display:flex;flex-direction:column;gap:16px}
  .ld-left{display:contents}
  .ld-gallery{order:1;width:100%}.ld-right{position:static;order:2;width:100%}
  .ld-left>.ld-card{order:3;width:100%}
  .ld-photo-stage{height:360px;border-radius:20px}
  .ld-thumbs{grid-template-columns:repeat(auto-fill,74px)}.ld-thumb{height:66px}
  .ld-card,.ld-box{padding:20px;border-radius:20px}
  .ld-specs{grid-template-columns:1fr}
  .ld-similar{order:4;padding-top:48px}.ld-similar-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .ld-owner{grid-template-columns:auto minmax(0,1fr);padding:14px}
  .ld-owner-actions,.ld-owner-note{grid-column:1/-1}
}

@media(max-width:560px){
  .ld-wrap{width:min(100% - 24px,1280px)}
  .ld-logo{font-size:20px}
  .ld-login{min-height:38px;padding-inline:12px}
  .ld-page{padding-top:12px}
  .ld-crumbs{padding-bottom:12px;font-size:12px}.ld-crumbs [aria-current=page]{max-width:190px}
  .ld-owner{grid-template-columns:1fr}.ld-owner-ok{display:none}.ld-owner-actions{grid-column:1}.ld-owner-actions .btn{flex:1}.ld-owner-note{grid-column:1}
  .ld-buyer-bar{align-items:flex-start;flex-direction:column}
  .ld-photo-stage{height:270px}
  .ld-gallery-arrow{width:42px;height:42px}.ld-gallery-arrow.prev{left:10px}.ld-gallery-arrow.next{right:10px}
  .ld-photo-count{bottom:10px;left:10px}.ld-top-tag{top:10px;left:10px}.ld-sale-tag{top:10px;right:10px}
  .ld-card,.ld-box{padding:17px}
  .ld-card h2{font-size:20px}.ld-main-box h1{font-size:26px}.ld-price strong{font-size:32px}.ld-price strong.negotiable{font-size:27px}
  .ld-key{grid-template-columns:repeat(2,minmax(0,1fr))}
  .ld-contact-row{grid-template-columns:1fr 1fr 48px}.ld-contact .btn{padding-inline:10px}.ld-favorite{width:48px;padding:0}
  .lc-form-actions{align-items:stretch;flex-direction:column}.lc-form-actions .btn{width:100%}
  .ld-history{grid-template-columns:1fr}
  .ld-map{height:180px}.ld-map-foot{align-items:flex-start;flex-direction:column}
  .ld-seller-stats small{font-size:10.5px}
  .ld-similar-head h2{font-size:25px}.ld-similar-grid{gap:10px}.ld-similar-photo{height:130px}.ld-similar-body b{font-size:14px}.ld-similar-body strong{font-size:17px}
  .listing-detail-page .footer{margin-top:48px}
}

@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
.ld-business-data{display:flex;flex-direction:column;gap:3px;margin-top:14px;padding-top:12px;border-top:1px solid var(--line);color:var(--muted);font-size:13px}.ld-business-data b{color:var(--ink);font-weight:600}.ld-business-data span{display:block}
