:root {
  --sand: #f4ead8;
  --paper: #fbf6eb;
  --ink: #1c2430;
  --muted: #5d6a72;
  --sea: #1a6b78;
  --sea-deep: #163a44;
  --terracotta: #c45c3e;
  --terracotta-hover: #d36a4b;
  --gold: #c9a24a;
  --tile: #1e5a8a;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  max-width: 100%;
}

html {
  background: var(--sea-deep);
}

body {
  min-height: 100dvh;
  font-family: Manrope, system-ui, sans-serif;
  color: var(--ink);
  background: var(--sea-deep);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.sheet {
  width: 100%;
  min-height: 100dvh;
  margin: 0 auto;
  background:
    radial-gradient(720px 280px at 80% 18%, rgba(201, 162, 74, 0.12) 0%, transparent 70%),
    var(--sand);
  overflow: hidden;
}

.flag {
  height: 8px;
  background: linear-gradient(
    to bottom,
    #ae1c28 0 3px,
    #f3c34b 3px 5px,
    #ae1c28 5px 8px
  );
  padding-top: var(--safe-top);
}

.collage {
  display: grid;
  grid-template-columns: 1.38fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 6px;
  height: min(42vh, 380px);
  min-height: 240px;
  padding: 8px 8px 0;
  background: var(--sea-deep);
}

.shot {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: #0d2c33;
}

.shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shot-costa {
  grid-row: 1 / span 2;
  border-radius: 4px 22px 4px 28px / 4px 80px 4px 18px;
}

.shot-costa img {
  object-position: 58% 70%;
}

.shot-plaza {
  border-radius: 70px 70px 10px 10px / 48px 48px 10px 10px;
}

.shot-plaza img {
  object-position: 52% 42%;
}

.shot-nerja {
  border-radius: 10px 10px 70px 70px / 10px 10px 48px 48px;
}

.shot-nerja img {
  object-position: 50% 62%;
}

.shot figcaption {
  position: absolute;
  left: 8px;
  bottom: 8px;
  z-index: 1;
  margin: 0;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(22, 58, 68, 0.62);
  backdrop-filter: blur(6px);
}

.shot-nerja figcaption {
  top: 8px;
  bottom: auto;
}

.azulejo {
  height: 16px;
  background-color: var(--tile);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Crect fill='%231e5a8a' width='16' height='16'/%3E%3Crect fill='%23eaf2f8' x='1' y='1' width='6.5' height='6.5'/%3E%3Crect fill='%23eaf2f8' x='8.5' y='8.5' width='6.5' height='6.5'/%3E%3Ccircle cx='8' cy='8' r='1.4' fill='%23c9a24a'/%3E%3C/svg%3E");
  background-size: 16px 16px;
}

.story {
  max-width: 520px;
  margin: 0 auto;
  padding: 22px 22px calc(28px + var(--safe-bottom));
}

.kicker {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sea);
}

.title {
  margin: 6px 0 0;
  font-family: Manrope, system-ui, sans-serif;
  font-size: clamp(28px, 8vw, 36px);
  font-weight: 800;
  font-style: normal;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.lead {
  margin: 12px 0 0;
  font-size: 15px;
  line-height: 1.5;
  font-weight: 500;
  color: var(--muted);
}

.pass {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  padding: 14px 22px;
  color: #f7f3ea;
  background:
    linear-gradient(90deg, transparent 8px, var(--gold) 8px, var(--gold) 9px, transparent 9px) 0 50% / 12px 7px repeat-y,
    linear-gradient(180deg, #1f7482 0%, var(--sea) 100%);
  border-radius: 14px;
  overflow: hidden;
}

.pass::before,
.pass::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 18px;
  height: 18px;
  background: var(--sand);
  border-radius: 50%;
  transform: translateY(-50%);
}

.pass::before {
  left: -9px;
}

.pass::after {
  right: -9px;
}

.pass small {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.78;
}

.pass strong {
  display: block;
  margin-top: 3px;
  font-family: Manrope, system-ui, sans-serif;
  font-size: 24px;
  font-weight: 800;
  line-height: 1;
}

.route {
  margin: 20px 0 0;
  padding: 0 0 0 18px;
  list-style: none;
  border-left: 2px solid rgba(201, 162, 74, 0.7);
}

.route li {
  position: relative;
  margin: 0 0 14px;
  padding: 0 0 0 8px;
}

.route li:last-child {
  margin-bottom: 0;
}

.route li::before {
  content: "";
  position: absolute;
  top: 6px;
  left: -24px;
  width: 10px;
  height: 10px;
  background: var(--terracotta);
  border: 2px solid var(--sand);
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--gold);
}

.route strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}

.route span {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 54px;
  margin-top: 22px;
  padding: 14px 18px;
  border: 0;
  border-radius: 16px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn::before {
  content: "";
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  background-color: currentColor;
  -webkit-mask: url("assets/telegram.svg") center / 22px 22px no-repeat;
  mask: url("assets/telegram.svg") center / 22px 22px no-repeat;
}

.btn-primary {
  background: var(--terracotta);
  color: #fff;
  box-shadow: 0 12px 24px rgba(196, 92, 62, 0.32);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--terracotta-hover);
}

.note {
  margin: 14px 0 0;
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}

@media (max-width: 360px) {
  .collage {
    min-height: 210px;
  }

  .story {
    padding-left: 16px;
    padding-right: 16px;
  }

  .pass strong {
    font-size: 22px;
  }
}

@media (min-width: 700px) {
  .collage {
    height: 420px;
    gap: 10px;
    padding: 12px 12px 0;
  }

  .story {
    padding-top: 32px;
    padding-bottom: 48px;
  }
}
