/* Ponferrada Travel — shared styles
   Design source: Claude Design project "Ponferrada Travel Agency Redesign"
   (a43b41c9-96e8-40e3-ac35-cf3c4ef819cd). Values are lifted from the .dc.html
   sources; the design tool's <x-dc>/<helmet>/<sc-if> wrappers and style-hover
   attributes are expanded into real markup and CSS here. */

:root {
  --ink: #221D15;
  --cream: #F7F4EF;
  --paper: #FFFFFF;
  --shell-bg: #FDFBF7;
  --rule: #E5DDD0;
  --rule-soft: #EFE9DE;
  --muted: #6F6557;
  --stone: #A79D8F;
  --rust: #BE4B23;
  --gold: #E8B96A;
  --sand: #F2C288;
  --olive: #3A4A2E;
  --light: #F3EEE6;
  --link-hover: #A9702C;

  --shell: 1360px;
  --gutter: 48px;

  --sans: Archivo, sans-serif;
  --mono: 'DM Mono', monospace;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--link-hover); }

img { max-width: 100%; }

h1, h2, h3 { margin: 0; }

/* Pages whose footer must sit at the bottom on short content */
body.is-tall { min-height: 100vh; display: flex; flex-direction: column; }
body.is-tall main { flex: 1; }

/* ---------- Layout ---------- */

.shell {
  max-width: var(--shell);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .3em;
  color: var(--rust);
}

.lede {
  font-size: 15px;
  line-height: 1.85;
  color: var(--muted);
  margin: 18px 0 0;
}
.lede:first-of-type { margin-top: 26px; }
.lede--narrow { max-width: 600px; line-height: 1.8; }

.lede a.inline,
a.inline {
  color: var(--rust);
  border-bottom: 1px solid var(--rust);
  font-weight: 600;
}
a.inline:hover { color: var(--link-hover); border-bottom-color: var(--link-hover); }

.note {
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 1.9;
  color: var(--stone);
  margin: 28px 0 0;
  max-width: 860px;
}
.note a { color: var(--muted); border-bottom: 1px solid var(--stone); }
.note a:hover { color: var(--rust); border-bottom-color: var(--rust); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: 17px 30px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .22em;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}

.btn--rust { background: var(--rust); color: var(--light); }
.btn--rust:hover { background: var(--ink); color: var(--light); }

.btn--outline { border-color: var(--ink); color: var(--ink); background: none; }
.btn--outline:hover { background: var(--ink); color: var(--light); }

.btn--ink { background: var(--ink); color: var(--light); padding: 17px 32px; }
.btn--ink:hover { background: var(--light); color: var(--ink); }

.btn--sm { padding: 12px 22px; font-size: 10px; }

/* ---------- Top bar ---------- */

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 9px var(--gutter);
  background: var(--ink);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .08em;
  color: var(--stone);
}
.topbar a { color: var(--stone); }
.topbar a:hover { color: var(--gold); }

/* ---------- Masthead ---------- */

.masthead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 20px var(--gutter);
  border-bottom: 1px solid var(--rule);
  background: var(--cream);
  position: sticky;
  top: 0;
  z-index: 500;
}
/* Hotels keeps the header in flow so the Leaflet map can own the scroll area */
.masthead--static { position: static; }

.wordmark {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .26em;
}
.wordmark svg { display: block; flex: none; }

.mainnav {
  display: flex;
  gap: 36px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .22em;
}
.mainnav a[aria-current="page"] {
  color: var(--link-hover);
  border-bottom: 2px solid var(--link-hover);
  padding-bottom: 6px;
  margin-bottom: -8px;
}

/* ---------- Section furniture ---------- */

.section { padding-top: 88px; padding-bottom: 96px; }
.section--tight { padding-top: 72px; padding-bottom: 0; }
.section--top { padding-top: 64px; padding-bottom: 0; }
.section--flush { padding-top: 0; padding-bottom: 96px; }

.section__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  margin-bottom: 28px;
}
.section__head--loose { margin-bottom: 36px; }

.section__title {
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 700;
  letter-spacing: -.02em;
  text-transform: uppercase;
}
.section__title--lg { font-size: clamp(30px, 3.4vw, 44px); }

.section__note {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
}
.section__note--accent {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .22em;
  color: var(--rust);
}

/* ---------- Page hero ---------- */

.pagehead { padding-top: 64px; }

.pagehead h1,
.hero h1 {
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1;
  margin: 16px 0 0;
  text-transform: uppercase;
}
.pagehead h1 { font-size: clamp(44px, 5.5vw, 80px); }

/* About hero (two columns) */
.hero {
  padding-top: 64px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 72px;
  align-items: start;
}
.hero h1 { font-size: clamp(40px, 4.8vw, 72px); }

.hero__actions {
  display: flex;
  gap: 14px;
  margin-top: 36px;
  flex-wrap: wrap;
}

.hero__frame {
  height: 520px;
  border-radius: 20px;
  overflow: hidden;
}
.hero__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.coords {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--stone);
  text-align: right;
  margin-top: 12px;
}

/* Home hero (full-bleed banner) */
.homehead { padding-top: 64px; }
.homehead h1 { font-size: clamp(48px, 6.5vw, 96px); line-height: .98; }

.homehead__row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  margin-top: 28px;
  flex-wrap: wrap;
}
.homehead__row p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--muted);
  margin: 0;
  max-width: 520px;
}
.homehead__actions { display: flex; gap: 14px; flex-wrap: wrap; }

.banner {
  position: relative;
  height: 52vh;
  min-height: 380px;
  overflow: hidden;
  border-radius: 20px;
  margin-top: 44px;
}
.banner img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.banner__tag {
  position: absolute;
  left: 24px;
  bottom: 24px;
  background: rgba(24, 19, 12, .6);
  color: var(--light);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .1em;
  padding: 9px 16px;
  border-radius: 999px;
}

/* ---------- Card grids ---------- */

.grid { display: grid; gap: 20px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--5 { grid-template-columns: repeat(5, 1fr); gap: 16px; }
.grid--6 { grid-template-columns: repeat(6, 1fr); gap: 16px; }

.card {
  border: 1px solid var(--rule);
  padding: 32px;
  border-radius: 16px;
}
.card--sm { padding: 22px; }

.card__label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--rust);
}
.card--sm .card__label { font-size: 10.5px; letter-spacing: .12em; }

.card__title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -.01em;
  margin-top: 12px;
}
.card--sm .card__title { font-size: 18px; margin-top: 10px; }

.card p {
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--muted);
  margin: 10px 0 0;
}
.card--sm p { font-size: 12.5px; line-height: 1.6; margin-top: 8px; }

/* Rust "call to action" card */
.card--rust {
  display: block;
  border-color: var(--rust);
  background: var(--rust);
  color: var(--light);
}
.card--rust:hover { background: var(--link-hover); border-color: var(--link-hover); color: var(--light); }
.card--rust .card__label { color: var(--sand); }
.card--rust p { color: inherit; opacity: .9; }
.card__more {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .2em;
  margin-top: 16px;
}

/* About: region cards keep their own names for clarity */
.regions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.region { border: 1px solid var(--rule); padding: 32px; border-radius: 16px; }
.region__label { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; color: var(--rust); }
.region__name { font-size: 22px; font-weight: 700; letter-spacing: -.01em; margin-top: 12px; }
.region p { font-size: 13.5px; line-height: 1.75; color: var(--muted); margin: 10px 0 0; }

/* ---------- Service cards (Home) ---------- */

.service {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--rule);
  border-radius: 16px;
  overflow: hidden;
}
.service:hover { border-color: var(--ink); color: var(--ink); }

.service__media { aspect-ratio: 16 / 10; }
.service__media img { width: 100%; height: 100%; object-fit: cover; display: block; }

.service__body {
  padding: 26px 28px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.service__label { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; color: var(--rust); }
.service__title { font-size: 24px; font-weight: 700; letter-spacing: -.02em; margin-top: 10px; }
.service__body p { font-size: 13.5px; line-height: 1.7; color: var(--muted); margin: 10px 0 0; flex: 1; }
.service__more { font-size: 11px; font-weight: 600; letter-spacing: .22em; margin-top: 16px; }

/* ---------- Listing rows (Camino itineraries, Cruise voyages) ---------- */

.listings { display: flex; flex-direction: column; gap: 20px; }

.listing {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 32px;
  border: 1px solid var(--rule);
  align-items: stretch;
  border-radius: 16px;
  overflow: hidden;
}
.listing:hover { border-color: var(--ink); color: var(--ink); }

.listing__media { min-height: 230px; }

.listing__body {
  padding: 28px 32px 24px 0;
  display: flex;
  flex-direction: column;
}
.listing__label { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; color: var(--rust); }
.listing__title { font-size: 26px; font-weight: 700; letter-spacing: -.02em; margin-top: 10px; }
.listing__body p { font-size: 14px; line-height: 1.75; color: var(--muted); margin: 12px 0 0; max-width: 760px; }
.listing__spacer { flex: 1; }

.listing__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 18px;
  gap: 24px;
  flex-wrap: wrap;
}
.listing__meta {
  display: flex;
  gap: 28px;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--ink);
}
.listing__price { font-size: 15px; font-weight: 700; }

/* ---------- Image placeholders ----------
   The design project leaves these as unfilled <image-slot> components. Until
   real photography lands they render as a labelled block rather than a blank. */

.imgslot {
  width: 100%;
  height: 100%;
  min-height: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px;
  background:
    repeating-linear-gradient(135deg, rgba(34, 29, 21, .035) 0 12px, transparent 12px 24px),
    var(--shell-bg);
  color: var(--stone);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  border-right: 1px solid var(--rule);
}
.service__media .imgslot,
.banner .imgslot { border-right: none; }

/* ---------- Numbered steps ---------- */

.origin {
  display: grid;
  grid-template-columns: 1fr 1.8fr;
  gap: 72px;
  border-top: 1px solid var(--rule);
  padding-top: 64px;
  margin-top: 88px;
}
.origin--flat { margin-top: 0; }

.origin__title {
  font-size: clamp(30px, 3.4vw, 46px);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.05;
  margin-top: 16px;
  text-transform: uppercase;
}
.origin p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
  margin: 20px 0 0;
}

.origin__list { display: flex; flex-direction: column; }

.step {
  display: grid;
  grid-template-columns: 44px 1fr 1.4fr;
  gap: 24px;
  align-items: baseline;
  padding: 26px 0;
  border-top: 1px solid var(--rule);
}
.step:last-child { border-bottom: 1px solid var(--rule); }

.step__num { font-family: var(--mono); font-size: 13px; color: var(--rust); }
.step__name { font-size: 19px; font-weight: 700; letter-spacing: -.01em; }
.step__body { font-size: 13.5px; line-height: 1.7; color: var(--muted); }

/* Two-column variant (Contact) */
.step--duo { grid-template-columns: 44px 1fr; gap: 20px; padding: 22px 0; }
.step--duo .step__body { font-size: 14.5px; line-height: 1.7; color: var(--ink); }

/* ---------- FAQ accordion ---------- */

.faq { margin-top: 96px; border-top: 1px solid var(--rule); padding-top: 48px; max-width: 860px; }
.faq__list { display: flex; flex-direction: column; margin-top: 24px; }

.faq__item { border-bottom: 1px solid var(--rule); }

.faq__q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  background: none;
  border: none;
  padding: 20px 0;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
}
.faq__q:hover { color: var(--rust); }
.faq__chev { font-size: 13px; color: var(--rust); }

.faq__a {
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
  margin: 0 0 22px;
  max-width: 680px;
}
.faq__item[data-open="false"] .faq__a { display: none; }

/* ---------- Closing band ---------- */

.band { background: var(--rust); color: var(--light); }
.band .shell { padding-top: 96px; padding-bottom: 96px; text-align: center; }
.band__title {
  font-size: clamp(34px, 4.2vw, 56px);
  font-weight: 700;
  letter-spacing: -.02em;
  text-transform: uppercase;
}
.band .btn { margin-top: 32px; }

/* ---------- Footer ---------- */

.footer { background: var(--ink); color: var(--light); }

.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 48px;
  padding-top: 72px;
  padding-bottom: 56px;
}

.footer .wordmark { color: var(--light); }
.footer .wordmark:hover { color: var(--gold); }

.footer__tagline { font-size: 20px; font-weight: 600; letter-spacing: -.01em; margin-top: 20px; }

.footer__email {
  display: inline-block;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--stone);
  margin-top: 14px;
  border-bottom: 1px solid rgba(167, 157, 143, .5);
}
.footer__email:hover { color: var(--gold); border-bottom-color: var(--gold); }

.footer__col { display: flex; flex-direction: column; gap: 12px; }
.footer__col a { font-size: 13.5px; color: var(--light); }
.footer__col a:hover { color: var(--gold); }

.footer__heading {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .26em;
  color: var(--stone);
  margin-bottom: 6px;
}

.footer__base { border-top: 1px solid rgba(243, 238, 230, .14); }
.footer__base .shell {
  padding-top: 20px;
  padding-bottom: 20px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 10px;
  letter-spacing: .22em;
}
.footer__base span { opacity: .55; }

/* ---------- Cruises: world map ---------- */

#sail-map {
  width: 100%;
  min-height: 420px;
  border: 1px solid var(--rule);
  border-radius: 16px;
  overflow: hidden;
}
#sail-map svg { display: block; max-width: 100%; }

/* ---------- Forms ---------- */

input, textarea, select {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: 13px 14px;
  width: 100%;
  box-sizing: border-box;
  outline: none;
  border-radius: 10px;
}
input:focus, textarea:focus, select:focus { border-color: var(--link-hover); }
::placeholder { color: var(--stone); }

.field label,
label.field__label {
  display: block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .22em;
  margin-bottom: 8px;
  color: var(--ink);
}

/* ---------- Contact ---------- */

.contact {
  padding-top: 64px;
  padding-bottom: 96px;
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 72px;
  align-items: start;
}
.contact h1 {
  font-weight: 700;
  letter-spacing: -.03em;
  font-size: clamp(40px, 4.5vw, 68px);
  line-height: 1;
  margin: 16px 0 0;
  text-transform: uppercase;
}
.contact__lede { font-size: 15px; line-height: 1.8; color: var(--muted); margin: 22px 0 0; max-width: 440px; }
.contact__steps { margin-top: 40px; display: flex; flex-direction: column; }

.contact__meta {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 13px;
  color: var(--muted);
}
.contact__meta dt {
  display: inline;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .1em;
  color: var(--ink);
  margin-right: 12px;
}
.contact__meta dd { display: inline; margin: 0; }
.contact__meta div { margin: 0; }

.formcard { border: 1px solid var(--ink); border-radius: 20px; padding: 40px; }
.formcard__legend {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .3em;
  color: var(--rust);
  margin-bottom: 26px;
}
.formcard__legend--split {
  margin: 34px 0 26px;
  border-top: 1px solid var(--rule);
  padding-top: 30px;
}

.formgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field--full { margin-top: 20px; }

.checks { display: flex; flex-direction: column; gap: 12px; margin-top: 24px; font-size: 13px; color: var(--muted); }
.check {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0;
  margin: 0;
  cursor: pointer;
  color: var(--muted);
}
.check input { width: auto; padding: 0; accent-color: var(--rust); }

.formcard button[type="submit"] { margin-top: 28px; }
.formcard button[type="submit"][disabled] { opacity: .6; cursor: default; }

.formerror {
  border: 1px solid var(--rust);
  background: #FBF0EA;
  color: var(--ink);
  border-radius: 12px;
  padding: 14px 18px;
  margin: 24px 0 0;
  font-size: 13.5px;
  line-height: 1.6;
}

.sent {
  border: 1px solid var(--ink);
  border-radius: 20px;
  padding: 64px 48px;
  text-align: center;
}
.sent__title { font-size: 34px; font-weight: 700; letter-spacing: -.02em; margin-top: 16px; }
.sent p { font-size: 14px; line-height: 1.8; color: var(--muted); margin: 16px auto 0; max-width: 380px; }
.sent .btn { margin-top: 28px; padding: 13px 26px; }

[hidden] { display: none !important; }

/* ---------- Hotels ---------- */

.searchbar {
  display: grid;
  grid-template-columns: 2fr 1.2fr 1.2fr .7fr .7fr auto;
  gap: 16px;
  align-items: end;
  border: 2px solid var(--ink);
  background: var(--paper);
  padding: 24px;
  border-radius: 20px;
  margin-top: 36px;
}
.searchbar input, .searchbar select { background: var(--cream); }
.searchbar .btn { height: 47px; padding: 14px 30px; }

.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 72px 24px;
  color: var(--muted);
  font-size: 14px;
}
.loading__spinner {
  width: 16px;
  height: 16px;
  border: 2px solid var(--rule);
  border-top-color: var(--rust);
  border-radius: 50%;
  animation: pfSpin .7s linear infinite;
}
@keyframes pfSpin { to { transform: rotate(360deg) } }

@media (prefers-reduced-motion: reduce) {
  .loading__spinner { animation: none; }
  .livedot span.dot { animation: none; }
}

.empty { text-align: center; padding: 72px 24px; color: var(--muted); }
.empty__chips { display: flex; justify-content: center; gap: 10px; margin-top: 22px; flex-wrap: wrap; }
.chip {
  background: none;
  border: 1px solid var(--rule);
  padding: 10px 18px;
  font-family: var(--sans);
  font-size: 12px;
  color: var(--ink);
  cursor: pointer;
  border-radius: 999px;
}
.chip:hover { border-color: var(--rust); color: var(--rust); }

.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 28px;
  gap: 16px;
  flex-wrap: wrap;
}
.toolbar__left { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.toolbar__right { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }

.viewtoggle { display: flex; }
.viewtoggle button {
  display: flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
  padding: 11px 22px;
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .22em;
  cursor: pointer;
  width: auto;
}
.viewtoggle button:first-child { border-right: none; border-radius: 999px 0 0 999px; }
.viewtoggle button:last-child { border-radius: 0 999px 999px 0; }
.viewtoggle button[aria-pressed="true"] { background: var(--ink); color: var(--light); }

.sortsel {
  width: auto;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  padding: 11px 12px;
  cursor: pointer;
  border-radius: 999px;
}

.summary { font-family: var(--mono); font-size: 12px; color: var(--muted); }

.livedot {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .22em;
  color: var(--olive);
}
.livedot span.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--olive);
  animation: pfPulse 1.6s infinite;
}
@keyframes pfPulse { 0%, 100% { opacity: 1 } 50% { opacity: .3 } }

.noresults {
  border: 1px solid var(--rule);
  background: var(--shell-bg);
  padding: 36px;
  border-radius: 16px;
  text-align: center;
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
  margin-top: 24px;
}

.results { display: flex; flex-direction: column; gap: 20px; margin-top: 24px; }

.property { background: var(--paper); border: 1px solid var(--rule); border-radius: 16px; overflow: hidden; }
.property__row { display: grid; grid-template-columns: 280px 1fr auto; gap: 28px; }
.property__media { height: 210px; }
.property__media img,
.mapcard__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.property__body { padding: 26px 0; display: flex; flex-direction: column; }
.property__type { font-size: 10px; font-weight: 700; letter-spacing: .24em; color: var(--rust); }
.property__name { font-size: 24px; font-weight: 700; letter-spacing: -.02em; margin-top: 8px; }
.property__addr { font-size: 13px; color: var(--muted); margin-top: 6px; }
.property__rating { font-size: 13px; color: var(--olive); font-weight: 600; margin-top: 10px; }
.property__rating small { color: var(--muted); font-weight: 400; font-size: 13px; }
.property__actions { display: flex; gap: 12px; flex-wrap: wrap; }

.property__price {
  padding: 26px 28px;
  text-align: right;
  border-left: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 150px;
}
.property__total { font-size: 30px; font-weight: 700; letter-spacing: -.02em; }
.property__unit { font-size: 12px; color: var(--muted); margin-top: 4px; }
.property__pn { font-family: var(--mono); font-size: 11px; color: var(--muted); margin-top: 8px; }

.compare { border-top: 1px solid var(--rule); padding: 8px 28px 20px; }
.offer {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 20px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule-soft);
}
.offer__icon {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  border-radius: 6px;
}
.offer__logo {
  width: 34px;
  height: 34px;
  border-radius: 6px;
  object-fit: contain;
  display: block;
}
.offer__name { font-size: 14px; font-weight: 600; }
.offer__name small { font-weight: 400; color: var(--muted); font-size: 12px; }
.offer__price { font-size: 17px; font-weight: 700; }
.offer__price small { font-size: 11px; font-weight: 400; color: var(--muted); }
.offer__go { font-size: 10px; font-weight: 600; letter-spacing: .18em; color: var(--rust); border-bottom: 1px solid var(--rust); }
.offer__go:hover { color: var(--ink); border-bottom-color: var(--ink); }

.loadmore {
  width: 100%;
  background: var(--ink);
  color: var(--light);
  border: none;
  padding: 16px;
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .22em;
  cursor: pointer;
  margin-top: 24px;
  border-radius: 999px;
}
.loadmore:hover { background: var(--rust); color: var(--light); }

.mapwrap {
  margin-top: 24px;
  position: relative;
  height: 560px;
  border: 1px solid var(--rule);
  border-radius: 16px;
  overflow: hidden;
}
#pf-map { position: absolute; inset: 0; background: #EDE8E0; }
.pf-pin { font-family: var(--sans); }

.mapcard {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 900;
  width: 320px;
  background: var(--paper);
  border: 1px solid var(--ink);
  box-shadow: 0 6px 24px rgba(20, 16, 10, .18);
  border-radius: 14px;
  overflow: hidden;
}
.mapcard__media { height: 170px; }
.mapcard__body { padding: 20px; }
.mapcard__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.mapcard__type { font-size: 10px; font-weight: 700; letter-spacing: .24em; color: var(--rust); }
.mapcard__name { font-size: 19px; font-weight: 700; letter-spacing: -.01em; margin-top: 6px; line-height: 1.2; }
.mapcard__city { font-size: 12px; color: var(--muted); margin-top: 4px; }
.mapcard__close {
  background: none;
  border: none;
  font-size: 16px;
  cursor: pointer;
  color: var(--muted);
  padding: 0;
  line-height: 1;
  width: auto;
}
.mapcard__price { display: flex; align-items: baseline; gap: 8px; margin-top: 14px; }
.mapcard__total { font-size: 26px; font-weight: 700; letter-spacing: -.02em; }
.mapcard__pn { font-size: 11px; color: var(--muted); }
.mapcard .btn { display: block; text-align: center; margin-top: 14px; padding: 13px; width: 100%; }

/* ---------- Responsive ---------- */

@media (max-width: 1200px) {
  .grid--6 { grid-template-columns: repeat(3, 1fr); }
  .grid--5 { grid-template-columns: repeat(3, 1fr); }
  .searchbar { grid-template-columns: 1fr 1fr 1fr; }
  .searchbar .btn { grid-column: 1 / -1; width: 100%; }
}

@media (max-width: 1080px) {
  .hero { grid-template-columns: 1fr; gap: 48px; }
  .hero__frame { height: 420px; }
  .coords { text-align: left; }

  .origin { grid-template-columns: 1fr; gap: 40px; margin-top: 64px; }
  .contact { grid-template-columns: 1fr; gap: 48px; }

  .listing { grid-template-columns: 260px 1fr; gap: 24px; }
  .listing__body { padding-right: 24px; }

  .property__row { grid-template-columns: 220px 1fr; }
  .property__price {
    grid-column: 1 / -1;
    border-left: none;
    border-top: 1px solid var(--rule);
    text-align: left;
    padding: 20px 28px;
  }

  .footer__grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 860px) {
  :root { --gutter: 28px; }

  .masthead { flex-wrap: wrap; row-gap: 16px; }
  .mainnav { gap: 24px; }

  .grid--3, .grid--5, .grid--6, .regions { grid-template-columns: 1fr; }

  .section__head { flex-direction: column; align-items: flex-start; gap: 8px; }

  .step { grid-template-columns: 44px 1fr; row-gap: 10px; }
  .step__body { grid-column: 2; }
  .step--duo { grid-template-columns: 44px 1fr; }

  .listing { grid-template-columns: 1fr; }
  .listing__media { min-height: 200px; }
  .imgslot { border-right: none; border-bottom: 1px solid var(--rule); }
  .listing__body { padding: 24px; }

  .property__row { grid-template-columns: 1fr; }
  .property__body { padding: 24px; }
  .property__media { height: 180px; }

  .formcard { padding: 28px; }
  .formgrid { grid-template-columns: 1fr; }

  .mapcard { position: static; width: auto; margin: 16px; }
}

@media (max-width: 560px) {
  :root { --gutter: 20px; }

  .topbar { flex-direction: column; align-items: flex-start; gap: 4px; }

  .hero, .pagehead, .homehead, .contact { padding-top: 44px; }
  .hero__frame { height: 320px; }
  .hero__actions .btn, .homehead__actions .btn { width: 100%; text-align: center; }

  .section { padding-top: 64px; padding-bottom: 72px; }
  .band .shell { padding-top: 72px; padding-bottom: 72px; }

  .searchbar { grid-template-columns: 1fr; }
  .toolbar { align-items: flex-start; }
  .offer { grid-template-columns: auto 1fr; row-gap: 8px; }

  .footer__grid { grid-template-columns: 1fr; }
  .footer__base .shell { flex-direction: column; gap: 8px; }
}
