/* Toscapartment — visual identity
   Palette drawn from the region itself rather than generic "elegant site"
   defaults: limewashed plaster walls, cypress green, terracotta roof tile,
   Chianti wine, ripe wheat gold. */

:root {
  --plaster: #F1E6D2;
  --plaster-deep: #E7D8BA;
  --ink: #2E271E;
  --ink-soft: #5B5040;
  --cypress: #33422E;
  --cypress-deep: #232E1F;
  --terracotta: #BD5B34;
  --terracotta-deep: #9A4527;
  --wine: #6E1F2A;
  --gold: #B4832E;
  --line: rgba(46, 39, 30, 0.14);

  --serif: "Fraunces", Georgia, serif;
  --sans: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--plaster);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.5;
}

a { color: inherit; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 66vh;
  display: flex;
  align-items: flex-end;
  background-image: url("https://images.unsplash.com/photo-1759955392586-3ab03e4285ef?fm=jpg&q=70&w=2200&auto=format&fit=crop");
  background-size: cover;
  background-position: center 60%;
  padding: 3rem 1.5rem 2.75rem;
  animation: hero-reveal 1.1s ease-out;
}

@keyframes hero-reveal {
  from { opacity: 0; transform: scale(1.03); }
  to   { opacity: 1; transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .hero { animation: none; }
}

.hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(35, 46, 31, 0.25) 0%, rgba(35, 46, 31, 0.55) 55%, rgba(23, 30, 20, 0.88) 100%);
}

.hero__inner {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  color: var(--plaster);
  text-align: left;
}

.hero__kicker {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  margin: 0 0 0.6rem;
  color: #E9C77D;
}

.hero__title {
  font-family: var(--serif);
  font-weight: 560;
  font-size: clamp(1.9rem, 4.4vw, 3.1rem);
  line-height: 1.12;
  margin: 0 0 1rem;
}

.hero__sub {
  font-size: 1.02rem;
  max-width: 46ch;
  color: rgba(241, 230, 210, 0.88);
  margin: 0 0 1.6rem;
}

.hero__ticker {
  font-size: 0.85rem;
  color: rgba(241, 230, 210, 0.75);
  border-top: 1px solid rgba(241, 230, 210, 0.3);
  padding-top: 0.8rem;
  display: inline-block;
}

#countdown { font-variant-numeric: tabular-nums; color: #E9C77D; }

/* ---------- Stats ---------- */

.stats {
  max-width: 980px;
  margin: -2.4rem auto 0;
  position: relative;
  background: var(--plaster);
  border: 1px solid var(--line);
  border-radius: 4px;
  display: flex;
  flex-wrap: wrap;
  padding: 1.4rem 1.8rem;
  gap: 2.4rem;
  box-shadow: 0 10px 30px rgba(35, 46, 31, 0.14);
}

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

.stats__num {
  font-family: var(--serif);
  font-size: 2rem;
  color: var(--terracotta-deep);
}

.stats__label {
  font-size: 0.82rem;
  color: var(--ink-soft);
}

/* ---------- About ---------- */

.about {
  max-width: 700px;
  margin: 1.8rem auto 0;
  padding: 0 1.5rem;
  color: var(--ink-soft);
  font-size: 0.94rem;
  text-align: center;
}

/* ---------- Filters ---------- */

.filters {
  max-width: 980px;
  margin: 1.8rem auto 0.5rem;
  padding: 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.filters__group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.filters__pill {
  text-decoration: none;
  font-size: 0.88rem;
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--cypress);
  border-radius: 999px;
  color: var(--cypress);
}

.filters__pill.is-active {
  background: var(--cypress);
  color: var(--plaster);
}

.filters__pill--ghost {
  border-color: var(--gold);
  color: var(--gold);
  font-size: 0.82rem;
}

.filters__pill--ghost.is-active {
  background: var(--gold);
  border-color: var(--gold);
  color: #fff;
}

/* ---------- Listings ---------- */

.listings {
  max-width: 980px;
  margin: 1.5rem auto 3rem;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.1rem;
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--terracotta);
  border-radius: 3px;
  padding: 1.1rem 1.2rem 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  transition: border-left-color 0.15s ease;
}

.card:hover {
  border-left-color: var(--wine);
}

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

.card__price {
  font-family: var(--serif);
  font-size: 1.3rem;
  color: var(--gold);
}

.card__badge {
  font-size: 0.72rem;
  background: var(--wine);
  color: var(--plaster);
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
}

.card__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.1rem;
  margin: 0.1rem 0 0;
}

.card__meta {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin: 0;
}

.card__desc {
  font-size: 0.92rem;
  margin: 0.3rem 0 0.4rem;
}

.card__link {
  margin-top: auto;
  font-size: 0.85rem;
  text-decoration: none;
  color: var(--cypress);
  border-top: 1px solid var(--line);
  padding-top: 0.6rem;
}

.card__link:hover { color: var(--terracotta-deep); }

.empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--ink-soft);
  padding: 2rem 0;
}

/* ---------- Weather footer ---------- */

.weather {
  background: var(--cypress-deep);
  color: var(--plaster);
  padding: 2.4rem 1.5rem 1.8rem;
}

.weather__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.3rem;
  max-width: 980px;
  margin: 0 auto 1.2rem;
}

.weather__row {
  max-width: 980px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  border-top: 1px solid rgba(241, 230, 210, 0.18);
  padding-top: 1.2rem;
}

.weather__city {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.weather__name {
  font-size: 0.85rem;
  color: #E9C77D;
}

.weather__temp {
  font-family: var(--serif);
  font-size: 1.6rem;
}

.weather__desc { font-size: 0.85rem; color: rgba(241, 230, 210, 0.85); }
.weather__range { font-size: 0.78rem; color: rgba(241, 230, 210, 0.6); }

.weather__credit {
  max-width: 980px;
  margin: 1.6rem auto 0;
  font-size: 0.72rem;
  color: rgba(241, 230, 210, 0.5);
}

@media (max-width: 600px) {
  .hero { min-height: 56vh; padding: 2rem 1.2rem 2rem; }
  .stats { margin-top: -1.8rem; gap: 1.4rem; padding: 1.1rem 1.3rem; }
}
