@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@500;600;700;800&family=Plus+Jakarta+Sans:wght@500;600;700&display=swap");

:root {
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-pill: 999px;
  --ink-1: #0f2645;
  --ink-2: #4d6488;
  --line: #d7e5fb;
}

body {
  font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif;
  background:
    linear-gradient(125deg, rgba(40, 75, 86, 0.56), rgba(62, 104, 118, 0.50)),
    url("https://images.unsplash.com/photo-1477959858617-67f85cf4f1df?auto=format&fit=crop&w=2400&q=80") center/cover fixed no-repeat;
  color: var(--ink-1);
}

.demo-shell {
  padding: 2.2rem 0 2.6rem;
}

.demo-head {
  border: 1px solid rgba(214, 232, 255, 0.6);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 82% -12%, rgba(255, 255, 255, 0.2), transparent 44%),
    linear-gradient(135deg, #163942 0%, #1f5560 52%, #2b6c77 100%);
  color: #f8fbff;
  padding: 1.35rem 1.35rem 1.2rem;
  box-shadow: 0 24px 42px rgba(106, 124, 158, 0.28);
  margin-bottom: 1.25rem;
}

.demo-head-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.15rem;
  flex-wrap: wrap;
}

.demo-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.demo-logo {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  border: 1px solid rgba(232, 244, 255, 0.66);
  object-fit: cover;
  box-shadow: 0 12px 22px rgba(7, 27, 59, 0.34);
}

.demo-label {
  display: inline-flex;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(207, 229, 255, 0.54);
  background: rgba(255, 255, 255, 0.12);
  color: #e8f3ff;
  padding: 0.22rem 0.58rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.42rem;
}

.demo-head h1 {
  margin: 0;
  font-family: "Outfit", "Plus Jakarta Sans", sans-serif;
  font-size: 1.62rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.demo-head p {
  margin: 0.26rem 0 0;
  color: #d3e7ff;
  font-size: 0.96rem;
}

.demo-head-badges {
  margin-top: 0.68rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.42rem;
}

.head-badge {
  border-radius: var(--radius-pill);
  border: 1px solid rgba(200, 223, 255, 0.58);
  background: rgba(255, 255, 255, 0.12);
  color: #eaf5ff;
  font-size: 0.71rem;
  font-weight: 800;
  padding: 0.22rem 0.56rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}


.demo-head-theme-toggle {
  display: inline-flex;
}

.demo-theme-link {
  border-radius: 999px;
  border: 1px solid rgba(208, 225, 248, 0.58);
  background: rgba(255, 255, 255, 0.12);
  color: #e9f4ff;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.26rem 0.62rem;
}

.demo-theme-link:hover {
  color: #f9fbff;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.2);
}

.demo-head-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.44rem;
}

.demo-map-btn {
  border-radius: var(--radius-pill);
  border: 1px solid #4d7b84;
  background: linear-gradient(135deg, #b7913f, #d7b460);
  color: #2f240e;
  font-size: 0.84rem;
  font-weight: 800;
  text-decoration: none;
  padding: 0.5rem 1rem;
  box-shadow: 0 12px 24px rgba(144, 111, 41, 0.28);
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

.demo-map-btn:hover {
  color: #2f240e;
  transform: translateY(-1px);
  box-shadow: 0 16px 28px rgba(28, 73, 84, 0.4);
  filter: saturate(1.04);
  text-decoration: none;
}

.demo-back-btn {
  border-radius: var(--radius-pill);
  border: 1px solid rgba(207, 226, 249, 0.78);
  background: rgba(236, 246, 255, 0.95);
  color: #1c496e;
  font-size: 0.8rem;
  font-weight: 800;
  text-decoration: none;
  padding: 0.42rem 0.92rem;
  box-shadow: 0 8px 16px rgba(14, 52, 103, 0.18);
  transition: transform .2s ease, filter .2s ease, box-shadow .2s ease;
}

.demo-back-btn:hover {
  color: #163c5d;
  text-decoration: none;
  transform: translateY(-1px);
  filter: brightness(1.03);
  box-shadow: 0 10px 18px rgba(14, 52, 103, 0.24);
}

.demo-map-count {
  color: #e7f3f6;
  font-size: 0.78rem;
  font-weight: 700;
}

.demo-profile-split {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(243, 249, 255, 0.96);
  box-shadow: 0 18px 36px rgba(10, 44, 94, 0.18);
  padding: 0.82rem;
}

.demo-profile-grid {
  display: flex;
  align-items: flex-start !important;
  gap: 0.8rem;
}

.demo-showcase-outside {
  flex: 1.1;
  align-self: flex-start !important;
  border: 1px solid #d5e4fb;
  border-radius: var(--radius-md);
  background: #eef6f8;
  padding: 0.45rem;
  height: auto !important;
  min-height: 0 !important;
  max-height: max-content;
}

.demo-showcase-placeholder {
  width: 100%;
  aspect-ratio: 16/10;
  border-radius: 12px;
}

.demo-showcase-outside img {
  width: 100%;
  display: block;
  aspect-ratio: auto !important;
  object-fit: contain;
  object-position: center;
  border: 10px solid #d6e6fb;
  height: auto !important;
  max-height: 345px;
  border-radius: 12px;
  background: #f8fbff;
  image-rendering: auto;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.demo-showcase-placeholder {
  display: grid;
  place-items: center;
  border: 1px dashed #b9cff2;
  background: linear-gradient(135deg, #eef5ff, #e3edff);
  padding: 1rem;
  text-align: center;
}

.demo-showcase-placeholder-text { margin: 0; color: #496894; }
.demo-showcase-placeholder-link { color: #0f5fca; font-weight: 800; }

.demo-bio {
  flex: 0.9;
  border: 1px solid #d9e7fb;
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, #f9fdfe 0%, #edf5f7 100%);
  color: #386672;
  line-height: 1.66;
  font-size: 0.92rem;
  padding: 0.88rem 0.95rem;
  text-align: justify;
  text-justify: inter-word;
}

.demo-bio p {
  margin: 0 0 0.35rem;
  text-indent: 1.2em;
}

.demo-bio p:last-child {
  margin-bottom: 0;
}

.demo-bio strong {
  display: block;
  margin-bottom: 0.42rem;
  font-family: "Outfit", "Plus Jakarta Sans", sans-serif;
  color: #3e6f79;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.demo-listing-head {
  margin: 1.1rem 0 0.72rem;
  border-left: 4px solid #c7a75a;
  padding-left: 0.68rem;
}

.demo-listing-head h2 {
  margin: 0;
  font-family: "Outfit", "Plus Jakarta Sans", sans-serif;
  color: #f1e3bc;
  font-size: 1.15rem;
}

.demo-listing-head p {
  margin: 0.18rem 0 0;
  color: #c7e3ea;
  font-size: 0.86rem;
}

.demo-grid {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
}

.demo-pagination-wrap {
  margin-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.demo-page-btn {
  border-radius: 999px;
  border: 1px solid #7fa6d3;
  background: linear-gradient(135deg, #edf5ff, #dcecff);
  color: #1c4c78;
  font-size: 0.8rem;
  font-weight: 800;
  text-decoration: none;
  padding: 0.4rem 0.88rem;
  box-shadow: 0 8px 16px rgba(15, 62, 122, 0.12);
}

.demo-page-btn:hover {
  color: #173f62;
  text-decoration: none;
  filter: brightness(1.03);
}

.demo-page-btn.is-disabled {
  opacity: 0.52;
  cursor: not-allowed;
  pointer-events: none;
  filter: grayscale(0.22);
}

.demo-page-status {
  color: #e7f3f6;
  font-size: 0.76rem;
  font-weight: 700;
  border-radius: 999px;
  border: 1px solid rgba(200, 223, 255, 0.46);
  background: rgba(255, 255, 255, 0.12);
  padding: 0.32rem 0.7rem;
}

.demo-card {
  border: 1px solid #d6e4fb;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #fff;
  box-shadow: 0 18px 34px rgba(9, 40, 89, 0.18);
  transition: transform .24s ease, box-shadow .24s ease;
}

.demo-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 42px rgba(8, 35, 77, 0.26);
}

.demo-card-media {
  position: relative;
}

.demo-card-cover {
  width: 100%;
  height: 210px;
  object-fit: cover;
  background: linear-gradient(135deg, #e8f1ff, #dbe9ff);
}

.deal-badge {
  position: absolute;
  top: 0.58rem;
  left: 0.58rem;
  border-radius: var(--radius-pill);
  padding: 0.24rem 0.58rem;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 1px solid transparent;
}

.deal-venda {
  background: rgba(186, 156, 78, 0.95);
  border-color: rgba(157, 233, 188, 0.64);
  color: #eafbef;
}

.deal-aluguel {
  background: rgba(44, 99, 110, 0.95);
  border-color: rgba(166, 199, 248, 0.7);
  color: #e7f3f6;
}

.demo-count {
  position: absolute;
  right: 0.58rem;
  bottom: 0.58rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(222, 198, 136, 0.78);
  background: rgba(51, 89, 97, 0.74);
  color: #e9f3ff;
  font-size: 0.71rem;
  font-weight: 700;
  padding: 0.2rem 0.54rem;
}

.demo-card-body {
  padding: 0.86rem 0.9rem 0.95rem;
}

.demo-card-top h3 {
  margin: 0;
  font-family: "Outfit", "Plus Jakarta Sans", sans-serif;
  font-size: 1.02rem;
  color: #245560;
  display: block;
}

.demo-card-code {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid #d6c089;
  background: #fff9e8;
  color: #7b5a11;
  font-size: 0.7rem;
  font-weight: 800;
  line-height: 1;
  padding: 0.2rem 0.45rem;
  margin-bottom: 0.24rem;
}

.demo-card-title-text {
  display: block;
  min-width: 0;
}

.demo-card-meta {
  margin-top: 0.44rem;
  color: #516b8f;
  font-size: 0.86rem;
  line-height: 1.5;
}

.demo-price {
  margin-top: 0.56rem;
  color: #2f5e68;
  font-weight: 800;
  font-size: 1rem;
}

.demo-card-actions {
  margin-top: 0.72rem;
  display: grid;
  gap: 0.45rem;
}

.demo-details-link {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 1px solid #4f7f86;
  background: linear-gradient(135deg, #2f6570, #3f7e88);
  color: #f8fbff;
  font-size: 0.8rem;
  font-weight: 800;
  padding: 0.5rem 0.8rem;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(35, 78, 89, 0.3);
}

.demo-details-link:hover {
  color: #f8fbff;
  text-decoration: none;
  filter: brightness(1.04) saturate(1.04);
}

.demo-share-link {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 1px solid #d8c38c;
  background: linear-gradient(135deg, #fef8e8, #f7ecd1);
  color: #745b1a;
  font-size: 0.79rem;
  font-weight: 800;
  padding: 0.5rem 0.8rem;
  box-shadow: 0 8px 16px rgba(131, 108, 53, 0.16);
  transition: filter .2s ease, transform .2s ease, box-shadow .2s ease;
}

.demo-share-link:hover {
  filter: saturate(1.06);
  transform: translateY(-1px);
  box-shadow: 0 12px 20px rgba(131, 108, 53, 0.2);
}

.demo-empty {
  border: 1px dashed #cad9f5;
  border-radius: 14px;
  background: #f7fbff;
  color: #4d6689;
  padding: 1rem;
}

.demo-footer {
  margin-top: 1.3rem;
  border: 1px solid #d6e5fb;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(241, 248, 255, 0.94));
  box-shadow: 0 14px 30px rgba(9, 42, 89, 0.16);
  padding: 0.95rem 1.05rem;
}

.demo-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 0.85rem;
  align-items: center;
}

.demo-footer-title {
  margin: 0;
  font-family: "Outfit", "Plus Jakarta Sans", sans-serif;
  color: #133d75;
  font-size: 1.04rem;
}

.demo-footer-text {
  margin: 0.24rem 0 0;
  color: #506b8f;
  font-size: 0.9rem;
}

.demo-footer-metrics {
  display: flex;
  gap: 0.45rem;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.demo-footer-pill {
  border-radius: var(--radius-pill);
  border: 1px solid #cfe0ff;
  background: #fff;
  color: #204a83;
  font-size: 0.77rem;
  font-weight: 800;
  padding: 0.24rem 0.58rem;
}

@media (max-width: 991.98px) {
  .demo-profile-grid { flex-direction: column; }
  .demo-showcase-outside,
  .demo-bio { width: 100%; flex: 1 1 auto; }
  .demo-head h1 { font-size: 1.38rem; }
}

@media (max-width: 768px) {
  .demo-footer-grid { grid-template-columns: 1fr; }
  .demo-footer-metrics { justify-content: flex-start; }
}

@media (max-width: 575.98px) {
  body {
    background:
      linear-gradient(130deg, rgba(6, 18, 36, 0.83), rgba(13, 38, 73, 0.76)),
      url("https://images.unsplash.com/photo-1460317442991-0ec209397118?auto=format&fit=crop&w=1800&q=80") center/cover no-repeat;
    background-attachment: scroll;
  }

  .demo-shell { padding-top: 1rem; }
  .demo-head { padding: 1rem 0.9rem; text-align: center; }
  .demo-head-top { display: grid; grid-template-columns: 1fr; }
  .demo-brand { display: grid; grid-template-columns: 1fr; }
  .demo-label {
    display: flex;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
  }
  .demo-brand .demo-logo { display: none; }
  .demo-head-badges { justify-content: center; }
  .demo-head-actions { align-items: stretch; }
  .demo-map-btn,
  .demo-back-btn { width: 100%; }
  .demo-map-count { text-align: center; }

  .demo-listing-head h2,
  .demo-listing-head p,
  .demo-bio,
  .demo-bio strong,
  .demo-footer,
  .demo-footer-title,
  .demo-footer-text {
    text-align: center;
  }

  .demo-footer-metrics { justify-content: center; }
}
