/* IBM Plex Sans Arabic — SIL Open Font License 1.1 (see static/fonts/IBMPlex-LICENSE.txt). */
@font-face {
  font-family: "IBM Plex Sans Arabic";
  src: url("../fonts/IBMPlexSansArabic-Regular.891662a6e9d2.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans Arabic";
  src: url("../fonts/IBMPlexSansArabic-Medium.ab75df621fac.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.home-page { background: #f8f8f5; font-family: "IBM Plex Sans Arabic", Tahoma, Arial, sans-serif; }
.home-page .site-header { background: #172d33; border: 0; color: #fff; }
.home-page .brand-name { font-size: 1.48rem; font-weight: 500; }
.home-page .brand-tagline { display: none; }
.home-page .header-inner > nav a:hover { color: #fff; text-decoration: underline; text-underline-offset: 0.3rem; }
.home-page .header-inner > nav svg { display: none; }
.home-page .header-post { background: transparent; border-color: #aabfc2; color: #fff; }
.home-page .header-post:hover { background: #fff; color: #172d33; }
.home-page .site-menu > summary { width: 38px; height: 38px; border: 0; }
.home-page main.container { width: 100%; max-width: none; min-height: 65vh; padding: 0 0 4rem; }
.home-category-strip { background: #172d33; color: #e4ebea; border-top: 1px solid rgb(255 255 255 / 16%); }
.home-category-strip-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; width: min(var(--max), calc(100% - 3rem)); margin-inline: auto; overflow-x: auto; scrollbar-width: none; }
.home-category-strip-inner::-webkit-scrollbar { display: none; }
.home-category-strip a { display: block; flex: none; padding: 0.8rem 0.15rem; font-size: 0.9rem; font-weight: 500; white-space: nowrap; }
.home-category-strip a:hover, .home-category-strip a:focus-visible { color: #fff; text-decoration: underline; text-underline-offset: 0.4rem; }
.home-hero { position: relative; display: flex; min-height: clamp(470px, 66vh, 650px); overflow: hidden; background: #31474a; color: #fff; }
.home-hero-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 50%; }
.home-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgb(8 23 29 / 70%), rgb(8 23 29 / 12%) 52%, rgb(8 23 29 / 0%)); }
.home-hero-content { position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 1rem; width: min(var(--max), calc(100% - 3rem)); margin-inline: auto; padding-block: 3rem; }
.home-hero h1 { max-width: 720px; margin: 0; color: #fff; font-size: clamp(1.85rem, 4vw, 3.2rem); font-weight: 500; line-height: 1.3; letter-spacing: 0; text-shadow: 0 2px 18px rgb(0 0 0 / 30%); }
.home-page .results { width: min(var(--max), calc(100% - 3rem)); margin: 2rem auto 0; }
.home-page .results .section-heading h2 { font-weight: 500; }
.home-search,
.results-search-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--surface);
  border: 1px solid #b8cbd3;
  border-radius: 14px;
  padding: 0.45rem;
  box-shadow: var(--shadow);
}
.home-search {
  width: min(100%, 680px);
  max-width: 680px;
  border: 0;
  border-radius: 10px;
  box-shadow: 0 12px 32px rgb(0 0 0 / 18%);
}
.home-search .button {
  border-radius: 7px;
  background: #193c42;
  font-weight: 500;
}
.home-search svg,
.results-search-bar svg {
  width: 22px;
  height: 22px;
  margin-inline-start: 0.7rem;
  flex: none;
  fill: none;
  stroke: var(--muted);
  stroke-width: 1.8;
  stroke-linecap: round;
}
.home-search input,
.results-search-bar input {
  min-width: 0;
  min-height: 42px;
  flex: 1;
  border: 0;
  padding: 0.4rem 0.2rem;
  background: transparent;
  box-shadow: none;
}
.home-search input:focus,
.results-search-bar input:focus {
  outline: 0;
}
.home-search:focus-within,
.results-search-bar:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgb(7 107 120 / 14%);
}
.home-search .button,
.results-search-bar .button {
  flex: none;
}
.search-page-head {
  padding-block: 1.5rem 0.5rem;
}
.search-page-head h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-bottom: 0.3rem;
}
.results-search {
  max-width: 980px;
}
.results-filters {
  margin-top: 0.75rem;
}
.results-filters summary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.45rem 0.9rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--brand);
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.results-filters summary::-webkit-details-marker { display: none; }
.results-filters summary::before { content: '☷'; font-size: 1.2rem; }
.results-filters summary:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.results-filters[open] {
  padding: 0 1rem 1rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.results-filters[open] summary { margin-inline: -1rem; border-radius: 10px; }
.filter-count { background: #e2f2f2; border-radius: 20px; min-width: 1.4rem; text-align: center; font-size: 0.8rem; }
.filter-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem 1rem;
  padding-top: 0.4rem;
}
.filter-grid .field {
  margin-bottom: 0.5rem;
}
.filter-note {
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 0.5rem;
}
.filter-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.filter-actions a {
  color: var(--brand);
  font-weight: 700;
}
.filter-grid input { font-size: 1rem; }
.filter-actions [role="status"] {
  color: var(--muted);
  font-size: 0.85rem;
}
.results {
  margin-top: 1.5rem;
}
.results > .section-heading {
  margin-block: 1rem;
}
.results > .section-heading h2 {
  margin: 0;
}
.results > .section-heading > span {
  color: var(--muted);
  font-size: 0.9rem;
}
.results .empty {
  padding: 2.5rem 1rem;
  box-shadow: none;
}
.results .empty h3 {
  font-size: 1.15rem;
  margin-bottom: 0.25rem;
}
.account-nav {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
  padding-block: 1rem;
  margin-bottom: 1.5rem;
}
.account-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: white;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 1rem;
}
.account-row h2 {
  font-size: 1.25rem;
  margin-top: 0.7rem;
  margin-bottom: 0.3rem;
}
.account-row p {
  font-size: 0.875rem;
  color: var(--muted);
}
.my-listings {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr));
  gap: 1rem;
  align-items: stretch;
}
.my-listing-card {
  min-width: 0;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
}
.my-listing-image {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  background: #eaf0f0;
  color: var(--muted);
  overflow: hidden;
}
.my-listing-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.my-listing-image:focus-visible { outline: 3px solid var(--brand); outline-offset: -3px; }
.my-listing-body { padding: 1rem; }
.my-listing-body .badge { position: static; display: inline-block; }
.my-listing-body h2 {
  margin: 0.7rem 0 0.3rem;
  font-size: 1.13rem;
  overflow-wrap: anywhere;
}
.my-listing-meta { margin: 0; color: var(--muted); font-size: 0.85rem; }
.my-listing-body .notice { font-size: 0.82rem; overflow-wrap: anywhere; }
.my-listing-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.7fr);
  gap: 0.5rem;
  margin-top: 1rem;
}
.my-listing-actions form, .my-listing-actions .button { width: 100%; }
.my-listing-actions .button { min-height: 42px; padding: 0.45rem; font-size: 0.85rem; }
.my-listing-more { margin-top: 0.6rem; font-size: 0.85rem; }
.my-listing-more summary { cursor: pointer; color: var(--brand); }
.my-listing-more form { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.35rem; }
.my-listing-more .button { min-height: 38px; padding: 0.35rem 0.7rem; font-size: 0.8rem; }
.linked-signin { margin-top: 2rem; }
.publish-confirmation {
  max-width: 600px;
  margin: clamp(2rem, 8vh, 5rem) auto;
  padding: clamp(1.5rem, 6vw, 3rem);
  text-align: center;
  box-shadow: var(--shadow);
}
.publish-confirmation-icon {
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: #e4f2f5;
  color: var(--brand);
  font-size: 2rem;
}
.publish-confirmation h1 { font-size: clamp(1.55rem, 4vw, 2.1rem); }
.publish-confirmation-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
}
.session-action {
  margin-top: 2rem;
}
.breadcrumb {
  font-size: 0.875rem;
  color: var(--muted);
  margin-block: 1rem;
}
.gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.gallery-cover {
  grid-column: 1/-1;
  position: relative;
}
.gallery-photo {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}
.gallery-photo:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }
.gallery img {
  border-radius: 12px;
  aspect-ratio: 4/3;
  object-fit: cover;
  width: 100%;
}
.rental-summary {
  position: sticky;
  top: 1.5rem;
}
.specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.specs > div {
  padding: 0.75rem;
  background: var(--paper);
  border-radius: 8px;
}
.specs dt {
  font-size: 0.85rem;
  color: var(--muted);
}
.specs dd {
  margin: 0;
  font-weight: bold;
}
.prose {
  margin-bottom: 2rem;
  white-space: normal;
}
.report-link {
  display: block;
  text-align: center;
  font-size: 0.875rem;
  color: var(--muted);
  margin-block: 1rem;
}
.photo-manager {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.photo-manager img {
  border-radius: 10px;
  aspect-ratio: 4/3;
  object-fit: cover;
}
.thread {
  max-width: 780px;
  margin: 1.5rem auto;
}
.thread h1 {
  font-size: 1.6rem;
  margin-top: 1rem;
}
.messages {
  display: grid;
  gap: 1rem;
  margin-block: 2rem;
}
.bubble {
  max-width: 85%;
  padding: 1rem 1.5rem;
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  justify-self: end;
}
.bubble.mine {
  justify-self: start;
  background: #e2f2f2;
}
.bubble time {
  font-size: 0.75rem;
  color: var(--muted);
}
.bubble p {
  margin-block: 0.5rem;
}
.policy {
  max-width: 800px;
  margin: 2rem auto;
}
.policy h1 {
  font-size: 2rem;
}
.policy p {
  margin-bottom: 1.5rem;
}
@media (max-width: 850px) {
  .filter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .rental-summary {
    position: static;
  }
  .account-row {
    align-items: flex-start;
    flex-direction: column;
  }
}
@media (max-width: 560px) {
  .home-page .header-post { display: none; }
  .home-page .site-menu { margin-inline-start: auto; }
  .home-category-strip-inner { width: calc(100% - 2rem); gap: 0.85rem; }
  .home-category-strip a { font-size: 0.8rem; padding-block: 0.7rem; }
  .home-hero { min-height: min(530px, 67vh); }
  .home-hero-image { object-position: 53% center; }
  .home-hero-content { width: calc(100% - 2rem); padding-block: 2rem; }
  .home-hero h1 { font-size: 1.78rem; }
  .home-page .results { width: calc(100% - 2rem); }
  .home-search,
  .results-search-bar {
    gap: 0.35rem;
  }
  .home-search .button,
  .results-search-bar .button {
    padding-inline: 0.8rem;
  }
  .photo-manager {
    grid-template-columns: 1fr 1fr;
  }
  .specs {
    grid-template-columns: 1fr;
  }
  .filter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .filter-actions .button.primary {
    width: 100%;
  }
}

/* Homepage category photography */
.featured-categories {
  width: min(var(--max), calc(100% - 3rem));
  margin: clamp(2.5rem, 5vw, 4.5rem) auto 0;
}
.featured-categories h2 {
  margin: 0 0 1.5rem;
  color: #172d33;
  font-size: clamp(1.65rem, 3vw, 2.2rem);
  font-weight: 500;
}
.featured-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}
.feature-card {
  display: block;
  min-width: 0;
  color: #fff;
  text-decoration: none;
}
.feature-card:first-child { grid-column: 1 / -1; }
.feature-card-visual {
  display: block;
  position: relative;
  overflow: hidden;
  background: #435354;
}
.feature-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1.85;
  object-fit: cover;
  transition: transform 250ms ease;
}
.feature-card:first-child img { aspect-ratio: 2.35; }
.feature-card-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  padding: clamp(1.15rem, 3vw, 2.3rem);
  background: linear-gradient(0deg, rgb(8 23 29 / 72%), rgb(8 23 29 / 0%) 58%);
}
.feature-card-copy { display: grid; gap: 0.35rem; }
.feature-card-copy strong {
  color: #fff;
  font-size: clamp(1.45rem, 2.6vw, 2.1rem);
  font-weight: 500;
  line-height: 1.25;
}
.feature-card-copy span { color: #f0f3ee; font-size: 0.92rem; line-height: 1.5; }
.feature-card-arrow { flex: none; color: #fff; font-size: 1.8rem; font-weight: 300; line-height: 1; }
.feature-card:hover img { transform: scale(1.025); }
.feature-card:focus-visible { outline: 2px solid #006b78; outline-offset: 5px; }
.home-page .featured-categories + .results { margin-top: clamp(3rem, 6vw, 5rem); }
@media (max-width: 560px) {
  .featured-categories { width: calc(100% - 2rem); margin-top: 2.75rem; }
  .featured-categories h2 { margin-bottom: 1.1rem; }
  .featured-grid { grid-template-columns: 1fr; gap: 1rem; }
  .feature-card:first-child { grid-column: auto; }
  .feature-card img, .feature-card:first-child img { aspect-ratio: 1.63; }
  .feature-card-overlay { padding: 1.1rem; }
  .feature-card-copy strong { font-size: 1.5rem; }
  .feature-card-copy span { font-size: 0.83rem; }
}
@media (prefers-reduced-motion: reduce) {
  .feature-card img { transition: none; }
}

/* Editorial hero with a compact header on scroll */
.home-page .site-header {
  position: fixed;
  z-index: 20;
  inset-block-start: 0;
  inset-inline: 0;
  background: rgb(10 31 38 / 34%);
  border-bottom: 1px solid rgb(255 255 255 / 22%);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: box-shadow 180ms ease;
}
.home-page .header-inner { min-height: 74px; padding-block: 0; transition: min-height 180ms ease; }
.home-page .site-header .site-menu > summary { color: #fff; }
.home-page.home-scrolled .site-header {
  background: #fff;
  color: #172d33;
  border-bottom-color: #dfe7e8;
  box-shadow: 0 2px 12px rgb(14 36 40 / 8%);
}
.home-page.home-scrolled .header-inner { min-height: 62px; }
.home-page.home-scrolled .site-header .site-menu > summary { color: #172d33; }
.home-page.home-scrolled .header-post { color: #172d33; border-color: #aabfc2; }
.home-page.home-scrolled .header-inner > nav a:hover { color: #172d33; }
.home-hero { min-height: clamp(600px, 86svh, 850px); }
.home-hero picture { position: absolute; inset: 0; }
.home-hero::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(180deg, rgb(5 25 32 / 48%), transparent 30%);
  pointer-events: none;
}
.home-hero::after { background: linear-gradient(0deg, rgb(8 23 29 / 70%), rgb(8 23 29 / 8%) 46%, transparent 68%); }
.home-hero-top { position: absolute; z-index: 4; inset-block-start: 74px; inset-inline: 0; }
.home-category-strip {
  position: relative;
  background: rgb(10 31 38 / 16%);
  border-block: 0 1px solid rgb(255 255 255 / 24%);
  color: #fff;
}
.home-rate-panel { width: min(620px, calc(100% - 2rem)); margin: 0.6rem auto 0; padding-inline: 0.75rem; background: rgb(10 31 38 / 76%); border: 1px solid rgb(255 255 255 / 27%); border-radius: 12px; color: #fff; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.home-rate-panel .rate-status small { color: #e0eced; }
.home-rate-panel .currency-choice button:not([aria-pressed="true"]) { background: #fff; color: #17383f; }
.home-hero-content { z-index: 2; padding-block-end: clamp(5rem, 8vw, 7rem); }
.home-hero h1 { font-size: clamp(2.5rem, 5vw, 4.3rem); line-height: 1.15; }
.home-hero h1 span { display: block; }
@media (max-width: 850px) {
  .home-page .header-inner { min-height: 64px; }
  .home-page.home-scrolled .header-inner { min-height: 56px; }
  .home-hero-top { inset-block-start: 64px; }
}
@media (max-width: 560px) {
  .home-hero { min-height: clamp(540px, calc(100svh - 10px), 720px); }
  .home-hero-image { object-position: 56% center; }
  .home-hero-content { padding-block-end: clamp(6.5rem, 11svh, 8rem); gap: 1.2rem; }
  .home-hero::after { background: linear-gradient(0deg, rgb(8 23 29 / 78%), rgb(8 23 29 / 37%) 36%, transparent 67%); }
  .home-hero h1 { max-width: 100%; font-size: clamp(1.95rem, 6.4vw, 2.25rem); line-height: 1.25; text-shadow: 0 2px 16px rgb(0 0 0 / 62%); }
  .home-category-strip a { font-size: 0.8rem; }
  .home-rate-panel { padding-inline: 0.65rem; }
  .home-rate-panel .rate-inner { gap: 0.35rem 0.55rem; }
  .home-rate-panel .rate-status { flex: 1 1 145px; }
  .home-rate-panel .currency-choice { margin-inline-start: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .home-page .site-header, .home-page .header-inner { transition: none; }
}

/* Quiet posting invitation after the category gallery */
.home-publish {
  width: min(var(--max), calc(100% - 3rem));
  margin: clamp(2.5rem, 5vw, 4rem) auto 0;
  padding-block-start: 1.5rem;
  border-top: 1px solid #d9e0dd;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.home-publish h2 {
  margin: 0;
  color: #172d33;
  font-size: clamp(1.2rem, 2.3vw, 1.55rem);
  font-weight: 500;
}
.home-publish a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: #193c42;
  border-bottom: 1px solid currentColor;
  font-size: 1rem;
  white-space: nowrap;
}
.home-publish a:hover, .home-publish a:focus-visible { color: #006b78; }
.home-page .site-menu > summary { width: 44px; height: 44px; }
.home-page .home-category-strip a { min-height: 44px; display: flex; align-items: center; }
@media (max-width: 560px) {
  .home-publish { width: calc(100% - 2rem); align-items: flex-start; flex-direction: column; gap: 0.55rem; }
}

/* Space for real, most-viewed listings once view tracking is enabled. */
.home-trending {
  width: min(var(--max), calc(100% - 3rem));
  margin: clamp(3rem, 6vw, 5rem) auto 0;
}
.home-trending-head {
  margin-bottom: 1.4rem;
}
.home-trending h2 {
  margin: 0;
  color: #172d33;
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  font-weight: 500;
}
.home-trending-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(260px, 31%);
  gap: 1.25rem;
  overflow-x: auto;
  padding: 0.25rem 0.15rem 1rem;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}
.home-trending-rail .listing-card {
  min-width: 0;
  scroll-snap-align: start;
}
.home-trending-pending {
  margin: 0;
  padding-block: 1.25rem 2rem;
  border-block: 1px solid #d9e0dd;
  color: #627277;
  font-size: 0.95rem;
}
@media (max-width: 560px) {
  .home-trending { width: calc(100% - 2rem); margin-top: 3.25rem; }
  .home-trending-rail { grid-auto-columns: min(78vw, 330px); gap: 0.9rem; }
}

/* Listing photo viewer follows the screen when the phone rotates. */
.photo-viewer {
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
  border: 0;
  background: #0b1519;
  color: white;
  overflow: hidden;
}
.photo-viewer::backdrop { background: rgb(0 0 0 / 90%); }
.viewer-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 3.5rem;
  padding-inline: 1rem;
}
.viewer-bar button, .viewer-stage button {
  width: 3rem;
  height: 3rem;
  border: 0;
  border-radius: 50%;
  background: rgb(255 255 255 / 14%);
  color: white;
  font-size: 1.6rem;
  cursor: pointer;
}
.viewer-bar button:focus-visible, .viewer-stage button:focus-visible {
  outline: 2px solid white;
}
.viewer-stage {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr) 3rem;
  align-items: center;
  gap: 0.25rem;
  height: calc(100% - 3.5rem);
  padding-inline: 0.35rem;
  touch-action: pan-y;
}
.viewer-stage img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
}
.viewer-stage img.viewer-reveal {
  animation: viewer-reveal 320ms ease-out both;
}
@keyframes viewer-reveal {
  from { opacity: 0.35; transform: translateY(5px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .viewer-stage img.viewer-reveal { animation: none; }
}
@media (max-width: 560px) {
  .viewer-stage { grid-template-columns: 2.75rem minmax(0, 1fr) 2.75rem; }
  .viewer-stage button { width: 2.75rem; height: 2.75rem; }
  .my-listings { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.7rem; }
  .my-listing-body { padding: 0.7rem; }
  .my-listing-body h2 { font-size: 0.98rem; }
  .my-listing-actions { grid-template-columns: 1fr; gap: 0.2rem; }
  .publish-confirmation-actions .button { width: 100%; }
}
