:root {
  --paper: #efe2cc;
  --paper-2: #f6eddc;
  --ink: #2f2b27;
  --ink-soft: rgba(47, 43, 39, 0.75);
  --border: rgba(63, 43, 20, 0.35);
  --accent: #9a6a33;
  --accent-2: #6f4a22;
  --shadow: rgba(0, 0, 0, 0.18);
  --radius: 14px;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: ui-serif, Georgia, "Times New Roman", Times, serif;
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 50% 0%, rgba(255,255,255,0.6), rgba(255,255,255,0)),
    linear-gradient(180deg, #e7d6bc, #cdb08f);
}

.es-page {
  width: min(760px, 92vw);
  margin: 28px auto 40px;
  display: grid;
  gap: 18px;
}

.es-card {
  background: linear-gradient(180deg, var(--paper), var(--paper-2));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 10px 30px var(--shadow);
  padding: 18px;
  position: relative;
  overflow: hidden;
}

.es-hero {
  text-align: center;
  padding: 26px 18px;
}
.es-tagline {
  margin: 0 0 10px 0;
  font-size: 14px;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
}
.es-title {
  margin: 0;
  font-size: clamp(30px, 6vw, 48px);
  line-height: 1.05;
}
.es-subtitle {
  margin: 12px 0 0 0;
  font-size: 16px;
  color: var(--ink-soft);
}

.es-section-title {
  margin: 0 0 12px 0;
  font-size: 22px;
  text-align: center;
  color: var(--accent-2);
}

.es-section-head {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.es-toggle {
  display: inline-flex;
  border: 1px solid rgba(0,0,0,0.22);
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255,255,255,0.18);
}
.es-toggle-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--accent-2);
  padding: 9px 14px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.es-toggle-btn.is-active {
  background: linear-gradient(180deg, #c99555, #a7723d);
  color: #1b120a;
}

.es-list {
  display: grid;
  gap: 10px;
}

.es-row {
  display: grid;
  grid-template-columns: 88px 1fr 24px;
  gap: 12px;
  align-items: center;
  text-decoration: none;
  color: inherit;
  padding: 10px;
  border: 1px solid rgba(0,0,0,0.10);
  border-radius: 12px;
  background: rgba(255,255,255,0.25);
  transition: transform .08s ease, background .15s ease;
}
.es-row:hover {
  transform: translateY(-1px);
  background: rgba(255,255,255,0.34);
}

.es-thumb {
  width: 88px;
  height: 56px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.18);
  background: rgba(0,0,0,0.04);
}
.es-thumb-img {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
}
.es-thumb-placeholder {
  background:
    linear-gradient(135deg, rgba(0,0,0,0.06), rgba(0,0,0,0.02)),
    repeating-linear-gradient(45deg, rgba(0,0,0,0.07) 0 6px, rgba(0,0,0,0.02) 6px 12px);
}

.es-row-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 700;
}
.es-flag { font-size: 20px; }
.es-row-sub {
  margin-top: 4px;
  font-size: 13px;
  color: var(--ink-soft);
}
.es-row-chevron {
  font-size: 28px;
  color: var(--accent);
  text-align: center;
}

.es-player {
  padding: 0;
}
.es-detail-header {
  padding: 14px 18px;
  text-align: center;
  border-bottom: 1px solid rgba(0,0,0,0.18);
  background: rgba(255,255,255,0.12);
  display: flex;
  gap: 12px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}
.es-detail-brand {
  font-size: 18px;
  font-weight: 800;
  color: var(--accent-2);
  letter-spacing: 0.01em;
}
.es-photo {
  height: 240px;
  border-bottom: 1px solid rgba(0,0,0,0.18);
  background: rgba(0,0,0,0.04);
}
.es-photo-img {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
}
.es-photo-placeholder {
  background:
    radial-gradient(800px 260px at 50% 0%, rgba(0,0,0,0.08), rgba(0,0,0,0)),
    linear-gradient(180deg, rgba(0,0,0,0.06), rgba(0,0,0,0.02));
}

.es-player-body {
  padding: 18px;
  text-align: center;
}
.es-embassy-title {
  margin: 0;
  font-size: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.es-embassy-sub {
  margin: 8px 0 14px;
  font-size: 14px;
  color: var(--ink-soft);
}

.es-maplink {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.18);
  background: rgba(255,255,255,0.28);
  color: var(--accent-2);
  text-decoration: none;
  font-size: 18px;
  line-height: 1;
  transition: transform .08s ease, background .15s ease;
}
.es-maplink:hover {
  transform: translateY(-1px);
  background: rgba(255,255,255,0.36);
}

.es-audio { display: grid; gap: 10px; justify-items: center; }

.es-audio-controls {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

.es-audio-controls .es-button {
  min-width: 0;
}

.es-audio-buttons {
  display: inline-flex;
  gap: 10px;
  align-items: center;
}
.es-audio-buttons .es-lang-btn {
  flex: 0 0 auto;
}

.es-lang {
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
}
.es-lang-btn {
  appearance: none;
  border: 1px solid rgba(0,0,0,0.18);
  background: rgba(255,255,255,0.22);
  border-radius: 999px;
  width: 34px;
  height: 34px;
  cursor: pointer;
  transition: transform .08s ease, background .15s ease, border-color .15s ease;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.es-lang-btn:hover {
  transform: translateY(-1px);
  background: rgba(255,255,255,0.32);
}
.es-lang-btn.is-active {
  border-color: rgba(111, 74, 34, 0.55);
  background: linear-gradient(180deg, #c99555, #a7723d);
}

.es-flag-icon {
  width: 22px;
  height: 16px;
  border-radius: 4px;
  display: block;
  box-shadow: 0 1px 6px rgba(0,0,0,0.18);
}

.es-slides {
  margin-top: 6px;
  width: min(420px, 88%);
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.es-slides .es-button {
  min-width: 0;
  flex: 1;
}

.es-actions {
  margin-top: 8px;
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.es-button {
  appearance: none;
  border: 1px solid rgba(0,0,0,0.22);
  border-radius: 12px;
  padding: 11px 14px;
  font-size: 16px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 160px;
}
.es-button-primary {
  background: linear-gradient(180deg, #c99555, #a7723d);
  color: #1b120a;
  border-color: rgba(50, 26, 6, 0.35);
  font-weight: 800;
}
.es-button-secondary {
  background: rgba(255,255,255,0.36);
  color: var(--accent-2);
  font-weight: 700;
}
.es-button-ghost {
  background: transparent;
  color: var(--accent-2);
}
.es-button-ghost.is-active {
  background: rgba(255,255,255,0.30);
  border-color: rgba(111, 74, 34, 0.55);
  box-shadow: 0 6px 18px rgba(0,0,0,0.10);
}
.es-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.es-progress {
  width: min(420px, 88%);
  height: 10px;
  border-radius: 999px;
  background: rgba(0,0,0,0.10);
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.12);
  cursor: pointer;
}
.es-progress-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #c99555, #7a4a20);
  transition: width 0.15s linear;
}
.es-progress-row {
  width: min(420px, 88%);
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--ink-soft);
}

.es-made {
  margin: 16px 0 2px;
  font-size: 12px;
  color: var(--ink-soft);
}

.es-map-wrap {
  margin-top: 8px;
}
.es-map-note {
  margin: 0 0 10px;
  font-size: 13px;
  color: var(--ink-soft);
  text-align: center;
}
.es-map-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 12px;
  align-items: start;
}
.es-map-nav {
  display: grid;
  gap: 10px;
  max-height: 420px;
  overflow: auto;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.18);
  background: rgba(255,255,255,0.18);
}
.es-map-nav-item {
  appearance: none;
  border: 1px solid rgba(0,0,0,0.12);
  background: rgba(255,255,255,0.25);
  border-radius: 12px;
  padding: 8px;
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 10px;
  align-items: center;
  text-align: left;
  cursor: pointer;
  color: inherit;
  transition: transform .08s ease, background .15s ease, border-color .15s ease;
}
.es-map-nav-item:hover {
  transform: translateY(-1px);
  background: rgba(255,255,255,0.34);
}
.es-map-nav-item.is-active {
  border-color: rgba(111, 74, 34, 0.45);
  box-shadow: 0 6px 18px rgba(0,0,0,0.10);
}
.es-map-thumb {
  width: 44px;
  height: 34px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.18);
  background: rgba(0,0,0,0.04);
}
.es-map-thumb-img {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  display: block;
}
.es-map-country {
  font-size: 14px;
  font-weight: 800;
  color: var(--accent-2);
}
.es-map {
  height: 420px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.18);
  background: rgba(0,0,0,0.04);
  overflow: hidden;
}

.es-footer {
  width: min(760px, 92vw);
  margin: 0 auto 26px;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  font-size: 12px;
  color: rgba(255,255,255,0.75);
  display: flex;
  justify-content: center;
  gap: 10px;
}
.es-footer a { color: rgba(255,255,255,0.85); text-decoration: none; }
.es-footer a:hover { text-decoration: underline; }
.es-dot { opacity: 0.6; }

@media (max-width: 520px) {
  .es-row { grid-template-columns: 70px 1fr 20px; }
  .es-thumb { width: 70px; height: 46px; }
  .es-photo { height: 200px; }
  .es-button { min-width: 140px; }
  .es-map-layout { grid-template-columns: 1fr; }
  .es-map-nav { max-height: 180px; }
  .es-map { height: 360px; }
}
