:root {
  --paper: #efe2cb;
  --cream: #f8eedc;
  --ink: #1f3658;
  --muted: #725f51;
  --blue: #c8d8df;
  --coral: #9e4524;
  --yellow: #c48f39;
  --olive: #6f7356;
  --line: rgba(31, 54, 88, 0.2);
  --shadow: 0 20px 60px rgba(65, 44, 28, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--yellow);
  font-family: Inter, system-ui, sans-serif;
  font-weight: 500;
}

body::before {
  content: none;
}

main {
  width: min(100%, 1240px);
  margin: 0 auto;
  padding: 28px 24px 80px;
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 255, 255, 0.5), transparent 18rem),
    var(--cream);
  box-shadow: 0 22px 80px rgba(65, 44, 28, 0.16);
}

main::before,
main::after {
  display: block;
  height: 24px;
  content: "";
  background-image: radial-gradient(ellipse at center, var(--ink) 0 42%, transparent 46%);
  background-repeat: repeat-x;
  background-size: 28px 18px;
  background-position: center;
}

main::before {
  margin-bottom: 28px;
}

main::after {
  margin-top: 34px;
}

h1,
h2,
.place,
.date,
.price {
  margin: 0;
  font-family: Fraunces, Georgia, serif;
  line-height: 0.95;
}

h1 {
  font-size: clamp(3.2rem, 10vw, 9.8rem);
  font-weight: 800;
  letter-spacing: 0;
}

h2 {
  font-size: clamp(2rem, 5vw, 4.8rem);
  font-weight: 650;
  letter-spacing: 0;
}

p {
  margin: 0;
}

img {
  display: block;
  max-width: 100%;
}

.hero {
  position: relative;
  min-height: 78vh;
  display: grid;
  align-content: center;
  justify-items: center;
  text-align: center;
  grid-template-columns: 0.92fr 1.08fr;
  gap: clamp(24px, 5vw, 70px);
  padding: 58px 28px 78px;
  overflow: hidden;
}

.hero > :not(.asset) {
  position: relative;
  z-index: 2;
}

.hero .eyebrow,
.hero h1,
.hero .place,
.hero .date,
.hero .intro {
  grid-column: 1;
}

.eyebrow,
.stamp {
  color: var(--coral);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.place {
  margin-top: 8px;
  color: var(--ink);
  font-size: clamp(2rem, 5vw, 4.5rem);
}

.date {
  margin-top: 4px;
  color: var(--coral);
  font-size: clamp(1.4rem, 3.2vw, 3rem);
}

.intro {
  width: min(560px, 92vw);
  margin-top: 34px;
  font-size: clamp(1.05rem, 1.7vw, 1.45rem);
  font-weight: 650;
  line-height: 1.38;
}

.asset {
  position: absolute;
  pointer-events: none;
  user-select: none;
}

.asset-sun {
  top: 104px;
  left: clamp(18px, 6vw, 76px);
  width: clamp(112px, 13vw, 170px);
  transform: rotate(-10deg);
  mix-blend-mode: multiply;
  z-index: 1;
}

.hero-estate {
  grid-column: 2;
  grid-row: 1 / 6;
  align-self: center;
  justify-self: center;
  width: min(100%, 580px);
  mix-blend-mode: multiply;
}

.rsvp-bird {
  left: clamp(20px, 4vw, 52px);
  bottom: clamp(10px, 3vw, 40px);
  width: clamp(150px, 16vw, 220px);
  transform: rotate(2deg);
  mix-blend-mode: multiply;
  z-index: 1;
}

.band {
  position: relative;
  margin: 0 auto 76px;
  padding-top: 42px;
  border-top: 2px solid var(--coral);
  border-image: repeating-linear-gradient(
      90deg,
      var(--coral) 0 20px,
      transparent 20px 28px
    )
    1;
}

.inline-art {
  display: block;
  mix-blend-mode: multiply;
  pointer-events: none;
}

.estate-art {
  width: min(100%, 320px);
  margin: 0 0 10px -22px;
}

.palm-art {
  width: 118px;
  margin: 0 0 18px;
}

.coast-art {
  width: min(100%, 300px);
  margin: 0 0 18px;
}

.estate {
  display: grid;
  grid-template-columns: minmax(230px, 0.45fr) minmax(0, 1fr);
  gap: 34px;
  align-items: end;
}

.estate-image {
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  order: 2;
  transform: none;
}

.estate-image img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.section-copy {
  max-width: 420px;
}

.section-copy h2 {
  margin: 8px 0 18px;
}

.section-copy p:not(.stamp) {
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.55;
}

.programme {
  display: grid;
  grid-template-columns: 0.25fr 1fr;
  gap: 48px;
  align-items: start;
}

.island {
  display: grid;
  grid-template-columns: 0.42fr 1fr;
  gap: 34px;
  align-items: start;
}

.map-card {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 22px 30px;
  padding: clamp(20px, 4vw, 36px);
  background: var(--cream);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.map-info {
  min-height: 180px;
  padding: 18px 0;
}

.map-info h3 {
  margin: 8px 0 12px;
  color: var(--ink);
  font-family: Fraunces, Georgia, serif;
  font-size: 2rem;
  line-height: 1;
}

.map-info p:not(.stamp) {
  color: var(--muted);
  line-height: 1.5;
}

.menorca-map {
  position: relative;
  min-height: 360px;
  align-self: center;
  grid-row: span 2;
}

.menorca-map svg {
  width: 100%;
  height: 100%;
  min-height: 360px;
}

.island-shape {
  fill: rgba(248, 238, 220, 0.52);
  stroke: var(--ink);
  stroke-width: 6;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1 12;
}

.map-fold {
  fill: none;
  stroke: rgba(114, 95, 81, 0.28);
  stroke-width: 2;
}

.island-inner {
  fill: none;
  stroke: rgba(31, 54, 88, 0.42);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 8 16;
}

.route-line {
  fill: none;
  stroke: rgba(158, 69, 36, 0.58);
  stroke-width: 3;
  stroke-dasharray: 4 12;
}

.map-mini {
  fill: none;
  stroke: var(--ink);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.compass {
  fill: none;
  stroke: var(--ink);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.compass text {
  fill: var(--ink);
  stroke: none;
  font-family: Fraunces, Georgia, serif;
  font-size: 34px;
  font-weight: 800;
  text-anchor: middle;
}

.map-dot {
  position: absolute;
  width: 36px;
  min-height: 36px;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  padding: 0;
  color: var(--cream);
  background: var(--coral);
  border: 2px solid var(--cream);
  box-shadow: 0 8px 18px rgba(65, 44, 28, 0.22);
}

.map-dot-1 {
  left: 49%;
  top: 26%;
}

.map-dot-2 {
  left: 87%;
  top: 53%;
}

.map-dot-3 {
  left: 37%;
  top: 56%;
}

.map-dot-4 {
  left: 65%;
  top: 66%;
}

.map-dot-5 {
  left: 86%;
  top: 71%;
}

.map-dot-6 {
  left: 60%;
  top: 81%;
}

.map-dot.active {
  background: var(--ink);
}

.map-key {
  display: grid;
  gap: 8px;
  grid-column: 1 / -1;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

.map-key-button {
  width: 100%;
  min-height: 58px;
  padding: 10px 12px;
  color: var(--ink);
  background: rgba(196, 143, 57, 0.18);
  border: 1px solid rgba(31, 54, 88, 0.18);
  text-align: left;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.map-key-button span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 650;
  letter-spacing: 0;
  text-transform: none;
}

.map-key-button.active {
  color: var(--cream);
  background: var(--ink);
}

.map-key-button.active span {
  color: var(--blue);
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 0;
}

.timeline li {
  display: block;
  min-height: 180px;
  padding: 0 22px;
  border-right: 1px solid rgba(158, 69, 36, 0.32);
  border-bottom: 0;
  text-align: center;
  color: var(--muted);
  line-height: 1.45;
}

.timeline li:last-child {
  border-right: 0;
}

.timeline span {
  color: var(--ink);
  font-family: Fraunces, Georgia, serif;
  font-size: 1.1rem;
}

.rooms-intro {
  margin-bottom: 28px;
}

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

.room-card {
  position: relative;
  min-height: 430px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  cursor: pointer;
  background: rgba(248, 238, 220, 0.72);
  border: 2px solid var(--ink);
  border-radius: 8px;
  box-shadow: 0 8px 28px rgba(31, 43, 43, 0.07);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.room-card::after {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 7px 9px;
  color: var(--ink);
  background: rgba(247, 242, 233, 0.86);
  border: 1px solid rgba(31, 43, 43, 0.16);
  content: attr(data-status);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.room-card:nth-child(2n) {
  transform: none;
}

.room-card:nth-child(odd) {
  transform: none;
}

.room-card:hover,
.room-card.selected {
  border-color: var(--coral);
  box-shadow: 0 14px 40px rgba(191, 85, 79, 0.18);
}

.room-card.sold-out {
  cursor: not-allowed;
  opacity: 0.52;
  filter: grayscale(0.35);
}

.room-card.sold-out:hover {
  border-color: var(--line);
  box-shadow: 0 8px 28px rgba(31, 43, 43, 0.07);
}

.room-card.selected {
  background: #fffaf0;
}

.room-card img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  padding: 14px 14px 0;
}

.room-card div {
  padding: 18px;
}

.room-type {
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.price {
  margin-top: 8px;
  font-size: 2.4rem;
}

.deposit {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.9rem;
}

.availability {
  margin-top: 12px;
  color: var(--olive);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sold-out .availability {
  color: var(--coral);
}

.rsvp-panel {
  position: relative;
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 40px;
  padding: clamp(26px, 5vw, 54px);
  background: rgba(248, 238, 220, 0.88);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.panel-badge {
  right: 20px;
  top: -64px;
  width: 112px;
  transform: rotate(6deg);
  mix-blend-mode: multiply;
}

.rsvp-heading p:not(.stamp) {
  margin-top: 18px;
  color: var(--muted);
  line-height: 1.55;
}

form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.full {
  grid-column: 1 / -1;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 14px 13px;
  color: var(--ink);
  background: rgba(248, 238, 220, 0.78);
  font: inherit;
  text-transform: none;
}

textarea {
  resize: vertical;
}

input:focus,
textarea:focus {
  outline: 2px solid rgba(191, 85, 79, 0.34);
  border-color: var(--coral);
}

.selection {
  padding: 15px;
  color: var(--ink);
  background: rgba(248, 238, 220, 0.48);
  border: 1px dashed rgba(31, 54, 88, 0.28);
  font-family: Fraunces, Georgia, serif;
  font-size: 1.1rem;
}

button,
.whatsapp-link {
  min-height: 50px;
  border: 0;
  padding: 0 18px;
  cursor: pointer;
  color: #fff;
  background: var(--ink);
  font: inherit;
  font-weight: 800;
  text-decoration: none;
}

button:hover,
.whatsapp-link:hover {
  background: var(--coral);
}

.result {
  grid-column: 2;
  margin-top: 22px;
  padding: 18px;
  background: #fffaf0;
  border: 1px solid var(--line);
  line-height: 1.45;
}

.admin-body {
  background: var(--paper);
}

.admin-shell {
  width: min(100%, 1280px);
}

.admin-header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: end;
  margin-bottom: 34px;
}

.admin-header h1 {
  font-size: clamp(3rem, 7vw, 6rem);
}

.text-link {
  color: var(--ink);
  font-weight: 800;
}

.admin-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.admin-summary article {
  padding: 16px;
  background: var(--cream);
  border: 1px solid var(--line);
}

.admin-summary span,
.admin-summary em {
  display: block;
  color: var(--muted);
  font-style: normal;
}

.admin-summary strong {
  display: block;
  margin: 8px 0;
  font-family: Fraunces, Georgia, serif;
  font-size: 2.3rem;
}

.admin-table-wrap {
  overflow-x: auto;
  background: var(--cream);
  border: 1px solid var(--line);
}

.admin-table {
  width: 100%;
  min-width: 1040px;
  border-collapse: collapse;
}

.admin-table th,
.admin-table td {
  padding: 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.admin-table th {
  color: var(--coral);
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.admin-table td span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.86rem;
}

.admin-table input[type="checkbox"] {
  width: 22px;
  height: 22px;
}

.admin-table button {
  display: block;
  width: 100%;
  margin-bottom: 8px;
  font-size: 0.82rem;
}

.result strong {
  display: block;
  margin-bottom: 8px;
}

.whatsapp-link {
  display: inline-flex;
  align-items: center;
  margin-top: 14px;
}

@media (max-width: 920px) {
  main {
    padding-inline: 18px;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-inline: 8px;
  }

  .hero .eyebrow,
  .hero h1,
  .hero .place,
  .hero .date,
  .hero .intro {
    grid-column: 1;
  }

  .asset-sun {
    opacity: 0.34;
  }

  .hero {
    text-align: center;
    justify-items: center;
  }

  .hero-estate {
    grid-column: 1;
    grid-row: auto;
    width: min(100%, 440px);
    margin-top: 18px;
  }

  .rsvp-bird {
    display: none;
  }

  .estate,
  .programme,
  .island,
  .rsvp-panel {
    grid-template-columns: 1fr;
  }

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

  .menorca-map {
    grid-row: auto;
  }

  .map-key {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .room-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .timeline li:nth-child(2) {
    border-right: 0;
  }

  .room-card:nth-child(n) {
    transform: none;
  }

  .result {
    grid-column: 1;
  }
}

@media (max-width: 620px) {
  main {
    padding: 28px 14px 60px;
  }

  .hero {
    min-height: 86vh;
  }

  .asset-sun {
    width: 104px;
    left: -12px;
    top: 54px;
  }

  .panel-badge {
    display: none;
  }

  .intro {
    margin-top: 18px;
  }

  form {
    grid-template-columns: 1fr;
  }

  .timeline {
    grid-template-columns: 1fr;
  }

  .timeline li {
    min-height: auto;
    padding: 18px 0;
    border-right: 0;
    border-bottom: 1px solid rgba(158, 69, 36, 0.32);
  }

  .map-card {
    padding: 18px;
  }

  .menorca-map,
  .menorca-map svg {
    min-height: 260px;
  }

  .map-key,
  .admin-summary {
    grid-template-columns: 1fr;
  }

  .room-grid {
    grid-template-columns: 1fr;
  }

  .room-card {
    min-height: auto;
  }

  .room-card img {
    height: 260px;
  }
}
