/*
  Vértice Imóveis — Página padrão de imóvel
  Passo 2: CSS completo da página individual
  Stack: HTML semântico + Tailwind CDN + CSS customizado + GSAP/Lenis no Passo 3
*/

:root {
  --vt-blue-950: #08283a;
  --vt-blue-900: #0d3345;
  --vt-blue-800: #123e52;
  --vt-blue-700: #1d5066;
  --vt-green-600: #74c84b;
  --vt-green-700: #59a93b;
  --vt-cream-50: #fbfaf7;
  --vt-cream-100: #f8f5ef;
  --vt-cream-150: #f4efe7;
  --vt-cream-200: #ece4d7;
  --vt-cream-300: #ddd4c8;
  --vt-text: #102f41;
  --vt-muted: #627580;
  --vt-muted-2: #7d8d95;
  --vt-border: rgba(16, 47, 65, 0.12);
  --vt-shadow-sm: 0 12px 32px rgba(16, 47, 65, 0.08);
  --vt-shadow-md: 0 24px 70px rgba(16, 47, 65, 0.12);
  --vt-shadow-lg: 0 34px 100px rgba(16, 47, 65, 0.18);
  --vt-radius-sm: 14px;
  --vt-radius-md: 22px;
  --vt-radius-lg: 30px;
  --vt-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --vt-header-h: 72px;
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.page-imovel {
  min-width: 320px;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 12% 8%, rgba(116, 200, 75, 0.08), transparent 30vw),
    radial-gradient(circle at 88% 12%, rgba(13, 51, 69, 0.07), transparent 34vw),
    linear-gradient(180deg, var(--vt-cream-50), var(--vt-cream-100) 28%, var(--vt-cream-50));
  color: var(--vt-text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.page-imovel::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background-image:
    linear-gradient(rgba(16, 47, 65, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 47, 65, 0.018) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, black, transparent 80%);
}

img,
svg,
video {
  display: block;
  max-width: 100%;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(116, 200, 75, 0.42);
  outline-offset: 4px;
}

::selection {
  background: var(--vt-green-600);
  color: white;
}

.font-display,
.property-summary h1,
.property-summary h2,
.property-highlights h2,
.property-amenities h2,
.property-related h2,
.property-cta h2 {
  font-family: "Playfair Display", Georgia, serif;
}

/* Header */
.site-header {
  transition:
    box-shadow 0.32s var(--vt-ease),
    border-color 0.32s var(--vt-ease),
    background-color 0.32s var(--vt-ease),
    transform 0.32s var(--vt-ease);
}

.site-header.is-scrolled,
.site-header[data-scrolled="true"] {
  border-color: rgba(16, 47, 65, 0.12);
  background: rgba(251, 250, 247, 0.98);
  box-shadow: 0 14px 36px rgba(16, 47, 65, 0.08);
}

.site-header__inner {
  position: relative;
}

.brand-link img {
  filter: drop-shadow(0 6px 16px rgba(16, 47, 65, 0.05));
}

.nav-link {
  position: relative;
  letter-spacing: -0.01em;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -9px;
  height: 2px;
  border-radius: 999px;
  background: var(--vt-green-600);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.28s var(--vt-ease);
}

.nav-link:hover::after,
.nav-link[aria-current="page"]::after {
  transform: scaleX(1);
}

.header-cta,
.mobile-menu-button,
.mobile-nav a {
  transition:
    transform 0.25s var(--vt-ease),
    color 0.25s var(--vt-ease),
    border-color 0.25s var(--vt-ease),
    background-color 0.25s var(--vt-ease),
    box-shadow 0.25s var(--vt-ease);
}

.header-cta:hover,
.mobile-menu-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(16, 47, 65, 0.1);
}

.mobile-menu-button[aria-expanded="true"] span span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.mobile-menu-button[aria-expanded="true"] span span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-button[aria-expanded="true"] span span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.mobile-menu-button span span {
  transition: transform 0.25s var(--vt-ease), opacity 0.2s ease;
}

.mobile-nav {
  box-shadow: 0 26px 50px rgba(16, 47, 65, 0.09);
}

.mobile-nav:not(.hidden) {
  display: block;
}

.mobile-nav a:hover {
  transform: translateX(3px);
}

/* Generic containers and sections */
main[data-property-page] {
  position: relative;
}

main[data-property-page] section {
  position: relative;
}

main[data-property-page] .max-w-\[1280px\] {
  max-width: 1280px;
}

.property-summary,
.property-description,
.property-amenities,
.property-support,
.property-specialist,
.property-related,
.property-cta {
  isolation: isolate;
}

.property-description::before,
.property-amenities::before,
.property-support::before,
.property-specialist::before,
.property-related::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: min(1180px, calc(100vw - 40px));
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(16, 47, 65, 0.12), transparent);
  pointer-events: none;
}

/* Gallery */
.property-gallery {
  padding-top: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.66), rgba(248, 245, 239, 0.98)),
    var(--vt-cream-100);
}

.property-gallery nav ol {
  min-height: 24px;
}

.property-gallery a {
  text-decoration: none;
}

.gallery-feature,
.property-gallery .grid > div > article {
  position: relative;
  min-height: 220px;
  overflow: hidden;
  background: #e7e1d7;
}

.gallery-feature {
  min-height: clamp(360px, 44vw, 560px);
}

.property-gallery .grid > div > article {
  min-height: clamp(170px, 20vw, 274px);
}

.gallery-feature::after,
.property-gallery .grid > div > article::after,
.property-related figure::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(8, 40, 58, 0), rgba(8, 40, 58, 0.08)),
    linear-gradient(120deg, rgba(255, 255, 255, 0.14), transparent 38%);
}

.gallery-feature img,
.property-gallery .grid > div > article img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  transform: scale(1.001);
  transition: transform 1.4s var(--vt-ease), filter 0.5s ease;
}

.gallery-feature:hover img,
.property-gallery .grid > div > article:hover img {
  transform: scale(1.035);
}

.property-gallery button {
  transition:
    transform 0.25s var(--vt-ease),
    box-shadow 0.25s var(--vt-ease),
    background-color 0.25s var(--vt-ease),
    border-color 0.25s var(--vt-ease),
    color 0.25s var(--vt-ease);
}

.property-gallery button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(16, 47, 65, 0.14);
}

.property-gallery button[data-open-gallery] {
  background: rgba(13, 51, 69, 0.94);
  backdrop-filter: blur(14px);
}

.property-gallery button[data-video-tour]:hover {
  border-color: rgba(116, 200, 75, 0.72);
  color: var(--vt-green-700);
}

/* Summary */
.property-summary {
  padding-top: clamp(36px, 5vw, 62px);
  padding-bottom: clamp(34px, 4.5vw, 58px);
}

.property-summary [data-property-tag],
.property-highlights p:first-child,
.property-description p.text-sm,
.property-amenities p.text-sm,
.property-support p.text-sm,
.property-specialist p.text-sm,
.property-related p.text-sm {
  letter-spacing: 0.18em;
}

.property-summary h1 {
  max-width: 780px;
  text-wrap: balance;
}

.property-summary h2 {
  max-width: 600px;
  text-wrap: balance;
}

.property-summary [data-property-price] {
  font-feature-settings: "tnum";
  letter-spacing: -0.05em;
}

.property-summary a[data-visit-link],
.property-summary a[data-consult-link],
.property-cta a,
.property-support button,
.property-specialist a,
.property-related a,
.site-footer a {
  transition:
    transform 0.25s var(--vt-ease),
    box-shadow 0.25s var(--vt-ease),
    background-color 0.25s var(--vt-ease),
    border-color 0.25s var(--vt-ease),
    color 0.25s var(--vt-ease),
    filter 0.25s var(--vt-ease);
}

.property-summary a[data-visit-link]:hover,
.property-cta a:hover {
  box-shadow: 0 22px 48px rgba(116, 200, 75, 0.3);
}

.property-summary a[data-consult-link]:hover,
.property-support button:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(16, 47, 65, 0.09);
}

.property-summary .rounded-\[22px\] {
  box-shadow: var(--vt-shadow-sm);
}

.property-summary .rounded-\[22px\] article {
  position: relative;
}

.property-summary .rounded-\[22px\] article:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 14px;
  right: -8px;
  width: 1px;
  height: calc(100% - 28px);
  background: rgba(16, 47, 65, 0.11);
}

/* Highlights */
.property-highlights {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(251, 250, 247, 0.96)),
    var(--vt-cream-50);
}

.property-highlights h2,
.property-amenities h2 {
  max-width: 470px;
  text-wrap: balance;
}

[data-highlights-list] article,
[data-amenities-list] article {
  min-height: 82px;
  box-shadow: 0 10px 24px rgba(16, 47, 65, 0.035);
  transition:
    transform 0.26s var(--vt-ease),
    border-color 0.26s var(--vt-ease),
    box-shadow 0.26s var(--vt-ease),
    background-color 0.26s var(--vt-ease);
}

[data-highlights-list] article:hover,
[data-amenities-list] article:hover {
  transform: translateY(-3px);
  border-color: rgba(116, 200, 75, 0.48);
  box-shadow: 0 18px 40px rgba(16, 47, 65, 0.08);
}

[data-highlights-list] span {
  box-shadow: inset 0 0 0 1px rgba(16, 47, 65, 0.08);
}

/* Description */
.property-description {
  background: linear-gradient(180deg, rgba(248, 245, 239, 0), rgba(251, 250, 247, 0.74));
}

.property-description [data-property-description] {
  max-width: 900px;
}

.property-description [data-property-description] p {
  margin: 0;
}

/* Amenities */
.property-amenities {
  background: rgba(248, 245, 239, 0.72);
}

[data-amenities-list] article {
  display: flex;
  min-height: 76px;
  align-items: center;
  line-height: 1.45;
}

/* Support cards: floorplan and map */
.property-support .rounded-\[24px\],
.property-specialist article,
.property-related article,
.property-cta > div > div {
  box-shadow: var(--vt-shadow-sm);
}

.property-support article {
  overflow: hidden;
}

.property-support [data-property-floorplan],
.property-support [data-property-map] {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--vt-ease);
}

.property-support [data-property-floorplan] {
  min-height: 280px;
}

.property-support [data-property-map] {
  min-height: 300px;
}

.property-support .overflow-hidden:hover [data-property-floorplan],
.property-support .overflow-hidden:hover [data-property-map] {
  transform: scale(1.035);
}

.property-support li span:last-child,
[data-location-points] li span:first-child {
  line-height: 1.55;
}

[data-location-points] li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

/* Specialist */
.property-specialist article {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(251, 250, 247, 0.94));
}

.property-specialist [data-specialist-photo] {
  transition: transform 0.9s var(--vt-ease), filter 0.3s ease;
}

.property-specialist article:hover [data-specialist-photo] {
  transform: scale(1.035);
}

.property-specialist [data-specialist-name] {
  font-family: "Playfair Display", Georgia, serif;
  letter-spacing: -0.03em;
}

.property-specialist a:hover {
  transform: translateX(2px);
}

/* Related properties */
.property-related {
  background: linear-gradient(180deg, rgba(251, 250, 247, 0.2), rgba(248, 245, 239, 0.72));
}

.property-related h2 {
  max-width: 760px;
  text-wrap: balance;
}

.property-related article {
  overflow: hidden;
}

.property-related article:hover {
  transform: translateY(-5px);
  box-shadow: var(--vt-shadow-md);
  border-color: rgba(116, 200, 75, 0.42);
}

.property-related figure {
  position: relative;
  background: #e7e1d7;
}

.property-related figure img {
  min-height: 185px;
  object-fit: cover;
}

.property-related h3 {
  font-family: "Playfair Display", Georgia, serif;
  letter-spacing: -0.025em;
}

/* CTA */
.property-cta > div > div {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background:
    linear-gradient(90deg, rgba(13, 51, 69, 0.98), rgba(13, 51, 69, 0.9)),
    var(--vt-blue-900);
}

.property-cta > div > div::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at 84% 34%, rgba(116, 200, 75, 0.26), transparent 26%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.18), transparent 60%);
  pointer-events: none;
}

.property-cta > div > div > * {
  position: relative;
  z-index: 1;
}

/* Footer */
.site-footer {
  background:
    linear-gradient(180deg, rgba(251, 250, 247, 0.92), rgba(248, 245, 239, 1)),
    var(--vt-cream-50);
}



.site-footer h3 {
  color: rgba(16, 47, 65, 0.56);
}

.site-footer a:hover {
  transform: translateX(2px);
}

.site-footer .inline-flex {
  transition:
    transform 0.25s var(--vt-ease),
    border-color 0.25s var(--vt-ease),
    background-color 0.25s var(--vt-ease),
    color 0.25s var(--vt-ease);
}

.site-footer .inline-flex:hover {
  transform: translateY(-2px);
  border-color: rgba(116, 200, 75, 0.55);
  color: var(--vt-green-700);
}

/* Optional lightbox hooks for Step 3 */
.property-lightbox,
.floorplan-lightbox {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(8, 40, 58, 0.78);
  backdrop-filter: blur(16px);
}

.property-lightbox.is-open,
.floorplan-lightbox.is-open {
  display: flex;
}

.property-lightbox__dialog,
.floorplan-lightbox__dialog {
  width: min(1180px, 100%);
  max-height: calc(100vh - 48px);
  overflow: hidden;
  border-radius: 24px;
  background: var(--vt-cream-50);
  box-shadow: var(--vt-shadow-lg);
}

.property-lightbox img,
.floorplan-lightbox img {
  width: 100%;
  max-height: calc(100vh - 120px);
  object-fit: contain;
}

/* GSAP friendly states */
[data-animate] {
  will-change: transform, opacity;
}

@media (hover: none) {
  .gallery-feature:hover img,
  .property-gallery .grid > div > article:hover img,
  .property-support .overflow-hidden:hover [data-property-floorplan],
  .property-support .overflow-hidden:hover [data-property-map],
  .property-specialist article:hover [data-specialist-photo] {
    transform: none;
  }
}

/* Responsiveness */
@media (max-width: 1279px) {
  .gallery-feature {
    min-height: clamp(320px, 50vw, 520px);
  }

  .property-gallery .grid > div > article {
    min-height: clamp(190px, 25vw, 280px);
  }
}

@media (max-width: 1023px) {
  :root {
    --vt-header-h: 72px;
  }

  .property-summary .rounded-\[22px\] article:not(:last-child)::after {
    display: none;
  }

  .property-summary .lg\:border-l {
    border-left: 0 !important;
    padding-left: 0 !important;
  }

  .property-highlights,
  .property-amenities {
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .property-specialist article {
    align-items: stretch;
  }
}

@media (max-width: 767px) {
  .site-header__inner {
    height: 66px !important;
  }

  main[data-property-page] {
    padding-top: 66px !important;
  }

  .brand-link img {
    height: 40px !important;
  }

  .property-gallery {
    padding-top: 18px;
  }

  .property-gallery nav {
    margin-bottom: 12px;
    font-size: 0.78rem;
  }

  .gallery-feature {
    min-height: 280px;
    border-radius: 20px !important;
  }

  .property-gallery .grid > div {
    grid-template-columns: 1fr 1fr !important;
  }

  .property-gallery .grid > div > article {
    min-height: 126px;
    border-radius: 16px !important;
  }

  .property-gallery button {
    min-height: 44px;
    padding: 0 16px;
    font-size: 0.82rem;
  }

  .property-summary {
    padding-top: 32px;
  }

  .property-summary h1 {
    font-size: clamp(2.45rem, 12vw, 3.35rem) !important;
  }

  .property-summary h2,
  .property-highlights h2,
  .property-amenities h2,
  .property-cta h2 {
    font-size: clamp(2rem, 9vw, 2.7rem) !important;
  }

  .property-summary [data-property-price] {
    font-size: clamp(2rem, 9vw, 2.75rem) !important;
  }

  .property-summary a[data-visit-link],
  .property-summary a[data-consult-link],
  .property-cta a {
    width: 100%;
  }

  .property-description [data-property-description] {
    line-height: 1.78;
  }

  .property-support [data-property-floorplan] {
    min-height: 230px;
  }

  .property-support [data-property-map] {
    min-height: 250px;
  }

  .property-specialist [data-specialist-photo] {
    aspect-ratio: 16 / 12 !important;
  }

  .property-related figure img {
    min-height: 210px;
  }

  .site-footer {
    padding-bottom: 36px;
  }
}

@media (max-width: 520px) {
  .property-gallery .grid > div {
    grid-template-columns: 1fr !important;
  }

  .property-gallery .grid > div > article:nth-child(n+3) {
    display: none;
  }

  .property-gallery .grid > div > article {
    min-height: 180px;
  }

  .property-summary .rounded-\[22px\] {
    padding: 14px !important;
  }

  .property-summary .rounded-\[22px\] article {
    padding: 16px !important;
  }

  [data-highlights-list],
  [data-amenities-list] {
    grid-template-columns: 1fr !important;
  }

  .property-support .rounded-\[24px\],
  .property-specialist article,
  .property-cta > div > div {
    border-radius: 22px !important;
  }

  .site-footer img {
    height: 48px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  [data-animate] {
    will-change: auto;
  }
}

@media print {
  .site-header,
  .mobile-nav,
  .property-gallery button,
  .property-cta,
  .site-footer {
    display: none !important;
  }

  body.page-imovel {
    background: white !important;
    color: #111 !important;
  }

  main[data-property-page] {
    padding-top: 0 !important;
  }

  .property-gallery,
  .property-summary,
  .property-highlights,
  .property-description,
  .property-amenities,
  .property-support,
  .property-specialist,
  .property-related {
    break-inside: avoid;
    background: white !important;
  }
}


/* Passo 3 — componentes dinâmicos e modal de galeria */
.site-header.is-scrolled {
  box-shadow: 0 16px 45px rgba(16, 47, 65, 0.08);
  border-color: rgba(16, 47, 65, 0.1);
}

.property-mini-feature,
.amenity-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  border: 1px solid var(--vt-cream-200);
  background: rgba(255, 255, 255, 0.74);
  border-radius: 18px;
  padding: 1rem;
  min-height: 100%;
  box-shadow: 0 12px 28px rgba(16, 47, 65, 0.045);
}

.property-mini-feature__icon,
.amenity-item__icon {
  width: 2.6rem;
  height: 2.6rem;
  flex: 0 0 2.6rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: var(--vt-cream-100);
  color: var(--vt-blue-900);
  border: 1px solid rgba(16, 47, 65, 0.08);
}

.property-mini-feature__icon svg,
.amenity-item__icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

.property-mini-feature p,
.amenity-item span {
  margin: 0;
  color: #41535e;
  font-size: 0.92rem;
  line-height: 1.65;
  font-weight: 600;
}

[data-location-points] li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--vt-cream-200);
}

[data-location-points] li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

[data-location-points] strong {
  color: var(--vt-blue-900);
  white-space: nowrap;
}

.related-property-card {
  overflow: hidden;
  border: 1px solid var(--vt-cream-200);
  background: white;
  border-radius: 18px;
  box-shadow: var(--vt-shadow-sm);
  transition: transform 0.35s var(--vt-ease), box-shadow 0.35s var(--vt-ease), border-color 0.35s var(--vt-ease);
}

.related-property-card:hover {
  transform: translateY(-5px);
  border-color: rgba(116, 200, 75, 0.42);
  box-shadow: var(--vt-shadow-md);
}

.related-property-card__image {
  aspect-ratio: 1.48 / 1;
  overflow: hidden;
  background: var(--vt-cream-150);
}

.related-property-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.85s var(--vt-ease);
}

.related-property-card:hover .related-property-card__image img {
  transform: scale(1.055);
}

.related-property-card__body {
  padding: 1rem;
}

.related-property-card__location {
  color: var(--vt-green-700);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 800;
}

.related-property-card__body h3 {
  margin-top: 0.45rem;
  color: var(--vt-blue-900);
  font-size: 1.1rem;
  line-height: 1.2;
  font-weight: 700;
}

.related-property-card__price {
  margin-top: 0.55rem;
  color: var(--vt-blue-900);
  font-weight: 800;
}

.related-property-card__meta {
  margin-top: 0.45rem;
  color: var(--vt-muted);
  font-size: 0.86rem;
  line-height: 1.5;
}

.media-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 3vw, 2rem);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.24s ease;
}

.media-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.media-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 22, 31, 0.82);
  backdrop-filter: blur(14px);
}

.media-modal__dialog {
  position: relative;
  width: min(1120px, 100%);
  max-height: calc(100vh - 2rem);
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto auto;
  gap: 0.85rem;
  padding: clamp(0.75rem, 2vw, 1rem);
  border-radius: 24px;
  background: rgba(251, 250, 247, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.42);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.34);
}

.media-modal__close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  z-index: 2;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  background: rgba(13, 51, 69, 0.92);
  color: white;
  font-size: 1.7rem;
  line-height: 1;
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.media-modal__figure {
  min-height: 0;
  border-radius: 18px;
  overflow: hidden;
  background: var(--vt-cream-150);
}

.media-modal__figure img {
  width: 100%;
  max-height: min(70vh, 760px);
  object-fit: contain;
  background: #111f27;
}

.media-modal__caption {
  color: var(--vt-blue-900);
  font-size: 0.92rem;
  font-weight: 700;
}

.media-modal__thumbs {
  display: flex;
  gap: 0.65rem;
  overflow-x: auto;
  padding-bottom: 0.15rem;
}

.media-modal__thumb {
  width: 92px;
  height: 66px;
  flex: 0 0 auto;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid transparent;
  background: var(--vt-cream-150);
  opacity: 0.74;
  transition: opacity 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.media-modal__thumb.is-active {
  border-color: var(--vt-green-600);
  opacity: 1;
}

.media-modal__thumb:hover {
  opacity: 1;
  transform: translateY(-2px);
}

.media-modal__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-open {
  overflow: hidden;
}

.image-failed {
  opacity: 0.35;
  background: linear-gradient(135deg, var(--vt-cream-150), var(--vt-cream-200));
}

@media (max-width: 767px) {
  .media-modal {
    padding: 0.75rem;
  }

  .media-modal__dialog {
    border-radius: 18px;
  }

  .media-modal__thumb {
    width: 76px;
    height: 56px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .related-property-card,
  .related-property-card__image img,
  .media-modal,
  .media-modal__thumb {
    transition: none !important;
  }
}


/* Ajustes finais: galeria clicável, ícones e textos dos ambientes */
.is-clickable-media {
  cursor: zoom-in;
}

.is-clickable-media:focus-visible {
  outline: 3px solid rgba(116, 200, 75, 0.48);
  outline-offset: 4px;
}

.property-gallery [hidden] {
  display: none !important;
}

.property-mini-feature,
.amenity-item {
  min-width: 0;
  overflow: hidden;
}

.property-mini-feature__icon,
.amenity-item__icon {
  flex-shrink: 0;
}

.property-mini-feature__icon svg,
.amenity-item__icon svg {
  width: 1.32rem;
  height: 1.32rem;
  stroke: currentColor;
}

.property-mini-feature p,
.amenity-item__text {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: break-word;
  word-break: normal;
}

.amenity-item {
  align-items: center;
  min-height: 86px;
}

.amenity-item__text {
  display: block;
  color: #41535e;
  font-size: 0.9rem;
  line-height: 1.45;
  font-weight: 650;
}

@media (max-width: 480px) {
  .property-mini-feature,
  .amenity-item {
    padding: 0.85rem;
    gap: 0.72rem;
  }

  .property-mini-feature__icon,
  .amenity-item__icon {
    width: 2.35rem;
    height: 2.35rem;
    flex-basis: 2.35rem;
  }
}


/* Ajuste final: ambientes em carousel com setas para evitar texto apertado */
.amenities-carousel-shell {
  position: relative;
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.85rem;
}

.amenities-carousel {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  padding: 0.25rem 0.1rem 0.45rem;
}

.amenities-carousel::-webkit-scrollbar {
  display: none;
}

.amenities-carousel .amenity-item {
  flex: 0 0 clamp(245px, 28vw, 320px);
  min-height: 112px;
  scroll-snap-align: start;
  align-items: center;
  padding: 1.1rem 1.2rem;
}

.amenities-carousel .amenity-item__text {
  white-space: normal;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
  font-size: 0.96rem;
  line-height: 1.5;
}

.amenities-nav {
  width: 2.9rem;
  height: 2.9rem;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid rgba(16, 47, 65, 0.12);
  background: #fff;
  color: var(--vt-blue-900);
  box-shadow: 0 12px 28px rgba(16, 47, 65, 0.07);
  transition: transform 0.24s var(--vt-ease), border-color 0.24s var(--vt-ease), color 0.24s var(--vt-ease), opacity 0.24s var(--vt-ease);
}

.amenities-nav:hover:not(:disabled) {
  transform: translateY(-1px);
  border-color: rgba(116, 200, 75, 0.48);
  color: var(--vt-green-700);
}

.amenities-nav:disabled {
  opacity: 0.34;
  cursor: not-allowed;
}

.amenities-nav svg {
  width: 1.2rem;
  height: 1.2rem;
}

@media (max-width: 640px) {
  .amenities-carousel-shell {
    grid-template-columns: 1fr;
  }

  .amenities-nav {
    display: none;
  }

  .amenities-carousel .amenity-item {
    flex-basis: min(82vw, 310px);
  }
}


/* Ajuste final: amenities em grid paginado de 4 cards, sem corte */
.amenities-pager-shell {
  position: relative;
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  overflow: visible !important;
}

.amenities-pager {
  min-width: 0;
  overflow: visible;
}

.amenities-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  overflow: visible;
}

.amenities-grid .amenity-item {
  min-width: 0;
  width: 100%;
  min-height: 112px;
  align-items: center;
  padding: 1.05rem 1.05rem;
}

.amenities-grid .amenity-item__text {
  white-space: normal;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
  font-size: clamp(0.86rem, 0.8vw, 0.95rem);
  line-height: 1.45;
}

.amenities-page-indicator {
  min-height: 1rem;
  margin-top: 0.75rem;
  text-align: center;
  color: #7a8a94;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.amenities-nav {
  width: 2.9rem;
  height: 2.9rem;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid rgba(16, 47, 65, 0.12);
  background: #fff;
  color: var(--vt-blue-900);
  box-shadow: 0 12px 28px rgba(16, 47, 65, 0.07);
  transition: transform 0.24s var(--vt-ease), border-color 0.24s var(--vt-ease), color 0.24s var(--vt-ease), opacity 0.24s var(--vt-ease);
}

.amenities-nav:hover:not(:disabled) {
  transform: translateY(-1px);
  border-color: rgba(116, 200, 75, 0.48);
  color: var(--vt-green-700);
}

.amenities-nav:disabled {
  opacity: 0.34;
  cursor: not-allowed;
}

.amenities-nav svg {
  width: 1.2rem;
  height: 1.2rem;
}

/* Neutraliza a estrutura horizontal antiga, caso exista em cache */
.amenities-carousel {
  display: none !important;
}

@media (max-width: 1180px) {
  .amenities-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .amenities-pager-shell {
    grid-template-columns: 1fr;
  }

  .amenities-nav {
    display: none;
  }

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


/* Correção final: ambientes em páginas 2x2, sem fade e sem corte */
.amenities-pager-shell {
  grid-template-columns: auto minmax(0, 680px) auto !important;
  justify-content: center;
  align-items: center;
  gap: 1.25rem;
  overflow: visible !important;
}

.amenities-pager {
  width: 100%;
  min-width: 0;
  overflow: visible !important;
}

.amenities-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(220px, 1fr)) !important;
  gap: 1rem !important;
  overflow: visible !important;
}

.amenities-grid .amenity-item {
  width: 100% !important;
  min-width: 0 !important;
  min-height: 112px;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
}

.amenities-grid .amenity-item,
.amenities-grid .amenity-item * {
  opacity: 1 !important;
  visibility: visible !important;
}

.amenities-grid .amenity-item__icon {
  color: var(--vt-blue-900) !important;
  background: var(--vt-cream-100);
  border: 1px solid rgba(16, 47, 65, 0.1);
}

.amenities-grid .amenity-item__icon svg {
  opacity: 1 !important;
  visibility: visible !important;
}

.amenities-grid .amenity-item__text {
  color: #41535e !important;
  opacity: 1 !important;
  visibility: visible !important;
  white-space: normal !important;
  overflow-wrap: normal !important;
  word-break: normal !important;
  hyphens: none !important;
}

@media (max-width: 900px) {
  .amenities-pager-shell {
    grid-template-columns: auto minmax(0, 1fr) auto !important;
  }

  .amenities-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 560px) {
  .amenities-pager-shell {
    grid-template-columns: 1fr !important;
  }

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

  .amenities-nav {
    display: none !important;
  }
}
