/* ═══ Villa Monasterios — Blog / Guides ═══
   Shared stylesheet for all blog pages across locales.
   Palette and type scale mirror the landing page. */

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

:root {
  --gold: #c4a265;
  --gold-light: #dcc896;
  --gold-dim: rgba(196,162,101,0.15);
  --dark: #0f0f0f;
  --darker: #0a0a0a;
  --surface: #161616;
  --surface-light: #1c1c1c;
  --white: #f8f6f3;
  --cream: #f0ebe3;
  --text: #d4cdc4;
  --text-muted: #9a9088;
  --display: 'Playfair Display', Georgia, serif;
  --body: 'DM Sans', system-ui, sans-serif;
  --accent: 'Cormorant Garamond', Georgia, serif;
}

html { -webkit-font-smoothing: antialiased; scroll-behavior: smooth; }

body {
  font-family: var(--body);
  background: var(--darker);
  color: var(--text);
  line-height: 1.85;
  font-size: 17px;
  font-weight: 300;
}

a { color: var(--gold); text-decoration: none; transition: color 0.25s; }
a:hover { color: var(--gold-light); }

/* ─── Navigation ─── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 40px;
  background: rgba(10,10,10,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gold-dim);
}
.nav-brand {
  font-family: var(--display);
  font-size: 16px;
  letter-spacing: 4px;
  color: var(--cream);
  text-transform: uppercase;
}
.nav-brand:hover { color: var(--gold); }
.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a {
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
}
.nav-links a:hover { color: var(--gold); }
.nav-cta {
  border: 1px solid var(--gold);
  padding: 9px 20px;
  color: var(--gold) !important;
}
.nav-cta:hover { background: var(--gold); color: var(--darker) !important; }

/* ─── Layout ─── */
.wrap { max-width: 760px; margin: 0 auto; padding: 0 32px; }
.wrap-wide { max-width: 1100px; margin: 0 auto; padding: 0 32px; }

/* ─── Breadcrumbs ─── */
.crumbs {
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 40px 0 0;
}
.crumbs a { color: var(--text-muted); }
.crumbs a:hover { color: var(--gold); }
.crumbs span { margin: 0 8px; opacity: 0.4; }

/* ─── Article header ─── */
.article-head { padding: 32px 0 48px; border-bottom: 1px solid var(--gold-dim); margin-bottom: 56px; }
.eyebrow {
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}
h1 {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(30px, 5.5vw, 50px);
  line-height: 1.2;
  color: var(--white);
  letter-spacing: 0.5px;
  margin-bottom: 24px;
}
.lede {
  font-family: var(--accent);
  font-size: clamp(19px, 2.4vw, 23px);
  line-height: 1.65;
  color: var(--text);
  font-weight: 300;
}
.meta {
  margin-top: 28px;
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ─── Article body ─── */
article h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(23px, 3.2vw, 30px);
  color: var(--cream);
  letter-spacing: 0.3px;
  margin: 64px 0 20px;
  line-height: 1.3;
}
article h3 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 20px;
  color: var(--gold);
  margin: 40px 0 14px;
}
article p { margin-bottom: 22px; }
article ul, article ol { margin: 0 0 24px 22px; }
article li { margin-bottom: 10px; }
article strong { color: var(--cream); font-weight: 500; }
article img { max-width: 100%; height: auto; display: block; }

figure { margin: 48px 0; }
figure img { border: 1px solid var(--gold-dim); }
figcaption {
  margin-top: 12px;
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

/* ─── Fact table ─── */
.facts {
  width: 100%;
  border-collapse: collapse;
  margin: 36px 0;
  font-size: 15px;
}
.facts td {
  padding: 14px 0;
  border-bottom: 1px solid var(--gold-dim);
  vertical-align: top;
}
.facts td:first-child {
  color: var(--text-muted);
  width: 45%;
  padding-right: 24px;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.facts td:last-child { color: var(--cream); }

/* ─── Callout ─── */
.callout {
  background: var(--surface);
  border-left: 2px solid var(--gold);
  padding: 28px 32px;
  margin: 40px 0;
}
.callout p:last-child { margin-bottom: 0; }
.callout-title {
  font-family: var(--display);
  font-size: 17px;
  color: var(--gold);
  margin-bottom: 12px;
}

/* ─── Comparison grid ─── */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 36px 0; }
.compare-col { background: var(--surface); padding: 28px; border-top: 2px solid var(--gold); }
.compare-col h4 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 19px;
  color: var(--cream);
  margin-bottom: 16px;
}
.compare-col ul { margin: 0 0 0 18px; font-size: 15px; }

/* ─── FAQ ─── */
.faq { margin: 40px 0; }
.faq-item { border-bottom: 1px solid var(--gold-dim); padding: 24px 0; }
.faq-q {
  font-family: var(--display);
  font-size: 19px;
  color: var(--cream);
  margin-bottom: 12px;
}
.faq-a { margin: 0; }

/* ─── Inline villa card ───
   Shown early in the article so a reader arriving from search sees the
   property without having to reach the bottom of the page. */
.villa-inline {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 0;
  background: var(--surface);
  border: 1px solid var(--gold-dim);
  margin: 48px 0;
  text-decoration: none;
  transition: border-color 0.3s, transform 0.3s;
}
.villa-inline:hover { border-color: var(--gold); transform: translateY(-2px); }
.villa-inline img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.villa-inline-body { padding: 26px 30px; align-self: center; }
.villa-inline .eyebrow { margin-bottom: 10px; }
.villa-inline h3 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 21px;
  line-height: 1.3;
  color: var(--cream);
  margin: 0 0 10px;
}
.villa-inline-specs {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0 0 16px;
  line-height: 1.6;
}
.villa-inline-more {
  font-size: 11px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.villa-inline:hover .villa-inline-more { color: var(--gold-light); }

@media (max-width: 640px) {
  .villa-inline { grid-template-columns: 1fr; }
  .villa-inline img { aspect-ratio: 3/2; height: auto; }
  .villa-inline-body { padding: 22px 24px 26px; }
}

/* ─── Villa CTA ─── */
.villa-cta {
  background: var(--surface);
  border: 1px solid var(--gold-dim);
  padding: 48px 40px;
  margin: 72px 0 0;
  text-align: center;
}
.villa-cta .eyebrow { margin-bottom: 16px; }
.villa-cta h3 {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(22px, 3vw, 28px);
  color: var(--white);
  margin: 0 0 16px;
}
.villa-cta p { color: var(--text-muted); margin-bottom: 28px; font-size: 16px; }
.btn {
  display: inline-block;
  border: 1px solid var(--gold);
  color: var(--gold);
  padding: 15px 40px;
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  transition: all 0.3s;
}
.btn:hover { background: var(--gold); color: var(--darker); }

/* ─── Blog index cards ─── */
.index-head { padding: 72px 0 56px; text-align: center; }
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 360px));
  justify-content: center;
  gap: 32px;
  padding-bottom: 40px;
}
.card {
  background: var(--surface);
  border: 1px solid rgba(196,162,101,0.08);
  display: flex;
  flex-direction: column;
  transition: border-color 0.3s, transform 0.3s;
}
.card:hover { border-color: var(--gold-dim); transform: translateY(-3px); }
/* height:auto is required — the HTML height attribute is a presentational
   hint that would otherwise override aspect-ratio and stretch the image. */
.card img { width: 100%; height: auto; aspect-ratio: 3/2; object-fit: cover; }
.card-body { padding: 26px 26px 30px; flex: 1; display: flex; flex-direction: column; }
.card-tag {
  font-size: 10px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}
.card h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 21px;
  line-height: 1.35;
  color: var(--cream);
  margin: 0 0 12px;
}
.card p { font-size: 15px; color: var(--text-muted); margin: 0 0 20px; flex: 1; }
.card-more { font-size: 11px; letter-spacing: 2.5px; text-transform: uppercase; }

/* ─── Footer ─── */
.footer {
  border-top: 1px solid var(--gold-dim);
  margin-top: 96px;
  padding: 48px 32px 64px;
  text-align: center;
  font-size: 12px;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  line-height: 2.2;
}
.footer a { color: var(--text-muted); }
.footer a:hover { color: var(--gold); }
.footer-langs { margin-top: 8px; }
.footer-langs a { margin: 0 8px; font-size: 11px; text-transform: uppercase; letter-spacing: 2px; }

/* ─── Responsive ─── */
@media (max-width: 900px) {
  .nav { padding: 16px 20px; }
  .nav-links { gap: 18px; }
  .nav-links a { font-size: 11px; letter-spacing: 1.5px; }
}
@media (max-width: 700px) {
  body { font-size: 16px; }
  .wrap, .wrap-wide { padding: 0 20px; }
  .nav-links .nav-hide { display: none; }
  .compare { grid-template-columns: 1fr; }
  .villa-cta { padding: 36px 24px; }
  .facts td:first-child { width: 42%; font-size: 12px; }
}
