/* =========================================================
   Urban Trading — site styles
   Brand colours are taken from the original site and logo.
   ========================================================= */
:root {
  --navy-950: #000042;   /* original footer */
  --navy-900: #0a1456;   /* logo ink */
  --navy-800: #001372;   /* original header overlay */
  --navy-700: #13238a;
  --blue:     #1151d3;   /* original theme accent */
  --blue-600: #0d43b3;
  --blue-50:  #eef3fd;
  --bg:       #f4f5f9;   /* modernised #eeeeee */
  --surface:  #ffffff;
  --line:     #e3e6ef;
  --text:     #1b2033;
  --muted:    #5d6478;
  --green:    #1fa855;
  --red:      #d23c3c;
  --amber:    #e59b0b;

  --radius:    14px;
  --radius-sm: 9px;
  --shadow-sm: 0 1px 2px rgba(10, 20, 86, .06), 0 1px 3px rgba(10, 20, 86, .05);
  --shadow:    0 6px 24px -8px rgba(10, 20, 86, .18);
  --shadow-lg: 0 24px 50px -20px rgba(10, 20, 86, .35);

  --font-head: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --container: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-600); }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--navy-950); line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.75rem, 3.6vw, 2.6rem); font-weight: 800; }
h2 { font-size: clamp(1.4rem, 2.6vw, 2rem); font-weight: 800; }
h3 { font-size: 1.1rem; font-weight: 700; }
p { margin: 0 0 1em; }
.icon { flex-shrink: 0; vertical-align: middle; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--navy-950); color: #fff; padding: 10px 16px; z-index: 100; }
.skip-link:focus { left: 10px; }
.hp { position: absolute; left: -9999px; opacity: 0; }
:focus-visible { outline: 3px solid rgba(17, 81, 211, .45); outline-offset: 2px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: 999px; border: 1.5px solid transparent;
  font: 600 .95rem/1.2 var(--font-body); cursor: pointer; white-space: nowrap;
  transition: background .2s, color .2s, border-color .2s, transform .15s, box-shadow .2s;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--blue); color: #fff; box-shadow: 0 6px 16px -6px rgba(17, 81, 211, .6); }
.btn--primary:hover { background: var(--blue-600); color: #fff; }
.btn--navy { background: var(--navy-900); color: #fff; }
.btn--navy:hover { background: var(--navy-950); color: #fff; }
.btn--white { background: #fff; color: var(--navy-950); }
.btn--white:hover { background: var(--blue-50); color: var(--navy-950); }
.btn--whatsapp { background: var(--green); color: #fff; }
.btn--whatsapp:hover { background: #178f47; color: #fff; }
.btn--ghost { background: transparent; color: var(--navy-900); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--navy-900); color: var(--navy-900); }
.btn--danger { background: #fff; color: var(--red); border-color: #f1c6c6; }
.btn--danger:hover { background: var(--red); color: #fff; border-color: var(--red); }
.btn--lg { padding: 14px 26px; font-size: 1rem; }
.btn--sm { padding: 7px 14px; font-size: .85rem; }
.btn--block { width: 100%; }

/* ---------- Top bar & header ---------- */
.topbar { background: var(--navy-950); color: rgba(255,255,255,.78); font-size: .85rem; }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 40px; }
.topbar__links { display: flex; align-items: center; gap: 20px; }
.topbar a { color: rgba(255,255,255,.85); display: inline-flex; align-items: center; gap: 6px; }
.topbar a:hover { color: #fff; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s;
}
.site-header.is-scrolled { box-shadow: var(--shadow); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.brand img { height: 56px; width: auto; }
.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a:not(.btn) {
  color: var(--text); font-weight: 500; font-size: .94rem;
  padding: 8px 12px; border-radius: 8px; position: relative;
}
.main-nav a:not(.btn):hover { color: var(--blue); background: var(--blue-50); }
.main-nav a.is-active { color: var(--blue); font-weight: 600; }
.main-nav a.is-active::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; border-radius: 2px; background: var(--blue);
}
.main-nav__cta { margin-left: 10px; }
.nav-toggle { display: none; background: none; border: 0; color: var(--navy-900); cursor: pointer; padding: 6px; }
.nav-toggle__close { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; overflow: hidden; isolation: isolate; }
.hero__bg { position: absolute; inset: 0; background-size: cover; background-position: center 40%; z-index: -2; transform: scale(1.03); }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, rgba(0,0,66,.94) 0%, rgba(0,19,114,.82) 45%, rgba(0,19,114,.45) 100%);
}
.hero__inner { padding: 88px 20px 72px; }
.hero h1 { color: #fff; font-size: clamp(2rem, 5vw, 3.4rem); max-width: 760px; margin-bottom: 18px; }
.hero__lead { font-size: 1.12rem; color: rgba(255,255,255,.85); max-width: 560px; margin-bottom: 34px; }
.eyebrow { font: 700 .78rem/1 var(--font-head); text-transform: uppercase; letter-spacing: .14em; color: var(--blue); margin-bottom: 12px; }
.eyebrow--light { color: #9fbaf5; }

.search-box {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr auto; gap: 6px; align-items: stretch;
  background: #fff; border-radius: 18px; padding: 8px; box-shadow: var(--shadow-lg); max-width: 980px;
}
.search-box__field { display: flex; flex-direction: column; justify-content: center; padding: 8px 16px; border-radius: 12px; min-width: 0; }
.search-box__field + .search-box__field { border-left: 1px solid var(--line); }
.search-box__field span { font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.search-box input, .search-box select {
  border: 0; outline: 0; background: transparent; font: 500 1rem var(--font-body); color: var(--text);
  padding: 4px 0; width: 100%; appearance: none; cursor: pointer;
}
.search-box input { cursor: text; }
.search-box .btn { border-radius: 12px; }

.hero__stats { display: flex; gap: 48px; margin: 44px 0 0; flex-wrap: wrap; }
.hero__stats div { border-left: 3px solid var(--blue); padding-left: 14px; }
.hero__stats dt { font: 800 1.7rem/1.1 var(--font-head); }
.hero__stats dd { margin: 2px 0 0; color: rgba(255,255,255,.75); font-size: .9rem; }

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section--tight { padding: 32px 0 64px; }
.section--tint { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 32px; }
.section__head h2 { margin: 0; }
.section__head--center { justify-content: center; text-align: center; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; white-space: nowrap; }
.link-arrow .icon { transition: transform .2s; }
.link-arrow:hover .icon { transform: translateX(4px); }

/* Category tiles */
.cat-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.cat-tile {
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 20px; color: var(--text); transition: transform .2s, box-shadow .2s, border-color .2s;
}
.cat-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; color: var(--text); }
.cat-tile__icon {
  width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center;
  background: var(--blue-50); color: var(--blue); margin-bottom: 12px; transition: background .2s, color .2s;
}
.cat-tile:hover .cat-tile__icon { background: var(--navy-900); color: #fff; }
.cat-tile__name { font: 700 1rem var(--font-head); color: var(--navy-950); }
.cat-tile__count { font-size: .85rem; color: var(--muted); }

/* Property cards */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--surface); border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); display: flex; flex-direction: column;
  transition: transform .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #dfe3ee; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card:hover .card__media img { transform: scale(1.06); }
.badge {
  position: absolute; top: 12px; left: 12px; padding: 5px 11px; border-radius: 999px;
  font: 700 .72rem/1 var(--font-head); text-transform: uppercase; letter-spacing: .06em; color: #fff;
  background: var(--navy-900);
}
.badge--static { position: static; display: inline-block; }
.badge--rent { background: var(--amber); }
.badge--sale { background: var(--blue); }
.badge--sold { background: var(--red); }
.card__count {
  position: absolute; right: 12px; bottom: 12px; display: inline-flex; gap: 5px; align-items: center;
  background: rgba(0,0,40,.65); color: #fff; font-size: .78rem; padding: 4px 9px; border-radius: 999px;
}
.card__body { padding: 18px 18px 16px; display: flex; flex-direction: column; flex: 1; }
.card__cats { display: flex; gap: 6px; margin-bottom: 8px; flex-wrap: wrap; }
.card__cats span { font-size: .74rem; font-weight: 600; color: var(--blue); background: var(--blue-50); padding: 3px 9px; border-radius: 6px; }
.card__title { font-size: 1.02rem; margin: 0 0 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card__title a { color: var(--navy-950); }
.card__title a:hover { color: var(--blue); }
.card__loc { display: flex; gap: 5px; align-items: flex-start; color: var(--muted); font-size: .88rem; margin: 0 0 14px; }
.card__loc .icon { margin-top: 3px; }
.card__foot { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.card__price { font: 800 .98rem var(--font-head); color: var(--navy-800); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card__date { font-size: .78rem; color: var(--muted); display: inline-flex; gap: 4px; align-items: center; white-space: nowrap; }

/* Features */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.feature { padding: 28px 24px; border-radius: var(--radius); background: var(--bg); border: 1px solid var(--line); }
.feature__icon { width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; background: var(--navy-900); color: #fff; margin-bottom: 18px; }
.feature p { color: var(--muted); margin: 0; font-size: .95rem; }

/* CTA band */
.cta-band { background: linear-gradient(110deg, var(--navy-950), var(--navy-800)); color: #fff; padding: 56px 0; position: relative; overflow: hidden; }
.cta-band::after {
  content: ""; position: absolute; right: -80px; top: -120px; width: 380px; height: 380px; border-radius: 50%;
  background: radial-gradient(circle, rgba(17,81,211,.55), transparent 70%);
}
.cta-band__inner { display: flex; justify-content: space-between; align-items: center; gap: 32px; position: relative; z-index: 1; }
.cta-band h2 { color: #fff; margin-bottom: 8px; }
.cta-band p { color: rgba(255,255,255,.8); margin: 0; }
.cta-band__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Page head / listings ---------- */
.page-head { background: linear-gradient(110deg, var(--navy-950), var(--navy-800)); color: #fff; padding: 44px 0 40px; }
.page-head h1 { color: #fff; margin-bottom: 6px; }
.page-head p { color: rgba(255,255,255,.75); margin: 0; }
.page-head .page-head__intro { max-width: 720px; color: rgba(255,255,255,.85); margin-bottom: 10px; }
.crumbs { font-size: .85rem; color: rgba(255,255,255,.65); margin-bottom: 14px; display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs a { color: rgba(255,255,255,.85); }
.crumbs a:hover { color: #fff; }
.crumbs--dark { color: var(--muted); }
.crumbs--dark a { color: var(--muted); }
.crumbs--dark a:hover { color: var(--blue); }

.filters {
  display: grid; grid-template-columns: 1fr repeat(3, minmax(150px, 200px)) auto; gap: 10px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; box-shadow: var(--shadow-sm);
  margin-top: -64px; position: relative;
}
.filters__search { display: flex; align-items: center; gap: 8px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; color: var(--muted); }
.filters__search input { border: 0; outline: 0; font: 500 .95rem var(--font-body); width: 100%; padding: 11px 0; background: transparent; }
.filters select, .form input, .form select, .form textarea {
  font: 500 .95rem var(--font-body); color: var(--text); background: #fff;
  border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px; width: 100%;
  transition: border-color .2s, box-shadow .2s;
}
.filters select:focus, .form input:focus, .form select:focus, .form textarea:focus, .filters__search:focus-within {
  outline: 0; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(17,81,211,.15);
}
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 22px 0 26px; }
.chip { padding: 7px 15px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--text); font-size: .88rem; font-weight: 500; }
.chip:hover { border-color: var(--blue); color: var(--blue); }
.chip.is-active { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }

.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 44px; flex-wrap: wrap; }
.pagination a, .pagination span {
  min-width: 42px; height: 42px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 10px; background: #fff; border: 1px solid var(--line); color: var(--text); font-weight: 600;
}
.pagination a:hover { border-color: var(--blue); color: var(--blue); }
.pagination .current { background: var(--blue); border-color: var(--blue); color: #fff; }
.pagination .gap { border: 0; background: none; min-width: 20px; }

.empty { text-align: center; padding: 64px 20px; color: var(--muted); background: #fff; border-radius: var(--radius); border: 1px dashed var(--line); }
.empty .icon { color: var(--blue); margin: 0 auto 14px; }

/* ---------- Property page ---------- */
.prop-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin: 6px 0 24px; }
.prop-head h1 { margin: 10px 0 10px; max-width: 820px; }
.prop-head__badges { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.tag { font-size: .8rem; font-weight: 600; padding: 4px 11px; border-radius: 999px; background: var(--blue-50); color: var(--blue); }
.prop-head__meta { display: flex; gap: 20px; flex-wrap: wrap; color: var(--muted); font-size: .92rem; margin: 0; }
.prop-head__meta span { display: inline-flex; gap: 6px; align-items: center; }
.prop-head__price { background: var(--navy-900); color: #fff; border-radius: var(--radius); padding: 14px 22px; text-align: right; flex-shrink: 0; max-width: 320px; }
.prop-head__price small { display: block; color: rgba(255,255,255,.7); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; }
.prop-head__price strong { font: 800 1.35rem/1.3 var(--font-head); }

.prop-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; align-items: start; }
.gallery { background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); margin-bottom: 24px; }
.gallery__main { position: relative; aspect-ratio: 16 / 10; background: #0b1030; cursor: zoom-in; }
.gallery__main img { width: 100%; height: 100%; object-fit: contain; }
.gallery__nav {
  position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%;
  border: 0; background: rgba(255,255,255,.92); color: var(--navy-950); display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow);
}
.gallery__nav:hover { background: #fff; }
.gallery__nav--prev { left: 14px; }
.gallery__nav--next { right: 14px; }
.gallery__counter { position: absolute; right: 14px; bottom: 14px; background: rgba(0,0,40,.7); color: #fff; font-size: .82rem; padding: 4px 11px; border-radius: 999px; }
.gallery__thumbs { display: flex; gap: 8px; padding: 10px; overflow-x: auto; scrollbar-width: thin; }
.gallery__thumbs button { flex: 0 0 92px; height: 68px; padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; cursor: pointer; opacity: .65; background: none; transition: opacity .2s, border-color .2s; }
.gallery__thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumbs button:hover { opacity: 1; }
.gallery__thumbs button.is-active { opacity: 1; border-color: var(--blue); }

.panel { background: #fff; border-radius: var(--radius); border: 1px solid var(--line); padding: 28px; }
.panel > h2 { font-size: 1.3rem; }
.prose { color: #33394d; font-size: 1rem; line-height: 1.8; overflow-wrap: anywhere; }

.prop-side { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 20px; }
.contact-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 10px; }
/* align-self stops the flex column from stretching the logo to the card width */
.contact-card__logo { height: 56px; width: auto; max-width: 100%; align-self: center; object-fit: contain; margin-bottom: 6px; }
.contact-card p { color: var(--muted); font-size: .93rem; margin: 0 0 6px; }
.contact-card h3 { margin-bottom: 4px; }

.form { display: flex; flex-direction: column; gap: 14px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-size: .87rem; font-weight: 600; color: var(--navy-950); }
.form label small { font-weight: 400; color: var(--muted); }
.form textarea { resize: vertical; min-height: 90px; }
.form--2col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.span-2 { grid-column: span 2; }

.wa-handoff { color: var(--muted); font-size: .9rem; margin: 0 0 10px; }
.alert { padding: 12px 14px; border-radius: 10px; font-size: .92rem; display: flex; gap: 8px; align-items: center; margin-bottom: 12px; }
.alert--success { background: #e8f7ee; color: #146c38; border: 1px solid #bfe8cf; }
.alert--error { background: #fdeeee; color: #a32525; border: 1px solid #f4c9c9; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(0,0,30,.94); display: grid; place-items: center; padding: 40px 70px; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 88vh; object-fit: contain; border-radius: 6px; }
.lightbox button { position: absolute; background: rgba(255,255,255,.1); color: #fff; border: 0; border-radius: 50%; width: 52px; height: 52px; display: grid; place-items: center; cursor: pointer; }
.lightbox button:hover { background: rgba(255,255,255,.22); }
.lightbox__close { top: 18px; right: 18px; }
.lightbox__nav--prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: 14px; top: 50%; transform: translateY(-50%); }

/* ---------- Contact page ---------- */
.contact-layout { display: grid; grid-template-columns: 1fr 1.3fr; gap: 40px; align-items: start; }
.info-list { list-style: none; padding: 0; margin: 24px 0 30px; display: flex; flex-direction: column; gap: 14px; }
.info-list li { display: flex; gap: 14px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.info-list__icon { width: 44px; height: 44px; border-radius: 10px; background: var(--blue-50); color: var(--blue); display: grid; place-items: center; flex-shrink: 0; }
.info-list small { display: block; color: var(--muted); font-size: .78rem; }
.info-list a { font-weight: 600; color: var(--navy-950); }
.sell-box { background: linear-gradient(120deg, var(--navy-950), var(--navy-800)); color: #fff; border-radius: var(--radius); padding: 26px; }
.sell-box h3 { color: #fff; }
.sell-box p { color: rgba(255,255,255,.8); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); color: rgba(255,255,255,.72); padding-top: 64px; font-size: .93rem; }
.site-footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 48px; }
.site-footer__brand img { height: 70px; width: auto; margin-bottom: 18px; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 18px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.site-footer a { color: rgba(255,255,255,.72); }
.site-footer a:hover { color: #fff; }
.contact-list li { display: flex; gap: 10px; align-items: center; }
.social { display: flex; gap: 10px; }
.social a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.08); color: #fff; transition: background .2s; }
.social a:hover { background: var(--blue); }
.site-footer__bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 20px 0; font-size: .85rem; }
.site-footer__bottom .container { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* Footer developer credit: glowing red shimmer */
.site-footer a.credit {
  font-weight: 800; letter-spacing: .02em;
  background: linear-gradient(90deg, #ff2d2d, #ff7a7a, #ff2d2d, #c40000, #ff2d2d);
  background-size: 300% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: credit-shimmer 3s linear infinite, credit-glow 1.6s ease-in-out infinite alternate;
}
.site-footer a.credit:hover { animation-duration: 1.2s, .8s; }
@keyframes credit-shimmer { to { background-position: 300% 0; } }
@keyframes credit-glow {
  from { filter: drop-shadow(0 0 0 rgba(255, 45, 45, 0)); }
  to   { filter: drop-shadow(0 0 6px rgba(255, 45, 45, .85)); }
}
@media (prefers-reduced-motion: reduce) {
  .site-footer a.credit { animation: none; color: #ff3b3b; background: none; }
}

.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 60; width: 58px; height: 58px; border-radius: 50%;
  background: var(--green); color: #fff; display: grid; place-items: center; box-shadow: 0 10px 25px -6px rgba(31,168,85,.6);
  transition: transform .2s;
}
.wa-float:hover { transform: scale(1.08); color: #fff; }

/* Reveal on scroll */
/* Uses `translate` so it doesn't fight the hover `transform` on cards */
.reveal { opacity: 0; translate: 0 18px; transition: opacity .6s ease, translate .6s ease, transform .25s, box-shadow .25s, border-color .2s; }
.reveal.is-visible { opacity: 1; translate: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; translate: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .main-nav a:not(.btn) { padding: 8px 8px; font-size: .9rem; }
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(3, 1fr); }
  .features { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1024px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed; inset: 116px 0 0 0; background: #fff; flex-direction: column; align-items: stretch;
    padding: 20px; gap: 4px; transform: translateX(100%); transition: transform .3s ease; overflow-y: auto;
  }
  .main-nav a:not(.btn) { padding: 14px 12px; font-size: 1.05rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .main-nav a.is-active::after { display: none; }
  .main-nav__cta { margin: 16px 0 0; }
  body.nav-open { overflow: hidden; }
  body.nav-open .main-nav { transform: none; }
  body.nav-open .nav-toggle__open { display: none; }
  body.nav-open .nav-toggle__close { display: inline; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .prop-layout { grid-template-columns: 1fr; }
  .prop-side { position: static; }
  .filters { grid-template-columns: 1fr 1fr; }
  .filters__search { grid-column: span 2; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
  .search-box { grid-template-columns: 1fr 1fr; }
  .search-box__field--grow { grid-column: span 2; }
  .search-box__field + .search-box__field { border-left: 0; }
  .search-box__field { border: 1px solid var(--line); }
  .search-box .btn { grid-column: span 2; }
}
@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .topbar .hide-sm, .topbar__tag { display: none; }
  .topbar__inner { justify-content: center; }
  .site-header__inner { min-height: 66px; }
  .brand img { height: 46px; }
  .main-nav { inset: 106px 0 0 0; }
  .hero__inner { padding: 56px 16px 48px; }
  .hero__stats { gap: 24px; }
  .hero__stats dt { font-size: 1.35rem; }
  .section { padding: 52px 0; }
  .section__head { flex-direction: column; align-items: flex-start; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .cat-tile { padding: 18px 16px; }
  .grid, .grid--4, .features { grid-template-columns: 1fr; }
  .cta-band__inner { flex-direction: column; align-items: flex-start; }
  .prop-head { flex-direction: column; align-items: stretch; }
  .prop-head__price { text-align: left; max-width: none; }
  .panel { padding: 20px; }
  .filters { grid-template-columns: 1fr; margin-top: -48px; }
  .filters__search { grid-column: auto; }
  .form--2col { grid-template-columns: 1fr; }
  .span-2 { grid-column: auto; }
  .site-footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .lightbox { padding: 20px 8px; }
  .lightbox__nav { display: none !important; }
  .search-box { grid-template-columns: 1fr; }
  .search-box__field--grow, .search-box .btn { grid-column: auto; }
}
