/* =============================================
   IMOVEL.CSS — Shared CSS for Property Detail Pages
   Urban Nest Real Estate — Modern Urban Living
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;700;900&family=Manrope:wght@300;400;500;700&display=swap');

:root {
  --navy:        #121826;
  --navy-dark:   #0a0f1a;
  --teal:        #00E5FF;
  --teal-dark:   #00B8CC;
  --accent:      #00E5FF;
  --cream:       #F8FAFC;
  --white:       #ffffff;
  --muted:       #64748B;
  --border:      #E2E8F0;
  --text:        #121826;
  --font-body:   'Manrope', sans-serif;
  --font-display:'Outfit', sans-serif;
  --ease:        cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* === TOPBAR === */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 40px;
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(30,53,94,0.08);
}

.topbar-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.topbar-logo svg {
  color: var(--teal);
}

.topbar-logo-text {
  display: flex;
  flex-direction: column;
}

.topbar-logo-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  color: var(--navy);
  letter-spacing: -0.02em;
}

.topbar-logo-creci {
  font-size: 11px;
  color: var(--muted);
  font-weight: 500;
}

.topbar-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s;
  text-decoration: none;
}

.topbar-back:hover { color: var(--navy); }

.topbar-back svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

/* === PAGE HERO === */
.prop-hero {
  padding: 48px 40px 0;
  max-width: 1320px;
  margin: 0 auto;
}

.prop-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.prop-breadcrumb a { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }
.prop-breadcrumb span { opacity: 0.5; }

.prop-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.prop-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.prop-badge-row {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.prop-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 14px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.prop-badge-venda {
  background: rgba(0, 229, 255, 0.1);
  color: var(--teal);
  border: 1px solid rgba(0, 229, 255, 0.25);
}

.prop-badge-aluguel {
  background: rgba(18, 24, 38, 0.08);
  color: var(--navy);
  border: 1px solid rgba(18, 24, 38, 0.2);
}

.prop-badge-cidade {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
}

/* === GALLERY === */
.prop-gallery {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 40px 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 400px 240px;
  gap: 10px;
}

.prop-gallery-main {
  grid-row: 1 / 3;
  border-radius: 16px 0 0 16px;
  overflow: hidden;
  cursor: pointer;
}

.prop-gallery-secondary {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 10px;
}

.prop-gallery-thumb {
  border-radius: 0;
  overflow: hidden;
  cursor: pointer;
  position: relative;
}

.prop-gallery-thumb:first-child { border-radius: 0 16px 0 0; }
.prop-gallery-thumb:last-child  { border-radius: 0 0 16px 0; }

.prop-gallery img,
.prop-gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.prop-gallery img:hover,
.prop-gallery-main img:hover {
  transform: scale(1.04);
}

.gallery-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #c5cfe0 0%, #e8edf5 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--muted);
  font-size: 14px;
}

.gallery-placeholder svg {
  width: 48px;
  height: 48px;
  opacity: 0.4;
}

/* === BODY LAYOUT === */
.prop-body {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 40px 80px;
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 60px;
  align-items: start;
}



.prop-price-block {
  background: var(--white);
  border-radius: 16px;
  padding: 28px 32px;
  margin-bottom: 32px;
  border: 1px solid var(--border);
  box-shadow: 0 2px 20px rgba(30,53,94,0.06);
}

.prop-price-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.prop-price-value {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 900;
  color: var(--navy);
  letter-spacing: -0.04em;
  line-height: 1;
}

.prop-price-period {
  font-size: 18px;
  font-weight: 400;
  color: var(--muted);
  margin-left: 4px;
}

/* === SPECS GRID === */
.prop-specs {
  background: var(--white);
  border-radius: 16px;
  padding: 28px 32px;
  margin-bottom: 32px;
  border: 1px solid var(--border);
  box-shadow: 0 2px 20px rgba(30,53,94,0.06);
}

.prop-specs-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.prop-specs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.prop-spec-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px;
  background: var(--cream);
  border-radius: 10px;
}

.prop-spec-icon {
  width: 28px;
  height: 28px;
  margin-bottom: 6px;
  color: var(--navy);
}

.prop-spec-value {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.03em;
}

.prop-spec-label {
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
}

/* === DESCRIPTION === */
.prop-description {
  background: var(--white);
  border-radius: 16px;
  padding: 28px 32px;
  margin-bottom: 32px;
  border: 1px solid var(--border);
  box-shadow: 0 2px 20px rgba(30,53,94,0.06);
}

.prop-desc-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.prop-desc-text {
  font-size: 15px;
  line-height: 1.75;
  color: #3a4a60;
}

.prop-features {
  margin-top: 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.prop-feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text);
  font-weight: 500;
}

.prop-feature-item::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--navy);
  flex-shrink: 0;
}

/* === LOCATION === */
.prop-location {
  background: var(--white);
  border-radius: 16px;
  padding: 28px 32px;
  border: 1px solid var(--border);
  box-shadow: 0 2px 20px rgba(30,53,94,0.06);
}

.prop-location-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

.prop-location-addr {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.prop-location-map {
  border-radius: 12px;
  overflow: hidden;
  height: 200px;
  background: #dde4f0;
}

.prop-location-map iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* === SIDEBAR === */
.prop-sidebar {
  position: sticky;
  top: 90px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.prop-contact-card {
  background: var(--white);
  border-radius: 20px;
  padding: 32px;
  border: 1px solid var(--border);
  box-shadow: 0 4px 30px rgba(30,53,94,0.10);
}

.prop-contact-title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.03em;
  margin-bottom: 6px;
}

.prop-contact-sub {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 24px;
  line-height: 1.5;
}

.prop-btn-whatsapp {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 16px;
  background: #25d366;
  color: var(--white);
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.25s, transform 0.2s;
  margin-bottom: 12px;
}

.prop-btn-whatsapp:hover {
  background: #1da851;
  transform: translateY(-2px);
}

.prop-btn-whatsapp svg {
  width: 22px;
  height: 22px;
}

.prop-btn-phone {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px;
  background: transparent;
  border: 2px solid var(--navy);
  color: var(--navy);
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s;
}

.prop-btn-phone:hover {
  background: var(--navy);
  color: var(--white);
}

.prop-agent-card {
  background: var(--white);
  border-radius: 20px;
  padding: 24px;
  border: 1px solid var(--border);
  box-shadow: 0 2px 20px rgba(30,53,94,0.06);
  display: flex;
  align-items: center;
  gap: 16px;
}

.prop-agent-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 900;
  color: var(--white);
  letter-spacing: -0.04em;
}

.prop-agent-name {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.02em;
  margin-bottom: 2px;
}

.prop-agent-role {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
}

.prop-creci-badge {
  display: inline-block;
  margin-top: 6px;
  padding: 2px 10px;
  background: rgba(30,53,94,0.1);
  color: var(--navy);
  border-radius: 100px;
  font-size: 11px;
  font-weight: 600;
}

/* === DISCLAIMER BOX === */
.prop-disclaimer {
  background: rgba(30, 53, 94, 0.05);
  border: 1px solid rgba(30, 53, 94, 0.12);
  border-radius: 12px;
  padding: 16px 20px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
}

/* === FOOTER === */
.prop-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.7);
  text-align: center;
  padding: 32px 40px;
  font-size: 13px;
  line-height: 1.6;
}

.prop-footer strong {
  color: var(--white);
  font-weight: 700;
}

.prop-footer a {
  color: rgba(255,255,255,0.6);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* === LIGHTBOX === */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10, 16, 30, 0.95);
  z-index: 9000;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 16px;
  padding: 40px;
}

.lightbox.open { display: flex; }

.lightbox-img {
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 12px;
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  color: white;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
}
.lightbox-close:hover { background: rgba(255,255,255,0.25); }

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .prop-hero,
  .prop-body { padding: 24px 20px; }
  .prop-gallery { padding: 0 20px 24px; grid-template-columns: 1fr; grid-template-rows: 280px 160px; }
  .prop-gallery-main { border-radius: 16px; grid-row: 1; }
  .prop-gallery-secondary { grid-template-columns: 1fr 1fr; grid-template-rows: 160px; }
  .prop-gallery-thumb:first-child { border-radius: 12px 0 0 12px; }
  .prop-gallery-thumb:last-child  { border-radius: 0 12px 12px 0; }
  .prop-body { grid-template-columns: 1fr; }
  .prop-sidebar { position: static; }
  .prop-specs-grid { grid-template-columns: repeat(2, 1fr); }
  .topbar { padding: 12px 20px; }
}

@media (max-width: 600px) {
  .prop-specs-grid { grid-template-columns: 1fr 1fr; }
  .prop-features { grid-template-columns: 1fr; }
  .prop-gallery-secondary { display: none; }
  .prop-gallery { grid-template-rows: 260px; }
}
