:root {
  --bg: #07101f;
  --panel: #101b2e;
  --ink: #f8fafc;
  --muted: #cbd5e1;
  --gold: #ffd166;
  --coral: #ff6b6b;
  --cyan: #22d3ee;
  --rose: #ff4bb8;
  --line: rgba(255, 255, 255, .13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: Inter, Arial, sans-serif;
  line-height: 1.65;
  background:
    radial-gradient(circle at 12% 0%, rgba(34, 211, 238, .13), transparent 28%),
    radial-gradient(circle at 88% 10%, rgba(255, 107, 107, .12), transparent 30%),
    linear-gradient(180deg, #07101f, #0b1220 58%, #07101f);
}

a {
  color: inherit;
  text-decoration: none;
}

.spain-nav {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 42px;
  background: rgba(7, 15, 28, .94);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
}

.brand-logo {
  display: flex;
  align-items: center;
}

.brand-logo img {
  width: auto;
  height: 92px;
  max-height: 92px;
  max-width: 92px;
  object-fit: contain;
}

.spain-menu {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.spain-menu a {
  color: #dbe4f0;
  font-size: 14px;
  font-weight: 850;
}

.spain-menu a:hover,
.spain-menu a.active {
  color: var(--gold);
}

.hero-city {
  position: relative;
  overflow: hidden;
  min-height: 500px;
  display: flex;
  align-items: center;
  padding: 76px 56px;
  background:
    linear-gradient(90deg, rgba(5, 10, 18, .95), rgba(5, 10, 18, .68), rgba(5, 10, 18, .24)),
    var(--hero-image, url("/spania/assets/spania-hero.png")) center / cover no-repeat;
  border-bottom: 1px solid var(--line);
}

.hero-city::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 74% 48%, rgba(255, 209, 102, .18), transparent 28%),
    linear-gradient(180deg, transparent, rgba(7, 16, 31, .36));
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 870px;
}

.kicker,
.badge {
  display: inline-flex;
  width: max-content;
  color: #ffe7a6;
  background: rgba(255, 209, 102, .12);
  border: 1px solid rgba(255, 209, 102, .25);
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-city h1 {
  margin: 18px 0 18px;
  font-size: 82px;
  line-height: .96;
  letter-spacing: 0;
}

.hero-city p {
  max-width: 820px;
  margin: 0;
  color: #e5edf7;
  font-size: 21px;
}

.hero-actions,
.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.btn,
.quick-links a {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 18px;
  font-weight: 950;
}

.btn.primary {
  color: #03101e;
  background: linear-gradient(90deg, #5eead4, #38bdf8);
  box-shadow: 0 18px 48px rgba(34, 211, 238, .2);
}

.btn.secondary,
.quick-links a {
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .18);
}

.wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 64px 24px;
}

.wide-wrap {
  max-width: 1380px;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}

.section-head h2 {
  margin: 8px 0 0;
  font-size: 48px;
  line-height: 1;
  letter-spacing: 0;
}

.lead {
  max-width: 790px;
  color: var(--muted);
  font-size: 17px;
}

.story-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 22px;
}

.story-box,
.facts-box,
.guide-card,
.activity-card,
.city-card {
  background: linear-gradient(180deg, rgba(20, 36, 58, .98), rgba(8, 17, 31, .98));
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 20px 55px rgba(0, 0, 0, .22);
}

.story-box,
.facts-box,
.guide-card,
.activity-card {
  padding: 24px;
}

.guide-card,
.activity-card {
  overflow: hidden;
}

.guide-card-photo,
.activity-photo {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  object-fit: cover;
  border-radius: 16px;
  margin-bottom: 18px;
  border: 1px solid rgba(255, 255, 255, .13);
  background: #0a1424;
}

.activity-photo {
  aspect-ratio: 4 / 3;
}

.magazine-card p {
  font-size: 17px;
  line-height: 1.62;
}

.story-box p {
  color: var(--muted);
  font-size: 18px;
  margin: 0 0 16px;
}

.facts-box ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.facts-box li {
  margin: 8px 0;
}

.grid,
.city-grid,
.activity-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.guide-card h3,
.activity-card h3,
.city-card h3 {
  margin: 8px 0 10px;
  font-size: 24px;
  line-height: 1.08;
}

.guide-card p,
.activity-card p,
.city-card p,
.guide-card li {
  color: var(--muted);
  margin: 0;
}

.guide-card ul {
  margin: 8px 0 0;
  padding-left: 18px;
}

.city-card {
  overflow: hidden;
}

.city-card-media {
  min-height: 175px;
  background:
    linear-gradient(135deg, rgba(255, 209, 102, .3), rgba(34, 211, 238, .24)),
    var(--card-image, url("/spania/assets/spania-hero.png")) center / cover no-repeat;
}

.city-card-body {
  padding: 22px;
}

.city-card a,
.activity-card a,
.guide-card a {
  color: #67e8f9;
  font-weight: 950;
}

.hotel-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.mockup-hotel-card {
  display: grid;
  grid-template-columns: minmax(190px, .78fr) minmax(0, 1fr);
  gap: 0;
  padding: 12px;
  border: 1px solid rgba(34, 211, 238, .22);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(14, 26, 45, .96), rgba(6, 16, 31, .98));
  box-shadow: 0 18px 46px rgba(0, 0, 0, .28);
  overflow: hidden;
}

.mockup-hotel-media {
  position: relative;
  min-height: 235px;
  border-radius: 14px;
  overflow: hidden;
  background: #06101e;
}

.mockup-hotel-media img {
  width: 100%;
  height: 100%;
  min-height: 235px;
  object-fit: cover;
  display: block;
}

.mockup-hotel-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(3, 10, 24, .52));
  pointer-events: none;
}

.mockup-photo-stars {
  position: absolute;
  z-index: 1;
  top: 12px;
  left: 12px;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(3, 13, 29, .9);
  border: 1px solid rgba(255, 255, 255, .14);
  color: #67e8f9;
  font-size: 15px;
  line-height: 1;
}

.mockup-hotel-content {
  padding: 10px 4px 10px 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.mockup-hotel-content h3 {
  margin: 0 0 7px;
  font-size: 25px;
  font-weight: 950;
  line-height: 1.08;
  letter-spacing: 0;
}

.mockup-stars {
  color: #67e8f9;
  font-size: 20px;
  margin-bottom: 8px;
}

.mockup-best {
  margin: 0 0 10px;
  color: #a5f3fc;
  font-size: 14px;
  font-weight: 850;
}

.mockup-location {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  margin-bottom: 12px;
  padding: 6px 10px;
  border: 1px solid rgba(34, 211, 238, .2);
  border-radius: 999px;
  background: rgba(34, 211, 238, .08);
}

.mockup-location::before {
  content: "";
  display: none;
}

.mockup-location span {
  display: block;
  color: #dff8ff;
  font-size: 13px;
  font-weight: 850;
}

.mockup-location strong {
  display: block;
  margin-top: 2px;
  color: #e7edf6;
  font-size: 16px;
  font-weight: 500;
}

.mockup-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 18px 0;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 18px;
  overflow: hidden;
}

.mockup-facts div {
  min-width: 0;
  padding: 13px 10px;
  text-align: center;
  background: rgba(10, 34, 62, .44);
  border-right: 1px solid rgba(255, 255, 255, .11);
}

.mockup-facts div:last-child {
  border-right: 0;
}

.mockup-facts span {
  display: block;
  color: #d9e7f7;
  font-size: 12px;
}

.mockup-facts strong {
  display: block;
  margin-top: 6px;
  color: #ffffff;
  font-size: 15px;
  line-height: 1.2;
}

.mockup-why p {
  margin: 0;
  color: #e7edf6;
  font-size: 16px;
  line-height: 1.48;
}

.mockup-why {
  margin: 0;
  color: #e7edf6;
  font-size: 15px;
  line-height: 1.45;
}

.mockup-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 8px;
}

.mockup-tags span {
  border: 1px solid rgba(103, 232, 249, .24);
  border-radius: 999px;
  padding: 6px 9px;
  color: #c9f7ff;
  background: rgba(34, 211, 238, .06);
  font-size: 12px;
  font-weight: 850;
}

.mockup-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: 10px;
  border-radius: 12px;
  background: linear-gradient(90deg, #5eead4, #38bdf8);
  color: #03101e;
  font-size: 15px;
  font-weight: 950;
}

.activity-card {
  display: flex;
  flex-direction: column;
}

.activity-card a {
  margin-top: auto;
}

.footer {
  border-top: 1px solid var(--line);
  padding: 30px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 980px) {
  .spain-nav {
    align-items: flex-start;
    flex-direction: column;
    padding: 12px 18px;
  }

  .hero-city {
    min-height: 450px;
    padding: 60px 18px;
  }

  .hero-city h1 {
    font-size: 58px;
  }

  .section-head,
  .story-grid {
    display: block;
  }

  .facts-box {
    margin-top: 18px;
  }

  .grid,
  .city-grid,
  .activity-grid,
  .hotel-list {
    grid-template-columns: 1fr 1fr;
  }

  .mockup-hotel-card {
    grid-template-columns: 1fr;
  }

  .mockup-hotel-content {
    padding: 16px 4px 4px;
  }
}

@media (max-width: 620px) {
  .brand-logo img {
    width: auto;
    height: 62px;
    max-width: 62px;
    max-height: 62px;
  }

  .hero-city {
    min-height: 390px;
  }

  .hero-city h1 {
    font-size: 44px;
  }

  .hero-city p {
    font-size: 18px;
  }

  .section-head h2 {
    font-size: 34px;
  }

  .grid,
  .city-grid,
  .activity-grid,
  .hotel-list {
    grid-template-columns: 1fr;
  }

  .btn,
  .quick-links a,
  .mockup-cta {
    width: 100%;
  }

  .mockup-hotel-media,
  .mockup-hotel-media img {
    min-height: 220px;
  }

  .mockup-hotel-content h3 {
    font-size: 24px;
  }

  .mockup-facts {
    grid-template-columns: 1fr 1fr;
  }

  .mockup-facts div:nth-child(2) {
    border-right: 0;
  }
}
