/* ==========================================================================
   Real33 — Editorial Blueprint design system
   Port of the landing page aesthetic (ink / paper / brand, Clash Display +
   Satoshi, blueprint grids, hard offset shadows) for the web portal.
   Plain CSS: the portal's tailwind.css is precompiled, so new utilities
   cannot be introduced; everything visual lives here.
   ========================================================================== */

:root {
  --ink: #071e22;
  --ink-800: #0d2b31;
  --ink-700: #14393f;
  --paper: #fcfafa;
  --brand: #2793ed;
  --brand-300: #8ec7f5;
  --brand-400: #5fb0f2;
  --brand-600: #1b7cd6;
  --brand-700: #1565ae;
  --font-display: "Clash Display", sans-serif;
  --font-sans: "Satoshi", sans-serif;
  --hard-sm: 3px 3px 0 var(--ink);
  --hard: 4px 4px 0 var(--ink);
  --hard-lg: 7px 7px 0 var(--ink);
}

/* ---------- base ---------- */

body {
  font-family: var(--font-sans);
  background-color: var(--paper);
  color: var(--ink);
}

::selection {
  background-color: var(--brand);
  color: var(--paper);
}

:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
}

/* ---------- backgrounds ---------- */

.bg-blueprint {
  background-image:
    linear-gradient(rgb(142 199 245 / 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgb(142 199 245 / 0.07) 1px, transparent 1px);
  background-size: 44px 44px;
}

.bg-blueprint-light {
  background-image:
    linear-gradient(rgb(7 30 34 / 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgb(7 30 34 / 0.05) 1px, transparent 1px);
  background-size: 44px 44px;
}

.bg-blueprint-onbrand {
  background-image:
    linear-gradient(rgb(252 250 250 / 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgb(252 250 250 / 0.12) 1px, transparent 1px);
  background-size: 44px 44px;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.bp-glow {
  position: absolute;
  border-radius: 9999px;
  background: rgb(39 147 237 / 0.25);
  filter: blur(120px);
  pointer-events: none;
}

/* Portal home hero — property photo under ink wash + grid */
.portal-hero {
  position: relative;
  overflow: hidden;
  background-color: var(--ink);
  background-image: url("../img/hero-texture.png");
  background-size: cover;
  background-position: center bottom;
}

.portal-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: rgb(7 30 34 / 0.55);
}

.portal-hero > .bg-blueprint,
.portal-hero > .bp-glow {
  z-index: 1;
}

/* ---------- typography ---------- */

.font-display {
  font-family: var(--font-display);
}

.eyebrow {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

.hl {
  background: linear-gradient(transparent 60%, rgb(39 147 237 / 0.5) 60%);
}

.bp-h1 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.05;
  font-size: clamp(2.25rem, 5vw, 3.75rem);
}

.bp-h2 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.1;
  font-size: clamp(1.6rem, 3vw, 2.25rem);
}

.tick {
  list-style: none;
  padding: 0;
}

.tick li {
  position: relative;
  padding-left: 1.9rem;
}

.tick li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.32em;
  width: 0.85rem;
  height: 0.85rem;
  background: var(--brand);
  border: 2px solid var(--ink);
}

.on-dark .tick li::before {
  border-color: var(--paper);
}

/* ---------- buttons ---------- */

.bp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--brand);
  color: var(--paper);
  padding: 0.8rem 1.9rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: var(--hard);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.bp-btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--ink);
  background: var(--brand-600);
}

.bp-btn:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--ink);
}

.bp-btn--ink {
  background: var(--ink);
  color: var(--paper);
  box-shadow: 4px 4px 0 rgb(7 30 34 / 0.35);
}

.bp-btn--ink:hover {
  background: var(--ink-700);
  box-shadow: 6px 6px 0 rgb(7 30 34 / 0.35);
}

.bp-btn--paper {
  background: var(--paper);
  color: var(--ink);
}

.bp-btn--paper:hover {
  background: #fff;
}

.bp-btn--ghost {
  background: transparent;
  color: var(--paper);
  border-color: rgb(252 250 250 / 0.4);
  box-shadow: none;
}

.bp-btn--ghost:hover {
  background: rgb(252 250 250 / 0.1);
  border-color: var(--paper);
  box-shadow: none;
}

.bp-btn--whatsapp {
  background: #25d366;
  color: var(--ink);
}

.bp-btn--whatsapp:hover {
  background: #22c55e;
}

.bp-btn--sm {
  padding: 0.5rem 1.25rem;
  font-size: 0.8rem;
}

.bp-btn[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Round icon button (carousel nav, pagination arrows) */
.bp-round-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  border: 2px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  box-shadow: var(--hard-sm);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.bp-round-btn:hover {
  transform: translate(-1px, -1px);
  box-shadow: var(--hard);
  background: var(--brand-300);
}

/* ---------- cards & panels ---------- */

.bp-card {
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 1.25rem;
  box-shadow: var(--hard-lg);
}

.bp-card--flat {
  box-shadow: var(--hard);
}

/* Card header band (ink with blueprint grid) */
.bp-card-head {
  background: var(--ink) var(--none, none);
  background-image:
    linear-gradient(rgb(142 199 245 / 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgb(142 199 245 / 0.08) 1px, transparent 1px);
  background-size: 44px 44px;
  color: var(--paper);
  border-bottom: 2px solid var(--ink);
  padding: 1.1rem 1.5rem;
}

.bp-card-head--brand {
  background-color: var(--brand);
  background-image:
    linear-gradient(rgb(252 250 250 / 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgb(252 250 250 / 0.12) 1px, transparent 1px);
}

/* Property card (overrides the soft-shadow version in listing css) */
.property-card {
  background: var(--paper);
  border: 2px solid var(--ink) !important;
  border-radius: 1.25rem;
  box-shadow: 5px 5px 0 var(--ink);
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.property-card:hover {
  transform: translate(-3px, -3px);
  box-shadow: 8px 8px 0 var(--ink);
}

.property-card:hover .card-image img {
  transform: scale(1.05);
}

/* ---------- badges & chips ---------- */

.bp-badge {
  display: inline-block;
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 0.25rem 0.85rem;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  box-shadow: 2px 2px 0 var(--ink);
}

.bp-badge--brand {
  background: var(--brand);
  color: var(--paper);
}

.bp-badge--ink {
  background: var(--ink);
  color: var(--paper);
}

.bp-badge--paper {
  background: var(--paper);
  color: var(--ink);
}

/* Filter / amenity chip: <label class="bp-chip"><input><span>…</span></label> */
.bp-chip {
  cursor: pointer;
}

.bp-chip > span {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.1rem;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.bp-chip:hover > span {
  box-shadow: var(--hard-sm);
  transform: translate(-1px, -1px);
}

.bp-chip > input:checked + span {
  background: var(--brand);
  color: var(--paper);
  box-shadow: var(--hard-sm);
}

/* ---------- forms ---------- */

.bp-label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgb(7 30 34 / 0.7);
  margin-bottom: 0.4rem;
}

.bp-input {
  width: 100%;
  border: 2px solid var(--ink);
  border-radius: 0.9rem;
  background: #fff;
  padding: 0.75rem 1rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--ink);
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.bp-input::placeholder {
  color: rgb(7 30 34 / 0.35);
}

.bp-input:focus {
  outline: none;
  box-shadow: var(--hard-sm);
  transform: translate(-1px, -1px);
}

.bp-input[readonly] {
  background: rgb(7 30 34 / 0.04);
  border-style: dashed;
}

.bp-input.is-valid {
  border-color: var(--brand-600);
  box-shadow: 3px 3px 0 var(--brand-300);
}

.bp-input.is-invalid {
  border-color: #dc2626;
  box-shadow: 3px 3px 0 rgb(220 38 38 / 0.35);
}

select.bp-input {
  appearance: none;
}

/* ---------- stat boxes (listing detail features / prices) ---------- */

.bp-stat {
  border: 2px solid var(--ink);
  border-radius: 0.9rem;
  background: var(--paper);
  padding: 0.75rem 0.5rem;
  text-align: center;
  box-shadow: var(--hard-sm);
}

.bp-stat .mdi {
  color: var(--brand-600);
}

.bp-stat-value {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.35rem;
  line-height: 1.2;
  color: var(--ink);
}

.bp-stat-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgb(7 30 34 / 0.55);
}

.bp-price {
  border: 2px solid var(--ink);
  border-radius: 0.9rem;
  background: var(--paper);
  padding: 0.9rem 1rem;
  box-shadow: var(--hard-sm);
}

.bp-price .bp-price-label {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgb(7 30 34 / 0.6);
}

.bp-price .bp-price-value {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.45rem;
  line-height: 1.2;
  color: var(--ink);
}

.bp-price .bp-price-note {
  font-size: 0.75rem;
  color: rgb(7 30 34 / 0.5);
}

.bp-price--featured {
  background: var(--brand);
}

.bp-price--featured .bp-price-label,
.bp-price--featured .bp-price-value,
.bp-price--featured .bp-price-note {
  color: var(--paper);
}

/* ---------- nav ---------- */

.bp-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 2px solid var(--ink);
}

.bp-nav-link {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgb(7 30 34 / 0.7);
  transition: color 0.2s ease;
}

.bp-nav-link:hover {
  color: var(--brand);
}

/* ---------- footer ---------- */

.bp-footer {
  background: var(--ink);
  color: var(--paper);
  border-top: 2px solid var(--ink);
  background-image:
    linear-gradient(rgb(142 199 245 / 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgb(142 199 245 / 0.06) 1px, transparent 1px);
  background-size: 44px 44px;
}

.bp-footer h4 {
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  color: var(--brand-300);
  margin-bottom: 0.75rem;
}

.bp-footer a {
  color: rgb(252 250 250 / 0.8);
  transition: color 0.2s ease;
}

.bp-footer a:hover {
  color: var(--brand-300);
}

/* ---------- pill tabs (comprar / alugar) ---------- */

.bp-tabs {
  display: inline-flex;
  gap: 0.35rem;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--paper);
  padding: 0.3rem;
}

.bp-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 2px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: rgb(7 30 34 / 0.6);
  padding: 0.55rem 1.6rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.bp-tab:hover {
  color: var(--ink);
}

.bp-tab--active {
  background: var(--brand);
  border-color: var(--ink);
  color: var(--paper);
  box-shadow: var(--hard-sm);
}

.bp-tab--active:hover {
  color: var(--paper);
}

/* ---------- icon box (card section headers) ---------- */

.bp-icon-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  flex-shrink: 0;
  border: 2px solid var(--ink);
  border-radius: 0.8rem;
  background: var(--brand-300);
  color: var(--ink);
  box-shadow: var(--hard-sm);
  font-size: 1.35rem;
}

.bp-icon-box--brand {
  background: var(--brand);
  color: var(--paper);
}

/* ---------- property feature squares ---------- */

.bp-feat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  padding: 0.5rem 0.25rem;
  border: 2px solid rgb(7 30 34 / 0.15);
  border-radius: 0.7rem;
  background: rgb(7 30 34 / 0.03);
}

.bp-feat .mdi {
  color: rgb(7 30 34 / 0.45);
}

.bp-feat span:last-child {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--ink);
}

/* ---------- prices ---------- */

.bp-price-text {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.3rem;
  color: var(--ink);
}

.bp-price-text small {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 0.85rem;
  color: rgb(7 30 34 / 0.5);
}

/* ---------- pagination ---------- */

.bp-page {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  border: 2px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 600;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.bp-page:hover {
  box-shadow: var(--hard-sm);
  transform: translate(-1px, -1px);
}

.bp-page--current {
  background: var(--brand);
  color: var(--paper);
  box-shadow: var(--hard-sm);
}

/* Small choice button inside filter panels (quartos, banheiros, vagas) */
.bp-choice {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 2.5rem;
  padding: 0 0.6rem;
  border: 2px solid var(--ink);
  border-radius: 0.7rem;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.bp-choice:hover {
  box-shadow: var(--hard-sm);
  transform: translate(-1px, -1px);
}

.bp-choice--active {
  background: var(--brand);
  color: var(--paper);
  box-shadow: var(--hard-sm);
}

/* ---------- expandable filters (blueprint restyle of listing-search.css) ---------- */

.expandable-filter-icon {
  border: 2px solid var(--ink) !important;
  border-radius: 999px !important;
  background: var(--paper) !important;
  color: var(--ink) !important;
  box-shadow: none !important;
  font-family: var(--font-display);
}

.expandable-filter-icon:hover {
  box-shadow: var(--hard-sm) !important;
  transform: translate(-1px, -1px);
}

.expandable-filter-icon.active,
.expandable-filter-icon.has-value {
  background: var(--brand) !important;
  color: var(--paper) !important;
  box-shadow: var(--hard-sm) !important;
}

.expandable-filter-icon .filter-badge {
  background: var(--ink) !important;
  font-family: var(--font-display);
}

.expandable-filter-panel {
  border: 2px solid var(--ink) !important;
  border-radius: 1rem !important;
  box-shadow: var(--hard) !important;
}

.expandable-filter-panel::before {
  border-left: 2px solid var(--ink) !important;
  border-top: 2px solid var(--ink) !important;
}

/* ---------- image placeholder ---------- */

.bp-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-color: var(--paper);
  background-image:
    linear-gradient(rgb(7 30 34 / 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgb(7 30 34 / 0.06) 1px, transparent 1px);
  background-size: 44px 44px;
  color: rgb(7 30 34 / 0.35);
}

/* ---------- legal / prose pages ---------- */

.bp-legal {
  color: rgb(7 30 34 / 0.8);
  font-size: 1.05rem;
  line-height: 1.75;
}

.bp-legal h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.5rem;
  color: var(--ink);
  margin-top: 2.75rem;
  margin-bottom: 0.75rem;
  padding-top: 1.5rem;
  border-top: 2px dashed rgb(7 30 34 / 0.2);
}

.bp-legal h2:first-of-type {
  border-top: none;
  padding-top: 0;
}

.bp-legal h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--ink);
  margin-top: 1.75rem;
  margin-bottom: 0.5rem;
}

.bp-legal p {
  margin-bottom: 1rem;
}

.bp-legal ul {
  list-style: none;
  padding: 0;
  margin-bottom: 1.25rem;
}

.bp-legal ul li {
  position: relative;
  padding-left: 1.9rem;
  margin-bottom: 0.5rem;
}

.bp-legal ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 0.7rem;
  height: 0.7rem;
  background: var(--brand);
  border: 2px solid var(--ink);
}

.bp-legal a {
  color: var(--brand-700);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.bp-legal a:hover {
  color: var(--brand);
}

/* ---------- scroll reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 0.7s ease,
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--d, 0ms);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
