:root {
  --ink: #152032;
  --muted: #637083;
  --line: #dce2e8;
  --paper: #ffffff;
  --soft: #f4f7f9;
  --blue: #1769e0;
  --blue-dark: #0e4da9;
  --green: #20a36a;
  --navy: #10233f;
  --shadow: 0 18px 45px rgba(15, 35, 64, 0.14);
  --radius: 18px;
  color-scheme: light;
  font-family: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
}

body,
button,
input {
  font: inherit;
}

button,
input {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

img,
svg,
iframe {
  display: block;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: "Manrope", "DM Sans", sans-serif;
  line-height: 1.1;
  letter-spacing: -0.035em;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 3px solid #ffcb3d;
  outline-offset: 3px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  line-height: 1;
}

.brand img {
  flex: 0 0 auto;
}

.brand span {
  display: grid;
  gap: 3px;
}

.brand strong {
  font-family: "Manrope", sans-serif;
  font-size: 17px;
  letter-spacing: -0.02em;
}

.brand small {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.72;
}

.brand.dark-brand,
.solid .brand {
  color: var(--navy);
}

.eyebrow {
  margin-bottom: 13px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.eyebrow.dark {
  color: var(--blue);
}

.search-form {
  width: 100%;
}

.search-control {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 78px;
  padding: 7px 7px 7px 24px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(5, 20, 42, 0.2);
}

.search-pin {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  fill: var(--blue);
}

.search-field {
  position: relative;
  display: grid;
  min-width: 0;
  flex: 1;
  gap: 1px;
  padding: 0 15px;
}

.search-field label {
  color: #677386;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.search-field input {
  width: 100%;
  min-width: 0;
  height: 31px;
  padding: 0;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font-size: 17px;
  font-weight: 600;
}

.search-field input::placeholder {
  color: #8993a2;
  font-weight: 500;
}

.search-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 126px;
  min-height: 62px;
  padding: 0 24px;
  border-radius: 10px;
  color: #fff;
  background: var(--blue);
  font-weight: 800;
  text-decoration: none;
  transition: background 160ms ease, transform 160ms ease;
}

.search-submit:hover {
  background: var(--blue-dark);
  transform: translateY(-1px);
}

.search-note {
  min-height: 19px;
  margin: 10px 3px 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
}

.suggestions {
  position: absolute;
  z-index: 30;
  top: calc(100% + 17px);
  right: -133px;
  left: -46px;
  max-height: 316px;
  margin: 0;
  padding: 7px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  background: #fff;
  box-shadow: var(--shadow);
  list-style: none;
}

.suggestions li {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 57px;
  padding: 8px 11px;
  border-radius: 8px;
  cursor: pointer;
}

.suggestions li:hover,
.suggestions li.is-active {
  background: #edf4ff;
}

.suggestions .no-results {
  color: var(--muted);
  cursor: default;
}

.suggestion-icon {
  color: var(--blue);
}

.suggestion-copy {
  display: grid;
  min-width: 0;
}

.suggestion-copy strong,
.suggestion-copy span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.suggestion-copy strong {
  font-size: 14px;
}

.suggestion-copy span {
  color: var(--muted);
  font-size: 12px;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.65fr);
  gap: 60px;
  align-items: end;
  margin-bottom: 38px;
}

.section-heading h2 {
  max-width: 750px;
  margin: 0;
  font-size: clamp(32px, 4vw, 50px);
}

.section-heading > p {
  max-width: 480px;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 16px;
}

.place-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.place-card {
  position: relative;
  display: flex;
  min-height: 390px;
  flex-direction: column;
  overflow: hidden;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: #fff;
  text-decoration: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.place-card:hover {
  border-color: #b6c9e7;
  box-shadow: 0 18px 38px rgba(17, 45, 83, 0.11);
  transform: translateY(-4px);
}

.place-art {
  position: relative;
  height: 122px;
  margin: -24px -24px 22px;
  overflow: hidden;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent-color) 85%, #fff), color-mix(in srgb, var(--accent-color) 35%, #eef5ff)),
    #e8f0fb;
}

.place-art::before,
.place-art::after {
  position: absolute;
  content: "";
}

.place-art::before {
  right: -26px;
  bottom: -64px;
  width: 230px;
  height: 150px;
  border: 28px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
  transform: rotate(-8deg);
}

.place-art::after {
  top: 0;
  bottom: 0;
  left: 28%;
  width: 2px;
  background: rgba(255, 255, 255, 0.34);
  transform: rotate(37deg);
}

.place-route {
  position: absolute;
  top: 42px;
  right: 32px;
  width: 78px;
  height: 38px;
  border-top: 4px dashed rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  transform: rotate(-12deg);
}

.place-pin {
  position: absolute;
  z-index: 2;
  top: 31px;
  right: 86px;
  width: 23px;
  height: 23px;
  border: 6px solid #fff;
  border-radius: 50% 50% 50% 0;
  box-shadow: 0 5px 14px rgba(20, 35, 55, 0.2);
  transform: rotate(-45deg);
}

.place-card[data-accent="blue"] { --accent-color: #2f70d9; }
.place-card[data-accent="violet"] { --accent-color: #784dc9; }
.place-card[data-accent="coral"] { --accent-color: #e56d5a; }
.place-card[data-accent="amber"] { --accent-color: #d39732; }
.place-card[data-accent="green"] { --accent-color: #348d6b; }
.place-card[data-accent="rose"] { --accent-color: #d24e78; }
.place-card[data-accent="sand"] { --accent-color: #b78451; }
.place-card[data-accent="aqua"] { --accent-color: #238e9c; }
.place-card[data-accent="navy"] { --accent-color: #34517e; }
.place-card[data-accent="orange"] { --accent-color: #dd5d2d; }
.place-card[data-accent="sky"] { --accent-color: #2c8fc3; }
.place-card[data-accent="gold"] { --accent-color: #c59024; }

.place-category {
  margin-bottom: 8px;
  color: var(--blue);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.place-card h3 {
  margin-bottom: 4px;
  font-size: 24px;
}

.place-region {
  margin-bottom: 13px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.place-card > p:last-of-type {
  display: -webkit-box;
  margin-bottom: 22px;
  overflow: hidden;
  color: #526074;
  font-size: 14px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.place-action {
  margin-top: auto;
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
}

.place-action::after {
  margin-left: 7px;
  content: "→";
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 9px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.button.primary {
  color: #fff;
  background: var(--blue);
}

.button.primary:hover {
  background: var(--blue-dark);
}

.button.secondary {
  border-color: #cdd6e0;
  background: #fff;
}

.button.secondary:hover {
  border-color: #9eafc2;
  background: #f7f9fb;
}

.ad-well {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: #8490a0;
  background: #f5f6f7;
}

.ad-well::before {
  position: absolute;
  top: 4px;
  left: 50%;
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  content: "Advertisement";
  transform: translateX(-50%);
}

.ad-well.is-unconfigured ins {
  visibility: hidden;
}

.top-ad {
  width: min(100%, 970px);
  min-height: 106px;
  margin: 0 auto;
  padding-top: 14px;
}

.sidebar-ad,
.content-ad {
  width: 100%;
  min-height: 274px;
  padding-top: 14px;
}

.result-label {
  margin-bottom: 11px;
  color: var(--blue);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.result-region {
  margin-bottom: 22px;
  color: var(--blue);
  font-size: 14px;
  font-weight: 700;
}

.result-description {
  color: #526074;
  font-size: 14px;
}

.result-meta {
  margin: 25px 0;
  padding: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.result-meta div {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding: 11px 0;
}

.result-meta div + div {
  border-top: 1px solid #edf0f3;
}

.result-meta dt,
.result-meta dd {
  margin: 0;
  font-size: 12px;
}

.result-meta dt {
  color: var(--muted);
}

.result-meta dd {
  font-weight: 700;
  text-align: right;
}

.viewer-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.copy-status {
  min-height: 18px;
  margin: 7px 0 0;
  color: var(--green);
  font-size: 12px;
}

.community-offer {
  margin: 18px 0;
  padding: 16px;
  border: 1px solid #f0c877;
  border-radius: 10px;
  background: #fff8e8;
}

.community-offer strong {
  display: block;
  margin-bottom: 3px;
}

.community-offer p {
  margin-bottom: 12px;
  color: #735a27;
  font-size: 13px;
}

.related {
  margin: 28px 0;
}

.related h2 {
  margin-bottom: 12px;
  font-size: 17px;
}

.related-list {
  display: grid;
  gap: 6px;
}

.related-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 10px;
  border-radius: 7px;
  background: var(--soft);
  text-decoration: none;
}

.related-list a:hover {
  background: #e8f1fd;
}

.related-list strong,
.related-list span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.related-list strong {
  font-size: 12px;
}

.related-list span {
  color: var(--muted);
  font-size: 10px;
}

.provider-note {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.viewer-stage {
  position: relative;
  min-height: 600px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(226, 234, 240, 0.9), rgba(244, 247, 249, 0.95)),
    repeating-linear-gradient(45deg, transparent, transparent 38px, rgba(112, 137, 158, 0.14) 39px, rgba(112, 137, 158, 0.14) 41px);
}

.viewer-stage iframe {
  position: absolute;
  z-index: 2;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.viewer-status {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 50%;
  width: min(86%, 410px);
  padding: 27px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
  text-align: center;
  transform: translate(-50%, -50%);
  backdrop-filter: blur(8px);
}

.viewer-status h2 {
  margin-bottom: 8px;
  font-size: 22px;
}

.viewer-status p {
  margin-bottom: 17px;
  color: var(--muted);
  font-size: 14px;
}

.status-spinner {
  display: none;
  width: 25px;
  height: 25px;
  margin: 0 auto 14px;
  border: 3px solid #d8e2ef;
  border-top-color: var(--blue);
  border-radius: 50%;
}

.viewer-status.is-loading .status-spinner {
  display: block;
  animation: spin 0.85s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.site-footer,
.compact-footer {
  color: #aab6c7;
  background: #0e1d31;
}

.site-footer {
  padding: 50px max(24px, calc((100vw - 1180px) / 2));
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  color: #fff;
}

.site-footer nav,
.compact-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.site-footer nav {
  margin-bottom: 24px;
}

.site-footer a,
.compact-footer a {
  color: #d4dce8;
}

.site-footer p {
  max-width: 920px;
  margin: 0;
  font-size: 12px;
}

.compact-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 62px;
  padding: 17px 32px;
  font-size: 11px;
}

@media (max-width: 960px) {
  .place-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-heading {
    gap: 30px;
  }
}

@media (max-width: 640px) {
  .search-control {
    min-height: 70px;
    padding-left: 17px;
  }

  .search-field {
    padding: 0 10px;
  }

  .search-field label {
    font-size: 10px;
  }

  .search-field input {
    font-size: 15px;
  }

  .search-submit {
    min-width: 72px;
    min-height: 56px;
    padding: 0 13px;
  }

  .suggestions {
    right: -79px;
    left: -39px;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 18px;
  }

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

  .place-card {
    min-height: 370px;
  }

  .viewer-actions {
    grid-template-columns: 1fr;
  }

  .compact-footer {
    align-items: flex-start;
    flex-direction: column;
    padding: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
