:root {
  --ink: #17201f;
  --muted: #5c6a68;
  --line: #d9dfdb;
  --paper: #fbfaf5;
  --white: #ffffff;
  --sea: #0f8e9d;
  --deep: #073f4a;
  --sun: #e9b44c;
  --clay: #a65f3b;
  --pine: #315a45;
  --shadow: 0 24px 70px rgba(23, 32, 31, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

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

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 16px;
  left: 50%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
  width: min(1160px, calc(100% - 28px));
  min-height: 64px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 16px 50px rgba(7, 63, 74, 0.18);
  backdrop-filter: blur(18px);
  transform: translateX(-50%);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: var(--deep);
  color: var(--white);
  font-weight: 800;
  font-size: 0.82rem;
}

.brand strong,
.brand small {
  display: block;
  white-space: nowrap;
}

.brand small {
  color: var(--muted);
  font-size: 0.76rem;
}

nav {
  display: flex;
  justify-content: center;
  gap: 22px;
  color: var(--deep);
  font-size: 0.92rem;
  font-weight: 700;
}

nav a {
  border-bottom: 2px solid transparent;
}

nav a:hover {
  border-color: var(--sun);
}

.language-switch {
  display: inline-grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--white);
}

.language-switch button {
  min-width: 38px;
  min-height: 38px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.language-switch button.active {
  background: var(--deep);
  color: var(--white);
}

.hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: 96vh;
  padding: 140px max(22px, calc((100vw - 1160px) / 2)) 72px;
  color: var(--white);
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 63, 74, 0.1), rgba(7, 63, 74, 0.82)),
    linear-gradient(90deg, rgba(7, 63, 74, 0.58), rgba(7, 63, 74, 0.02) 62%),
    url("https://commons.wikimedia.org/wiki/Special:FilePath/Spain%20mallorca%20cala%20agulla%20a.jpg") center / cover;
  transform: scale(1.02);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(720px, 100%);
}

.eyebrow,
.section-kicker {
  margin: 0 0 10px;
  color: var(--sun);
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(4rem, 12vw, 9.5rem);
  font-weight: 500;
  line-height: 0.9;
}

.hero p:not(.eyebrow) {
  width: min(610px, 100%);
  margin: 24px 0 0;
  font-size: clamp(1.08rem, 1.8vw, 1.35rem);
}

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

.button,
.link-row a,
.activity-grid a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 8px;
  font-weight: 850;
}

.button.primary {
  background: var(--sun);
  color: #271b0a;
}

.button.secondary {
  border: 1px solid rgba(255, 255, 255, 0.52);
  color: var(--white);
}

.hero-card {
  position: absolute;
  right: max(22px, calc((100vw - 1160px) / 2));
  bottom: 72px;
  z-index: 1;
  display: grid;
  gap: 4px;
  width: min(300px, calc(100% - 44px));
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(14px);
}

.hero-card strong {
  font-size: 1.45rem;
}

.section-pad,
.feature-grid,
.activities,
.itinerary,
.site-footer {
  width: min(1160px, calc(100% - 36px));
  margin: 0 auto;
}

.section-pad {
  padding: 96px 0;
}

.intro,
.split,
.stay {
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  gap: clamp(28px, 6vw, 84px);
  align-items: start;
}

h2,
h3,
p {
  overflow-wrap: anywhere;
}

h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.2rem, 5vw, 4.8rem);
  font-weight: 500;
  line-height: 0.98;
}

h3 {
  margin: 0 0 10px;
  font-size: clamp(1.22rem, 2vw, 1.55rem);
  line-height: 1.12;
}

.intro > p,
.split p,
.stay p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.03rem, 1.7vw, 1.28rem);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.place-card {
  display: grid;
  min-height: 510px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow);
}

.place-card.wide {
  grid-column: 1 / -1;
  grid-template-columns: 1.35fr 0.65fr;
  min-height: 540px;
}

.place-card > div {
  display: flex;
  flex-direction: column;
  justify-content: end;
  min-height: 260px;
  padding: clamp(24px, 4vw, 44px);
}

.place-card p:last-child {
  margin: 0;
  color: var(--muted);
}

.beach-stack {
  display: grid;
  gap: 12px;
}

.beach-stack a {
  display: grid;
  grid-template-columns: minmax(120px, 0.35fr) 1fr;
  gap: 18px;
  align-items: center;
  min-height: 76px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.beach-stack span,
.planning-grid p,
.activity-grid p,
.faq p,
.site-footer p,
.booking-panel em {
  color: var(--muted);
}

.activities {
  padding: 96px 0;
}

.section-head {
  display: grid;
  gap: 8px;
  margin-bottom: 30px;
}

.activity-grid,
.planning-grid,
.faq-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.activity-grid article,
.planning-grid article,
.faq-grid article {
  min-height: 250px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.activity-grid article {
  display: flex;
  flex-direction: column;
}

.icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 32px;
  border-radius: 50%;
  background: #edf6f3;
  color: var(--deep);
  font-weight: 900;
  font-size: 0.78rem;
}

.activity-grid p {
  flex: 1;
}

.activity-grid a,
.link-row a {
  width: fit-content;
  border: 1px solid var(--line);
  color: var(--deep);
  background: #f6f6ef;
}

.planning {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.itinerary {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  min-height: 560px;
  margin-bottom: 10px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--deep);
  color: var(--white);
}

.itinerary > div {
  align-self: center;
  padding: clamp(28px, 6vw, 64px);
}

.itinerary ol {
  display: grid;
  gap: 12px;
  margin: 28px 0 0;
  padding-left: 22px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.08rem;
}

.booking-panel {
  display: grid;
  align-content: center;
  gap: 8px;
  min-height: 240px;
  padding: 32px;
  border-radius: 8px;
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(7, 63, 74, 0.92), rgba(15, 142, 157, 0.72)),
    url("https://commons.wikimedia.org/wiki/Special:FilePath/Cala%20Gat%2001.jpg") center / cover;
  box-shadow: var(--shadow);
}

.booking-panel span {
  color: var(--sun);
  font-weight: 900;
  text-transform: uppercase;
}

.booking-panel strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 4rem);
  font-weight: 500;
  line-height: 1;
}

.booking-panel em {
  color: rgba(255, 255, 255, 0.78);
  font-style: normal;
}

.faq {
  padding-top: 40px;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 22px;
  align-items: start;
  padding: 38px 0 50px;
  border-top: 1px solid var(--line);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px;
  color: var(--deep);
  font-weight: 750;
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
    gap: 14px;
    overflow-x: auto;
    padding: 2px 0 4px;
  }

  .hero {
    min-height: 92vh;
    padding-top: 168px;
  }

  .hero-card {
    position: relative;
    right: auto;
    bottom: auto;
    margin-top: 30px;
  }

  .intro,
  .split,
  .stay,
  .place-card.wide,
  .itinerary,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .feature-grid,
  .activity-grid,
  .planning-grid,
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .place-card,
  .place-card.wide {
    min-height: 0;
  }

  .place-card img {
    min-height: 320px;
  }

  .itinerary img {
    min-height: 320px;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .site-header {
    top: 10px;
    width: calc(100% - 20px);
    gap: 10px;
  }

  .brand strong {
    max-width: 138px;
    white-space: normal;
    line-height: 1.05;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .language-switch button {
    min-width: 34px;
  }

  .hero {
    min-height: 94vh;
    padding-left: 18px;
    padding-right: 18px;
    padding-bottom: 34px;
  }

  .hero h1 {
    font-size: clamp(3.4rem, 20vw, 5.2rem);
  }

  .hero-actions,
  .link-row {
    flex-direction: column;
  }

  .button,
  .link-row a,
  .activity-grid a {
    width: 100%;
  }

  .section-pad,
  .activities {
    padding: 68px 0;
  }

  .beach-stack a {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}
