:root {
  --ink: #102c3a;
  --muted: #5d6d73;
  --paper: #f6f2ea;
  --panel: #fffaf1;
  --line: #e4d8c8;
  --brand: #0c4a5f;
  --accent: #e66f25;
  --blue: #1776d2;
  --green: #0d9f70;
  --yellow: #f0b429;
  --shadow: 0 18px 45px rgba(15, 44, 58, 0.12);
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
}

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

.map-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
  background: rgba(246, 242, 234, 0.94);
  backdrop-filter: blur(14px);
}

.brand img {
  display: block;
  width: min(290px, 58vw);
  height: auto;
}

.map-header nav,
.hero-actions,
.filters,
.profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.map-header nav a,
.hero-actions a,
.filters button,
.profile-actions a,
.opinion-box button {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  padding: 10px 14px;
  font-weight: 800;
  font-size: 0.86rem;
}

.map-header nav a:hover,
.hero-actions a:hover,
.profile-actions a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
  align-items: stretch;
  padding: 42px 0 28px;
}

.hero-copy {
  min-height: 440px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(24px, 5vw, 52px);
  border-radius: 6px;
  color: white;
  background:
    linear-gradient(90deg, rgba(10, 44, 58, 0.92), rgba(10, 44, 58, 0.58)),
    url("assets/editorial/oaxaca-aerea-ranking-tripadvisor.jpeg");
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow);
}

.hero-copy span,
.section-heading span,
.map-toolbar span,
.map-panel span,
.profile-topline,
.map-footer strong {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-copy h1 {
  max-width: 760px;
  margin: 10px 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.2rem, 5vw, 5rem);
  line-height: 0.96;
  letter-spacing: 0;
}

.hero-copy p {
  max-width: 680px;
  margin: 0 0 24px;
  font-size: 1.08rem;
  line-height: 1.6;
}

.hero-actions a:first-child,
.opinion-box button {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

.rating-guide,
.map-panel,
.profile-card,
.map-toolbar {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: var(--shadow);
}

.rating-guide {
  padding: 22px;
}

.rating-guide h2,
.map-panel h2,
.section-heading h2 {
  margin: 0 0 14px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.8rem;
  letter-spacing: 0;
}

.guide-item {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 6px 12px;
  align-items: center;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.guide-item p {
  grid-column: 2;
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.goto-face {
  width: 46px;
  height: 46px;
  display: inline-block;
  position: relative;
  border-radius: 50%;
  background: currentColor;
  box-shadow: inset 0 -7px rgba(0, 0, 0, 0.12);
}

.goto-face::before,
.goto-face::after {
  content: "";
  position: absolute;
  top: 14px;
  width: 9px;
  height: 13px;
  border-radius: 50%;
  background: #fff;
}

.goto-face::before {
  left: 12px;
}

.goto-face::after {
  right: 12px;
}

.blue .goto-face,
.rating-badge.blue {
  color: var(--blue);
}

.green .goto-face,
.rating-badge.green {
  color: var(--green);
}

.yellow .goto-face,
.rating-badge.yellow {
  color: var(--yellow);
}

.map-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 16px;
  margin: 8px 0 22px;
}

.filters button {
  cursor: pointer;
}

.filters button.active {
  border-color: var(--brand);
  background: var(--brand);
  color: white;
}

.map-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 18px;
  margin-bottom: 34px;
}

.virtual-map {
  min-height: 430px;
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(12, 74, 95, 0.9), rgba(23, 118, 210, 0.42)),
    repeating-linear-gradient(38deg, transparent 0 38px, rgba(255, 255, 255, 0.18) 39px 40px),
    #124e61;
  box-shadow: var(--shadow);
}

.map-watermark {
  position: absolute;
  left: 24px;
  bottom: 20px;
  color: rgba(255, 255, 255, 0.22);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.5rem, 8vw, 6rem);
  font-weight: 900;
}

.map-pin {
  position: absolute;
  left: var(--x);
  top: var(--y);
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: currentColor;
  color: var(--accent);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.28);
  cursor: pointer;
}

.map-pin::after {
  content: attr(aria-label);
  position: absolute;
  left: 50%;
  top: 48px;
  transform: translateX(-50%);
  min-width: 130px;
  max-width: 180px;
  padding: 8px 10px;
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 800;
  opacity: 0;
  pointer-events: none;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.16);
}

.map-pin:hover::after,
.map-pin:focus-visible::after {
  opacity: 1;
}

.map-panel {
  padding: 24px;
}

.map-panel p {
  color: var(--muted);
  line-height: 1.55;
}

.profile-section {
  padding-bottom: 40px;
}

.section-heading {
  margin: 0 0 18px;
}

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

.profile-card {
  overflow: hidden;
}

.profile-media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: #d9d0c4;
}

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

.media-caption {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  padding: 7px 9px;
  border-radius: 4px;
  color: white;
  background: rgba(16, 44, 58, 0.72);
  font-size: 0.72rem;
}

.profile-body {
  padding: 18px;
}

.profile-card h3 {
  margin: 6px 0 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.55rem;
  letter-spacing: 0;
}

.description,
.opinion-box,
.map-footer p {
  color: var(--muted);
  line-height: 1.6;
}

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

.badge,
.rating-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  padding: 7px 9px;
  font-size: 0.76rem;
  font-weight: 900;
}

.rating-badge {
  border-color: currentColor;
}

.badge.michelin::before {
  content: "☺";
  color: #d01818;
  font-weight: 900;
}

.badge.tripadvisor::before {
  content: "◉◉";
  color: #00aa6c;
  letter-spacing: -3px;
}

.meta-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 16px;
}

.meta-list div {
  padding: 10px;
  border-radius: 5px;
  background: #fff;
  border: 1px solid var(--line);
}

.meta-list dt {
  margin: 0 0 3px;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.meta-list dd {
  margin: 0;
  color: var(--ink);
  font-weight: 750;
}

.profile-actions a {
  flex: 1 1 auto;
  justify-content: center;
  text-align: center;
}

.opinion-box {
  margin-top: 16px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.opinion-box summary {
  cursor: pointer;
  color: var(--brand);
  font-weight: 900;
}

.opinion-box form {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.opinion-box label {
  display: grid;
  gap: 5px;
  color: var(--ink);
  font-weight: 800;
}

.opinion-box input,
.opinion-box select,
.opinion-box textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 10px;
  font: inherit;
  background: #fff;
}

.local-review {
  margin-top: 10px;
  padding: 10px;
  border-left: 4px solid var(--accent);
  background: #fff;
}

.map-footer {
  width: min(1180px, calc(100% - 32px));
  margin: 20px auto 34px;
  padding: 20px;
  border-top: 1px solid var(--line);
}

@media (max-width: 860px) {
  .map-header,
  .map-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero,
  .map-stage,
  .profile-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    min-height: 520px;
  }

  .virtual-map {
    min-height: 360px;
  }

  .meta-list {
    grid-template-columns: 1fr;
  }
}
