
/* === from imovel.html === */
/* ========== PROPERTY DETAIL ========== */
    .detail-section {
      padding: 32px 0 64px;
      background: var(--bg);
    }
    .breadcrumb {
      font-size: 13px;
      color: var(--text-muted);
      margin-bottom: 20px;
      display: flex;
      flex-wrap: wrap;
      gap: 6px;
      align-items: center;
    }
    .breadcrumb a { color: var(--blue); font-weight: 500; }
    .breadcrumb a:hover { color: var(--orange); }
    .breadcrumb span { opacity: 0.5; }

    .detail-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 28px;
      align-items: start;
    }

    /* Gallery */
    .gallery {
      background: white;
      border-radius: 16px;
      overflow: hidden;
      box-shadow: var(--shadow);
    }
    .gallery-main {
      position: relative;
      height: 420px;
      background: #e5e7eb;
    }
    .gallery-main img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
    .gallery-badge {
      position: absolute;
      top: 16px;
      left: 16px;
      background: white;
      color: var(--blue);
      font-size: 12px;
      font-weight: 700;
      padding: 6px 14px;
      border-radius: 20px;
      box-shadow: 0 2px 10px rgba(0,0,0,0.12);
    }
    .gallery-thumbs {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 8px;
      padding: 12px;
    }
    .gallery-thumbs button {
      border: 2px solid transparent;
      border-radius: 10px;
      overflow: hidden;
      cursor: pointer;
      padding: 0;
      height: 72px;
      background: none;
      transition: border-color 0.2s;
    }
    .gallery-thumbs button.active,
    .gallery-thumbs button:hover {
      border-color: var(--orange);
    }
    .gallery-thumbs img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    /* Info card */
    .detail-sidebar {
      position: sticky;
      top: 88px;
    }
    .info-card {
      background: white;
      border-radius: 16px;
      padding: 28px 24px;
      box-shadow: var(--shadow);
      margin-bottom: 16px;
    }
    .info-card h1 {
      font-size: 22px;
      font-weight: 800;
      color: var(--text);
      margin-bottom: 6px;
      line-height: 1.3;
    }
    .info-location {
      font-size: 14px;
      color: var(--text-muted);
      margin-bottom: 16px;
      display: flex;
      align-items: center;
      gap: 6px;
    }
    .info-price {
      font-size: 28px;
      font-weight: 800;
      color: var(--orange);
      margin-bottom: 20px;
    }
    .info-meta {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 12px;
      margin-bottom: 24px;
      padding-bottom: 20px;
      border-bottom: 1px solid var(--border);
    }
    .meta-item {
      background: var(--bg);
      border-radius: 10px;
      padding: 12px;
      text-align: center;
    }
    .meta-item strong {
      display: block;
      font-size: 18px;
      font-weight: 800;
      color: var(--blue);
    }
    .meta-item span {
      font-size: 12px;
      color: var(--text-muted);
      font-weight: 500;
    }
    .btn-wa-detail {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      width: 100%;
      background: #25d366;
      color: white;
      padding: 14px;
      border-radius: 10px;
      font-weight: 700;
      font-size: 15px;
      margin-bottom: 10px;
      transition: background 0.2s;
    }
    .btn-wa-detail:hover { background: #1ebe57; }
    .btn-call {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      width: 100%;
      background: var(--blue-btn);
      color: white;
      padding: 13px;
      border-radius: 10px;
      font-weight: 600;
      font-size: 14px;
      transition: background 0.2s;
    }
    .btn-call:hover { background: var(--blue-dark); }
    .code-ref {
      text-align: center;
      font-size: 12px;
      color: var(--text-muted);
      margin-top: 14px;
    }

    /* Description */
    .detail-body {
      margin-top: 28px;
      background: white;
      border-radius: 16px;
      padding: 28px 28px 32px;
      box-shadow: var(--shadow);
    }
    .detail-body h2 {
      font-size: 18px;
      font-weight: 800;
      color: var(--blue);
      margin-bottom: 14px;
    }
    .detail-body p {
      font-size: 15px;
      color: #4b5563;
      line-height: 1.7;
      margin-bottom: 14px;
    }
    .features-list {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 10px 24px;
      margin-top: 8px;
      list-style: none;
    }
    .features-list li {
      font-size: 14px;
      color: var(--text);
      display: flex;
      align-items: center;
      gap: 8px;
    }
    .features-list li::before {
      content: "✓";
      color: var(--orange);
      font-weight: 800;
      font-size: 14px;
    }

    /* Similar */
    .similar-section {
      margin-top: 40px;
    }
    .similar-section h2 {
      font-size: 20px;
      font-weight: 800;
      color: var(--blue);
      margin-bottom: 20px;
    }

    @media (max-width: 900px) {
      .detail-grid {
        grid-template-columns: 1fr;
      }
      .detail-sidebar {
        position: static;
      }
      .gallery-main {
        height: 280px;
      }
      .features-list {
        grid-template-columns: 1fr;
      }
    }
    @media (max-width: 480px) {
      .gallery-main { height: 220px; }
      .gallery-thumbs { grid-template-columns: repeat(4, 1fr); gap: 6px; }
      .gallery-thumbs button { height: 56px; }
      .info-card h1 { font-size: 20px; }
      .info-price { font-size: 24px; }
      .info-meta { grid-template-columns: repeat(2, 1fr); }
    }

    /* ==========


/* === from anuncie.html === */
/* ========== ANUNCIE PAGE ========== */
    .anuncie-hero {
      background: linear-gradient(135deg, #0f2a52 0%, #1e4a8c 60%, #2563eb 100%);
      color: white;
      padding: 64px 0 72px;
      text-align: center;
    }
    .anuncie-hero h1 {
      font-size: 40px;
      font-weight: 800;
      line-height: 1.15;
      margin-bottom: 16px;
      letter-spacing: -0.5px;
    }
    .anuncie-hero p {
      font-size: 17px;
      opacity: 0.95;
      max-width: 560px;
      margin: 0 auto 28px;
      line-height: 1.6;
    }
    .btn-anuncie-hero {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      background: var(--orange);
      color: white;
      padding: 14px 32px;
      border-radius: 8px;
      font-weight: 700;
      font-size: 15px;
      transition: background 0.2s, transform 0.15s;
      box-shadow: 0 6px 20px rgba(232, 90, 28, 0.35);
    }
    .btn-anuncie-hero:hover {
      background: var(--orange-dark);
      transform: translateY(-2px);
    }

    .anuncie-benefits {
      padding: 64px 0 48px;
      background: white;
    }
    .anuncie-benefits .section-title {
      text-align: center;
      margin-bottom: 40px;
    }
    .anuncie-benefits .section-title h2 {
      font-size: 26px;
      font-weight: 800;
      color: var(--blue);
    }
    .benefits-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 28px;
    }
    .benefit-card {
      background: var(--bg);
      border-radius: 14px;
      padding: 32px 24px;
      text-align: center;
      border: 1px solid var(--border);
      transition: transform 0.2s, box-shadow 0.2s;
    }
    .benefit-card:hover {
      transform: translateY(-4px);
      box-shadow: var(--shadow);
    }
    .benefit-icon {
      width: 56px;
      height: 56px;
      background: #eff6ff;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      margin: 0 auto 18px;
      color: var(--blue-btn);
    }
    .benefit-card h3 {
      font-size: 16px;
      font-weight: 700;
      color: var(--blue);
      margin-bottom: 10px;
    }
    .benefit-card p {
      font-size: 14px;
      color: var(--text-muted);
      line-height: 1.6;
    }

    .anuncie-form-section {
      padding: 48px 0 72px;
      background: var(--bg);
    }
    .form-card {
      max-width: 640px;
      margin: 0 auto;
      background: white;
      border-radius: 16px;
      padding: 40px 36px;
      box-shadow: var(--shadow);
    }
    .form-card h2 {
      font-size: 22px;
      font-weight: 800;
      color: var(--blue);
      margin-bottom: 8px;
      text-align: center;
    }
    .form-card .form-sub {
      text-align: center;
      font-size: 14px;
      color: var(--text-muted);
      margin-bottom: 28px;
    }
    .form-group {
      margin-bottom: 18px;
    }
    .form-group label {
      display: block;
      font-size: 13px;
      font-weight: 600;
      color: var(--text);
      margin-bottom: 6px;
    }
    .form-group input,
    .form-group select,
    .form-group textarea {
      width: 100%;
      padding: 12px 14px;
      border: 1px solid var(--border);
      border-radius: 8px;
      font-size: 15px;
      font-family: inherit;
      color: var(--text);
      background: white;
      transition: border-color 0.2s, box-shadow 0.2s;
    }
    .form-group input:focus,
    .form-group select:focus,
    .form-group textarea:focus {
      outline: none;
      border-color: var(--orange);
      box-shadow: 0 0 0 3px rgba(232, 90, 28, 0.15);
    }
    .form-group textarea {
      min-height: 110px;
      resize: vertical;
    }
    .form-row {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 16px;
    }
    .form-row-3 {
      display: grid;
      grid-template-columns: 1fr 1fr 1fr;
      gap: 16px;
    }
    .form-section-title {
      font-size: 14px;
      font-weight: 700;
      color: var(--blue);
      margin: 24px 0 14px;
      padding-bottom: 8px;
      border-bottom: 1px solid var(--border);
      text-transform: uppercase;
      letter-spacing: 0.4px;
    }
    .form-section-title:first-of-type {
      margin-top: 0;
    }
    .form-group.error input,
    .form-group.error select,
    .form-group.error textarea {
      border-color: #ef4444;
      box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12);
    }
    .form-error {
      display: none;
      font-size: 12px;
      color: #ef4444;
      margin-top: 5px;
      font-weight: 500;
    }
    .form-group.error .form-error {
      display: block;
    }
    .form-success {
      display: none;
      background: #ecfdf5;
      border: 1px solid #a7f3d0;
      color: #065f46;
      padding: 14px 16px;
      border-radius: 8px;
      font-size: 14px;
      font-weight: 600;
      margin-bottom: 20px;
      text-align: center;
    }
    .form-success.show {
      display: block;
    }
    .btn-submit {
      width: 100%;
      background: var(--blue-btn);
      color: white;
      border: none;
      padding: 14px;
      border-radius: 8px;
      font-weight: 700;
      font-size: 15px;
      cursor: pointer;
      margin-top: 8px;
      transition: background 0.2s;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
    }
    .btn-submit:hover {
      background: var(--blue-dark);
    }
    .btn-submit:disabled {
      opacity: 0.65;
      cursor: not-allowed;
    }
    @media (max-width: 600px) {
      .form-row-3 {
        grid-template-columns: 1fr;
      }
    }

    @media (max-width: 768px) {
      .anuncie-hero {
        padding: 48px 0 56px;
      }
      .anuncie-hero h1 {
        font-size: 28px;
      }
      .anuncie-hero p {
        font-size: 15px;
      }
      .benefits-grid {
        grid-template-columns: 1fr;
        gap: 16px;
      }
      .form-card {
        padding: 28px 20px;
      }
      .form-row {
        grid-template-columns: 1fr;
      }
      .btn-anuncie-hero {
        width: 100%;
        justify-content: center;
      }
    }

    /* ==========


/* === from sobre.html === */
/* ========== ABOUT PAGE ========== */
    .page-hero-bar {
      background: #f1f5f9;
      padding: 28px 0;
      border-bottom: 1px solid var(--border);
    }
    .page-hero-bar h1 {
      font-size: 28px;
      font-weight: 700;
      color: var(--blue);
    }
    .about-section {
      padding: 48px 0 64px;
      background: white;
    }
    .about-grid {
      display: grid;
      grid-template-columns: 1.2fr 0.9fr;
      gap: 48px;
      align-items: start;
    }
    .about-text p {
      font-size: 15px;
      color: #4b5563;
      line-height: 1.75;
      margin-bottom: 20px;
    }
    .about-text strong {
      color: var(--text);
    }
    .group-companies {
      margin-top: 36px;
    }
    .group-title {
      font-size: 15px;
      font-weight: 600;
      color: var(--text);
      margin-bottom: 16px !important;
    }
    .group-logos {
      display: flex;
      align-items: center;
      gap: 32px;
      flex-wrap: wrap;
    }
    .group-logo {
      display: flex;
      align-items: center;
      gap: 10px;
    }
    .logo-icon-sm {
      width: 36px;
      height: 36px;
      background: linear-gradient(135deg, var(--orange), #f97316);
      border-radius: 8px;
      display: flex;
      align-items: center;
      justify-content: center;
      color: white;
    }
    .group-logo strong {
      display: block;
      font-size: 16px;
      color: var(--blue);
      line-height: 1.1;
    }
    .group-logo span {
      font-size: 11px;
      color: var(--orange);
      font-weight: 600;
    }
    .rv-mark {
      width: 42px;
      height: 42px;
      background: linear-gradient(135deg, #1e3a8c, #3b82f6);
      border-radius: 8px;
      display: flex;
      align-items: center;
      justify-content: center;
      color: white;
      font-weight: 800;
      font-size: 14px;
      letter-spacing: -0.5px;
    }
    .rv-logo span {
      color: #64748b;
      letter-spacing: 1px;
      font-size: 10px;
    }
    .about-photo h3 {
      font-size: 15px;
      font-weight: 600;
      color: var(--text);
      margin-bottom: 12px;
    }
    .photo-frame {
      border-radius: 8px;
      overflow: hidden;
      border: 1px solid var(--border);
      box-shadow: var(--shadow);
    }
    .photo-frame img {
      width: 100%;
      height: 280px;
      object-fit: cover;
    }
    @media (max-width: 768px) {
      .about-grid {
        grid-template-columns: 1fr;
        gap: 32px;
      }
      .page-hero-bar h1 {
        font-size: 24px;
      }
      .about-section {
        padding: 32px 0 48px;
      }
      .photo-frame img {
        height: 220px;
      }
    }

    /* ==========


/* === from financiamento.html === */
/* ========== FINANCIAMENTO PAGE ========== */
    .fin-hero {
      background: linear-gradient(135deg, #0c2d6b 0%, #1a4a9e 50%, #2563eb 100%);
      color: white;
      padding: 56px 0 0;
      overflow: hidden;
      position: relative;
    }
    .fin-hero-inner {
      display: grid;
      grid-template-columns: 1fr 1.1fr;
      gap: 32px;
      align-items: end;
      min-height: 380px;
    }
    .fin-hero-text {
      padding-bottom: 56px;
    }
    .fin-label {
      display: inline-block;
      font-size: 12px;
      font-weight: 600;
      letter-spacing: 1.5px;
      opacity: 0.85;
      margin-bottom: 16px;
    }
    .fin-hero-text h1 {
      font-size: 42px;
      font-weight: 800;
      line-height: 1.15;
      letter-spacing: -0.5px;
    }
    .fin-hero-visual {
      position: relative;
      height: 100%;
      display: flex;
      align-items: flex-end;
      justify-content: flex-end;
    }
    .fin-hero-visual img {
      width: 100%;
      max-width: 520px;
      height: 340px;
      object-fit: cover;
      border-radius: 16px 16px 0 0;
      box-shadow: 0 -8px 40px rgba(0,0,0,0.2);
    }
    .caixa-badge {
      position: absolute;
      top: 24px;
      right: 24px;
      background: white;
      color: #0033a0;
      padding: 12px 16px;
      border-radius: 8px;
      text-align: center;
      box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    }
    .caixa-badge strong {
      display: block;
      font-size: 20px;
      font-weight: 800;
      letter-spacing: 1px;
      line-height: 1;
    }
    .caixa-badge span {
      display: block;
      font-size: 9px;
      font-weight: 600;
      margin-top: 4px;
      line-height: 1.3;
      color: #1e40af;
    }
    .fin-content {
      padding: 56px 0 72px;
      background: white;
    }
    .fin-text {
      max-width: 820px;
      margin: 0 auto;
    }
    .fin-text p {
      font-size: 16px;
      color: #374151;
      line-height: 1.75;
      margin-bottom: 22px;
    }
    .fin-highlight {
      font-weight: 700;
      color: var(--text) !important;
    }
    .fin-cta-wrap {
      text-align: center;
      margin-top: 40px;
    }
    .btn-fin-cta {
      display: inline-flex;
      align-items: center;
      gap: 12px;
      background: var(--orange);
      color: white;
      padding: 16px 36px;
      border-radius: 50px;
      font-weight: 700;
      font-size: 16px;
      transition: background 0.2s, transform 0.15s;
      box-shadow: 0 6px 20px rgba(232, 90, 28, 0.35);
    }
    .btn-fin-cta:hover {
      background: var(--orange-dark);
      transform: translateY(-2px);
    }
    @media (max-width: 900px) {
      .fin-hero-inner {
        grid-template-columns: 1fr;
        min-height: auto;
      }
      .fin-hero-text {
        padding-bottom: 24px;
        text-align: center;
      }
      .fin-hero-text h1 {
        font-size: 32px;
      }
      .fin-hero-visual {
        justify-content: center;
      }
      .fin-hero-visual img {
        max-width: 100%;
        height: 260px;
        border-radius: 12px 12px 0 0;
      }
      .caixa-badge {
        top: 12px;
        right: 12px;
        padding: 8px 12px;
      }
      .caixa-badge strong {
        font-size: 16px;
      }
    }
    @media (max-width: 480px) {
      .fin-hero-text h1 {
        font-size: 26px;
      }
      .fin-text p {
        font-size: 15px;
      }
      .btn-fin-cta {
        width: 100%;
        justify-content: center;
        padding: 15px 24px;
        font-size: 15px;
      }
    }

    /* ==========


/* === from imoveis.html === */
/* ========== LISTING PAGE ========== */
    .listing-section {
      padding: 40px 0 64px;
      background: var(--bg);
    }
    .listing-search {
      margin-bottom: 36px;
    }
    .listing-search-box {
      margin: 0;
      box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    }
    .results-count {
      font-size: 22px;
      font-weight: 700;
      color: var(--blue);
      margin-bottom: 28px;
    }
    @media (max-width: 768px) {
      .listing-section {
        padding: 24px 0 48px;
      }
      .results-count {
        font-size: 18px;
        margin-bottom: 20px;
      }
    }

    /* ==========


.info-meta-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	text-align: center;
}
.info-meta-item .meta-icon {
	color: #1e4a7a;
	margin-bottom: 2px;
}
.info-meta-item strong {
	font-size: 1.1rem;
	color: #0f2744;
}
.info-meta-item span {
	font-size: 0.75rem;
	color: #6b7c8d;
	text-transform: uppercase;
	letter-spacing: 0.02em;
}


/* Galeria com setas + zoom */
.gallery-main {
	position: relative;
}
.gallery-zoom {
	display: block;
	width: 100%;
	height: 100%;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: zoom-in;
	position: relative;
}
.gallery-zoom img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.gallery-zoom-hint {
	position: absolute;
	right: 14px;
	bottom: 14px;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: rgba(15, 39, 68, 0.72);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	transition: opacity 0.2s ease;
	pointer-events: none;
}
.gallery-zoom:hover .gallery-zoom-hint,
.gallery-zoom:focus-visible .gallery-zoom-hint {
	opacity: 1;
}
.gallery-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 3;
	width: 42px;
	height: 42px;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.92);
	color: #0f2744;
	box-shadow: 0 4px 16px rgba(15, 39, 68, 0.18);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: background 0.15s ease, transform 0.15s ease;
}
.gallery-nav:hover {
	background: #fff;
	transform: translateY(-50%) scale(1.06);
}
.gallery-prev { left: 12px; }
.gallery-next { right: 12px; }
.gallery-counter {
	position: absolute;
	left: 14px;
	bottom: 14px;
	z-index: 3;
	background: rgba(15, 39, 68, 0.72);
	color: #fff;
	font-size: 0.8rem;
	font-weight: 600;
	padding: 6px 10px;
	border-radius: 999px;
}
.gallery-thumbs {
	display: flex;
	gap: 8px;
	overflow-x: auto;
	padding-bottom: 4px;
	scroll-snap-type: x mandatory;
	-webkit-overflow-scrolling: touch;
}
.gallery-thumbs button {
	flex: 0 0 96px;
	height: 72px;
	scroll-snap-align: start;
}
@media (max-width: 640px) {
	.gallery-nav {
		width: 36px;
		height: 36px;
	}
	.gallery-prev { left: 8px; }
	.gallery-next { right: 8px; }
	.gallery-zoom-hint { opacity: 0.9; }
}

/* Galeria full width */
.gallery-full {
	width: 100%;
	max-width: 100%;
	margin: 0 0 28px;
}
.gallery-full .gallery-main {
	position: relative;
	width: 100%;
	max-width: 100%;
	aspect-ratio: 16 / 9;
	min-height: 280px;
	max-height: 72vh;
	overflow: hidden;
	background: #d8e0ea;
	border-radius: 0;
}
.gallery-full .gallery-zoom {
	display: block;
	width: 100%;
	height: 100%;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: zoom-in;
}
.gallery-full .gallery-main img,
.gallery-full .gallery-zoom img {
	width: 100% !important;
	height: 100% !important;
	object-fit: cover;
	display: block;
}
.gallery-full .gallery-thumbs {
	display: flex !important;
	flex-wrap: nowrap;
	gap: 10px;
	overflow-x: auto;
	padding: 14px 0 8px;
	scroll-snap-type: x mandatory;
	-webkit-overflow-scrolling: touch;
}
.gallery-full .gallery-thumbs button {
	flex: 0 0 120px;
	width: 120px;
	height: 84px;
	padding: 0;
	border: 2px solid transparent;
	border-radius: 10px;
	overflow: hidden;
	background: #e8eef5;
	cursor: pointer;
	scroll-snap-align: start;
}
.gallery-full .gallery-thumbs button.active,
.gallery-full .gallery-thumbs button:hover {
	border-color: #1e4a7a;
}
.gallery-full .gallery-thumbs img {
	width: 100% !important;
	height: 100% !important;
	object-fit: cover;
	display: block;
}
.detail-below {
	padding-top: 8px;
}
.detail-below .detail-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 28px;
	align-items: start;
}
@media (max-width: 900px) {
	.detail-below .detail-grid {
		grid-template-columns: 1fr;
	}
	.gallery-full .gallery-main {
		aspect-ratio: 4 / 3;
		max-height: 55vh;
	}
	.gallery-full .gallery-thumbs button {
		flex-basis: 96px;
		width: 96px;
		height: 68px;
	}
}

/* Cards / semelhantes — imagem sempre visível */
.property-image {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: #e8eef5;
	position: relative;
}
.property-image img {
	width: 100% !important;
	height: 100% !important;
	object-fit: cover;
	display: block;
}
.properties-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 24px;
}

/* Galeria na coluna (layout clássico) */
.detail-grid .gallery {
	width: 100%;
}
.detail-grid .gallery-main {
	position: relative;
	width: 100%;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	border-radius: 12px;
	background: #d8e0ea;
}
.detail-grid .gallery-zoom {
	display: block;
	width: 100%;
	height: 100%;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: zoom-in;
}
.detail-grid .gallery-main img,
.detail-grid .gallery-zoom img {
	width: 100% !important;
	height: 100% !important;
	object-fit: cover;
	display: block;
}
.detail-grid .gallery-thumbs {
	display: flex !important;
	flex-wrap: nowrap;
	gap: 8px;
	overflow-x: auto;
	margin-top: 12px;
	padding-bottom: 4px;
	scroll-snap-type: x mandatory;
}
.detail-grid .gallery-thumbs button {
	flex: 0 0 96px;
	width: 96px;
	height: 72px;
	padding: 0;
	border: 2px solid transparent;
	border-radius: 8px;
	overflow: hidden;
	background: #e8eef5;
	cursor: pointer;
	scroll-snap-align: start;
}
.detail-grid .gallery-thumbs button.active,
.detail-grid .gallery-thumbs button:hover {
	border-color: #1e4a7a;
}
.detail-grid .gallery-thumbs img {
	width: 100% !important;
	height: 100% !important;
	object-fit: cover;
	display: block;
}

/* Força foto principal 100% da largura do card */
.gallery,
.detail-grid .gallery {
	width: 100% !important;
	max-width: 100% !important;
	box-sizing: border-box;
}
.gallery-main,
.detail-grid .gallery-main {
	width: 100% !important;
	max-width: 100% !important;
	box-sizing: border-box;
}
.gallery-zoom,
.detail-grid .gallery-zoom {
	display: block !important;
	width: 100% !important;
	height: 100% !important;
	max-width: 100% !important;
	box-sizing: border-box;
}
.gallery-main img,
.gallery-zoom img,
.detail-grid .gallery-main img,
.detail-grid .gallery-zoom img,
#mainPhoto {
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	object-fit: cover !important;
	display: block !important;
}

/* Layout detalhe 50/50 */
.detail-grid {
	grid-template-columns: 1fr 1fr !important;
	gap: 28px !important;
	align-items: start !important;
}
.detail-grid .gallery-main {
	aspect-ratio: 1 / 1 !important; /* quadrada combina melhor com coluna 50% */
	max-height: none;
}
.detail-sidebar .info-card {
	position: sticky;
	top: 20px;
	height: auto;
}
.detail-sidebar .info-card h1 {
	font-size: 1.35rem;
	line-height: 1.3;
}
.info-meta {
	display: grid !important;
	grid-template-columns: repeat(2, 1fr) !important;
	gap: 12px !important;
}
@media (max-width: 900px) {
	.detail-grid {
		grid-template-columns: 1fr !important;
	}
	.detail-grid .gallery-main {
		aspect-ratio: 4 / 3 !important;
	}
	.detail-sidebar .info-card {
		position: static;
	}
}

/* =========================================================
   Página detalhe imóvel — layout isolado (.imovel-page)
   ========================================================= */
.imovel-page {
	padding: 28px 0 64px;
	background: var(--bg, #f5f7fa);
}
.imovel-page__header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 20px;
	margin-bottom: 24px;
	flex-wrap: wrap;
}
.imovel-page__type {
	display: inline-block;
	font-size: 12px;
	font-weight: 700;
	color: #1e4a7a;
	background: #e8eef5;
	padding: 4px 12px;
	border-radius: 999px;
	margin-bottom: 8px;
}
.imovel-page__title {
	font-size: 1.75rem;
	line-height: 1.25;
	color: #0f2744;
	margin: 0 0 8px;
}
.imovel-page__loc {
	display: flex;
	align-items: center;
	gap: 6px;
	color: #5a6a7a;
	font-size: 0.95rem;
	margin: 0;
}
.imovel-page__code {
	color: #8a97a6;
}
.imovel-page__price {
	font-size: 1.75rem;
	font-weight: 800;
	color: var(--orange, #e67e22);
	white-space: nowrap;
}

/* Grid: mídia ~58% | aside ~42%, com limite na foto */
.imovel-page__layout {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
	gap: 28px;
	align-items: start;
}
.imovel-page__media {
	min-width: 0; /* evita overflow da grid */
}
.imovel-page__aside {
	min-width: 0;
}

.imovel-gallery {
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 4px 24px rgba(15, 39, 68, 0.08);
	overflow: hidden;
}
.imovel-gallery__main {
	position: relative;
	width: 100%;
	aspect-ratio: 4 / 3;
	max-height: 440px;
	background: #d8e0ea;
	overflow: hidden;
}
.imovel-gallery__zoom {
	display: block;
	width: 100%;
	height: 100%;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: zoom-in;
}
.imovel-gallery__zoom img,
.imovel-gallery__main img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.imovel-gallery__zoom-hint {
	position: absolute;
	right: 12px;
	bottom: 12px;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: rgba(15, 39, 68, 0.7);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	transition: opacity 0.2s;
	pointer-events: none;
}
.imovel-gallery__zoom:hover .imovel-gallery__zoom-hint {
	opacity: 1;
}
.imovel-gallery__nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 2;
	width: 40px;
	height: 40px;
	border: 0;
	border-radius: 50%;
	background: rgba(255,255,255,0.92);
	color: #0f2744;
	box-shadow: 0 4px 14px rgba(15,39,68,0.15);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
}
.imovel-gallery__nav--prev { left: 10px; }
.imovel-gallery__nav--next { right: 10px; }
.imovel-gallery__counter {
	position: absolute;
	left: 12px;
	bottom: 12px;
	z-index: 2;
	background: rgba(15,39,68,0.7);
	color: #fff;
	font-size: 0.78rem;
	font-weight: 600;
	padding: 5px 10px;
	border-radius: 999px;
}
.imovel-gallery__thumbs {
	display: flex;
	gap: 8px;
	padding: 12px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
}
.imovel-gallery__thumbs button {
	flex: 0 0 88px;
	width: 88px;
	height: 66px;
	padding: 0;
	border: 2px solid transparent;
	border-radius: 8px;
	overflow: hidden;
	background: #e8eef5;
	cursor: pointer;
	scroll-snap-align: start;
}
.imovel-gallery__thumbs button.is-active,
.imovel-gallery__thumbs button:hover {
	border-color: #1e4a7a;
}
.imovel-gallery__thumbs img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.imovel-page__body {
	margin-top: 28px;
	background: #fff;
	border-radius: 16px;
	padding: 24px 28px;
	box-shadow: 0 4px 24px rgba(15, 39, 68, 0.06);
}
.imovel-page__body h2 {
	font-size: 1.15rem;
	color: #0f2744;
	margin: 0 0 12px;
}
.imovel-page__body h2 + h2,
.imovel-page__body p + h2,
.imovel-page__body ul + h2 {
	margin-top: 28px;
}
.imovel-page__body p {
	color: #4a5a6a;
	line-height: 1.65;
	margin: 0 0 10px;
}

.imovel-card {
	background: #fff;
	border-radius: 16px;
	padding: 24px;
	box-shadow: 0 4px 24px rgba(15, 39, 68, 0.08);
	position: sticky;
	top: 20px;
}
.imovel-card .info-meta {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 14px;
	margin-bottom: 20px;
}
.imovel-card .btn-whatsapp {
	margin-bottom: 10px;
}

.imovel-page__related {
	margin-top: 48px;
}
.imovel-page__related h2 {
	font-size: 1.35rem;
	margin-bottom: 20px;
	color: #0f2744;
}

@media (max-width: 900px) {
	.imovel-page__layout {
		grid-template-columns: 1fr;
	}
	.imovel-gallery__main {
		max-height: 360px;
	}
	.imovel-card {
		position: static;
	}
	.imovel-page__header {
		flex-direction: column;
	}
}
@media (max-width: 560px) {
	.imovel-gallery__main {
		aspect-ratio: 1 / 1;
		max-height: 320px;
	}
}

/* Botões do card do imóvel */
.imovel-card__actions {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-top: 4px;
}
.btn-imovel {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	padding: 14px 18px;
	border-radius: 12px;
	font-size: 0.95rem;
	font-weight: 700;
	text-decoration: none;
	line-height: 1.2;
	transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
	box-sizing: border-box;
}
.btn-imovel__icon {
	flex-shrink: 0;
	width: 20px;
	height: 20px;
}
.btn-imovel--whatsapp {
	background: #25d366;
	color: #fff;
	border: 2px solid #25d366;
	box-shadow: 0 6px 18px rgba(37, 211, 102, 0.28);
}
.btn-imovel--whatsapp:hover {
	background: #1ebe57;
	border-color: #1ebe57;
	color: #fff;
	transform: translateY(-1px);
	box-shadow: 0 8px 22px rgba(37, 211, 102, 0.35);
}
.btn-imovel--outline {
	background: #fff;
	color: #1e4a7a;
	border: 2px solid #c5d3e3;
}
.btn-imovel--outline:hover {
	background: #1e4a7a;
	border-color: #1e4a7a;
	color: #fff;
	transform: translateY(-1px);
	box-shadow: 0 6px 16px rgba(30, 74, 122, 0.2);
}
