/* Página de detalhe — layout de vitrine de locação */

body:has(.imovel-page) {
  background: #fff;
}

.site-header--simple {
  border-bottom: 1px solid var(--vt-border);
}

.site-header--simple .product-tabs {
  display: none;
}

@media (max-width: 768px) {
  .site-header--simple .btn-host--nav {
    display: inline-flex;
    align-items: center;
    min-height: var(--touch-min, 44px);
    padding: 8px 12px;
    font-size: 13px;
    white-space: nowrap;
  }

  .site-header--simple .btn-host--portal {
    display: none;
  }
}

.imovel-page {
  max-width: 1120px;
  margin: 0 auto;
  padding: 24px var(--vt-page-pad) 96px;
  background: #fff;
}

.imovel-status,
.imovel-error {
  text-align: center;
  color: var(--vt-muted);
  padding: 64px 16px;
  font-size: 16px;
}

.imovel-error a {
  color: var(--vt-primary);
  font-weight: 600;
  text-decoration: underline;
}

/* —— Título + ações —— */
.imovel-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.imovel-top__copy {
  flex: 1 1 auto;
  min-width: 0;
}

.imovel-kicker {
  margin: 0 0 4px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.01em;
  color: var(--vt-muted);
}

.imovel-title {
  margin: 0;
  max-width: 42rem;
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.imovel-top-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  padding-top: 2px;
}

.imovel-icon-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.imovel-icon-btn:hover {
  background: var(--vt-hover);
}

.imovel-icon-btn.is-favorited {
  color: var(--vt-primary);
}

.imovel-icon-btn.is-favorited:hover {
  background: var(--vt-hover);
}

.imovel-icon-btn svg {
  flex-shrink: 0;
}

/* —— Galeria mosaico (1 grande + 4) —— */
.imovel-gallery {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 8px;
  height: 480px;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 40px;
  background: #ddd;
  position: relative;
}

.imovel-gallery__cell {
  position: relative;
  overflow: hidden;
  background: #e8edf2;
  min-height: 0;
  min-width: 0;
}

.imovel-gallery__cell--main {
  grid-column: 1;
  grid-row: 1 / 3;
}

.imovel-gallery__cell:nth-child(2) {
  grid-column: 2;
  grid-row: 1;
}

.imovel-gallery__cell:nth-child(3) {
  grid-column: 3;
  grid-row: 1;
}

.imovel-gallery__cell:nth-child(4) {
  grid-column: 2;
  grid-row: 2;
}

.imovel-gallery__cell:nth-child(5) {
  grid-column: 3;
  grid-row: 2;
}

.imovel-gallery__cell img,
.imovel-gallery__ph {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.imovel-gallery__ph {
  display: grid;
  place-items: center;
  color: rgba(15, 23, 42, 0.35);
  font-size: 42px;
  font-weight: 700;
}

.imovel-gallery__ph--0 {
  background: linear-gradient(145deg, #f0f4f8 0%, #d5dee8 100%);
}
.imovel-gallery__ph--1 {
  background: linear-gradient(160deg, rgba(255, 107, 53, 0.1), rgba(255, 107, 53, 0.22));
}
.imovel-gallery__ph--2 {
  background: linear-gradient(200deg, #e2e8f0, #cbd5e1);
}
.imovel-gallery__ph--3 {
  background: linear-gradient(180deg, rgba(255, 107, 53, 0.08), #e8edf2);
}
.imovel-gallery__ph--4 {
  background: linear-gradient(220deg, #f1f5f9, #dbe4ee);
}

.imovel-gallery__show-all {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--vt-text);
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  pointer-events: auto;
  color: inherit;
  font-family: inherit;
  transition: background 0.15s ease, box-shadow 0.15s ease;
}

.imovel-gallery__show-all:hover {
  background: #fff;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12);
}

.imovel-gallery__show-all:focus-visible {
  outline: 2px solid var(--vt-primary, #ff6b35);
  outline-offset: 2px;
}

/* —— Grid conteúdo + card sticky —— */
.imovel-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.9fr);
  gap: 64px;
  align-items: start;
}

.imovel-section {
  padding: 32px 0;
  border-bottom: 1px solid var(--vt-border);
}

.imovel-section:first-child {
  padding-top: 0;
}

.imovel-section:last-child {
  border-bottom: none;
}

.imovel-subtitle {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.imovel-meta {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 0;
  color: var(--vt-text);
  font-size: 16px;
}

.imovel-meta li:not(:last-child)::after {
  content: "·";
  margin: 0 8px;
  color: var(--vt-muted);
}

.imovel-highlights {
  display: grid;
  gap: 24px;
}

.imovel-highlight {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 16px;
  align-items: start;
}

.imovel-highlight__icon {
  width: 32px;
  height: 32px;
  color: var(--vt-text);
}

.imovel-highlight h3 {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 600;
}

.imovel-highlight p {
  margin: 0;
  color: var(--vt-muted);
  font-size: 14px;
  line-height: 1.4;
}

.imovel-section h2 {
  margin: 0 0 16px;
  font-size: 22px;
  font-weight: 600;
}

.imovel-intro {
  font-size: 16px;
  line-height: 1.55;
  color: var(--vt-text);
}

.imovel-intro--empty {
  color: var(--vt-muted);
}

.imovel-intro p {
  margin: 0 0 0.85em;
}

.imovel-intro p:last-child {
  margin-bottom: 0;
}

/* Comodidades / tags */
.imovel-amenities {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.imovel-amenity {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
}

.imovel-amenity svg {
  flex-shrink: 0;
  color: var(--vt-text);
}

.imovel-map-section {
  margin-top: 48px;
  padding-bottom: 8px;
}

.imovel-map-section__inner {
  width: 100%;
  margin: 0;
  padding: 0;
}

.imovel-map-section__inner h2 {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 600;
}

.imovel-map-section__footer {
  margin-top: 12px;
}

.imovel-map-place {
  margin: 0 0 16px;
  font-size: 16px;
}

.imovel-map-box {
  width: 100%;
  margin: 0 0 4px;
  background: #e8edf2;
  border: 1px solid var(--vt-border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.06);
  min-height: 400px;
  height: min(48vh, 520px);
}

.imovel-map-box--empty {
  display: grid;
  place-items: center;
  text-align: center;
  padding: 48px 24px;
  color: var(--vt-muted);
  font-size: 15px;
  height: auto;
  min-height: 200px;
}

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

.imovel-map-note {
  margin: 0 0 8px;
  font-size: 13px;
  color: var(--vt-muted);
  line-height: 1.5;
}

.imovel-map-open {
  color: var(--vt-primary);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.imovel-map-open:hover {
  color: var(--vt-primary-hover);
}

.imovel-endereco-line {
  margin: 0;
  font-size: 14px;
  color: var(--vt-muted);
}

@media (max-width: 768px) {
  .imovel-map-box {
    min-height: 300px;
    height: min(42vh, 380px);
    border-radius: 12px;
  }

  .imovel-map-iframe {
    min-height: 300px;
  }
}

.imovel-gallery__open {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.imovel-gallery__open img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

body.imovel-lightbox-open {
  overflow: hidden;
}

.imovel-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding: 16px;
}

.imovel-lightbox[hidden] {
  display: none !important;
}

.imovel-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.9);
  cursor: zoom-out;
}

.imovel-lightbox__shell {
  position: relative;
  z-index: 1;
  width: min(1120px, 100%);
  max-height: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  animation: imovel-lightbox-in 0.2s ease;
}

@keyframes imovel-lightbox-in {
  from {
    opacity: 0;
    transform: scale(0.98);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.imovel-lightbox__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-shrink: 0;
  padding: 0 4px;
}

.imovel-lightbox__counter {
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.imovel-lightbox__close {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.15s ease;
}

.imovel-lightbox__close:hover {
  background: rgba(255, 255, 255, 0.24);
}

.imovel-lightbox__close:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.imovel-lightbox__stage {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
}

.imovel-lightbox__figure {
  margin: 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.imovel-lightbox__figure img {
  display: block;
  max-width: 100%;
  max-height: min(72vh, 720px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  background: #0f172a;
  transition: opacity 0.15s ease;
}

.imovel-lightbox__figure img.is-loading {
  opacity: 0.55;
}

.imovel-lightbox__figure figcaption {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: center;
}

.imovel-lightbox__figure figcaption:empty,
.imovel-lightbox__figure figcaption[hidden] {
  display: none;
}

.imovel-lightbox__nav {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: background 0.15s ease;
}

.imovel-lightbox__nav:hover {
  background: rgba(255, 255, 255, 0.28);
}

.imovel-lightbox__nav:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.imovel-lightbox__nav[hidden] {
  visibility: hidden;
  pointer-events: none;
}

.imovel-lightbox__thumbs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 2px 8px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.imovel-lightbox__thumbs[hidden] {
  display: none;
}

.imovel-lightbox__thumb {
  flex: 0 0 auto;
  width: 72px;
  height: 54px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.08);
  scroll-snap-align: center;
  transition: border-color 0.15s ease, opacity 0.15s ease;
}

.imovel-lightbox__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.imovel-lightbox__thumb.is-active {
  border-color: var(--vt-primary, #ff6b35);
}

.imovel-lightbox__thumb:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

@media (max-width: 720px) {
  .imovel-lightbox {
    padding: 12px 8px;
  }

  .imovel-lightbox__stage {
    display: block;
    position: relative;
  }

  .imovel-lightbox__nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10001;
  }

  .imovel-lightbox__nav--prev {
    left: 8px;
  }

  .imovel-lightbox__nav--next {
    right: 8px;
  }

  .imovel-lightbox__figure img {
    max-height: min(58vh, 520px);
  }

  .imovel-lightbox__thumb {
    width: 64px;
    height: 48px;
  }
}

/* —— Card lateral (booking) —— */
.imovel-book {
  position: sticky;
  top: 24px;
  border: 1px solid var(--vt-border);
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
  background: #fff;
}

.imovel-book__price {
  margin: 0 0 4px;
  font-size: 22px;
  font-weight: 600;
}

.imovel-book__price span {
  font-size: 16px;
  font-weight: 400;
}

.imovel-book__hint {
  margin: 0 0 16px;
  font-size: 14px;
  color: var(--vt-muted);
}

.imovel-book__hint--cta {
  margin: 0 0 12px;
}

.imovel-book__rows {
  margin: 0 0 20px;
  display: grid;
  gap: 0;
}

.imovel-book__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--vt-border);
  font-size: 12px;
}

.imovel-book__row:first-child {
  border-top: 1px solid var(--vt-border);
}

.imovel-book__row dt {
  color: var(--vt-muted);
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
  font-size: 12px;
  font-weight: 500;
}

.imovel-book__row-forma {
  font-size: 10px;
  font-weight: 500;
  color: var(--vt-muted);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.imovel-book__row dd {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  text-align: right;
  white-space: nowrap;
  color: var(--vt-text, var(--text, #0f172a));
}

.imovel-book__actions {
  display: grid;
  gap: 10px;
}

.imovel-book__eyebrow {
  margin: 0 0 4px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--vt-muted);
}

.imovel-book__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 48px;
  padding: 12px 20px;
  border-radius: 8px;
  background: var(--vt-primary);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
}

.imovel-book__cta:hover {
  background: var(--vt-primary-hover);
  color: #fff;
}

.imovel-book__cta--wa {
  background: #128c7e;
  gap: 10px;
}

.imovel-book__cta--wa:hover {
  background: #0f7a6e;
  color: #fff;
}

.imovel-book__cta--wa .imovel-wa-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.12));
}

.imovel-book__cta--secondary {
  background: #fff;
  color: var(--vt-text);
  border: 1px solid var(--vt-border);
}

.imovel-book__cta--secondary:hover {
  background: var(--vt-hover);
  color: var(--vt-text);
}

.imovel-book__back {
  display: block;
  margin-top: 16px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* —— Barra mobile sticky —— */
.imovel-mobile-bar {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 24px calc(14px + env(safe-area-inset-bottom));
  background: #fff;
  border-top: 1px solid var(--vt-border);
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.06);
}

.imovel-mobile-bar__price {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 12px;
  color: var(--vt-muted);
}

.imovel-mobile-bar__price strong {
  font-size: 16px;
  color: var(--vt-text);
  font-weight: 600;
}

.imovel-mobile-bar__actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.imovel-mobile-bar__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 8px;
  background: var(--vt-primary);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
  border: none;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
}

.imovel-mobile-bar__cta--wa {
  background: #128c7e;
}

.imovel-mobile-bar__cta--wa:hover {
  background: #0f7a6e;
  color: #fff;
}

.imovel-mobile-bar__cta--ghost {
  background: #fff;
  color: var(--vt-text);
  border: 1px solid var(--vt-border);
}

/* —— Modais agendar / informações —— */
body.imovel-action-modal-open {
  overflow: hidden;
}

.imovel-action-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 24px;
}

.imovel-action-modal[hidden] {
  display: none;
}

.imovel-action-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
}

.imovel-action-modal__panel {
  position: relative;
  width: 100%;
  max-width: 480px;
  max-height: min(92vh, 720px);
  overflow: auto;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 16px 48px rgba(15, 23, 42, 0.18);
}

.imovel-action-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--vt-border);
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 1;
}

.imovel-action-modal__head h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}

.imovel-action-modal__close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: transparent;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.imovel-action-modal__close:hover {
  background: var(--vt-hover);
}

.imovel-action-modal__body {
  padding: 16px 20px 24px;
}

.imovel-action-muted {
  margin: 0 0 12px;
  font-size: 14px;
  color: var(--vt-muted);
  line-height: 1.45;
}

.imovel-action-selected {
  margin: 12px 0;
  font-size: 14px;
}

.imovel-action-form {
  display: grid;
  gap: 12px;
  margin-top: 8px;
}

.imovel-action-form label {
  display: grid;
  gap: 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--vt-text);
}

.imovel-action-form input,
.imovel-action-form textarea {
  font: inherit;
  font-weight: 400;
  padding: 10px 12px;
  border: 1px solid var(--vt-border);
  border-radius: 8px;
}

.imovel-action-error {
  margin: 0;
  font-size: 13px;
  color: #b42318;
}

.imovel-action-error-inline {
  font-size: 13px;
  color: #b42318;
}

.imovel-action-success p {
  margin: 0 0 12px;
  line-height: 1.5;
}

.imovel-cal-host {
  margin: 8px 0 4px;
}

.imovel-cal__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.imovel-cal__nav-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--vt-border);
  background: #fff;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
}

.imovel-cal__nav-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.imovel-cal__month {
  font-weight: 600;
  font-size: 14px;
}

.imovel-cal__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.imovel-cal__table th {
  font-weight: 600;
  color: var(--vt-muted);
  padding: 4px;
}

.imovel-cal__cell {
  text-align: center;
  padding: 6px 0;
  border-radius: 8px;
}

.imovel-cal__cell--ok {
  cursor: pointer;
  color: var(--vt-text);
}

.imovel-cal__cell--ok:hover {
  background: var(--vt-hover);
}

.imovel-cal__cell--selected {
  background: var(--vt-primary);
  color: #fff;
}

.imovel-cal__cell--past,
.imovel-cal__cell--full {
  color: #cbd5e1;
}

@media (max-width: 1120px) {
  .imovel-gallery {
    height: 400px;
  }
}

@media (max-width: 950px) {
  .imovel-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .imovel-book {
    position: static;
    margin-top: 32px;
  }

  .imovel-mobile-bar:not([hidden]) {
    display: flex;
  }

  .imovel-page {
    padding-bottom: 120px;
  }
}

@media (max-width: 744px) {
  .imovel-page {
    padding: 0 0 120px;
  }

  .imovel-top {
    padding: 16px 24px 12px;
    margin-bottom: 0;
  }

  .imovel-title {
    font-size: 22px;
    max-width: none;
  }

  .imovel-kicker {
    font-size: 12px;
  }

  .imovel-top-actions .imovel-icon-btn span {
    display: none;
  }

  .imovel-gallery {
    height: min(58vw, 320px);
    border-radius: 0;
    gap: 2px;
    margin-bottom: 16px;
    grid-template-columns: 1.5fr 1fr;
    grid-template-rows: 1fr 1fr;
  }

  .imovel-gallery__cell--main {
    grid-column: 1;
    grid-row: 1 / 3;
  }

  .imovel-gallery__cell:nth-child(2) {
    grid-column: 2;
    grid-row: 1;
  }

  .imovel-gallery__cell:nth-child(3) {
    grid-column: 2;
    grid-row: 2;
  }

  .imovel-gallery__cell:nth-child(n + 4) {
    display: none;
  }

  .imovel-gallery__show-all {
    right: 12px;
    bottom: 12px;
    font-size: 13px;
    padding: 6px 12px;
  }

  .imovel-main,
  .imovel-aside {
    padding: 0 max(16px, env(safe-area-inset-left));
    padding-right: max(16px, env(safe-area-inset-right));
  }

  .imovel-top {
    padding-left: max(16px, env(safe-area-inset-left));
    padding-right: max(16px, env(safe-area-inset-right));
  }

  .imovel-icon-btn {
    min-height: 44px;
    min-width: 44px;
    justify-content: center;
  }

  .imovel-mobile-bar {
    padding: 12px max(16px, env(safe-area-inset-left)) calc(12px + env(safe-area-inset-bottom));
    padding-right: max(16px, env(safe-area-inset-right));
    gap: 12px;
  }

  .imovel-mobile-bar__price strong {
    font-size: 18px;
    font-variant-numeric: tabular-nums;
  }

  .imovel-mobile-bar__cta {
    border-radius: 12px;
    min-width: 88px;
  }

  .imovel-action-modal {
    place-items: end center;
    padding: 0;
  }

  .imovel-action-modal__panel {
    max-width: 100%;
    border-radius: 20px 20px 0 0;
    max-height: min(92dvh, 760px);
  }

  .imovel-amenities {
    grid-template-columns: 1fr;
  }

  .imovel-subtitle {
    font-size: 18px;
  }

  .imovel-section h2 {
    font-size: 18px;
  }
}
