body.embedded-listing { background: transparent; }
body.embedded-listing > .topbar, body.embedded-listing > footer, body.embedded-listing .market-shell > a[href="/listings"], 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: 1280px; 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; }
/* The listing as the server sends it (listing-meta.js) until market-detail.js shows the full page; the photo comes first, as on the full page. */
.listing-summary { color: #20242a; display: grid; gap: 6px; max-width: 900px; }
.listing-summary img { background: #1a1e1f; border-radius: 25px; height: clamp(160px, 38dvh, 380px); margin-bottom: 10px; object-fit: contain; order: -1; width: 100%; }
.listing-summary h1 { font-size: clamp(22px, 5vw, 30px); line-height: 1.2; margin: 0; }
.listing-summary-price { color: #047970; font-size: clamp(22px, 5vw, 28px); font-weight: 800; margin: 0; }
.listing-summary-place { color: #5f6b78; margin: 0; }
.listing-summary-text { line-height: 1.6; margin: 8px 0 0; }
/* More listings nearby (docs/seo-nearby.md), under the summary while the page loads. */
.listing-nearby { margin-top: 18px; max-width: 900px; }
.listing-nearby h2 { font-size: 18px; margin: 0 0 6px; }
.listing-nearby ul { display: grid; gap: 6px; margin: 0; padding-left: 18px; }
.listing-nearby a { color: #047970; font-weight: 700; }
.product-gallery { min-width: 0; }
.product-main-media { background: #1a1e1f; border-radius: 25px; height: clamp(160px, 38dvh, 380px); isolation: isolate; overflow: hidden; position: relative; }
/* The whole photo shows; a blurred copy of it fills the sides (market-ui.js sets --main-photo). */
.product-main-media::before { background: var(--main-photo, none) center / cover no-repeat; content: ''; filter: blur(24px) brightness(.8); inset: -30px; position: absolute; z-index: -1; }
.product-main-media .market-media { background: transparent; border-radius: 0; display: block; height: 100%; max-height: none; max-width: 100%; object-fit: contain; position: relative; 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: #098f84; }
.product-thumbnail .market-media { height: 100%; object-fit: cover; width: 100%; }
/* Video thumbnails: a still with a play mark; the click goes to the thumbnail, not the video. */
.product-thumbnail { position: relative; }
.product-thumbnail video.market-media { pointer-events: none; }
.product-thumbnail-video::after { align-items: center; background: rgba(0, 0, 0, .55); border-radius: 50%; color: #fff; content: '\25B6'; display: flex; font-size: 13px; height: 30px; justify-content: center; left: 50%; padding-left: 3px; position: absolute; top: 50%; transform: translate(-50%, -50%); width: 30px; }
.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: #eafaf7; color: #006d64; 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: #047970; 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: #f5fcfd; 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: #098f84; }
.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: #0b6e69; 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: #536b68; 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: #0b6e69; 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; }
  /* Phones: the box takes the photo's own shape (up to 300px tall), so wide photos have no bands. */
  .product-main-media { border-radius: 22px; height: auto; max-height: 300px; }
  .product-main-media .market-media { height: auto; 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 #dee8eb; 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: #13302f; font-size: 15px; }
.product-host-who span { color: #536b68; font-size: 13px; }
.product-host-profile { background: #fff; border: 1px solid #dee8eb; border-radius: 13px; color: #13302f; 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, #13958a, #027168); box-shadow: 0 8px 20px rgba(11, 110, 105, .18); color: #fff; }
.product-host-secondary { background: #fff; border: 1px solid #dee8eb; color: #13302f; }
.product-host-actions .product-host-text { color: #0b6e69; grid-column: 1 / -1; padding: 4px; }
.product-host-actions a:only-child { grid-column: 1 / -1; }
.product-host-note { color: #536b68; font-size: 12px; margin: 0; text-align: center; }
@media (max-width: 420px) { .product-host-actions { grid-template-columns: 1fr; } }
/* Like · Save · Copy link · Share · Facebook under the price, as in the sample-listing view.
   One compact row; on phones each button is an icon over a short word. */
.product-quick-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.product-quick { background: #fff; border: 1px solid #dee8eb; border-radius: 13px; color: #13302f; cursor: pointer; font: inherit; font-size: 14px; font-weight: 800; gap: 6px; padding: 8px 12px; text-decoration: none; }
.product-quick-icon { font-size: 15px; line-height: 1; }
/* Save and Facebook are links: keep them laid out like the buttons (admin.css styles .actions links). */
.product-actions .product-quick-actions > .product-quick { align-items: center; border-color: #dee8eb; display: inline-flex; justify-content: center; }
.product-actions .product-quick-actions > .product-quick[aria-pressed="true"] { border-color: #0b6e69; }
.product-actions .product-quick-actions > .product-quick:hover { border-color: #098f84; }
.product-quick-actions .product-quick-facebook .product-quick-icon { font-family: Georgia, serif; font-weight: 900; }
@media (max-width: 520px) {
  .product-actions .product-quick-actions { display: grid; gap: 6px; grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .product-actions .product-quick-actions > .product-quick { display: flex; flex-direction: column; gap: 3px; justify-content: center; min-height: 0; padding: 7px 2px 6px; text-align: center; }
  .product-quick-actions .product-quick-label { font-size: 11px; letter-spacing: -0.1px; line-height: 1.15; white-space: nowrap; }
  .product-quick-actions .product-quick-icon { font-size: 17px; }
  /* The owner's row has Edit as a sixth button (market-detail.js): six words do not fit across a
     phone, so it wraps into two rows of three. */
  .product-actions .product-quick-actions.has-edit { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.product-quick:first-child { background: #e3f2ef; border-color: #cce5e1; color: #0b6e69; }
.product-quick[aria-pressed="true"] { border-color: #0b6e69; }
/* 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: #536b68; 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 #dee8eb; border-radius: 16px; color: #13302f; 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: #047970; font-size: 15px; padding: 0 10px; }
.product-similar-card span { font-size: 14px; font-weight: 700; padding: 0 10px; }
.product-similar-card small { color: #536b68; 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: #dee8eb; color: #13302f; }
.product-quick-actions .product-quick[aria-pressed="true"] { background: #e3f2ef; border-color: #0b6e69; color: #0b6e69; }
/* 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 #dee8eb; 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 #dee8eb; border-radius: 10px; color: #13302f; cursor: pointer; font-size: 11px; height: 30px; width: 34px; }
.product-host-more-step:hover:not(:disabled) { border-color: #098f84; color: #0b6e69; }
.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 #098f84; outline-offset: 2px; }
.product-host-more-card { align-items: center; border: 1px solid #e3ecee; border-radius: 14px; color: #13302f; display: flex; gap: 10px; min-height: 72px; padding: 6px; scroll-snap-align: start; text-decoration: none; }
.product-host-more-card:hover { border-color: #098f84; }
.product-host-more-card .market-media, .product-host-more-blank { align-items: center; background: #edf3f5; 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: #047970; font-size: 13px; font-weight: 800; }
.product-host-more-profile { color: #0b6e69; font-size: 13px; font-weight: 800; text-decoration: none; }
.product-host-more.is-empty { justify-content: center; }
.product-host-more.is-empty .muted { color: #536b68; 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: #f5f8f9; 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: #536b68; 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: #3e4547; 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; }
/* Need help with this property? Professionals (market-detail.js, docs/professionals.md) */
.pro-help { background: linear-gradient(135deg, #f1f8f6, #fff); border: 1px solid #cfe5df; border-radius: 18px; display: grid; gap: 8px; margin: 16px 0; padding: 16px 18px; }
.pro-help strong { font-size: 16px; color: #13302f; }
.pro-help p { color: #536b68; font-size: 14px; line-height: 1.5; margin: 0; }
.pro-help div { display: flex; flex-wrap: wrap; gap: 8px; }
.pro-help a { border: 1px solid #b9dcd4; border-radius: 999px; color: #01564f; font-size: 14px; font-weight: 800; padding: 8px 14px; text-decoration: none; background: #fff; }
/* Under development (2026-10-09): a label after the heading and greyed buttons that do nothing. */
.pro-help.is-paused { background: #f6f8f7; border-color: #dde5e2; }
.pro-help-badge { background: #fff4e0; border: 1px solid #f0d9ad; border-radius: 999px; color: #8a5a00; display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .04em; margin-left: 4px; padding: 2px 8px; text-transform: uppercase; vertical-align: 2px; white-space: nowrap; }
.pro-help-soon { background: #eef1f0; border: 1px dashed #c9d3d0; border-radius: 999px; color: #8a9794; cursor: not-allowed; font-size: 14px; font-weight: 800; padding: 8px 14px; }
/* Property Notes: the owner's private note under the Like · Save · Share row (listing-note.js). */
.listing-note { background: #fff; border: 1px solid #dee8eb; border-radius: 18px; box-sizing: border-box; display: grid; gap: 8px; min-width: 0; padding: 16px; width: 100%; }
.listing-note-head h2 { color: #13302f; font-size: 17px; margin: 0; }
.listing-note-help { color: #536b68; font-size: 13px; margin: 0; }
.listing-note-text { border: 1px solid #cfdcdf; border-radius: 12px; box-sizing: border-box; color: #20242a; font: inherit; font-size: 16px; line-height: 1.5; min-height: 104px; padding: 10px 12px; resize: vertical; width: 100%; }
.listing-note-text:focus { border-color: #098f84; outline: 2px solid #098f8433; }
.listing-note-foot { align-items: center; display: flex; flex-wrap: wrap; gap: 6px 12px; min-height: 20px; }
.listing-note-status { color: #536b68; font-size: 13px; }
.listing-note[data-state="saved"] .listing-note-status { color: #16835e; }
.listing-note[data-state="retrying"] .listing-note-status, .listing-note[data-state="failed"] .listing-note-status, .listing-note[data-state="conflict"] .listing-note-status { color: #a4452c; }
.listing-note-count { color: #536b68; font-size: 13px; margin-left: auto; }
.listing-note-count.is-full { color: #a4452c; font-weight: 700; }
.listing-note-link { background: none; border: 0; color: #0b6e69; cursor: pointer; font: inherit; font-size: 13px; font-weight: 800; padding: 2px 0; text-decoration: underline; }
.listing-note-link[hidden], .listing-note-conflict[hidden] { display: none; }
.listing-note-conflict { align-items: center; background: #fff4e0; border: 1px solid #f0d9ad; border-radius: 12px; color: #6b4600; display: flex; flex-wrap: wrap; font-size: 13px; gap: 6px 14px; padding: 8px 12px; }

/* Payment safety notice beside the contact buttons (market-ui.js paymentNotice). */
.payment-notice { border: 1px solid #f0d28c; background: #fffaf0; color: #4a3b12; border-radius: 14px; padding: 10px 12px; font-size: 13px; line-height: 1.45; margin-top: 10px; text-align: left; }
.payment-notice b { display: block; font-size: 13px; margin-bottom: 2px; }
.payment-notice p { margin: 0; }
.payment-notice p + p { margin-top: 4px; }
.listing-approved-note { margin: 6px 0 0; font-size: 13px; font-weight: 700; color: #17643a; }
.listing-approved-scope { display: block; color: #5b6b6e; font-size: 12px; }

/* Fixed refund policies (cancellation-presets.js): "Moderate policy · check-in 2:00 PM" on a listing. */
.product-policy-name { color: #0f6f66; font-weight: 800; margin: 0 0 6px; }
