/* ================================================================
   GYPSY WIND PROPERTIES
   Starkville, Mississippi — residential & commercial leasing
   ================================================================ */

:root {
  --ink:      #151c22;
  --body:     #48535d;
  --mute:     #7b858f;
  --faint:    #9aa3ab;

  --bg:       #ffffff;
  --bg-alt:   #f5f7f8;
  --bg-deep:  #10201b;

  --line:     #e2e6e9;
  --line-str: #cdd4d9;
  --line-dk:  rgba(255,255,255,.16);

  --brand:      #1b4d3e;
  --brand-dk:   #123528;
  --brand-lt:   #eaf1ee;
  --brand-mid:  #2f6b58;

  --flag:     #a4501f;      /* "available" / attention only */
  --flag-lt:  #fbf0e8;
  --ok:       #2e8b57;

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --wrap: 1200px;
  --wrap-narrow: 760px;
  --pad: clamp(3.25rem, 6vw, 5.5rem);
  --r: 8px;
  --r-lg: 12px;
  --ease: cubic-bezier(.22,.61,.36,1);
  --sh-sm: 0 1px 2px rgba(21,28,34,.06), 0 1px 3px rgba(21,28,34,.04);
  --sh:    0 2px 6px rgba(21,28,34,.06), 0 8px 20px -8px rgba(21,28,34,.14);
  --sh-lg: 0 4px 10px rgba(21,28,34,.07), 0 18px 40px -14px rgba(21,28,34,.22);
}

*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg); color: var(--body);
  font-family: var(--font); font-size: 1rem; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img,svg,iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button,input,select,textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 3px; }

h1,h2,h3,h4 { color: var(--ink); font-weight: 700; line-height: 1.18; letter-spacing: -.021em; }
h1 { font-size: clamp(1.95rem, 3.7vw, 3rem); line-height: 1.1; }
h2 { font-size: clamp(1.5rem, 2.5vw, 2.1rem); }
h3 { font-size: 1.1rem; letter-spacing: -.012em; }
p { max-width: 66ch; }
.lede { font-size: clamp(1.0313rem, 1.25vw, 1.1563rem); color: var(--body); }
.muted { color: var(--mute); }
.small { font-size: .875rem; }
.xs { font-size: .8125rem; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.wrap-narrow { width: min(100% - 2.5rem, var(--wrap-narrow)); margin-inline: auto; }
section { padding-block: var(--pad); }
.tight { padding-block: clamp(2.25rem, 4vw, 3.25rem); }
.alt { background: var(--bg-alt); }
.deep { background: var(--bg-deep); color: #dfe7e3; }
.deep h1,.deep h2,.deep h3 { color: #fff; }
.deep .muted { color: rgba(255,255,255,.6); }

.head { max-width: 58ch; margin-bottom: clamp(1.75rem, 3vw, 2.5rem); }
.head p { margin-top: .75rem; }
.rule { width: 34px; height: 3px; background: var(--brand); border-radius: 2px; margin-bottom: 1.1rem; }

/* ---------------- buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .78rem 1.4rem; border: 1px solid transparent; border-radius: var(--r);
  font-size: .9375rem; font-weight: 600; cursor: pointer; white-space: nowrap;
  transition: background .18s, color .18s, border-color .18s, box-shadow .18s;
}
.btn-pri   { background: var(--brand); color: #fff; }
.btn-pri:hover { background: var(--brand-dk); }
.btn-out   { border-color: var(--line-str); color: var(--ink); background: #fff; }
.btn-out:hover { border-color: var(--ink); }
.btn-lt    { background: #fff; color: var(--brand); }
.btn-lt:hover { background: #eef3f1; }
.btn-out-lt { border-color: rgba(255,255,255,.35); color: #fff; }
.btn-out-lt:hover { background: rgba(255,255,255,.1); border-color: #fff; }
.btn-sm { padding: .55rem 1rem; font-size: .875rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1.6rem; }

.lnk { color: var(--brand); font-weight: 600; font-size: .9375rem;
  display: inline-flex; align-items: center; gap: .3rem; }
.lnk:hover { text-decoration: underline; text-underline-offset: 3px; }
.deep .lnk { color: #8fc9b4; }

/* ---------------- header ---------------- */
.topbar { background: var(--brand-dk); color: rgba(255,255,255,.82); font-size: .8125rem; }
.topbar-in { display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; height: 38px; }
.topbar a:hover { color: #fff; }
.topbar-links { display: flex; gap: 1.4rem; }
@media (max-width: 700px) { .topbar-links { display: none; } }

.site-header { position: sticky; top: 0; z-index: 100; background: #fff;
  border-bottom: 1px solid var(--line); }
.header-in { display: flex; align-items: center; gap: 2rem; height: 70px; }

.mark { display: flex; align-items: center; gap: .65rem; flex-shrink: 0; }
.mark-badge { width: 40px; height: 40px; border-radius: 9px; background: var(--brand-dk);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.mark-badge img { width: 80%; height: 80%; object-fit: contain; }
.mark-badge.bare { background: none; width: 42px; height: 42px; border-radius: 0; }
.mark-badge.bare img { width: 100%; height: 100%; }
.mark-t { display: flex; flex-direction: column; line-height: 1.1; }
.mark-n { font-family: "Cormorant Garamond", Georgia, serif; font-size: 1.35rem; font-weight: 600;
  color: var(--ink); letter-spacing: .06em; text-transform: uppercase; line-height: 1; }
.mark-s { font-size: .5625rem; letter-spacing: .28em; text-transform: uppercase;
  color: var(--mute); font-weight: 600; margin-top: 3px; }

.nav { display: flex; gap: 1.75rem; margin-left: auto; }
.nav a { font-size: .9375rem; font-weight: 500; color: var(--body); padding-block: .35rem;
  border-bottom: 2px solid transparent; transition: color .18s, border-color .18s; }
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--brand); border-bottom-color: var(--brand); }

.hcta { display: flex; align-items: center; gap: .55rem; margin-left: 1.25rem; }

.burger { display: none; margin-left: auto; background: none; border: 1px solid var(--line);
  border-radius: var(--r); width: 42px; height: 42px; cursor: pointer;
  align-items: center; justify-content: center; }
.burger span { display: block; width: 18px; height: 2px; background: var(--ink); position: relative; }
.burger span::before,.burger span::after { content: ''; position: absolute; left: 0;
  width: 18px; height: 2px; background: var(--ink); transition: transform .25s var(--ease); }
.burger span::before { top: -6px; } .burger span::after { top: 6px; }
.nav-open .burger span { background: transparent; }
.nav-open .burger span::before { transform: translateY(6px) rotate(45deg); }
.nav-open .burger span::after  { transform: translateY(-6px) rotate(-45deg); }

.panel { display: contents; }
@media (max-width: 960px) {
  .burger { display: flex; }
  .panel { display: block; position: fixed; inset: 70px 0 auto 0;
    max-height: calc(100dvh - 70px); overflow-y: auto; background: #fff;
    padding: .5rem 1.25rem 1.75rem; border-bottom: 1px solid var(--line);
    box-shadow: var(--sh-lg);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .2s, transform .28s var(--ease), visibility .28s; }
  .nav-open .panel { opacity: 1; visibility: visible; transform: none; }
  .nav,.hcta { position: static; flex-direction: column; gap: 0; margin: 0; }
  .nav a { padding: .85rem 0; font-size: 1rem; border-bottom: 1px solid var(--line);
    border-left: 0; width: 100%; }
  .nav a[aria-current="page"] { border-bottom-color: var(--line); }
  .hcta { gap: .55rem; margin-top: 1.25rem; }
  .hcta .btn { width: 100%; }
}

/* ---------------- hero ---------------- */
.hero { position: relative; background: var(--bg-deep); color: #fff; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; }
.hero-bg > * { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-art { width: 100%; height: 100%; }
.hero-bg::after { content: ''; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(9,20,17,.92) 0%, rgba(9,20,17,.72) 38%, rgba(9,20,17,.30) 72%, rgba(9,20,17,.18) 100%); }
.hero-in { position: relative; padding-block: clamp(3.5rem, 7vw, 6rem) clamp(3rem, 5vw, 4.5rem); }
.hero h1 { color: #fff; max-width: 17ch; }
.hero p { color: rgba(255,255,255,.82); margin-top: 1.1rem; max-width: 50ch; font-size: 1.0625rem; }

/* search bar — real AppFolio filters */
.search { margin-top: 2.25rem; background: #fff; border-radius: var(--r-lg);
  padding: 1rem; box-shadow: var(--sh-lg); max-width: 900px; }
.search-row { display: grid; grid-template-columns: repeat(3, 1fr) auto; gap: .7rem; align-items: end; }
@media (max-width: 780px) { .search-row { grid-template-columns: 1fr 1fr; } .search-go { grid-column: 1/-1; } }
@media (max-width: 460px) { .search-row { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: .3rem; min-width: 0; }
.field label { font-size: .6875rem; font-weight: 700; letter-spacing: .07em;
  text-transform: uppercase; color: var(--mute); }
.field select,.field input {
  height: 44px; padding: 0 .75rem; border: 1px solid var(--line-str); border-radius: var(--r);
  background: #fff; color: var(--ink); font-size: .9375rem; width: 100%;
  appearance: none; -webkit-appearance: none;
}
.field select { background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%237b858f' stroke-width='1.8'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .75rem center; padding-right: 2rem; }
.field select:focus,.field input:focus { outline: none; border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(27,77,62,.13); }
.search-go { height: 44px; padding-inline: 1.6rem; }

.hero-stats { display: flex; flex-wrap: wrap; gap: 2rem 3rem; margin-top: 2.5rem;
  padding-top: 1.75rem; border-top: 1px solid rgba(255,255,255,.16); }
.hs-n { font-size: 1.75rem; font-weight: 700; color: #fff; letter-spacing: -.02em; }
.hs-l { font-size: .75rem; letter-spacing: .09em; text-transform: uppercase;
  color: rgba(255,255,255,.62); font-weight: 600; margin-top: .25rem; }

/* ---------------- trust strip ---------------- */
.strip { background: var(--bg-alt); border-bottom: 1px solid var(--line); padding-block: 1rem; }
.strip-in { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem 2rem;
  font-size: .8125rem; font-weight: 600; color: var(--mute); }
.strip-in span { display: flex; align-items: center; gap: .45rem; }
.strip-in svg { width: 15px; height: 15px; color: var(--brand); }

/* ---------------- cards ---------------- */
.grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fill, minmax(310px,1fr)); }

.card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-lg); overflow: hidden; transition: box-shadow .22s, border-color .22s; }
a.card:hover { box-shadow: var(--sh); border-color: var(--line-str); }
.card-img { position: relative; aspect-ratio: 3/2; overflow: hidden; background: var(--bg-alt); }
.card-img > img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
a.card:hover .card-img > img { transform: scale(1.035); }
.tag { position: absolute; top: .75rem; left: .75rem; z-index: 2; background: rgba(255,255,255,.95);
  border-radius: 4px; padding: .25rem .55rem; font-size: .6875rem; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase; color: var(--ink); }
.tag-flag { background: var(--flag); color: #fff; }
.tag-brand { background: var(--brand); color: #fff; }

.card-b { padding: 1.05rem 1.15rem 1.15rem; }
.card-b h3 { margin-bottom: .2rem; }
.card-addr { font-size: .8438rem; color: var(--mute); margin-top: .1rem; }
.card-desc { font-size: .9063rem; margin-bottom: 1rem; }
.specs { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: auto;
  padding-top: .9rem; border-top: 1px solid var(--line); }
.spec { font-size: .75rem; font-weight: 600; color: var(--body); background: var(--bg-alt);
  border-radius: 4px; padding: .28rem .55rem; }

/* photo placeholder — honest, neutral, swap for <img> */
.noimg { width: 100%; height: 100%; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: .6rem;
  background: linear-gradient(168deg, #eef1f2 0%, #e3e8ea 55%, #dbe2e2 100%); }
.noimg svg { width: 34px; height: 34px; color: #a9b4b8; }
.noimg span { font-size: .6875rem; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: #98a3a8; }
.noimg-dk { background: linear-gradient(168deg, #24443a 0%, #1a3a30 60%, #142e26 100%); }
.noimg-dk svg { color: rgba(255,255,255,.3); } .noimg-dk span { color: rgba(255,255,255,.42); }

/* ---------------- listings embed ---------------- */
.embed { border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff;
  overflow: hidden; box-shadow: var(--sh-sm); }
.embed iframe { width: 100%; border: 0; display: block; min-height: 640px; }
.embed-note { margin-top: .85rem; font-size: .8125rem; color: var(--mute); }

/* ---------------- split rows ---------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem,4vw,3.5rem); align-items: center; }
@media (max-width: 880px) { .split { grid-template-columns: 1fr; } }
.split-img { aspect-ratio: 4/3; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); }
.split-img > img { width: 100%; height: 100%; object-fit: cover; }

/* ---------------- feature tiles ---------------- */
.tiles { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(230px,1fr)); }
.tile { padding: 1.5rem 1.4rem; border: 1px solid var(--line); border-radius: var(--r-lg);
  background: #fff; transition: box-shadow .22s, border-color .22s; }
a.tile:hover { box-shadow: var(--sh); border-color: var(--line-str); }
.tile-i { width: 22px; height: 22px; color: var(--brand); margin-bottom: .85rem; }
.tile h3 { margin-bottom: .35rem; }
.tile p { font-size: .9063rem; }
.tile .lnk { margin-top: .75rem; }
.deep .tile { background: rgba(255,255,255,.045); border-color: var(--line-dk); }
.deep a.tile:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.3); box-shadow: none; }
.deep .tile-i { color: #7fc0a8; }
.deep .tile p { color: rgba(255,255,255,.72); }

/* ---------------- facts / spec table ---------------- */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px,1fr));
  border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--line); gap: 1px; }
.fact { background: #fff; padding: 1.1rem 1.2rem; }
.fact-l { font-size: .6875rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--mute); font-weight: 700; }
.fact-v { font-size: 1.3125rem; font-weight: 700; color: var(--ink); margin-top: .3rem; letter-spacing: -.02em; }

.amen { display: grid; gap: .7rem 1.75rem; grid-template-columns: repeat(auto-fit, minmax(210px,1fr)); }
.amen div { display: flex; gap: .55rem; font-size: .9375rem; align-items: flex-start; }
.amen svg { width: 15px; height: 15px; color: var(--brand); flex-shrink: 0; margin-top: 4px; }

/* ---------------- page head ---------------- */
.phead { background: var(--bg-alt); border-bottom: 1px solid var(--line);
  padding-block: clamp(2rem,4vw,3rem) clamp(1.75rem,3.5vw,2.75rem); }
.crumbs { font-size: .8125rem; color: var(--mute); margin-bottom: .9rem; }
.crumbs a:hover { color: var(--brand); text-decoration: underline; }
.crumbs span { margin-inline: .45rem; color: var(--faint); }
.phead h1 { margin-bottom: .8rem; }

/* ---------------- prose / faq ---------------- */
.prose p+p { margin-top: 1rem; }
.prose h2 { margin: 2.25rem 0 .8rem; }
.prose h3 { margin: 1.75rem 0 .5rem; font-size: 1.0625rem; }
.prose ul { margin: .9rem 0 .9rem 1.15rem; }
.prose li { margin-bottom: .4rem; }

.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 1.25rem;
  padding: 1.15rem 0; cursor: pointer; list-style: none; font-weight: 600; color: var(--ink);
  font-size: .9688rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--brand); }
.faq .pm { flex-shrink: 0; width: 16px; height: 16px; position: relative; }
.faq .pm::before,.faq .pm::after { content: ''; position: absolute; background: currentColor;
  transition: transform .25s var(--ease), opacity .2s; }
.faq .pm::before { inset: 7px 0; height: 2px; }
.faq .pm::after  { inset: 0 7px; width: 2px; }
.faq details[open] .pm::after { transform: rotate(90deg); opacity: 0; }
.faq-b { padding-bottom: 1.25rem; }
.faq-b p { font-size: .9375rem; }

.note { border: 1px solid var(--line); border-left: 3px solid var(--flag);
  background: var(--flag-lt); border-radius: 0 var(--r) var(--r) 0;
  padding: 1rem 1.25rem; font-size: .9063rem; color: var(--body); }
.note strong { color: var(--ink); }

/* ---------------- CTA band ---------------- */
.band { background: var(--brand); color: #fff; }
.band-in { display: flex; align-items: center; justify-content: space-between;
  gap: 2rem; flex-wrap: wrap; }
.band h2 { color: #fff; max-width: 22ch; }
.band p { color: rgba(255,255,255,.82); margin-top: .6rem; }

/* ---------------- footer ---------------- */
.foot { background: var(--bg-deep); color: rgba(255,255,255,.72); padding-block: clamp(2.75rem,5vw,4rem) 1.75rem; }
.foot-g { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1.2fr; gap: 2.5rem 2rem;
  padding-bottom: 2.25rem; border-bottom: 1px solid var(--line-dk); }
@media (max-width: 860px) { .foot-g { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot-g { grid-template-columns: 1fr; } }
.foot .mark svg { color: #7fc0a8; }
.foot .mark-n { color: #fff; } .foot .mark-s { color: rgba(255,255,255,.5); }
.foot-blurb { font-size: .875rem; margin-top: 1rem; max-width: 33ch; color: rgba(255,255,255,.6); }
.foot h4 { font-size: .6875rem; letter-spacing: .11em; text-transform: uppercase;
  color: rgba(255,255,255,.5); font-weight: 700; margin-bottom: .9rem; }
.foot-c a,.foot-c p { display: block; font-size: .875rem; margin-bottom: .5rem;
  color: rgba(255,255,255,.75); }
.foot-c a:hover { color: #fff; }
.foot-btm { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center;
  gap: 1rem; padding-top: 1.5rem; font-size: .8125rem; color: rgba(255,255,255,.5); }
.foot-legal { display: flex; align-items: center; gap: 1.1rem; flex-wrap: wrap; }
.eho { display: flex; align-items: center; gap: .5rem; }
.eho svg { width: 22px; height: 22px; opacity: .75; }

@media print { .site-header,.topbar,.band,.burger { display: none !important; } }
@media (prefers-reduced-motion: reduce) {
  *,*::before,*::after { transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ---------------- location map ---------------- */
.map-wrap { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden;
  background: var(--bg-alt); }
.map { width: 100%; height: clamp(280px, 38vw, 420px); border: 0; display: block; filter: saturate(.92); }

/* ---------------- unit-type pills on property cards ---------------- */
.utypes { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .75rem; }
.ut { font-size: .8125rem; font-weight: 600; color: var(--brand);
  background: var(--brand-lt); border-radius: 100px; padding: .28rem .65rem;
  white-space: nowrap; }

/* ---------------- maintenance triage ---------------- */
.triage { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(290px,1fr)); }
.tri { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--line-str);
  border-radius: var(--r-lg); padding: 1.5rem 1.4rem; }
.tri-911 { border-left-color: #a32b20; }
.tri-us  { border-left-color: var(--brand); }
.tri-h { display: flex; gap: .8rem; align-items: flex-start; margin-bottom: .75rem; }
.tri-i { flex: 0 0 26px; width: 26px; height: 26px; color: var(--mute); margin-top: 2px; }
.tri-911 .tri-i { color: #a32b20; }
.tri-us .tri-i { color: var(--brand); }
.tri-k { display: block; font-size: .6875rem; font-weight: 700; letter-spacing: .09em;
  text-transform: uppercase; color: var(--mute); margin-bottom: .15rem; }
.tri-h strong { font-size: 1.25rem; font-weight: 700; color: var(--ink); letter-spacing: -.02em; }
.tri-911 .tri-h strong { color: #a32b20; }
.tri p { font-size: .9063rem; }
.tri ul { list-style: none; margin: .9rem 0 0; padding: 0; }
.tri li { position: relative; padding-left: 1.05rem; font-size: .875rem; margin-bottom: .4rem; }
.tri li::before { content: ''; position: absolute; left: 0; top: .55em; width: 5px; height: 5px;
  border-radius: 50%; background: var(--line-str); }
.tri-911 li::before { background: #a32b20; opacity: .55; }
.tri-us li::before { background: var(--brand); opacity: .55; }
.tri .btn svg { width: 15px; height: 15px; }

/* ---------------- street view stand-in ---------------- */
.sv { width: 100%; height: 100%; border: 0; display: block; background: var(--bg-alt); }
