body.embedded-listing { background: transparent; }
body.embedded-listing > .topbar, body.embedded-listing > footer, body.embedded-listing .market-shell > a[href="/listings.html"] { display: none; }
/* Equal side spacing inside the listing overlay, so content never touches the window edge. */
body.embedded-listing .market-shell { box-sizing: border-box; max-width: 1100px; margin: 0 auto; padding: 0 24px 24px; }
@media (max-width: 600px) { body.embedded-listing .market-shell { padding: 0 12px 16px; } }
body.embedded-listing #message:empty { display: none; }
.market-product { color: #20242a; display: grid; gap: 16px; }
.product-gallery { min-width: 0; }
.product-main-media { background: #211c1b; border-radius: 25px; height: clamp(160px, 38dvh, 380px); overflow: hidden; }
.product-main-media .market-media { background: transparent; border-radius: 0; display: block; height: 100%; max-height: none; max-width: 100%; object-fit: cover; width: 100%; }
.product-main-media p { color: white; }
.product-thumbnails { display: flex; gap: 12px; margin: 12px 0 0; overflow-x: auto; padding: 2px; }
.product-thumbnail { background: #eee; border: 3px solid transparent; border-radius: 14px; cursor: pointer; flex: 0 0 104px; height: 76px; overflow: hidden; padding: 0; }
.product-thumbnail.active { border-color: #f5731b; }
.product-thumbnail .market-media { height: 100%; object-fit: cover; width: 100%; }
.product-summary { background: #fafcff; border: 1px solid #fff; border-radius: 24px; box-shadow: 0 8px 28px #23303b14; padding: 22px; }
.product-badges, .product-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.product-badges span, .product-chips span { border-radius: 13px; font-size: 12px; font-weight: 700; padding: 8px 11px; }
.product-featured { background: #392819; color: #ffe0a7; }
.product-kind { background: #fff3eb; color: #d94326; text-transform: uppercase; }
.product-summary h1 { color: #171a20; font-size: clamp(24px, 5vw, 34px); letter-spacing: -.03em; line-height: 1.16; margin: 18px 0 8px; }
.product-location { color: #76808e; margin: 0 0 26px; }
.product-price { color: #ef4335; font-size: clamp(26px, 6vw, 34px); font-weight: 800; margin: 0 0 9px; }
.product-availability { color: #16835e; font-size: 14px; font-weight: 700; margin: -4px 0 10px; }
.product-chips span { background: #fff9f5; color: #252930; }
.product-actions .actions { display: flex; flex-wrap: wrap; gap: 8px; }
.product-actions .actions > * { align-items: center; background: #fff; border: 1px solid #fff; border-radius: 13px; box-shadow: 0 3px 14px #2430390c; color: #272a32; display: inline-flex; font: inherit; font-weight: 700; min-height: 44px; padding: 9px 15px; text-decoration: none; }
.product-actions .actions > *:hover { border-color: #f5731b; }
.product-content { background: #fff; border-radius: 20px; display: grid; gap: 14px; padding: 18px; }
.product-content .listing-about { margin: 0; }
.product-content .listing-about h2 { font-size: 18px; margin-top: 0; }
.product-content .listing-about p { line-height: 1.65; white-space: pre-wrap; }
.product-description.is-folded { -webkit-box-orient: vertical; -webkit-line-clamp: 6; display: -webkit-box; overflow: hidden; }
.product-read-more { background: none; border: 0; color: #d92d20; cursor: pointer; font-weight: 800; padding: 0 0 10px; }
.product-owner { color: #5d6672; margin: 0; }
/* Amenities & features, Good to know and Additional property details, as in the sample-listing view. */
.product-amenities h2, .product-good-to-know h2, .product-additional h2 { font-size: 18px; margin: 0 0 10px; }
.product-amenities, .product-good-to-know, .product-additional { border-top: 1px solid #e5e8ec; padding-top: 14px; }
.product-amenities .muted { color: #6f6662; margin: 0; }
.product-amenity-list { display: grid; gap: 12px 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); list-style: none; margin: 0 0 4px; padding: 0; }
.product-amenity-list li { align-items: flex-start; display: flex; gap: 8px; line-height: 1.5; overflow-wrap: anywhere; }
.product-amenity-icon { color: #24735c; flex: 0 0 16px; font-weight: 800; }
.product-amenities-more summary { color: #d92d20; cursor: pointer; font-weight: 800; list-style: none; margin: 10px 0; }
.product-amenities-more summary::-webkit-details-marker { display: none; }
.product-fact-list { margin: 0; }
.product-fact-list > div { border-bottom: 1px solid #f0f1f3; display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); padding: 8px 0; }
.product-fact-list dt { color: #6a7280; }
.product-fact-list dd { font-weight: 600; line-height: 1.55; margin: 0; overflow-wrap: anywhere; text-align: right; white-space: pre-wrap; }
.product-detail-row { border-top: 1px solid #e5e8ec; }
.product-detail-row > summary { align-items: center; color: #36404d; cursor: pointer; display: flex; font-weight: 700; gap: 12px; justify-content: space-between; list-style: none; padding: 14px 0; }
.product-detail-row > summary::-webkit-details-marker { display: none; }
.product-detail-row > summary::after { color: #727986; content: '+'; font-size: 19px; font-weight: 400; }
.product-detail-row[open] > summary::after { content: '−'; }
.product-detail-body-text { padding: 0 0 12px; }
.product-detail-body-text p { line-height: 1.45; margin: 8px 0; overflow-wrap: anywhere; }
.product-detail-body-text summary { cursor: pointer; font-weight: 700; }
@media (max-width: 420px) {
  .product-amenity-list { grid-template-columns: 1fr; }
  .product-fact-list > div { grid-template-columns: 1fr; gap: 2px; }
  .product-fact-list dd { text-align: left; }
}
@media (max-width: 600px) {
  .market-product { gap: 12px; }
  .product-main-media { border-radius: 22px; max-height: 300px; }
  .product-thumbnail { flex-basis: 94px; height: 66px; }
  .product-summary { padding: 18px; }
  .product-content { padding: 14px; }
}

/* Host card: who lists the place and how to contact them (matches the sample-listing view). */
.product-host-card { background: #fff; border: 1px solid #eee4dd; border-radius: 18px; display: grid; gap: 12px; max-width: 560px; padding: 16px; }
.product-host-head { align-items: center; display: flex; gap: 12px; }
.product-host-photo { border: 2px solid #16835e; border-radius: 50%; flex: 0 0 auto; height: 44px; object-fit: cover; width: 44px; }
.product-host-who { display: grid; flex: 1; gap: 2px; min-width: 0; }
.product-host-who strong { color: #211c1a; font-size: 15px; }
.product-host-who span { color: #6f6662; font-size: 13px; }
.product-host-profile { background: #fff; border: 1px solid #eee4dd; border-radius: 13px; color: #211c1a; font-size: 13px; font-weight: 800; padding: 9px 13px; text-decoration: none; white-space: nowrap; }
.product-host-actions { display: grid; gap: 8px; grid-template-columns: 1fr 1fr; }
.product-host-actions a, .product-host-actions button { border-radius: 13px; cursor: pointer; font: inherit; font-weight: 800; padding: 13px 12px; text-align: center; text-decoration: none; }
.product-host-primary { background: linear-gradient(135deg, #f97316, #e5392b); box-shadow: 0 8px 20px rgba(217, 45, 32, .18); color: #fff; }
.product-host-secondary { background: #fff; border: 1px solid #eee4dd; color: #211c1a; }
.product-host-actions .product-host-text { color: #d92d20; grid-column: 1 / -1; padding: 4px; }
.product-host-actions a:only-child { grid-column: 1 / -1; }
.product-host-note { color: #6f6662; font-size: 12px; margin: 0; text-align: center; }
@media (max-width: 420px) { .product-host-actions { grid-template-columns: 1fr; } }
/* Like · Save · Share under the price, as in the sample-listing view. */
.product-quick-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.product-quick { background: #fff; border: 1px solid #eee4dd; border-radius: 13px; color: #211c1a; cursor: pointer; font: inherit; font-size: 14px; font-weight: 800; padding: 10px 14px; text-decoration: none; }
.product-quick:first-child { background: #fff1e8; border-color: #fbd9c6; color: #d92d20; }
.product-quick[aria-pressed="true"] { border-color: #d92d20; }
/* Find similar: up to four other listings. */
.product-similar { margin-top: 18px; }
.product-similar h2 { font-size: 18px; margin: 0 0 4px; }
.product-similar .muted { color: #6f6662; margin: 0 0 12px; }
.product-similar-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.product-similar-card { background: #fff; border: 1px solid #eee4dd; border-radius: 16px; color: #211c1a; display: grid; gap: 4px; overflow: hidden; padding-bottom: 12px; text-decoration: none; }
.product-similar-card img { aspect-ratio: 4 / 3; height: auto; object-fit: cover; width: 100%; }
.product-similar-card strong { color: #ef4335; font-size: 15px; padding: 0 10px; }
.product-similar-card span { font-size: 14px; font-weight: 700; padding: 0 10px; }
.product-similar-card small { color: #6f6662; font-size: 12px; padding: 0 10px; }
/* Like / Save: plain when off, highlighted only when on. */
.product-quick-actions .product-quick:first-child { background: #fff; border-color: #eee4dd; color: #211c1a; }
.product-quick-actions .product-quick[aria-pressed="true"] { background: #fff1e8; border-color: #d92d20; color: #d92d20; }
/* More from this host: beside the host card on wide screens, below it on phones. About three listings show at a time.
   The list scrolls up and down on its own without scrolling the page. */
.product-host-row { display: grid; gap: 14px; }
.product-host-more { background: #fff; border: 1px solid #eee4dd; border-radius: 18px; display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: 14px; }
.product-host-more-head { align-items: center; display: flex; gap: 8px; justify-content: space-between; }
.product-host-more-head h3 { font-size: 15px; margin: 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.product-host-more-nav { display: flex; flex: 0 0 auto; gap: 6px; }
.product-host-more-nav[hidden] { display: none; }
.product-host-more-step { background: #fff; border: 1px solid #eee4dd; border-radius: 10px; color: #211c1a; cursor: pointer; font-size: 11px; height: 30px; width: 34px; }
.product-host-more-step:hover:not(:disabled) { border-color: #f5731b; color: #d92d20; }
.product-host-more-step:disabled { cursor: default; opacity: .35; }
.product-host-more-list { display: grid; gap: 8px; max-height: 236px; overflow-y: auto; overscroll-behavior: contain; scroll-snap-type: y proximity; -webkit-overflow-scrolling: touch; }
.product-host-more-list:focus-visible { outline: 2px solid #f5731b; outline-offset: 2px; }
.product-host-more-card { align-items: center; border: 1px solid #f1e8e2; border-radius: 14px; color: #211c1a; display: flex; gap: 10px; min-height: 72px; padding: 6px; scroll-snap-align: start; text-decoration: none; }
.product-host-more-card:hover { border-color: #f5731b; }
.product-host-more-card .market-media, .product-host-more-blank { align-items: center; background: #f6f1ed; border-radius: 10px; display: flex; flex: 0 0 76px; height: 58px; justify-content: center; object-fit: cover; width: 76px; }
.product-host-more-text { display: grid; gap: 2px; min-width: 0; }
.product-host-more-text strong { -webkit-box-orient: vertical; -webkit-line-clamp: 2; display: -webkit-box; font-size: 13px; line-height: 1.3; overflow: hidden; }
.product-host-more-price { color: #ef4335; font-size: 13px; font-weight: 800; }
.product-host-more-profile { color: #d92d20; font-size: 13px; font-weight: 800; text-decoration: none; }
.product-host-more.is-empty { justify-content: center; }
.product-host-more.is-empty .muted { color: #6f6662; margin: 0; }
@media (min-width: 760px) {
  .product-host-row { align-items: start; grid-template-columns: minmax(0, 560px) minmax(0, 1fr); }
}

/* Guest reviews of this listing (market-detail.js). */
.product-reviews { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); margin: 14px 0; }
.product-review { background: #faf7f4; border-radius: 14px; display: grid; gap: 8px; padding: 14px 16px; }
.product-review-top { align-items: center; display: flex; justify-content: space-between; }
.product-review-top time { color: #6f6662; font-size: 12px; }
.product-review-stars { color: #f4a83a; letter-spacing: 1px; }
.product-review p { font-size: 14px; line-height: 1.55; margin: 0; }
.product-review-by { color: #4a423e; font-size: 13px; font-weight: 600; }
/* Hotel rooms show the hotel (market-detail.js); the name waits for that lookup. */
.product-host-card.is-resolving .product-host-who, .product-host-card.is-resolving .product-host-photo, .product-host-card.is-resolving .product-host-profile { visibility: hidden; }
.product-host-photo.is-hotel { background: #fff; border-radius: 12px; object-fit: contain; }
