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

:root {
  --bg: #060a12;
  --card: rgba(10, 15, 26, 0.85);
  --line: rgba(250, 204, 21, 0.13);
  --text: #f0f4ff;
  --muted: #7da8c4;
  --brand: #facc15;
  --brand-2: #22c55e;
  --cyan: #06b6d4;
  --purple: #a855f7;

  --glow-yellow: 0 0 18px #facc1588, 0 0 40px #facc1533;
  --glow-green: 0 0 18px #22c55e88, 0 0 40px #22c55e33;
  --glow-cyan: 0 0 18px #06b6d488, 0 0 40px #06b6d433;
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }

  25% {
    background-position: 50% 100%;
  }

  50% {
    background-position: 100% 50%;
  }

  75% {
    background-position: 50% 0%;
  }

  100% {
    background-position: 0% 50%;
  }
}

@keyframes textGlow {

  0%,
  100% {
    text-shadow: 0 0 12px #facc15aa, 0 0 30px #facc1555;
  }

  33% {
    text-shadow: 0 0 12px #22c55eaa, 0 0 30px #22c55e55;
  }

  66% {
    text-shadow: 0 0 12px #06b6d4aa, 0 0 30px #06b6d455;
  }
}

@keyframes borderPulse {

  0%,
  100% {
    border-color: rgba(250, 204, 21, 0.3);
    box-shadow: 0 0 14px rgba(250, 204, 21, 0.15);
  }

  33% {
    border-color: rgba(34, 197, 94, 0.3);
    box-shadow: 0 0 14px rgba(34, 197, 94, 0.15);
  }

  66% {
    border-color: rgba(6, 182, 212, 0.3);
    box-shadow: 0 0 14px rgba(6, 182, 212, 0.15);
  }
}

@keyframes pillGlow {

  0%,
  100% {
    background: rgba(250, 204, 21, 0.12);
    color: #facc15;
    border-color: rgba(250, 204, 21, 0.4);
  }

  50% {
    background: rgba(34, 197, 94, 0.12);
    color: #4ade80;
    border-color: rgba(34, 197, 94, 0.4);
  }
}

@keyframes thumbShimmer {
  0% {
    background-position: -200% 0;
  }

  100% {
    background-position: 200% 0;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Outfit', system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  background-image:
    radial-gradient(ellipse 55% 40% at 5% 10%, rgba(250, 204, 21, 0.07) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 95% 90%, rgba(34, 197, 94, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 45% 35% at 50% 50%, rgba(6, 182, 212, 0.05) 0%, transparent 60%);
}

#bg3d {
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: .50;
  pointer-events: none;
}

/* ── NAV ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 5;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: .9rem;
  align-items: center;
  padding: .85rem 1.4rem;
  border-bottom: 1px solid var(--line);
  background: rgba(6, 10, 18, 0.90);
  backdrop-filter: blur(20px);
  animation: borderPulse 6s ease-in-out infinite;
}

.brand {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800;
  font-size: 1.2rem;
  text-decoration: none;
  color: var(--text);
  letter-spacing: -.01em;
}

.brand span {
  background: linear-gradient(90deg, #facc15, #22c55e, #06b6d4, #a855f7);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 4s linear infinite;
}

.search-wrap {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: .45rem;
}

.search-wrap input {
  width: 100%;
  border: 1px solid rgba(250, 204, 21, 0.2);
  background: rgba(250, 204, 21, 0.04);
  color: var(--text);
  border-radius: 12px;
  padding: .6rem .8rem;
  font: inherit;
  font-size: .9rem;
  transition: border-color .2s, box-shadow .2s;
}

.search-wrap input::placeholder {
  color: var(--muted);
}

.search-wrap input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(250, 204, 21, 0.12);
}

.search-wrap button,
.save-btn {
  border: none;
  border-radius: 10px;
  padding: .58rem .9rem;
  font-weight: 800;
  font-family: inherit;
  cursor: pointer;
  font-size: .85rem;
  letter-spacing: .03em;
}

.search-wrap button {
  background: linear-gradient(135deg, #facc15, #22c55e, #06b6d4);
  background-size: 200% 200%;
  animation: gradientShift 3s ease infinite;
  color: #060a12;
}

.save-btn {
  background: rgba(250, 204, 21, 0.1);
  color: #facc15;
  border: 1px solid rgba(250, 204, 21, 0.3);
}

/* ── PAGE GRID ── */
.page {
  position: relative;
  z-index: 1;
  width: min(1300px, 96vw);
  margin: 1.2rem auto 2.5rem;
  display: grid;
  grid-template-columns: 1fr 1.618fr;
  gap: 1.1rem;
}

/* ── CARDS / PANELS ── */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1rem;
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(250, 204, 21, 0.04);
  animation: borderPulse 7s ease-in-out infinite;
}

/* ── CONTROLS ── */
.controls h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800;
  margin: .05rem 0 .45rem;
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  line-height: 1.1;
  background: linear-gradient(120deg, #facc15 0%, #22c55e 40%, #06b6d4 70%, #a855f7 100%);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 5s ease infinite;
}

.lead {
  margin: 0 0 .9rem;
  color: var(--muted);
  font-size: .93rem;
  line-height: 1.65;
}

/* ── CHIPS ── */
.chips {
  display: flex;
  gap: .45rem;
  flex-wrap: wrap;
  margin-bottom: .8rem;
}

.chip {
  border: 1px solid rgba(250, 204, 21, 0.25);
  background: rgba(250, 204, 21, 0.06);
  color: #c4a414;
  border-radius: 999px;
  padding: .32rem .72rem;
  font-weight: 700;
  font-size: .74rem;
  cursor: pointer;
  letter-spacing: .04em;
  transition: background .2s, color .2s, border-color .2s;
}

.chip.active,
.chip:hover {
  border-color: #facc15;
  background: rgba(250, 204, 21, 0.18);
  color: #facc15;
  box-shadow: var(--glow-yellow);
}

/* ── SLIDERS ── */
.sliders {
  display: grid;
  gap: .65rem;
}

label {
  display: grid;
  gap: .32rem;
  color: var(--muted);
  font-size: .83rem;
  font-weight: 600;
  letter-spacing: .03em;
}

label span {
  margin-left: .3rem;
  color: #facc15;
  font-weight: 800;
  font-family: 'Space Grotesk', sans-serif;
}

input[type="range"] {
  width: 100%;
  accent-color: #facc15;
}

/* ── KPIS ── */
.kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .55rem;
  margin-top: .9rem;
}

.kpis>div {
  border: 1px solid rgba(250, 204, 21, 0.18);
  border-radius: 12px;
  padding: .6rem .7rem;
  background: rgba(250, 204, 21, 0.05);
  animation: borderPulse 8s ease-in-out infinite;
}

.kpis strong {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.08rem;
  font-weight: 800;
  background: linear-gradient(90deg, #facc15, #22c55e);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 4s linear infinite;
}

.kpis span {
  color: var(--muted);
  font-size: .73rem;
  letter-spacing: .04em;
}

/* ── MAP ── */
.map {
  grid-row: span 2;
}

.head-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: .65rem;
}

.head-row h2 {
  margin: 0;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
}

.pill {
  border-radius: 999px;
  font-size: .62rem;
  letter-spacing: .12em;
  font-weight: 800;
  padding: .28rem .6rem;
  animation: pillGlow 4s ease-in-out infinite;
}

#hero3d {
  width: 100%;
  min-height: 520px;
  height: calc(100% - 34px);
  display: block;
  border-radius: 14px;
  border: 1px solid rgba(250, 204, 21, 0.15);
  background: linear-gradient(180deg, #07100a, #060c14);
  box-shadow: 0 0 30px rgba(250, 204, 21, 0.08) inset;
}

.muted {
  color: var(--muted);
  font-size: .82rem;
}

/* ── LISTINGS ── */
.listings {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .7rem;
}

.listing {
  border: 1px solid rgba(250, 204, 21, 0.15);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  overflow: hidden;
  transition: border-color .25s, transform .2s;
}

.listing:hover {
  border-color: rgba(250, 204, 21, 0.5);
  transform: translateY(-2px);
}

.thumb {
  height: 110px;
  background: linear-gradient(135deg, rgba(250, 204, 21, 0.15), rgba(34, 197, 94, 0.12), rgba(6, 182, 212, 0.12));
  background-size: 300% auto;
  animation: thumbShimmer 4s linear infinite;
  border-bottom: 1px solid rgba(250, 204, 21, 0.12);
}

.body {
  padding: .7rem;
}

.price {
  font-weight: 900;
  font-size: 1rem;
  font-family: 'Space Grotesk', sans-serif;
  background: linear-gradient(90deg, #facc15, #22c55e);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 4s linear infinite;
}

.title {
  margin: .2rem 0;
  font-weight: 700;
  font-size: .9rem;
  color: var(--text);
}

.meta {
  color: var(--muted);
  font-size: .78rem;
}

.badges {
  display: flex;
  gap: .35rem;
  margin-top: .48rem;
  flex-wrap: wrap;
}

.badge {
  border: 1px solid rgba(250, 204, 21, 0.22);
  border-radius: 999px;
  font-size: .66rem;
  color: #c4a414;
  padding: .2rem .45rem;
  background: rgba(250, 204, 21, 0.07);
  letter-spacing: .03em;
}

/* ── RESPONSIVE ── */
@media (max-width: 1060px) {
  .page {
    grid-template-columns: 1fr;
  }

  .map {
    grid-row: auto;
  }

  #hero3d {
    min-height: 360px;
  }
}

@media (max-width: 760px) {
  .nav {
    grid-template-columns: 1fr;
  }

  .listings {
    grid-template-columns: 1fr;
  }

  .kpis {
    grid-template-columns: 1fr;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Manrope, system-ui, sans-serif;
  color: var(--text);
  background: radial-gradient(circle at 6% 8%, #e9f1ff 0%, transparent 30%), radial-gradient(circle at 92% 96%, #e6fbff 0%, transparent 35%), var(--bg);
}

#bg3d {
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: .32;
  pointer-events: none;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 5;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: .9rem;
  align-items: center;
  padding: .9rem 1rem;
  border-bottom: 1px solid var(--line);
  background: #ffffffe8;
  backdrop-filter: blur(14px);
}

.brand {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  text-decoration: none;
  color: var(--text);
}

.brand span {
  color: var(--brand);
}

.search-wrap {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: .45rem;
}

.search-wrap input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: .62rem .75rem;
  font: inherit;
}

.search-wrap button,
.save-btn {
  border: none;
  border-radius: 10px;
  padding: .58rem .9rem;
  font-weight: 700;
  cursor: pointer;
}

.search-wrap button {
  background: var(--brand);
  color: #fff;
}

.save-btn {
  background: #eef3ff;
  color: #31549d;
  border: 1px solid #cdd8f4;
}

.page {
  position: relative;
  z-index: 1;
  width: min(1300px, 96vw);
  margin: 1rem auto 2rem;
  display: grid;
  grid-template-columns: 1fr 1.618fr;
  gap: 1rem;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: .95rem;
  box-shadow: 0 7px 22px rgba(15, 23, 42, .05);
}

.controls h1 {
  font-family: "Space Grotesk", sans-serif;
  margin: .05rem 0 .45rem;
  font-size: clamp(1.4rem, 2.8vw, 2.2rem);
}

.lead {
  margin: 0 0 .8rem;
  color: var(--muted);
}

.chips {
  display: flex;
  gap: .45rem;
  flex-wrap: wrap;
  margin-bottom: .7rem;
}

.chip {
  border: 1px solid #d5deef;
  background: #f8faff;
  color: #3f5889;
  border-radius: 999px;
  padding: .34rem .7rem;
  font-weight: 700;
  font-size: .76rem;
  cursor: pointer;
}

.chip.active {
  border-color: #9ec0ff;
  background: #e9f2ff;
  color: #1f52a8;
}

.sliders {
  display: grid;
  gap: .6rem;
}

label {
  display: grid;
  gap: .32rem;
  color: var(--muted);
  font-size: .84rem;
}

label span {
  margin-left: .3rem;
  color: #3f5889;
  font-weight: 700;
}

input[type="range"] {
  width: 100%;
}

.kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .5rem;
  margin-top: .8rem;
}

.kpis>div {
  border: 1px solid #e2e9f7;
  border-radius: 11px;
  padding: .58rem .65rem;
  background: #fbfdff;
}

.kpis strong {
  display: block;
  font-size: 1.02rem;
}

.kpis span {
  color: var(--muted);
  font-size: .75rem;
}

.map {
  grid-row: span 2;
}

.head-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: .55rem;
}

.head-row h2 {
  margin: 0;
  font-size: 1.02rem;
}

.pill {
  border-radius: 999px;
  font-size: .66rem;
  letter-spacing: .1em;
  font-weight: 700;
  color: #0b6f97;
  background: #e8f8ff;
  border: 1px solid #bfe5f5;
  padding: .28rem .55rem;
}

#hero3d {
  width: 100%;
  min-height: 520px;
  height: calc(100% - 34px);
  display: block;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #edf5ff, #f8fcff);
}

.muted {
  color: var(--muted);
  font-size: .82rem;
}

.listings {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .62rem;
}

.listing {
  border: 1px solid #e2e9f7;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}

.thumb {
  height: 110px;
  background: linear-gradient(135deg, #e3efff, #e6fbff);
  border-bottom: 1px solid #e2e9f7;
}

.body {
  padding: .65rem;
}

.price {
  font-weight: 800;
  font-size: 1rem;
}

.title {
  margin: .2rem 0;
  font-weight: 700;
  font-size: .9rem;
}

.meta {
  color: var(--muted);
  font-size: .78rem;
}

.badges {
  display: flex;
  gap: .35rem;
  margin-top: .45rem;
  flex-wrap: wrap;
}

.badge {
  border: 1px solid #dbe5f7;
  border-radius: 999px;
  font-size: .68rem;
  color: #4e5f82;
  padding: .2rem .45rem;
  background: #f8fbff;
}

@media (max-width: 1060px) {
  .page {
    grid-template-columns: 1fr;
  }

  .map {
    grid-row: auto;
  }

  #hero3d {
    min-height: 360px;
  }
}

@media (max-width: 760px) {
  .nav {
    grid-template-columns: 1fr;
  }

  .listings {
    grid-template-columns: 1fr;
  }

  .kpis {
    grid-template-columns: 1fr;
  }
}
