/* Area guides — /costa-del-sol/ and /costa-del-sol/{zona}/ */

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

html { -webkit-text-size-adjust: 100%; }

body.mv-guides {
  margin: 0;
  background: #fff;
  color: var(--ink, #3c3934);
  font-family: var(--sans, "Instrument Sans", system-ui, sans-serif);
  font-size: 15px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

body.mv-guides .mg-page img {
  max-width: 100%;
  height: auto;
  display: block;
}
body.mv-guides .mg-page a { color: inherit; text-decoration: none; }
body.mv-guides .mg-page ul { margin: 0; padding: 0; list-style: none; }
body.mv-guides .mg-page p { margin: 0; }
body.mv-guides :focus-visible { outline: 2px solid var(--gold, #c2a15a); outline-offset: 3px; }

body.mv-guides .mg-page h1,
body.mv-guides .mg-page h2,
body.mv-guides .mg-page h3 {
  margin: 0;
  font-family: var(--serif, Fraunces, Georgia, serif);
  font-weight: 400;
  letter-spacing: -.012em;
  color: var(--charcoal, #2b2925);
  font-optical-sizing: auto;
}

body.mv-guides .mv-logo img {
  width: auto;
  height: 42px;
  max-height: 42px;
  object-fit: contain;
}
body.mv-guides .mv-logo--foot img {
  height: 80px;
  max-height: 80px;
}

body.mv-guides .mg-page a.mv-btn--forest,
body.mv-guides .mg-page a.mv-btn--forest:visited,
body.mv-guides .mg-page a.mv-btn--gold,
body.mv-guides .mg-page a.mv-btn--gold:visited { color: #fff; }
body.mv-guides .mg-page a.mv-link { color: var(--charcoal, #2b2925); }
body.mv-guides .mg-page a.mv-link:hover { color: var(--gold-dark, #a98945); }

[data-mg-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s var(--ease, cubic-bezier(.22, 1, .36, 1)),
    transform .7s var(--ease, cubic-bezier(.22, 1, .36, 1));
  transition-delay: calc(var(--mg-i, 0) * 50ms);
}
[data-mg-reveal].is-in { opacity: 1; transform: none; }

.mg-crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px !important;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted, #7d7469);
}
.mg-crumbs a { color: var(--forest, #3f4a38); }
.mg-crumbs a:hover { color: var(--gold-dark, #a98945); }

.mg-mast {
  padding: 56px 0 28px;
  background: linear-gradient(180deg, var(--cream, #f8f6f0) 0%, #fff 100%);
}
.mg-mast__inner { max-width: var(--shell, 1240px); }
body.mv-guides .mg-page .mg-mast__title {
  margin: 12px 0 0 !important;
  font-size: clamp(32px, 4.6vw, 64px);
  line-height: 1.05;
  max-width: none;
}
@media (min-width: 760px) {
  body.mv-guides .mg-page .mg-mast__title { white-space: nowrap; }
}
.mg-mast__text {
  max-width: 46ch;
  margin: 18px 0 0 !important;
  font-size: 17px;
  line-height: 1.7;
  color: var(--muted, #7d7469);
}

.mg-atlas {
  padding: 8px 0 12px;
  background: #fff;
}
body.mv-guides .mg-page .mg-atlas__title {
  margin: 8px 0 18px !important;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.12;
}
.mg-atlas__frame {
  border-radius: 8px;
  background: #7d9eb3;
  border: 1px solid var(--hair, #e4ded2);
  overflow: hidden;
}
.mg-atlas svg { display: block; width: 100%; height: auto; max-height: 600px; }
.mg-atlas__sea { fill: #7d9eb3; }
.mg-atlas__land {
  fill: #efe8da;
  stroke: #3f4a38;
  stroke-width: 1;
  stroke-opacity: .55;
  stroke-linejoin: round;
}
.mg-atlas__muni {
  fill: #e2d6c1;
  stroke: #3f4a38;
  stroke-width: 1.2;
  stroke-linejoin: round;
  transition: fill .18s ease;
}
.mg-atlas a:hover .mg-atlas__muni,
.mg-atlas a:focus-visible .mg-atlas__muni { fill: #c2a15a; }
.mg-atlas__label,
.mg-atlas__pin-label {
  fill: #2b2925;
  font-family: var(--sans, "Instrument Sans", sans-serif);
  font-weight: 500;
  pointer-events: none;
  stroke: #f7f4ed;
  stroke-width: 4px;
  paint-order: stroke;
}
.mg-atlas__label { font-size: 15px; }
.mg-atlas__pin-label { font-size: 12px; font-weight: 600; }
.mg-atlas__pin {
  fill: #3f4a38;
  stroke: #f7f4ed;
  stroke-width: 1.6;
}
.mg-atlas a:hover .mg-atlas__pin,
.mg-atlas a:focus-visible .mg-atlas__pin { fill: #c2a15a; }
.mg-atlas__leader {
  stroke: #3f4a38;
  stroke-width: 1;
  pointer-events: none;
}
.mg-atlas__osm {
  fill: #f4f7f8;
  opacity: .9;
  font-family: var(--sans, "Instrument Sans", sans-serif);
  font-size: 11px;
}
.mg-atlas a:focus-visible { outline: none; }

.mg-hero { margin: 0 0 8px; }
.mg-hero img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 6px;
  background: var(--cream-deep, #f3efe6);
}
.mg-index { padding: 28px 0 96px; }
.mg-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 36px 28px;
}
.mg-card { display: flex; }
.mg-card__link { display: flex; flex-direction: column; width: 100%; height: 100%; }
.mg-card__media {
  flex: none;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 6px;
  background: var(--cream-deep, #efeae2);
  margin: 0;
}
.mg-card__media img {
  width: 100%;
  height: 100% !important;
  object-fit: cover;
  transition: transform .8s var(--ease, ease);
}
.mg-card:hover .mg-card__media img { transform: scale(1.04); }
.mg-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 18px 2px 4px;
}
.mg-card__body > * { margin: 0; }
.mg-card__body .mv-link { margin-top: auto; padding-top: 6px; }
.mg-card__kicker {
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--forest, #3f4a38);
}
body.mv-guides .mg-page .mg-card__title {
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.15;
}
.mg-card__text {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--muted, #7d7469);
}

.mg-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 64px;
  padding: 56px 0 72px;
  align-items: start;
}
.mg-rail__inner {
  position: sticky;
  top: 108px;
  display: grid;
  gap: 4px;
  justify-items: start;
}
.mg-rail__label {
  margin: 18px 0 2px !important;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted, #7d7469);
}
.mg-rail__inner .mg-rail__label:first-child { margin-top: 0 !important; }
.mg-rail__value {
  margin: 0 0 8px !important;
  font-family: var(--serif, Fraunces, Georgia, serif);
  font-size: 18px;
  line-height: 1.35;
  color: var(--charcoal, #2b2925);
}
a.mg-rail__link { color: var(--forest, #3f4a38); }
a.mg-rail__link:hover { color: var(--gold-dark, #a98945); }

.mg-body { max-width: 680px; }
.mg-lead,
.mg-p {
  margin: 0 0 22px !important;
  font-size: 16.5px;
  line-height: 1.82;
  color: var(--ink, #3c3934);
}

.mg-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 12px;
  padding: 26px 28px;
  background: var(--cream, #f8f6f0);
  border-radius: 6px;
}
.mg-cta__text {
  margin: 0 !important;
  max-width: 36ch;
  font-family: var(--serif, Fraunces, Georgia, serif);
  font-size: 22px;
  line-height: 1.3;
  color: var(--charcoal, #2b2925);
}

.mg-reading { margin-top: 36px; }
.mg-reading ul { display: grid; gap: 10px; margin-top: 10px !important; }
.mg-reading a {
  color: var(--forest, #3f4a38);
  font-size: 15px;
}
.mg-reading a:hover { color: var(--gold-dark, #a98945); }

.mg-related {
  padding: 72px 0 80px;
  background: var(--cream, #f8f6f0);
  border-top: 1px solid var(--hair-soft, #ece7dd);
}
.mg-related__head { margin-bottom: 28px; }
body.mv-guides .mg-page .mg-related__title {
  margin-top: 8px !important;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.15;
}
.mg-grid--related { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mg-grid--related .mg-card__link {
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
}
.mg-grid--related .mg-card__media { border-radius: 0; }
.mg-grid--related .mg-card__body { padding: 20px 22px 20px; }

.mg-close {
  background: var(--forest, #3f4a38);
  color: #f7f4ed;
}
.mg-close__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 64px 0;
}
body.mv-guides .mg-page .mg-close__title {
  margin: 8px 0 10px !important;
  color: #fff;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.15;
  max-width: 16ch;
}
.mg-close__text {
  max-width: 46ch;
  color: rgba(247, 244, 237, .82);
  font-size: 16px;
  line-height: 1.7;
}

@media (max-width: 980px) {
  .mg-grid,
  .mg-grid--related { grid-template-columns: 1fr 1fr; }
  .mg-layout { grid-template-columns: 1fr; gap: 28px; }
  .mg-rail__inner { position: static; }
}
@media (max-width: 680px) {
  .mg-grid,
  .mg-grid--related { grid-template-columns: 1fr; }
  .mg-close__inner { flex-direction: column; align-items: flex-start; }
  .mg-hero img { aspect-ratio: 4 / 3; }
  .mg-card:hover .mg-card__media img { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  [data-mg-reveal] { opacity: 1; transform: none; transition: none; }
}
