.showroom-page {
  padding: clamp(24px, 4vw, 44px) 0 52px;
}

.showroom-page .site-container {
  max-width: 1200px;
}

.showroom-card {
  min-width: 0;
  padding: clamp(16px, 3vw, 32px);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.showroom-contact {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 3vw, 32px);
  align-items: start;
}

.showroom-page h1,
.showroom-page h2,
.showroom-preview h2 {
  color: var(--color-primary-navy);
  line-height: 1.2;
}

.showroom-page h2 {
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  margin-bottom: 8px;
}

.showroom-page p,
.showroom-page dd {
  color: #475569;
  line-height: 1.65;
}

.showroom-storefront {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
}

.showroom-details {
  display: grid;
  gap: 10px;
  margin: 16px 0;
}

.showroom-details > div {
  display: grid;
  grid-template-columns: 8rem minmax(0, 1fr);
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--color-border-light);
}

.showroom-details dt {
  font-weight: 700;
  color: var(--color-primary-navy);
}

.showroom-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.showroom-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 14px;
  color: var(--color-primary-navy);
  background: #fff;
  border: 1px solid #b9c4d3;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.875rem;
  text-align: center;
}

.showroom-actions .showroom-primary-action {
  background: #ff8b23;
  border-color: #ff8b23;
}

.showroom-actions a:hover {
  box-shadow: var(--shadow-sm);
  border-color: var(--color-primary-orange);
}

.showroom-home .site-container {
  max-width: 1280px;
}

.showroom-home [id] {
  scroll-margin-top: 16px;
}

.showroom-gallery-section,
.showroom-location {
  margin-top: clamp(16px, 2.5vw, 28px);
}

.showroom-gallery-row,
.showroom-section-heading {
  display: flex;
  gap: 12px;
}

.showroom-gallery-row > section:first-child {
  flex: 2.5;
}

.showroom-gallery-row > section:last-child {
  flex: 1;
}

.showroom-section-heading {
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
}

.showroom-gallery-section h3 {
  color: var(--color-primary-navy);
  font-size: 1.15rem;
}

.showroom-section-link {
  color: var(--color-primary-navy);
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.showroom-gallery-grid,
.showroom-preview-list {
  display: grid;
  gap: clamp(8px, 1.4vw, 16px);
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.showroom-gallery-grid {
  align-items: start;
}

.showroom-tiles-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.showroom-shop-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.showroom-sanitary-grid {
  max-width: 320px;
}

.showroom-gallery-wide {
  grid-column: span 2;
}

.showroom-photo {
  display: block;
  height: 100%;
  overflow: hidden;
  color: var(--color-primary-navy);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  -webkit-tap-highlight-color: transparent;
}

.showroom-photo:hover {
  border-color: var(--color-primary-orange);
}

.showroom-photo img {
  display: block;
  width: 100%;
  height: auto;
  background: #eef2f7;
}

.showroom-photo span {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 10px;
  font-size: 0.875rem;
  font-weight: 700;
}

.showroom-location {
  border-top: 3px solid var(--color-primary-orange);
}

.showroom-location .showroom-map {
  margin-top: 0;
}

.showroom-google-rating {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 10px;
  min-height: 44px;
  padding: 8px 12px;
  color: var(--color-primary-navy);
  background: #fff7eb;
  border: 1px solid #f4d4a7;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
}

.showroom-google-rating:hover {
  border-color: var(--color-primary-orange);
}

.showroom-verified-rating {
  color: #995400;
}

#showroom-location {
  scroll-margin-top: 16px;
}

.showroom-rating-star {
  color: #995400;
  font-size: 1.18rem;
  line-height: 1;
}

.showroom-contact .showroom-storefront {
  margin-bottom: 16px;
}

.showroom-contact h1 {
  margin-bottom: 18px;
  font-size: clamp(1.75rem, 3.6vw, 2.25rem);
}

.showroom-contact .showroom-status {
  display: inline-flex;
  margin-top: 4px;
}

.showroom-map {
  display: grid;
  min-height: 400px;
  margin-top: 16px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: #f1f5f9;
}

.showroom-map iframe {
  display: block;
  width: 100%;
  height: 400px;
  border: 0;
}

.showroom-map-message {
  align-self: center;
  padding: 16px;
  text-align: center;
}

.showroom-map > * {
  grid-area: 1 / 1;
}

.showroom-map[aria-busy="true"] iframe,
.showroom-map[data-map-fallback] iframe {
  visibility: hidden;
}

.showroom-map iframe[hidden],
.showroom-map-message[hidden],
.showroom-preview > section[hidden],
.showroom-preview[hidden] {
  display: none;
}

.showroom-preview {
  margin: 0 0 20px;
  padding: 0;
  background: transparent;
  border: none;
}

.catalog-view-tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  margin-bottom: 14px;
  background: #e9edf3;
  border-radius: var(--radius-sm);
  width: fit-content;
  max-width: 100%;
}

.catalog-view-tabs[hidden] {
  display: none;
}

.catalog-view-tabs button {
  min-height: 40px;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  color: var(--color-primary-navy);
  font-weight: 700;
}

.catalog-view-tabs button[aria-selected="true"] {
  color: var(--color-white);
  background: var(--color-primary-navy);
}

.catalog-view-tabs button:focus-visible {
  outline: 2px solid var(--color-primary-orange);
  outline-offset: 1px;
}

.showroom-preview h2 {
  font-size: 1.15rem;
}

.showroom-preview-list {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 138px), 1fr));
}

.showroom-preview-list .showroom-photo img {
  aspect-ratio: 4 / 3;
  object-fit: contain;
}

.showroom-compact-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #f8fafc;
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-primary-orange);
  border-radius: var(--radius-sm);
  padding: 12px 18px;
}

.showroom-compact-thumb {
  width: 90px;
  height: 60px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
  border: 1px solid var(--color-border);
}

.showroom-compact-text {
  flex: 1;
  min-width: 0;
}

.showroom-compact-text h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-primary-navy);
  margin: 0 0 2px;
}

.showroom-compact-text p {
  font-size: 0.82rem;
  color: #64748b;
  margin: 0;
  line-height: 1.4;
}

.btn-showroom-explore {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--color-primary-navy);
  color: #fff !important;
  font-size: 0.84rem;
  font-weight: 700;
  border-radius: 6px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.2s, transform 0.15s;
  text-decoration: none;
}

.btn-showroom-explore:hover {
  background: var(--color-primary-orange);
  color: #fff !important;
}

@media (max-width: 640px) {
  .showroom-compact-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
  }
  .showroom-compact-thumb {
    display: none;
  }
}

body.showroom-viewer-open {
  overflow: hidden;
}

.showroom-viewer {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  color: #fff;
  background: #091426;
  overscroll-behavior: contain;
}

.showroom-viewer::backdrop {
  background: rgba(3, 18, 46, 0.88);
}

.showroom-viewer-frame {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 8px;
  height: 100%;
  padding: max(8px, env(safe-area-inset-top)) max(8px, env(safe-area-inset-right))
    max(8px, env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left));
}

.showroom-viewer-toolbar,
.showroom-viewer-footer {
  display: flex;
  align-items: center;
  gap: 8px;
}

.showroom-viewer-toolbar {
  justify-content: end;
}

.showroom-viewer-footer {
  justify-content: space-between;
}

.showroom-viewer-stage {
  display: grid;
  min-width: 0;
  min-height: 0;
  background: #050c17;
  overflow: hidden;
  touch-action: pan-y pinch-zoom;
}

.showroom-viewer-stage.is-zoomed {
  overflow: auto;
  touch-action: pan-x pan-y pinch-zoom;
}

.showroom-viewer-stage img {
  display: block;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  object-fit: contain;
}

.showroom-viewer-stage.is-zoomed img {
  width: 200%;
  height: 200%;
  max-width: none;
}

.showroom-viewer button {
  flex: 0 0 auto;
  min-width: 44px;
  min-height: 44px;
  padding: 6px 10px;
  color: #fff;
  font: inherit;
  font-weight: 700;
  background: #172942;
  border: 1px solid #728098;
  border-radius: var(--radius-sm);
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.showroom-viewer button:hover,
.showroom-viewer button[aria-pressed="true"] {
  border-color: var(--color-primary-orange);
}

.showroom-viewer button:disabled {
  opacity: 0.5;
  cursor: default;
}

.showroom-photo:focus-visible,
.showroom-actions a:focus-visible,
.showroom-section-link:focus-visible,
.showroom-google-rating:focus-visible,
.showroom-viewer button:focus-visible {
  outline: 3px solid var(--color-primary-orange);
  outline-offset: 2px;
}

.showroom-viewer-caption {
  text-align: center;
  font-weight: 700;
  min-width: 0;
}

.showroom-viewer-counter {
  display: block;
  color: #cbd5e1;
  font-size: 0.875rem;
  font-weight: 400;
}

@media (max-width: 1024px) {
  .showroom-tiles-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 800px) {
  .showroom-contact {
    grid-template-columns: minmax(0, 1fr);
  }

  .showroom-gallery-row {
    display: block;
  }

  .showroom-tiles-grid,
  .showroom-shop-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .showroom-shop-grid .showroom-gallery-wide {
    grid-column: auto;
  }

  .showroom-map {
    min-height: 300px;
  }

  .showroom-map iframe {
    height: 300px;
  }
}

@media (max-width: 359px) {
  .showroom-tiles-grid,
  .showroom-shop-grid,
  .showroom-details > div {
    grid-template-columns: minmax(0, 1fr);
  }

  .showroom-gallery-wide {
    grid-column: auto;
  }
}
