/* ─────────────────────────────────────────────
   SCROLL PROGRESS BAR
───────────────────────────────────────────── */
#pm-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--gold, #c9a84c), #e8c97a, var(--gold, #c9a84c));
  background-size: 200%;
  z-index: 99995;
  animation: pm-gold-shimmer 2s linear infinite;
  transition: width 0.05s linear;
  will-change: width;
}

@keyframes pm-gold-shimmer {
  0%   { background-position: 0%; }
  100% { background-position: 200%; }
}

/* ─────────────────────────────────────────────
   BACK TO TOP BUTTON
───────────────────────────────────────────── */
#pm-back-top {
  position: fixed;
  bottom: 90px;
  right: 92px;
  z-index: 8900;
  width: 46px;
  height: 46px;
  background: var(--bg-surface, #1a2938);
  border: 1px solid rgba(201, 168, 76, 0.4);
  border-radius: 50%;
  color: var(--gold, #c9a84c);
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  opacity: 0;
  transform: translateY(16px) scale(0.8);
  transition: opacity 0.3s, transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
  cursor: pointer;
}

#pm-back-top.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

#pm-back-top:hover {
  background: rgba(201, 168, 76, 0.15);
  box-shadow: 0 6px 24px rgba(201,168,76,0.25);
}

@media (max-width: 768px) {
  #pm-back-top { right: 24px; bottom: 150px; }
}

/* ─────────────────────────────────────────────
   NOISE / GRAIN TEXTURE
───────────────────────────────────────────── */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 99994;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 256px 256px;
}

/* ─────────────────────────────────────────────
   LGPD COOKIE BANNER
───────────────────────────────────────────── */
#pm-lgpd {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 99980;
  background: var(--bg-surface, #1a2938);
  border-top: 1px solid rgba(201, 168, 76, 0.25);
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  box-shadow: 0 -8px 32px rgba(0,0,0,0.35);
  transform: translateY(100%);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

#pm-lgpd.visible {
  transform: translateY(0);
}

.pm-lgpd-text {
  flex: 1;
  min-width: 260px;
  font-size: 0.83rem;
  color: var(--text-secondary, #a0b4c8);
  line-height: 1.5;
}

.pm-lgpd-text a {
  color: var(--gold, #c9a84c);
  text-decoration: underline;
}

.pm-lgpd-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.pm-lgpd-accept {
  background: var(--gold, #c9a84c);
  color: #0d1e30;
  border: none;
  padding: 10px 22px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: opacity 0.2s;
}

.pm-lgpd-accept:hover { opacity: 0.85; }

.pm-lgpd-reject {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--text-muted, #6a8299);
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 0.82rem;
  cursor: pointer;
  transition: border-color 0.2s;
}

.pm-lgpd-reject:hover { border-color: rgba(255,255,255,0.3); }

/* ─────────────────────────────────────────────
   WHATSAPP LEAD CAPTURE POPUP
───────────────────────────────────────────── */
#pm-lead-popup {
  position: fixed;
  inset: 0;
  z-index: 99985;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.7);
  /* backdrop-filter removed for 60fps performance */
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s;
}

#pm-lead-popup.open {
  opacity: 1;
  pointer-events: all;
}

.pm-lead-card {
  background: var(--bg-surface, #1a2938);
  border: 1px solid rgba(201, 168, 76, 0.3);
  border-radius: 20px;
  padding: 40px 36px;
  max-width: 420px;
  width: 90%;
  text-align: center;
  position: relative;
  box-shadow: 0 24px 80px rgba(0,0,0,0.5);
  transform: scale(0.92) translateY(16px);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

#pm-lead-popup.open .pm-lead-card {
  transform: scale(1) translateY(0);
}

.pm-lead-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  color: var(--text-muted, #6a8299);
  font-size: 20px;
  cursor: pointer;
  line-height: 1;
  padding: 4px;
}

.pm-lead-icon {
  font-size: 3rem;
  margin-bottom: 12px;
  display: block;
}

.pm-lead-card h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary, #f0ece4);
  margin-bottom: 8px;
  line-height: 1.2;
}

.pm-lead-card p {
  color: var(--text-secondary, #a0b4c8);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 24px;
}

.pm-lead-input {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-base, #0d1e30);
  border: 1px solid rgba(201, 168, 76, 0.25);
  border-radius: 10px;
  color: var(--text-primary, #f0ece4);
  font-size: 0.9rem;
  margin-bottom: 10px;
  box-sizing: border-box;
  transition: border-color 0.2s;
  outline: none;
}

.pm-lead-input:focus { border-color: rgba(201, 168, 76, 0.6); }

.pm-lead-btn {
  width: 100%;
  padding: 14px;
  background: #25d366;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: opacity 0.2s, transform 0.2s;
  margin-top: 4px;
}

.pm-lead-btn:hover { opacity: 0.9; transform: translateY(-2px); }

.pm-lead-skip {
  display: block;
  margin-top: 14px;
  font-size: 0.78rem;
  color: var(--text-muted, #6a8299);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ─────────────────────────────────────────────
   COMPARADOR (injected into main portal)
───────────────────────────────────────────── */
.pm-compare-section {
  padding: 5rem 0;
  background: var(--bg-surface, #1a2938);
  border-top: 1px solid var(--border-subtle);
}

.pm-compare-section h2 {
  text-align: center;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  color: var(--text-primary, #f0ece4);
  margin-bottom: 0.4rem;
}

.pm-compare-section > .container > .pm-sub {
  text-align: center;
  color: var(--text-muted, #6a8299);
  margin-bottom: 3rem;
  font-size: 0.95rem;
}

/* Wrapper for horizontal scroll on mobile */
.pm-ct-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  width: 100%;
  margin: 2rem 0;
  padding-bottom: 1rem;
}

.pm-ct {
  display: grid;
  grid-template-columns: 120px 1fr 1fr;
  min-width: 450px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  max-width: 760px;
  margin: 0 auto;
}

.pm-ct > div {
  padding: 12px 10px;
  font-size: 0.82rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
}

.pm-ct-h { 
  background: rgba(201,168,76,0.1); 
  font-weight: 700; 
  color: var(--text-primary);
  line-height: 1.2;
}

.pm-ct-h.gold { color: var(--gold, #c9a84c); }

.pm-ct-feat { 
  background: var(--bg-base); 
  color: var(--text-secondary);
  justify-content: flex-start !important;
}

.pm-ct-v { 
  background: var(--bg-surface); 
  color: var(--text-primary); 
  text-align: center;
}

.pm-ct-v .y { color: #4caf50; font-size: 1.1rem; }
.pm-ct-v .n { color: var(--text-muted); font-size: 1.1rem; }
.pm-ct-v .g { color: var(--gold, #c9a84c); font-weight: 700; }

.pm-compare-btns {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.pm-compare-btns a {
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.pm-compare-btns a:first-child {
  background: var(--gold, #c9a84c);
  color: #0d1e30;
}

.pm-compare-btns a:last-child {
  background: transparent;
  border: 1.5px solid rgba(201,168,76,0.4);
  color: var(--gold, #c9a84c);
}

.pm-compare-btns a:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(201,168,76,0.2);
}

/* ─────────────────────────────────────────────
   ROOM TOUR
───────────────────────────────────────────── */
.pm-tour-section {
  padding: 3rem 0;
  border-top: 1px solid var(--border-subtle);
  margin-top: 2rem;
}

.pm-tour-section h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
}

.pm-tour-section > p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 1.2rem;
}

.pm-tour-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.pm-tour-tab {
  padding: 8px 16px;
  border-radius: 50px;
  border: 1px solid var(--border-subtle);
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.pm-tour-tab.active {
  background: rgba(201,168,76,0.15);
  border-color: rgba(201,168,76,0.5);
  color: var(--gold, #c9a84c);
}

.pm-tour-display {
  position: relative;
  height: 320px;
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg-surface);
}

@media (max-width: 600px) {
  .pm-tour-display { height: 220px; }
}

.pm-tour-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: opacity 0.5s, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  opacity: 0;
  transform: scale(1.04);
}

.pm-tour-img.active {
  opacity: 1;
  transform: scale(1);
}

.pm-tour-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
}

/* ─────────────────────────────────────────────
   PARALLAX PHOTO GRID
───────────────────────────────────────────── */
.pg-main {
  transform: translateZ(0);
  will-change: background-position;
}
