/* ============================================================
   Elvantra — homepage styles
   Hero/search, listing cards, sell form, steps, coverage map,
   plans, FAQ, dialogs. Tokens come from site.css.
   ============================================================ */

/* ---- Hero ---- */
.hero {
  position: relative;   /* anchors the photo credit, bottom-right */
  min-height: 610px;
  display: flex;
  align-items: center;
  padding: 70px 7%;
  background:
    linear-gradient(90deg, rgba(11, 22, 42, 0.88), rgba(11, 22, 42, 0.35)),
    url('https://images.unsplash.com/photo-1600585154340-be6161a56a0c?auto=format&fit=crop&w=1800&q=85') center/cover;
  color: #fff;
}
.hero-content { max-width: 650px; }
.hero h1 { font-size: clamp(42px, 6vw, 70px); line-height: 1.02; margin: 14px 0; }
.hero p { font-size: 19px; line-height: 1.65; color: #eef2f7; max-width: 580px; }

/* ---- Search box ---- */
.searchbox {
  background: #fff;
  color: var(--ink);
  padding: 18px;
  border-radius: var(--radius);
  margin-top: 30px;
  box-shadow: 0 15px 40px #0004;
}
.searchgrid { display: grid; grid-template-columns: 1fr 1fr 1fr auto; gap: 10px; }
.field { padding: 13px; border: 1px solid var(--line); border-radius: 7px; background: #fff; }
.field label {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.field select,
.field input {
  width: 100%;
  border: 0;
  outline: 0;
  font-size: 14px;
  color: var(--ink);
  background: #fff;
}

/* ---- Featured cards ---- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px #14213d18; }
.card img { width: 100%; height: 220px; object-fit: cover; display: block; }
.cardbody { padding: 20px; }
.price { font-size: 23px; font-weight: 800; }
.location { color: var(--muted); font-size: 14px; margin: 7px 0 14px; }
.tags { font-size: 13px; color: var(--muted); }

/* ---- Sell section ---- */
.seller { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.seller h2 { font-size: 43px; margin: 0 0 16px; }
.seller p { color: var(--muted); font-size: 17px; line-height: 1.7; }
.benefits { display: grid; gap: 14px; margin: 28px 0; }
.benefit { display: flex; gap: 13px; align-items: start; }
.benefit span.hint { color: var(--muted); }
.check {
  width: 25px;
  height: 25px;
  flex: none;
  border-radius: 50%;
  background: #e7d4ae;
  color: var(--ink);
  display: grid;
  place-items: center;
  font-weight: 900;
}
.sellerbox {
  background: var(--panel);
  color: var(--panel-ink);
  padding: 40px;
  border-radius: 16px;
}
.sellerbox h3 { font-size: 30px; margin-top: 0; }
.sellerbox .flabel { display: block; font-size: 13px; font-weight: 700; margin-top: 10px; }
.sellerbox input:not([type="checkbox"]):not(.vh),
.sellerbox select,
.sellerbox textarea {
  width: 100%;
  padding: 13px;
  border-radius: 6px;
  border: 1px solid transparent;
  margin: 7px 0 4px;
  font-family: inherit;
  font-size: 15px;
  background: #fff;
  color: var(--ink);
}
.sellerbox input:focus-visible,
.sellerbox select:focus-visible,
.sellerbox textarea:focus-visible { border-color: var(--gold); }
.sellerbox textarea { height: 85px; }
.sellerbox input[type="file"] { background: transparent; color: var(--panel-ink); font-size: 13px; padding: 8px 0; }
.thumbs { display: flex; gap: 8px; flex-wrap: wrap; margin: 2px 0 10px; }
.thumbs img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid #ffffff30;
}

/* ---- Consent checkbox (both forms) ---- */
.consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 10px 0 6px;
  font-size: 13px;
  line-height: 1.55;
}
.consent input[type="checkbox"] { width: 18px; height: 18px; margin-top: 2px; flex: none; accent-color: var(--gold); }
.consent a { text-decoration: underline; font-weight: 700; color: var(--gold-text); }
.sellerbox .consent a { color: var(--gold); }

/* ---- How it works ---- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; }
.step {
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.num { font-size: 14px; color: var(--gold-text); font-weight: 900; }
.step h3 { font-size: 21px; }
.step p { color: var(--muted); line-height: 1.6; }

/* ---- Coverage map ---- */
.mapwrap { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--cream); }
#coverageMap { height: 340px; width: 100%; background: var(--cream); }

/* ---- Plans ---- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 30px 26px;
  background: var(--surface);
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.plan:hover { transform: translateY(-3px); }
.plan h3 { font-size: 19px; margin: 0 0 7px; }
.plandesc { color: var(--muted); font-size: 14px; line-height: 1.55; margin: 0; min-height: 44px; }
.planprice { font-size: 44px; font-weight: 800; margin: 16px 0 0; }
.planprice span { font-size: 15px; font-weight: 600; color: var(--muted); }
.plan ul { list-style: none; padding: 0; margin: 20px 0 26px; display: grid; gap: 11px; font-size: 14px; color: var(--muted); line-height: 1.5; }
.plan li::before { content: "✓"; color: var(--gold-text); font-weight: 900; margin-right: 9px; }
.plan .btn { width: 100%; margin-top: auto; }
.plan.featured { border-color: var(--gold); box-shadow: 0 15px 40px #c69a5233; }
.badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: var(--gold-ink);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 6px 15px;
  border-radius: 20px;
  white-space: nowrap;
}
.plancaption { text-align: center; color: var(--muted); font-size: 13px; margin-top: 26px; }
.plancaption a { color: var(--gold-text); text-decoration: underline; }
.btn.block { width: 100%; }

/* ---- Billing period toggle (monthly / annual) ---- */
.billingtoggle {
  display: inline-flex;
  gap: 4px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
  margin: 0 auto 26px;
  width: fit-content;
}
.bt-opt {
  appearance: none;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  padding: 9px 20px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.bt-opt:hover { color: var(--ink); }
.bt-opt:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.bt-opt.active {
  background: var(--ink);
  color: var(--surface);
}
.bt-opt .save {
  display: inline-block;
  margin-left: 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--gold-text);
}
.bt-opt.active .save { color: var(--gold); }

/* ---- Feature comparison table ---- */
.comparison { margin-top: 40px; }
.comparison h3 { font-size: 20px; margin-bottom: 20px; color: var(--ink); }
.comparison table {
  width: 100%;
  border-collapse: collapse;}
.comparison th,
.comparison td {
  padding: 12px 16px;
  border: 1px solid var(--line);
  text-align: left;
  font-size: 14px;}
.comparison th {
  background: var(--panel);
  color: var(--panel-ink);
  font-weight: 700;}
.comparison tr:nth-child(even) { background: var(--bg); }
.comparison tr:hover { background: var(--bg-hover); }
.comparison .muted { color: var(--muted); font-size: 13px; margin-top: 12px; display: block; }

/* ---- Responsive ---- */
@media (max-width: 850px) {
  .searchgrid, .cards, .steps, .seller, .plans { grid-template-columns: 1fr; }
  .hero { min-height: 700px; }
  .seller { gap: 30px; }
  .sectionhead { display: block; }
  .sectionhead .btn { margin-top: 18px; }
  .seller h2 { font-size: 35px; }
  .foot { display: block; }
  .comparison table, .comparison th, .comparison td { font-size: 12px; padding: 8px 6px; }
}

/* ---- FAQ ---- */
.faq { display: grid; gap: 12px; max-width: 860px; }
.faq details {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  padding: 4px 20px;
}
.faq summary {
  cursor: pointer;
  font-weight: 700;
  padding: 14px 0;
  list-style-position: inside;
}
.faq p { margin: 0 0 16px; color: var(--muted); line-height: 1.65; }
.faq a { color: var(--gold-text); text-decoration: underline; }

/* ---- Call to action ---- */
.cta { background: var(--panel); color: var(--panel-ink); text-align: center; padding: 75px 7%; }
.cta h2 { font-size: 42px; margin: 0 0 12px; }
.cta p { color: #d9e0eb; margin-bottom: 28px; }

/* ---- About ---- */
.about { max-width: 800px; margin: 0 auto; text-align: center; }
.about h2 { font-size: 40px; }
.about p { color: var(--muted); line-height: 1.8; font-size: 17px; }

/* ---- Dialogs ---- */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: #0008;
  z-index: 45;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modalbox {
  background: var(--surface);
  color: var(--ink);
  max-width: 560px;
  width: 100%;
  max-height: 86vh;
  overflow: auto;
  border-radius: 14px;
  padding: 30px;
  position: relative;
  box-shadow: var(--shadow);
}
.close {
  position: absolute;
  right: 12px;
  top: 10px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  padding: 6px 10px;
}
.modalbox h2 { margin-top: 6px; }
.modalbox .flabel { display: block; font-size: 12px; font-weight: 700; color: var(--muted); margin-bottom: 4px; }
.modalbox input[type="email"],
.modalbox input[type="text"] {
  width: 100%;
  padding: 12px;
  margin: 6px 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--bg);
  color: var(--ink);
  font-size: 15px;
}
.modalbox .btn { width: 100%; }
.modalbox .fine { font-size: 12px; color: var(--muted); margin-bottom: 0; }
.row { display: flex; gap: 10px; }
.row .btn { width: auto; flex: 1; }
.muted { color: var(--muted); }

/* ---- Search results ---- */
.results { max-height: 44vh; overflow: auto; margin-top: 14px; }
.result { border-top: 1px solid var(--line); padding: 11px 0; }
.result:first-child { border-top: 0; }
.result .rprice { font-weight: 800; font-size: 16px; }
.result .rloc { color: var(--muted); font-size: 13px; margin-top: 2px; }
.result .rdesc { color: var(--muted); font-size: 13px; margin-top: 4px; line-height: 1.5; }
.rphotos { display: flex; gap: 8px; margin-top: 9px; flex-wrap: wrap; }
.rphotos img { width: 96px; height: 70px; object-fit: cover; border-radius: 6px; }

/* ---- Responsive ---- */
@media (max-width: 850px) {
  .searchgrid, .cards, .steps, .seller, .plans { grid-template-columns: 1fr; }
  .hero { min-height: 700px; }
  .seller { gap: 30px; }
  .sectionhead { display: block; }
  .sectionhead .btn { margin-top: 18px; }
  .seller h2 { font-size: 35px; }
  .foot { display: block; }
}

/* ---- Buyer feed: filter chips + seller star profiles ------------------- */
.feedfilters { margin-bottom: 26px; display: grid; gap: 10px; }
.chiprow { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.chiplabel {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 800;
  color: var(--muted);
  margin-right: 4px;
}
.chip {
  padding: 8px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease,
              color 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
}
.chip:hover {
  border-color: var(--gold);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px color-mix(in srgb, var(--ink) 12%, transparent);
}
.chip:active { transform: translateY(0); box-shadow: none; }
.chip.active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
}
.chip:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.sellercard { display: flex; flex-direction: column; gap: 12px; padding: 20px; }
.sellerhead { display: flex; gap: 14px; align-items: center; }
.sellerhead h3 { margin: 0; font-size: 19px; }
.sellerhead p { margin: 2px 0 0; font-size: 13.5px; }
.selleravatar {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--gold);
  font-weight: 800;
  font-size: 22px;
  border: 2px solid var(--gold);
}
.sellerstats { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.starpill {
  background: color-mix(in srgb, var(--gold) 24%, var(--bg));
  border: 1px solid color-mix(in srgb, var(--gold) 60%, var(--line));
  color: var(--ink);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 13px;
  font-weight: 700;
}
.starrating { font-size: 13px; color: var(--muted); }
.selleractions { display: flex; flex-wrap: wrap; gap: 8px; }
.selleractions .btn { font-size: 14px; padding: 10px 16px; }
.sellercard .demo-caption { font-size: 12.5px; }

@media (max-width: 700px) {
  .sellercard { padding: 16px; }
  .selleractions .btn { flex: 1 1 100%; }
}