/*
 * Ebeye Jane public site stylesheet.
 * Written for this project; layout grid and utilities come from Bootstrap 5 (MIT),
 * icons from Bootstrap Icons (MIT) and scroll animations from AOS (MIT).
 */

/* -------------------------------------------------------------------------
   Tokens
   ------------------------------------------------------------------------- */
:root {
  /* Brand blue darkened from #189ad3 so text/links on white and white on blue meet WCAG AA */
  --brand: #0e7cb0;
  --brand-dark: #0b6894;
  --brand-tint: #eaf5fb;
  --brand-wash: rgba(14, 124, 176, 0.1);

  --ink: #1b2a33;
  --text: #31404a;
  --muted: #5d6a73;
  --line: rgba(27, 42, 51, 0.12);
  --surface: #ffffff;

  --radius-sm: 12px;
  --radius: 16px;
  --radius-lg: 20px;
  --pill: 999px;

  --shadow-sm: 0 4px 18px rgba(27, 42, 51, 0.07);
  --shadow: 0 12px 32px rgba(27, 42, 51, 0.09);
  --shadow-lg: 0 20px 50px rgba(27, 42, 51, 0.12);

  --font-body: "Roboto", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --font-head: "Raleway", "Roboto", system-ui, sans-serif;

  --ease: 0.3s ease;
}

/* -------------------------------------------------------------------------
   Base
   ------------------------------------------------------------------------- */
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--surface);
}

a {
  color: var(--brand);
  text-decoration: none;
  transition: color var(--ease);
}

a:hover {
  color: var(--brand-dark);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  color: var(--ink);
  font-weight: 700;
}

img {
  max-width: 100%;
}

/* Slide-in animations start off-screen; keep them from widening the page */
.site-main {
  overflow-x: clip;
}

.section {
  padding: 80px 0;
}

.section-heading {
  text-align: center;
  margin-bottom: 48px;
}

.section-heading h2 {
  position: relative;
  font-size: 32px;
  margin-bottom: 16px;
  padding-bottom: 18px;
}

.section-heading h2::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 50px;
  height: 3px;
  transform: translateX(-50%);
  background: var(--brand);
  border-radius: 2px;
}

.section-heading p {
  color: var(--muted);
  margin: 0;
}

/* "See more" link centred under a section's content */
.section-more {
  margin-top: 48px;
  text-align: center;
}

.section-more .btn-ghost {
  min-height: 52px;
  padding: 0 32px;
  font-size: 15px;
  letter-spacing: 0;
  text-transform: none;
}

/* Visible keyboard focus ring */
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
}

/* Shared buttons */
.btn-solid,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 26px;
  border-radius: var(--pill);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background var(--ease), color var(--ease), transform var(--ease);
}

.btn-solid {
  background: var(--brand);
  color: #ffffff;
  border: 2px solid var(--brand);
}

.btn-solid:hover {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
  color: #ffffff;
}

.btn-ghost {
  background: transparent;
  color: var(--brand);
  border: 2px solid var(--brand);
}

.btn-ghost:hover {
  background: var(--brand);
  color: #ffffff;
}

/* Listing status badges, one colour per property_statuses value */
.status-badge {
  display: inline-block;
  padding: 8px 16px;
  border-radius: var(--pill);
  background: var(--status-color, #475569);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}

.status-badge--sm {
  padding: 6px 12px;
  font-size: 11px;
}

.status-preselling { --status-color: #0e7cb0; }
.status-rfo { --status-color: #15803d; }
.status-sold-out { --status-color: #b91c1c; }
.status-re-open { --status-color: #b45309; }

/* -------------------------------------------------------------------------
   Header and navigation
   ------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 997;
  background: var(--surface);
  padding: 15px 0;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
  transition: box-shadow var(--ease);
}

.is-scrolled .site-header {
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo sized so the "REAL ESTATE BROKER" line stays legible */
.site-logo {
  display: flex;
  align-items: center;
  line-height: 1;
}

.site-logo img {
  width: auto;
  height: 60px;
}

.site-nav__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav__list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  color: var(--ink);
  font-family: var(--font-head);
  font-weight: 600;
  white-space: nowrap;
}

.site-nav__list a:hover,
.site-nav__list a.is-active,
.site-nav__list .is-current > .site-nav__parent {
  color: var(--brand);
}

.site-nav__chevron {
  font-size: 12px;
  line-height: 0;
  transition: transform var(--ease);
}

.nav-toggle {
  display: none;
}

/* Desktop navigation */
@media (min-width: 1200px) {
  .site-nav__list {
    display: flex;
    align-items: center;
  }

  .site-nav__list > li {
    position: relative;
  }

  .site-nav__list > li > a {
    padding: 18px 15px;
    font-size: 15px;
  }

  .site-nav__list > li:last-child > a {
    padding-right: 0;
  }

  .site-nav__sub {
    position: absolute;
    top: 130%;
    left: 14px;
    z-index: 99;
    min-width: 200px;
    margin: 0;
    padding: 10px 0;
    list-style: none;
    background: var(--surface);
    border-radius: 8px;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transition: var(--ease);
  }

  .site-nav__sub a {
    padding: 10px 20px;
    font-size: 15px;
    font-weight: 500;
  }

  /* Opens on hover and on keyboard focus */
  .has-sub:hover > .site-nav__sub,
  .has-sub:focus-within > .site-nav__sub {
    top: 100%;
    opacity: 1;
    visibility: visible;
  }
}

/* Mobile and tablet navigation: full-screen dimmed overlay with a menu panel */
@media (max-width: 1199px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--ink);
    font-size: 28px;
    cursor: pointer;
  }

  .site-nav__list {
    display: none;
    position: absolute;
    top: 96px;
    left: 20px;
    right: 20px;
    max-height: calc(100vh - 116px);
    padding: 10px 0;
    overflow-y: auto;
    background: var(--surface);
    border-radius: 8px;
    box-shadow: var(--shadow);
  }

  .site-nav__list a {
    padding: 10px 20px;
    font-size: 17px;
    font-weight: 500;
  }

  .site-nav__chevron {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--brand-wash);
  }

  .site-nav__sub {
    display: none;
    margin: 6px 20px 10px;
    padding: 6px 0;
    list-style: none;
    border: 1px solid var(--line);
    border-radius: 8px;
  }

  .has-sub.is-open > .site-nav__sub {
    display: block;
  }

  .has-sub.is-open .site-nav__chevron {
    transform: rotate(180deg);
    background: var(--brand);
    color: #ffffff;
  }

  body.nav-open {
    overflow: hidden;
  }

  body.nav-open .site-nav {
    position: fixed;
    inset: 0;
    z-index: 9997;
    background: rgba(20, 30, 36, 0.8);
  }

  body.nav-open .site-nav__list {
    display: block;
  }

  body.nav-open .nav-toggle {
    position: absolute;
    top: 18px;
    right: 12px;
    z-index: 9999;
    color: #ffffff;
  }

  /* Floating buttons step aside while the menu is open */
  body.nav-open .contact-fab,
  body.nav-open .to-top {
    display: none !important;
  }
}

@media (max-width: 767px) {
  .site-logo img {
    height: 50px;
  }
}

/* -------------------------------------------------------------------------
   Hero
   ------------------------------------------------------------------------- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 80vh;
  padding: 80px 0;
  overflow: hidden;
  background: linear-gradient(45deg, #ffffff 0%, #f3f8fb 100%);
}

.hero > .container {
  position: relative;
  z-index: 1;
}

/* Right half (lg and up): washed-out skyline (our own illustration) faded into the left half */
@media (min-width: 992px) {
  .hero::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background:
      linear-gradient(rgba(234, 245, 251, 0.35), rgba(234, 245, 251, 0.35)),
      url("../../images/hero-skyline.svg") center bottom / cover no-repeat;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 40%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 40%);
  }
}

.hero__title {
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
}

.hero__lead {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--muted);
  margin-bottom: 48px;
}

@media (max-width: 768px) {
  .hero__title {
    font-size: 2.4rem;
  }
}

/* Compact broker strip, used below lg in place of the large portrait */
.agent-strip {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 24px;
  padding: 12px 14px;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.agent-strip img {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  background: linear-gradient(160deg, #e3f3fb 0%, #bfe3f4 100%);
  border: 2px solid var(--brand);
}

.agent-strip__info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.3;
}

.agent-strip__info strong {
  color: var(--ink);
  font-size: 15px;
}

.agent-strip__info span {
  font-size: 13px;
  color: var(--muted);
}

.agent-strip__call {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  margin-left: auto;
  border-radius: 50%;
  background: var(--brand);
  color: #ffffff;
  font-size: 18px;
}

.agent-strip__call:hover {
  color: #ffffff;
  background: var(--brand-dark);
}

/* Property search card */
.search-card {
  padding: 36px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
}

.search-card__head {
  text-align: center;
  margin-bottom: 32px;
}

.search-card__head h2 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.search-card__head p {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0;
}

.search-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.search-field {
  position: relative;
}

.search-field label {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}

.search-field input,
.search-field select {
  width: 100%;
  height: 54px;
  padding: 0 16px 0 46px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background-color: var(--surface);
  color: var(--ink);
  font-size: 15px;
  transition: border-color var(--ease), box-shadow var(--ease);
}

.search-field select {
  padding-right: 40px;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%235d6a73' stroke-width='2' d='M3 6l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 12px;
}

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

.search-field input:focus,
.search-field select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(14, 124, 176, 0.18);
  outline: none;
}

.search-field__icon {
  position: absolute;
  left: 17px;
  bottom: 17px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1;
  pointer-events: none;
}

.search-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 63px;
  margin-top: 28px;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--brand);
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  transition: background var(--ease);
}

.search-submit:hover {
  background: var(--brand-dark);
}

@media (max-width: 576px) {
  .search-card {
    padding: 24px 20px;
  }

  .search-card__head h2 {
    font-size: 1.3rem;
  }

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

/* Broker portrait (lg and up): cutout on a soft white glow, details card overlapping the bottom */
.hero-portrait {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  height: 600px;
  padding-bottom: 56px;
}

.hero-portrait__glow {
  position: absolute;
  left: 50%;
  bottom: 40px;
  width: min(120%, 560px);
  aspect-ratio: 1;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.6) 55%, rgba(255, 255, 255, 0));
}

.hero-portrait__img {
  position: relative;
  z-index: 1;
  width: auto;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
  object-position: bottom center;
  filter: drop-shadow(0 18px 28px rgba(15, 45, 70, 0.18));
}

.hero-portrait__card {
  position: absolute;
  left: 50%;
  bottom: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 16px;
  width: max-content;
  max-width: 100%;
  padding: 14px 14px 14px 22px;
  transform: translateX(-50%);
  background: var(--surface);
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
}

.hero-portrait__info {
  display: flex;
  flex-direction: column;
  line-height: 1.35;
}

.hero-portrait__info strong {
  font-family: var(--font-head);
  font-size: 18px;
  color: var(--ink);
}

.hero-portrait__info span {
  font-size: 13px;
  color: var(--muted);
}

.hero-portrait__info i {
  color: var(--brand);
  margin-right: 2px;
}

.hero-portrait__call {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: var(--pill);
  background: var(--brand);
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.hero-portrait__call:hover {
  color: #ffffff;
  background: var(--brand-dark);
}

/* Narrow desktop: stack the details card so the name stays on one line */
@media (max-width: 1199px) {
  .hero-portrait__card {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    width: calc(100% - 32px);
    padding: 14px 16px;
    text-align: center;
  }

  .hero-portrait__call {
    justify-content: center;
  }
}

/* -------------------------------------------------------------------------
   Featured listings
   ------------------------------------------------------------------------- */
.listing-title a {
  color: var(--ink);
}

.listing-title a:hover {
  color: var(--brand);
}

.listing-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
}

.listing-meta i {
  color: var(--brand);
}

.listing-media {
  position: relative;
  overflow: hidden;
}

.listing-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.listing-media:hover img {
  transform: scale(1.04);
}

/* Lead listing: large card */
.listing-feature {
  overflow: hidden;
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.listing-feature .listing-media {
  height: 400px;
}

.listing-feature__overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  padding: 24px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.45));
  pointer-events: none;
}

.listing-feature__place {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--pill);
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(6px);
  color: #ffffff;
  font-size: 14px;
  font-weight: 500;
}

.listing-feature__body {
  padding: 32px;
}

.listing-feature__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
}

.listing-feature .listing-title {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 10px;
}

.listing-feature .listing-meta {
  font-size: 15px;
}

.listing-feature__price {
  flex-shrink: 0;
  max-width: 50%;
  padding: 12px 24px;
  border-radius: var(--pill);
  background: var(--brand);
  color: #ffffff;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.3;
  text-align: center;
  box-shadow: 0 8px 20px rgba(14, 124, 176, 0.3);
}

.listing-feature__text {
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 24px;
}

.listing-feature__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

@media (max-width: 992px) {
  .listing-feature__head {
    flex-direction: column;
  }

  .listing-feature__price {
    max-width: 100%;
  }
}

@media (max-width: 576px) {
  .listing-feature .listing-media {
    height: 260px;
  }

  .listing-feature__body {
    padding: 24px 20px;
  }

  .listing-feature .listing-title {
    font-size: 24px;
  }

  .listing-feature__place {
    display: none;
  }

  .listing-feature__actions > a {
    flex: 1 1 100%;
  }
}

/* Next two listings: compact cards beside the lead listing */
.listing-stack {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.listing-compact {
  overflow: hidden;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform var(--ease), box-shadow var(--ease);
}

.listing-compact:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.listing-compact .listing-media {
  height: 180px;
}

.listing-compact .status-badge {
  position: absolute;
  top: 12px;
  right: 12px;
}

.listing-compact__body {
  padding: 20px;
}

.listing-compact .listing-title {
  font-size: 16px;
  line-height: 1.4;
  margin-bottom: 8px;
}

.listing-compact .listing-meta {
  font-size: 13px;
  margin-bottom: 14px;
}

.listing-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.listing-price {
  color: var(--ink);
  font-size: 18px;
  font-weight: 800;
}

.btn-small {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  min-width: 64px;
  min-height: 44px;
  padding: 0 16px;
  border-radius: var(--pill);
  background: var(--brand);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  white-space: nowrap;
}

.btn-small:hover {
  color: #ffffff;
  background: var(--brand-dark);
}

/* Desktop: the compact cards stretch so the last ends level with the lead card */
@media (min-width: 992px) {
  .listing-stack {
    height: 100%;
  }

  .listing-compact {
    display: flex;
    flex: 1 1 0;
    flex-direction: column;
  }

  .listing-compact__body {
    display: flex;
    flex: 1;
    flex-direction: column;
  }

  .listing-compact .listing-price-row {
    margin-top: auto;
  }
}

/* Tablet: the compact cards sit side by side */
@media (min-width: 576px) and (max-width: 991px) {
  .listing-stack {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}

/* Remaining listings: horizontal rows */
.listing-row {
  display: flex;
  height: 100%;
  overflow: hidden;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform var(--ease), box-shadow var(--ease);
}

.listing-row:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.listing-row .listing-media {
  flex-shrink: 0;
  width: 200px;
}

.listing-row .status-badge {
  position: absolute;
  top: 15px;
  left: 15px;
}

.listing-row__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 25px;
}

.listing-row .listing-title {
  font-size: 20px;
  margin-bottom: 8px;
}

.listing-row .listing-meta {
  font-size: 14px;
  margin-bottom: 12px;
}

.listing-row__text {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 16px;
}

.listing-row .listing-price-row {
  margin-top: auto;
}

.listing-row .listing-price {
  font-size: 20px;
}

.listing-row .btn-small {
  padding: 0 20px;
  font-size: 13px;
}

@media (max-width: 576px) {
  .listing-row {
    flex-direction: column;
  }

  .listing-row .listing-media {
    width: 100%;
    height: 200px;
  }

  .listing-row .btn-small {
    flex: 1;
  }
}

/* -------------------------------------------------------------------------
   About
   ------------------------------------------------------------------------- */
.about {
  background: var(--brand-tint);
}

.about__eyebrow {
  display: inline-block;
  margin-bottom: 16px;
  padding: 8px 16px;
  border-radius: var(--pill);
  background: var(--brand-wash);
  color: var(--brand);
  font-size: 14px;
  font-weight: 600;
}

.about__title {
  font-size: 2.25rem;
  margin-bottom: 24px;
}

.about__text {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.8;
}

.about__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 32px;
  margin-top: 32px;
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 32px;
  border-radius: var(--pill);
  background: var(--brand);
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 10px 24px rgba(14, 124, 176, 0.3);
  transition: background var(--ease), transform var(--ease);
}

.btn-cta:hover {
  color: #ffffff;
  background: var(--brand-dark);
  transform: translateY(-2px);
}

.call-line {
  display: flex;
  align-items: center;
  gap: 14px;
}

.call-line__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--brand-wash);
  color: var(--brand);
  font-size: 20px;
}

.call-line__label {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.call-line__number {
  display: inline-block;
  color: var(--ink);
  font-weight: 700;
}

/* Credentials card */
.credentials {
  padding: 32px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.credential {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.credential + .credential {
  margin-top: 24px;
}

.credential__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  border-radius: var(--radius-sm);
  background: var(--brand-wash);
  color: var(--brand);
  font-size: 22px;
}

.credential h3 {
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.credential p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

/* -------------------------------------------------------------------------
   Services: compact tappable tiles (4 across on desktop, 2x2 on mobile)
   ------------------------------------------------------------------------- */
.service-tile {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 28px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease);
}

.service-tile:hover {
  color: var(--text);
  transform: translateY(-4px);
  border-color: rgba(14, 124, 176, 0.4);
  box-shadow: var(--shadow);
}

.service-tile__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: 18px;
  border-radius: 14px;
  background: var(--brand-wash);
  color: var(--brand);
  font-size: 24px;
  transition: background var(--ease), color var(--ease);
}

.service-tile:hover .service-tile__icon {
  background: var(--brand);
  color: #ffffff;
}

.service-tile h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.service-tile p {
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.service-tile__link {
  margin-top: auto;
  color: var(--brand);
  font-size: 14px;
  font-weight: 600;
}

.service-tile__link i {
  margin-left: 4px;
  transition: margin-left var(--ease);
}

.service-tile:hover .service-tile__link i {
  margin-left: 8px;
}

@media (max-width: 767px) {
  .service-tile {
    padding: 20px 16px;
  }

  .service-tile__icon {
    width: 44px;
    height: 44px;
    margin-bottom: 14px;
    font-size: 20px;
  }

  .service-tile h3 {
    font-size: 16px;
  }

  .service-tile__link {
    font-size: 13px;
  }
}

/* -------------------------------------------------------------------------
   Closing call-to-action band
   ------------------------------------------------------------------------- */
.cta-band {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 500px;
  padding: 80px 0;
  text-align: center;
}

.cta-band__bg {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
}

.cta-band__bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.82);
}

.cta-band .container {
  position: relative;
  z-index: 1;
}

.cta-band h2 {
  font-size: 2.5rem;
  margin-bottom: 24px;
}

.cta-band p {
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 40px;
}

.cta-band__buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-bottom: 48px;
}

.cta-band__buttons > a {
  min-height: 48px;
  padding: 0 30px;
  font-size: 15px;
  letter-spacing: 0;
  text-transform: none;
}

.cta-band__features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px;
}

.cta-band__feature {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 500;
}

.cta-band__feature i {
  color: var(--brand);
  font-size: 1.2rem;
}

@media (max-width: 768px) {
  .cta-band h2 {
    font-size: 2rem;
  }
}

@media (max-width: 576px) {
  .cta-band__buttons {
    flex-direction: column;
    align-items: center;
  }

  .cta-band__buttons > a {
    width: 100%;
    max-width: 280px;
  }

  .cta-band__features {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }
}

/* -------------------------------------------------------------------------
   Footer
   ------------------------------------------------------------------------- */
.site-footer {
  padding-top: 56px;
  background: var(--brand);
  color: #ffffff;
  font-size: 14px;
}

.site-footer a {
  color: #ffffff;
}

.site-footer a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.site-footer a:focus-visible {
  outline-color: #ffffff;
}

.site-footer__logo {
  display: inline-block;
  margin-bottom: 20px;
}

.site-footer__logo img {
  width: auto;
  height: 72px;
  filter: brightness(0) invert(1);
}

.site-footer p {
  line-height: 1.7;
}

.site-footer h2 {
  margin-bottom: 16px;
  color: #ffffff;
  font-size: 16px;
}

.social-links {
  display: flex;
  gap: 10px;
  margin-top: 24px;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  font-size: 16px;
  transition: background var(--ease), color var(--ease);
}

.social-links a:hover {
  background: #ffffff;
  color: var(--brand);
  text-decoration: none;
}

.footer-links {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links li + li {
  margin-top: 14px;
}

.footer-contact p {
  margin-bottom: 6px;
}

.footer-contact a {
  overflow-wrap: anywhere;
}

.site-footer__bottom {
  margin-top: 40px;
  padding: 24px 0;
  background: var(--brand-dark);
  text-align: center;
}

.site-footer__bottom p {
  margin: 0;
}

/* Text links get vertical padding on phones so the touch area reaches ~44px */
@media (max-width: 767px) {
  .footer-links li + li {
    margin-top: 0;
  }

  .footer-links a,
  .footer-contact a,
  .call-line__number {
    display: inline-block;
    padding: 11px 0;
  }
}

/* -------------------------------------------------------------------------
   Floating contact buttons and back-to-top
   ------------------------------------------------------------------------- */
.contact-fab {
  position: fixed;
  right: 13px;
  bottom: 69px;
  z-index: 9990;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.contact-fab__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-fab__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  color: #ffffff;
  font-size: 22px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-fab__btn:hover,
.contact-fab__btn:focus-visible {
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}

.contact-fab__btn--messenger {
  background: linear-gradient(135deg, #0866ff 0%, #a033ff 100%);
}

.contact-fab__btn--call {
  background: #15803d;
}

/* Collapse toggle: small x when open, single chat button when collapsed */
.contact-fab__toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: -6px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.contact-fab__toggle i {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #ffffff;
  color: var(--text);
  font-size: 13px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease;
}

.contact-fab__toggle:hover i {
  transform: scale(1.08);
}

.contact-fab__toggle:focus-visible {
  border-radius: 50%;
  outline-offset: 2px;
}

.contact-fab.is-collapsed .contact-fab__actions {
  display: none;
}

.contact-fab.is-collapsed .contact-fab__toggle {
  width: 48px;
  height: 48px;
  margin-bottom: 0;
}

.contact-fab.is-collapsed .contact-fab__toggle i {
  width: 48px;
  height: 48px;
  background: var(--brand);
  color: #ffffff;
  font-size: 22px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}

.to-top {
  position: fixed;
  right: 15px;
  bottom: 15px;
  z-index: 9990;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--brand);
  color: #ffffff;
  font-size: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--ease), visibility var(--ease);
}

.to-top.is-visible {
  opacity: 1;
  visibility: visible;
}

.to-top:hover {
  color: #ffffff;
  background: var(--brand-dark);
}

/* -------------------------------------------------------------------------
   Reduced motion: no transitions, hover lifts or smooth scrolling
   (scroll animations are switched off in site.js)
   ------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto !important;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* =========================================================================
   Inner pages: category, search, property detail, contact
   ========================================================================= */

/* Page header with breadcrumb */
.page-header {
  padding: 56px 0 40px;
  background: linear-gradient(45deg, #ffffff 0%, var(--brand-tint) 100%);
}

.page-header h1 {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 8px;
}

.page-header__sub {
  color: var(--muted);
  font-size: 1.05rem;
  margin: 0;
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 14px;
}

.crumbs li + li::before {
  content: "/";
  margin-right: 6px;
  color: #9aa6ae;
}

.crumbs [aria-current] {
  color: var(--ink);
}

@media (max-width: 768px) {
  .page-header {
    padding: 36px 0 28px;
  }

  .page-header h1 {
    font-size: 2rem;
  }
}

.section--tight {
  padding: 48px 0 80px;
}

/* Form controls shared by the inner pages */
.field-select {
  height: 48px;
  min-width: 220px;
  padding: 0 40px 0 16px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%235d6a73' stroke-width='2' d='M3 6l5 5 5-5'/%3E%3C/svg%3E") no-repeat right 16px center / 12px;
  color: var(--ink);
  font-size: 15px;
  appearance: none;
}

.field-input {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--ink);
  font-size: 15px;
}

.field-select:focus,
.field-input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(14, 124, 176, 0.18);
  outline: none;
}

/* Category toolbar: result count and location filter */
.listing-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 32px;
}

.listing-toolbar__count {
  margin: 0;
  color: var(--muted);
}

.listing-toolbar label {
  margin-right: 10px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}

@media (max-width: 576px) {
  .listing-toolbar > div {
    width: 100%;
  }

  .listing-toolbar .field-select {
    width: 100%;
    min-width: 0;
    margin-top: 8px;
  }
}

.listing-compact__category {
  display: block;
  margin-bottom: 6px;
  color: var(--brand);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* Grid cards keep equal heights within a row */
.listing-grid .listing-compact {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.listing-grid .listing-compact__body {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.listing-grid .listing-price-row {
  margin-top: auto;
}

.listing-grid .listing-compact .listing-media {
  height: 220px;
}

.empty-state {
  padding: 48px 24px;
  text-align: center;
  color: var(--muted);
  background: var(--brand-tint);
  border-radius: var(--radius);
}

.empty-state i {
  display: block;
  margin-bottom: 12px;
  color: var(--brand);
  font-size: 32px;
}

/* Search page: filter panel */
.filter-panel {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

@media (min-width: 992px) {
  .filter-panel {
    position: sticky;
    top: 110px;
  }
}

.filter-panel h2 {
  font-size: 1.15rem;
  margin-bottom: 18px;
}

.filter-group {
  margin: 0 0 20px;
  padding: 0;
  border: 0;
}

.filter-group legend,
.filter-group > label {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}

.filter-group .field-select {
  width: 100%;
  min-width: 0;
}

.check-option {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  color: var(--text);
  font-size: 15px;
  cursor: pointer;
}

.check-option input {
  width: 18px;
  height: 18px;
  accent-color: var(--brand);
}

.filter-panel .search-submit {
  height: 52px;
  margin-top: 4px;
}

/* Property detail: header */
.property-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.property-head__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin-top: 12px;
  color: var(--muted);
}

.property-head__meta i {
  color: var(--brand);
}

.property-head__price {
  padding: 12px 24px;
  border-radius: var(--pill);
  background: var(--brand);
  color: #ffffff;
  font-size: 22px;
  font-weight: 800;
  box-shadow: 0 8px 20px rgba(14, 124, 176, 0.3);
}

/* Property detail: photo gallery (scroll-snap, no carousel library) */
.gallery {
  position: relative;
  margin-bottom: 40px;
}

.gallery__track {
  display: flex;
  overflow-x: auto;
  border-radius: var(--radius-lg);
  background: #eef3f6;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.gallery__track::-webkit-scrollbar {
  display: none;
}

.gallery__slide {
  flex: 0 0 100%;
  aspect-ratio: 16 / 9;
  scroll-snap-align: start;
}

.gallery__slide a {
  display: block;
  height: 100%;
}

.gallery__slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.gallery__nav {
  position: absolute;
  top: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font-size: 20px;
  box-shadow: var(--shadow-sm);
  transform: translateY(-50%);
  cursor: pointer;
}

.gallery__nav--prev { left: 14px; }
.gallery__nav--next { right: 14px; }

.gallery__count {
  position: absolute;
  right: 14px;
  bottom: 14px;
  padding: 4px 12px;
  border-radius: var(--pill);
  background: rgba(20, 30, 36, 0.7);
  color: #ffffff;
  font-size: 13px;
}

@media (max-width: 576px) {
  .gallery__slide {
    aspect-ratio: 4 / 3;
  }
}

/* Property detail: content-builder blocks */
.content-blocks > * + * {
  margin-top: 20px;
}

.content-blocks h2 {
  position: relative;
  margin-top: 36px;
  padding-bottom: 12px;
  font-size: 1.6rem;
}

.content-blocks h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 44px;
  height: 3px;
  border-radius: 2px;
  background: var(--brand);
}

.content-blocks > h2:first-child {
  margin-top: 0;
}

.content-text {
  color: var(--text);
  font-size: 1.02rem;
  line-height: 1.8;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  display: flex;
  gap: 10px;
  line-height: 1.5;
}

.feature-list i {
  color: var(--brand);
}

@media (max-width: 576px) {
  .feature-list {
    grid-template-columns: 1fr;
  }
}

.media-grid {
  display: grid;
  gap: 10px;
}

.media-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.media-grid--3,
.media-grid--4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

@media (max-width: 576px) {
  .media-grid--3,
  .media-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.media-grid a {
  display: block;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: #eef3f6;
}

.media-grid img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.4s ease;
}

.media-grid--2 img,
.media-grid--3 img,
.media-grid--4 img {
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.media-grid a:hover img {
  transform: scale(1.04);
}

.video-embed {
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 16 / 9;
  background: #000000;
}

.video-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* Property detail and contact: agent card */
.agent-card {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  text-align: center;
}

@media (min-width: 992px) {
  .agent-card--sticky {
    position: sticky;
    top: 110px;
  }
}

.agent-card__photo {
  width: 96px;
  height: 96px;
  margin: 0 auto 12px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  background: linear-gradient(160deg, #e3f3fb 0%, #bfe3f4 100%);
  border: 3px solid var(--brand);
}

.agent-card h2 {
  margin-bottom: 2px;
  font-size: 1.2rem;
}

.agent-card__role {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 14px;
}

.agent-card__actions {
  display: grid;
  gap: 10px;
}

.agent-card__actions > a {
  width: 100%;
}

.agent-card__note {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 13px;
}

/* Contact page */
.contact-methods {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

@media (max-width: 576px) {
  .contact-methods {
    grid-template-columns: 1fr;
  }
}

.contact-method {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 84px;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  transition: border-color var(--ease), box-shadow var(--ease), transform var(--ease);
}

.contact-method:hover {
  color: var(--text);
  border-color: rgba(14, 124, 176, 0.4);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.contact-method__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--brand-wash);
  color: var(--brand);
  font-size: 22px;
}

.contact-method__label {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.contact-method__value {
  display: block;
  color: var(--ink);
  font-weight: 700;
  overflow-wrap: anywhere;
}

.contact-social {
  margin-top: 32px;
}

.contact-social h2 {
  font-size: 1.1rem;
  margin-bottom: 12px;
}

.contact-social .social-links {
  margin-top: 0;
}

.contact-social .social-links a {
  border-color: var(--line);
  color: var(--brand);
}

.contact-social .social-links a:hover {
  background: var(--brand);
  color: #ffffff;
}

.contact-portrait {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  max-width: 420px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 24px;
  background: linear-gradient(160deg, #e3f3fb 0%, #bfe3f4 100%);
}

.contact-portrait img {
  width: 100%;
  height: auto;
  padding-top: 32px;
}

/* =========================================================================
   Link-in-bio page (/biolinks): single centred column
   ========================================================================= */
.bio-page {
  background: linear-gradient(180deg, var(--brand-tint) 0%, #ffffff 420px);
}

.bio {
  max-width: 560px;
  margin: 0 auto;
  padding: 40px 16px 32px;
}

.bio-profile {
  text-align: center;
  margin-bottom: 28px;
}

.bio-profile__photo {
  width: 148px;
  height: 148px;
  margin: 0 auto 16px;
  overflow: hidden;
  border: 4px solid #ffffff;
  border-radius: 50%;
  background: linear-gradient(160deg, #e3f3fb 0%, #bfe3f4 100%);
  box-shadow: var(--shadow);
}

.bio-profile__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  padding-top: 8px;
}

.bio-profile h1 {
  font-size: 1.9rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.bio-titles {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}

.bio-titles li {
  padding: 6px 12px;
  border-radius: var(--pill);
  background: var(--brand-wash);
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 600;
}

.bio-social {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.bio-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #ffffff;
  color: var(--brand);
  font-size: 18px;
  transition: background var(--ease), color var(--ease);
}

.bio-social a:hover {
  background: var(--brand);
  color: #ffffff;
}

.bio-links {
  display: grid;
  gap: 12px;
  margin-bottom: 28px;
}

.bio-link {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 58px;
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  color: var(--ink);
  font-weight: 600;
  box-shadow: var(--shadow-sm);
  transition: transform var(--ease), border-color var(--ease);
}

.bio-link:hover {
  color: var(--ink);
  border-color: rgba(14, 124, 176, 0.4);
  transform: translateY(-2px);
}

.bio-link > i:first-child {
  color: var(--brand);
  font-size: 20px;
}

.bio-link--primary {
  border-color: var(--brand);
  background: var(--brand);
  color: #ffffff;
}

.bio-link--primary:hover {
  color: #ffffff;
  background: var(--brand-dark);
}

.bio-link--primary > i:first-child {
  color: #ffffff;
}

.bio-link__arrow {
  margin-left: auto;
  opacity: 0.6;
}

.bio-card {
  margin-bottom: 20px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #ffffff;
}

.bio-card h2 {
  font-size: 1.25rem;
  margin-bottom: 14px;
}

.bio-card p {
  color: var(--text);
  line-height: 1.8;
}

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

.bio-details {
  display: grid;
  gap: 12px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}

.bio-details li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  line-height: 1.5;
}

.bio-details i {
  color: var(--brand);
  margin-top: 2px;
}

.bio-details a {
  overflow-wrap: anywhere;
}

.bio-map {
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 4 / 3;
  background: #eef3f6;
}

.bio-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.bio-footer {
  padding-top: 12px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

.bio-footer img {
  width: auto;
  height: 48px;
  margin-bottom: 10px;
}
