/* ============================================================
   PROPERTY — Shared styles for Porto di Bari & Monte Solaro
   ============================================================ */

/* ── Hero ── */
.hero {
  position: relative;
  height: 720px;
}

.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(10,23,38,1) 0%, rgba(10,23,38,.55) 55%, rgba(10,23,38,.18) 100%);
}

.hero-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0 80px 64px;
}

.hero-back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--gold);
  font-size: 12px;
  letter-spacing: .2em;
  text-transform: uppercase;
  margin-bottom: 22px;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 14px;
}

.hero-location {
  font-size: 12px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--blue-muted);
}

.hero-title {
  font-size: 88px;
  font-weight: 600;
  color: var(--cream);
  line-height: 1;
}

/* ── Overview strip ── */
.overview {
  background: var(--navy-mid);
  padding: 0 80px;
  border-bottom: 1px solid var(--border);
}

.overview-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}

.overview-item {
  padding: 40px 0;
  border-right: 1px solid var(--border);
}

.overview-item:last-child { border-right: none; }
.overview-item + .overview-item { padding-left: 40px; }

.overview-label {
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}

.overview-value {
  font-size: 28px;
  font-weight: 600;
  color: var(--cream);
}

.overview-value.small {
  font-size: 22px;
  line-height: 1.2;
}

/* ── Description ── */
.description {
  background: var(--navy);
  padding: 100px 80px;
}

.description-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.section-label {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
}

.section-tag {
  font-size: 12px;
  letter-spacing: .36em;
  text-transform: uppercase;
  color: var(--gold);
}

.section-title {
  font-size: 52px;
  font-weight: 600;
  color: var(--cream);
  line-height: 1.04;
  margin-bottom: 26px;
}

.body-text {
  font-size: 17px;
  line-height: 1.85;
  font-weight: 300;
  color: var(--blue-soft);
  margin-bottom: 22px;
}

.features {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 16px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 16px;
}

.feature-diamond {
  width: 6px;
  height: 6px;
  background: var(--gold);
  transform: rotate(45deg);
  flex-shrink: 0;
}

.feature-text {
  font-size: 15px;
  font-weight: 300;
  color: var(--cream);
}

.description-image {
  height: 560px;
  overflow: hidden;
  border-radius: 2px;
}

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

/* ── Gallery ── */
.gallery {
  background: var(--navy-mid);
  padding: 100px 80px;
}

.gallery-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 40px;
}

.gallery-hint {
  font-size: 13px;
  font-weight: 300;
  color: var(--text-dim);
}

.tab-bar {
  display: flex;
  border-bottom: 1px solid rgba(255,255,255,.1);
}

.tab-btn {
  padding: 14px 30px;
  font-size: 12px;
  letter-spacing: .2em;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--blue-muted);
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  transition: color .2s, border-color .2s;
  margin-bottom: -1px;
}

.tab-btn.active {
  color: var(--gold);
  border-bottom-color: var(--gold);
  font-weight: 500;
}

.gallery-viewer {
  position: relative;
  width: 100%;
  height: 620px;
  background: #07101a;
  overflow: hidden;
}

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

.gallery-fade {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100px;
  background: linear-gradient(0deg, rgba(10,23,38,.85), transparent);
  pointer-events: none;
}

.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  background: rgba(10,23,38,.75);
  border: 1px solid rgba(196,163,94,.4);
  color: var(--gold);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  transition: opacity .2s, background .2s;
  user-select: none;
  z-index: 2;
}

.gallery-arrow:hover { background: rgba(10,23,38,.95); }
.gallery-arrow.prev { left: 24px; }
.gallery-arrow.next { right: 24px; }
.gallery-arrow.disabled { opacity: .2; pointer-events: none; }

.gallery-label {
  position: absolute;
  bottom: 22px;
  left: 32px;
  font-size: 15px;
  font-weight: 300;
  color: var(--cream);
  z-index: 2;
}

.gallery-counter {
  position: absolute;
  bottom: 22px;
  right: 32px;
  font-size: 12px;
  letter-spacing: .2em;
  color: var(--gold);
  background: rgba(10,23,38,.7);
  padding: 6px 16px;
  z-index: 2;
}

.thumb-strip {
  display: flex;
  gap: 6px;
  margin-top: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: thin;
  scrollbar-color: var(--gold) rgba(255,255,255,.05);
}

.thumb-strip::-webkit-scrollbar { height: 4px; }
.thumb-strip::-webkit-scrollbar-track { background: rgba(255,255,255,.05); }
.thumb-strip::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 2px; }

.thumb {
  width: 136px;
  height: 90px;
  flex-shrink: 0;
  cursor: pointer;
  overflow: hidden;
  outline: 2px solid transparent;
  outline-offset: -2px;
  opacity: .55;
  transition: opacity .2s, outline-color .2s;
}

.thumb.active {
  outline-color: var(--gold);
  opacity: 1;
}

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

/* ── Plantas ── */
.plantas {
  background: var(--navy);
  padding: 100px 80px;
}

.plantas-title {
  font-size: 56px;
  font-weight: 600;
  color: var(--cream);
  line-height: 1.04;
  margin-bottom: 52px;
}

.planta-bloco {
  margin-bottom: 64px;
}

.planta-bloco:last-child { margin-bottom: 0; }

.planta-bloco-header {
  display: flex;
  align-items: baseline;
  gap: 20px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-gold);
}

.planta-bloco-tag {
  font-size: 11px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--gold);
}

.planta-bloco-desc {
  font-size: 14px;
  font-weight: 300;
  color: var(--blue-muted);
}

.planta-img-full {
  background: #f5f3f0;
  border-radius: 2px;
  overflow: hidden;
}

.planta-img-full img {
  width: 100%;
  display: block;
  object-fit: contain;
}

/* ── Location ── */
.location-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.location-map {
  position: relative;
  min-height: 520px;
  overflow: hidden;
}

.location-map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  filter: grayscale(10%) contrast(1.05);
}

.location-info {
  background: var(--navy-mid);
  padding: 80px 72px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.location-title {
  font-size: 48px;
  font-weight: 600;
  color: var(--cream);
  line-height: 1.04;
  margin-bottom: 22px;
}

.location-desc {
  font-size: 17px;
  line-height: 1.8;
  font-weight: 300;
  color: var(--blue-soft);
  max-width: 420px;
  margin-bottom: 34px;
}

.location-items {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.location-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.location-vline {
  width: 1px;
  background: var(--gold);
  height: 44px;
  flex-shrink: 0;
  margin-top: 4px;
}

.location-item-label {
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 4px;
}

.location-item-text {
  font-size: 15px;
  font-weight: 300;
  color: var(--cream);
}

/* ── Apartamento (features) ── */
.apartamento {
  background: var(--navy);
  padding-top: 80px;
}

.apartamento-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 620px;
}

.apartamento-content {
  padding: 90px 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.apartamento-title {
  font-size: 52px;
  font-weight: 700;
  color: var(--cream);
  line-height: 1.04;
  margin-bottom: 36px;
}

.feat-list {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.feat-list li {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  font-size: 15px;
  font-weight: 300;
  color: var(--blue-soft);
  line-height: 1.5;
  list-style: none;
}

.feat-list li::before {
  content: '—';
  color: var(--gold);
  font-weight: 400;
  flex-shrink: 0;
  margin-top: 1px;
}

.apartamento-img {
  position: relative;
  overflow: hidden;
}

.apartamento-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── Área de Lazer ── */
.lazer-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  min-height: 640px;
}

.lazer-img {
  position: relative;
  overflow: hidden;
}

.lazer-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.lazer-content {
  background: var(--navy-mid);
  padding: 80px 72px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.lazer-title {
  font-size: 44px;
  font-weight: 700;
  color: var(--cream);
  line-height: 1.08;
  margin-bottom: 36px;
}

.lazer-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 28px;
}

.lazer-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  font-weight: 300;
  color: var(--blue-soft);
  line-height: 1.4;
}

.lazer-item::before {
  content: '+';
  color: var(--gold);
  font-weight: 500;
  font-size: 16px;
  flex-shrink: 0;
  margin-top: -1px;
}

/* ── Map embed ── */
.map-embed-section {
  position: relative;
}

.map-embed-frame {
  width: 100%;
  height: 520px;
  border: none;
  display: block;
  filter: grayscale(20%);
}

/* ── Planta thumbnails ── */
.planta-grid-thumbs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.planta-thumb {
  cursor: zoom-in;
  background: #f0ede8;
  border-radius: 2px;
  overflow: hidden;
  border: 1px solid rgba(196,163,94,.18);
  transition: box-shadow .3s;
}

.planta-thumb:hover { box-shadow: 0 8px 32px rgba(0,0,0,.28); }

.planta-thumb img {
  width: 100%;
  display: block;
  height: 260px;
  object-fit: contain;
  transition: transform .4s ease;
}

.planta-thumb:hover img { transform: scale(1.03); }

.planta-thumb-footer {
  background: var(--navy);
  padding: 14px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.planta-thumb-name {
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--cream);
}

.planta-thumb-hint {
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ── Lightbox ── */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(7,16,26,.96);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
}

.lightbox.open {
  opacity: 1;
  pointer-events: all;
}

.lightbox-img {
  max-width: 92vw;
  max-height: 88vh;
  object-fit: contain;
  display: block;
}

.lb-close {
  position: absolute;
  top: 24px; right: 32px;
  background: none;
  border: 1px solid rgba(196,163,94,.5);
  color: var(--gold);
  font-size: 20px;
  width: 44px; height: 44px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}

.lb-close:hover { background: var(--gold); color: var(--navy); }

/* ── Description V3 — O empreendimento ── */
.desc-v3-top {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 72px;
  align-items: start;
  margin-bottom: 56px;
}

.desc-v3-title {
  font-size: 60px;
  font-weight: 600;
  color: var(--cream);
  line-height: 1.0;
}

.desc-v3-paras {
  padding-top: 8px;
}

.desc-v3-para-muted {
  font-size: 17px;
  line-height: 1.9;
  font-weight: 300;
  color: var(--blue-muted);
}

.desc-v3-media {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 28px;
  height: 500px;
}

.desc-v3-hero-img {
  height: 100%;
  overflow: hidden;
  border-radius: 2px;
}

.desc-v3-hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.desc-v3-right {
  display: flex;
  flex-direction: column;
  gap: 28px;
  height: 100%;
}

.desc-v3-sub-img {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  border-radius: 2px;
}

.desc-v3-sub-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.desc-v3-data {
  border: 1px solid var(--border-gold);
  padding: 24px 26px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  flex-shrink: 0;
}

.desc-v3-stat-label {
  font-size: 10px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}

.desc-v3-stat-value {
  font-size: 24px;
  font-weight: 600;
  color: var(--cream);
  line-height: 1.2;
}

.desc-v3-stat-value.small {
  font-size: 16px;
}

@media (max-width: 900px) {
  /* ── Hero ── */
  .hero { height: 440px; }
  .hero-title { font-size: 44px; }
  .hero-content { padding: 0 28px 44px; }
  .hero-back { font-size: 11px; }
  .hero-meta { flex-wrap: wrap; gap: 10px; }
  .badge { flex-shrink: 0; white-space: nowrap; }

  /* ── Overview: 2-column wrap (sem scroll horizontal) ── */
  .overview { padding: 0 28px; }
  .overview-grid {
    display: flex;
    flex-wrap: wrap;
    min-width: unset;
    padding: 0;
  }
  .overview-item {
    flex: 0 0 50%;
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 22px 0;
  }
  .overview-item + .overview-item { padding-left: 0; }
  .overview-item:nth-child(odd)  { padding-right: 20px; }
  .overview-item:nth-child(even) { padding-left: 20px; border-left: 1px solid var(--border); }
  .overview-item:last-child { border-bottom: none; }
  .overview-value { font-size: 20px; }
  .overview-value.small { font-size: 15px; }

  /* ── Description ── */
  .description { padding: 56px 28px; }
  .description-grid { grid-template-columns: 1fr; gap: 36px; }
  .description-image { height: 280px; }
  .section-title { font-size: 34px; }
  .desc-v3-top { grid-template-columns: 1fr; gap: 20px; }
  .desc-v3-title { font-size: 32px; }
  .desc-v3-media { grid-template-columns: 1fr; height: auto; }
  .desc-v3-hero-img { height: 260px; }
  .desc-v3-right { height: auto; }
  .desc-v3-sub-img { height: 180px; flex: none; }
  .desc-v3-data { grid-template-columns: 1fr 1fr; }

  /* ── Gallery ── */
  .gallery { padding: 56px 28px; }
  .gallery-header { flex-direction: column; align-items: flex-start; gap: 8px; }
  .gallery-hint { display: none; }
  .tab-bar { overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .tab-bar::-webkit-scrollbar { display: none; }
  .tab-btn { flex-shrink: 0; padding: 12px 18px; font-size: 11px; }
  .gallery-viewer { height: 280px; }
  .gallery-arrow { width: 40px; height: 40px; font-size: 18px; }
  .gallery-arrow.prev { left: 12px; }
  .gallery-arrow.next { right: 12px; }

  /* ── Plantas ── */
  .plantas { padding: 56px 28px; }
  .plantas-title { font-size: 34px; margin-bottom: 32px; }
  .planta-grid-thumbs { grid-template-columns: 1fr; }

  /* ── Localização ── */
  .location-grid { grid-template-columns: 1fr; }
  .location-map { min-height: 280px; }
  .location-info { padding: 48px 28px; }
  .location-title { font-size: 32px; }
  .location-desc { font-size: 15px; max-width: 100%; }

  /* ── Apartamento ── */
  .apartamento { padding-top: 56px; }
  .apartamento-grid { display: flex; flex-direction: column; min-height: auto; }
  .apartamento-content { padding: 48px 28px; }
  .apartamento-title { font-size: 34px; }
  .apartamento-img { height: 300px; position: relative; }

  /* ── Lazer ── */
  .lazer-grid { display: flex; flex-direction: column; min-height: auto; }
  .lazer-img { height: 280px; position: relative; }
  .lazer-content { padding: 48px 28px; }
  .lazer-title { font-size: 32px; }
  .lazer-cols { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .hero { height: 360px; }
  .hero-title { font-size: 34px; }
  .overview-item { padding: 18px 0; }
  .overview-value { font-size: 18px; }
  .gallery-viewer { height: 220px; }
  .desc-v3-title { font-size: 26px; }
  .section-title { font-size: 26px; }
  .plantas-title { font-size: 26px; }
  .location-title { font-size: 26px; }
  .apartamento-title { font-size: 26px; }
  .lazer-title { font-size: 24px; }
}