/*
 * Surflog surf-spot database
 *
 * This file is intentionally isolated from the shared visual system so the
 * data-driven pages can grow without making the rest of the site harder to
 * maintain.
 */

.spots-database-page {
  min-width: 0;
  background: #f7fafe;
}

.spot-directory-hero,
.spot-area-hero,
.spot-detail-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 82% 35%, rgba(164, 208, 240, 0.48), transparent 58%),
    linear-gradient(180deg, #fff 0%, #eef6fd 100%);
}

.spot-directory-hero {
  padding: 76px 0 112px;
}

.spot-directory-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 38%);
  align-items: center;
  gap: clamp(44px, 8vw, 96px);
}

.spot-directory-search {
  max-width: 860px;
  margin: clamp(38px, 6vw, 66px) 0 0;
}

.spot-character {
  display: block;
  pointer-events: none;
  user-select: none;
}

.spot-character img {
  display: block;
  width: 100%;
  height: auto;
}

.spot-character--directory {
  width: min(100%, 340px);
  justify-self: end;
  filter: drop-shadow(0 20px 34px rgba(6, 32, 77, 0.1));
}

.spot-directory-hero h1,
.spot-area-hero h1,
.spot-detail-hero h1 {
  color: var(--ink);
  font-size: clamp(48px, 6vw, 76px);
  font-weight: 760;
  letter-spacing: -0.055em;
  line-height: 1.1;
}

.spot-count {
  display: flex;
  align-items: baseline;
  gap: 13px;
  margin-top: 38px;
  color: var(--blue-dark);
}

.spot-count strong {
  font-size: clamp(42px, 5vw, 64px);
  font-weight: 720;
  letter-spacing: -0.05em;
  line-height: 1;
}

.spot-count span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

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

.spot-area-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(6, 32, 77, 0.09);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 42px rgba(6, 32, 77, 0.06);
  transition: border-color 0.18s ease-out, box-shadow 0.18s ease-out, transform 0.18s ease-out;
}

.spot-area-card:hover {
  border-color: rgba(51, 114, 217, 0.24);
  box-shadow: 0 22px 56px rgba(6, 32, 77, 0.1);
  transform: translateY(-2px);
}

.spot-area-card-main {
  display: block;
  min-height: 235px;
  padding: clamp(28px, 4vw, 42px);
  color: inherit;
  text-decoration: none;
}

.spot-area-card-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
}

.spot-area-card-heading h3 {
  font-size: clamp(30px, 3.2vw, 42px);
  font-weight: 740;
  letter-spacing: -0.045em;
}

.spot-area-card-heading span {
  flex: 0 0 auto;
  color: var(--blue-dark);
  font-size: 10px;
  font-weight: 760;
  letter-spacing: 0.12em;
}

.spot-area-card-main > p:last-child {
  max-width: 500px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.85;
}

.spot-preview-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  padding: 0 clamp(28px, 4vw, 42px) clamp(28px, 4vw, 38px);
  list-style: none;
}

.spot-preview-links li {
  min-width: 0;
  border-top: 1px solid rgba(6, 32, 77, 0.08);
}

.spot-preview-links li:nth-child(odd) {
  padding-right: 14px;
}

.spot-preview-links li:nth-child(even) {
  padding-left: 14px;
}

.spot-preview-links a {
  display: flex;
  align-items: center;
  min-height: 48px;
  color: #304467;
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
}

.spot-preview-links a:hover {
  color: var(--blue-dark);
}

.spot-data-note {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.75fr);
  align-items: end;
  gap: clamp(44px, 8vw, 96px);
}

.spot-data-note > p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.9;
}

.spot-empty {
  margin: 0;
  padding: 0 36px 36px;
  color: var(--muted);
}

/* Area pages */

.spot-area-hero {
  padding: 82px 0 108px;
}

.spot-area-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 830px) minmax(190px, 290px);
  align-items: end;
  gap: clamp(36px, 7vw, 88px);
}

.spot-area-hero-copy {
  min-width: 0;
}

.spot-character--area {
  width: min(100%, 290px);
  justify-self: end;
  transform: translateY(24px);
  filter: drop-shadow(0 18px 28px rgba(6, 32, 77, 0.1));
}

.spot-area-hero .category-lead {
  max-width: 700px;
  margin-top: 26px;
}

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

.spot-list-card {
  min-width: 0;
  border: 1px solid rgba(6, 32, 77, 0.09);
  border-radius: 21px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 36px rgba(6, 32, 77, 0.055);
  transition: border-color 0.18s ease-out, box-shadow 0.18s ease-out, transform 0.18s ease-out;
}

.spot-list-card:hover {
  border-color: rgba(51, 114, 217, 0.24);
  box-shadow: 0 19px 46px rgba(6, 32, 77, 0.09);
  transform: translateY(-2px);
}

.spot-list-card > a {
  display: flex;
  min-height: 236px;
  flex-direction: column;
  padding: 28px;
  color: inherit;
  text-decoration: none;
}

.spot-list-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  color: var(--blue-dark);
}

.spot-list-card-top .status-label {
  margin-bottom: 48px;
}

.spot-list-card h2 {
  margin-bottom: 12px;
  font-size: 25px;
  font-weight: 730;
  letter-spacing: -0.035em;
  line-height: 1.3;
}

.spot-list-card p:not(.status-label) {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.spot-list-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: auto 0 0;
  padding: 24px 0 0;
  list-style: none;
}

.spot-list-meta li {
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--sky);
  color: #304467;
  font-size: 11px;
  font-weight: 650;
}

.spot-safety-note {
  max-width: 760px;
  margin: 54px 0 0;
  padding-top: 22px;
  border-top: 1px solid rgba(6, 32, 77, 0.09);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

/* Detail pages */

.spot-detail-hero {
  padding: 40px 0 54px;
}

.spot-detail-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  align-items: end;
  gap: clamp(44px, 8vw, 92px);
}

@media (min-width: 961px) {
  .spot-detail-hero-grid > :first-child {
    align-self: center;
  }
}

.spot-detail-hero h1 {
  overflow-wrap: anywhere;
}

.spot-detail-lead {
  max-width: 720px;
  margin-top: 27px;
  color: #304467;
  font-size: clamp(16px, 1.7vw, 18px);
  line-height: 1.95;
}

.spot-reviewed {
  margin-top: 24px;
  color: var(--muted);
  font-size: 12px;
}

.spot-basic-card,
.spot-panel {
  min-width: 0;
  border: 1px solid rgba(6, 32, 77, 0.09);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 14px 42px rgba(6, 32, 77, 0.065);
}

.spot-basic-card {
  position: relative;
  z-index: 1;
  padding: 28px;
}

.spot-basic-visual {
  position: relative;
  min-width: 0;
  padding-top: 78px;
}

.spot-character--detail {
  position: absolute;
  z-index: 0;
  top: 0;
  right: 20px;
  width: 118px;
  filter: drop-shadow(0 10px 18px rgba(6, 32, 77, 0.09));
}

.spot-basic-card .eyebrow,
.spot-panel .eyebrow {
  margin-bottom: 19px;
}

.spot-basic-title {
  margin: 0 0 19px;
  color: var(--blue-dark);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.4;
}

#spot-map {
  width: 100%;
  height: clamp(220px, 25vw, 280px);
  margin-top: 24px;
  overflow: hidden;
  border: 1px solid rgba(6, 32, 77, 0.09);
  border-radius: 16px;
  background: #eef4fb;
}

.spot-map-attribution {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
  text-align: left;
}

.spot-map-attribution a {
  color: inherit;
  text-decoration: none;
}

.spot-map-attribution a:hover {
  color: var(--blue-dark);
  text-decoration: underline;
}

.spot-fact-list,
.spot-condition-list,
.spot-facility-list {
  margin: 0;
}

.spot-fact-list > div,
.spot-condition-list > div,
.spot-facility-list > div {
  display: grid;
  grid-template-columns: minmax(95px, 0.65fr) minmax(0, 1fr);
  gap: 18px;
  padding: 12px 0;
  border-top: 1px solid rgba(6, 32, 77, 0.08);
}

.spot-fact-list dt,
.spot-condition-list dt,
.spot-facility-list dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.spot-fact-list dd,
.spot-condition-list dd,
.spot-facility-list dd {
  margin: 0;
  color: var(--ink);
  font-size: 13px;
  font-weight: 680;
  text-align: right;
}

.spot-basic-card .spot-fact-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.spot-basic-card .spot-fact-list > div {
  display: block;
  min-width: 0;
  padding: 12px 16px;
}

.spot-basic-card .spot-fact-list > div:nth-child(odd) {
  padding-left: 12px;
  border-right: 1px solid rgba(6, 32, 77, 0.08);
}

.spot-basic-card .spot-fact-list dt {
  margin-bottom: 5px;
}

.spot-basic-card .spot-fact-list dd {
  overflow-wrap: anywhere;
  text-align: left;
}

.spot-basic-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 24px 0 0;
}

.spot-basic-facts > div {
  min-width: 0;
}

.spot-basic-facts > div:nth-child(1) {
  padding: 0 28px 28px 0;
  border-right: 1px solid rgba(42, 100, 216, 0.18);
}

.spot-basic-facts > div:nth-child(2) {
  padding: 0 0 28px 28px;
}

.spot-basic-facts > div:nth-child(n + 3) {
  grid-column: 1 / -1;
  padding: 28px 0;
  border-top: 1px solid rgba(6, 32, 77, 0.1);
}

.spot-basic-facts dt {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 750;
}

.spot-basic-facts dd {
  margin: 0;
  color: var(--ink);
  font-size: clamp(26px, 3.2vw, 34px);
  font-weight: 800;
  line-height: 1.2;
}

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

.spot-panel {
  padding: clamp(26px, 3.5vw, 38px);
}

.spot-panel h2 {
  margin-bottom: 28px;
  font-size: clamp(25px, 2.7vw, 34px);
  font-weight: 730;
  letter-spacing: -0.04em;
  line-height: 1.25;
}

.spot-score-list {
  display: grid;
  gap: 0;
}

.spot-score-legend {
  margin: -12px 0 18px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.65;
}

.spot-score-row {
  display: grid;
  grid-template-columns: minmax(115px, 1fr) auto 48px;
  align-items: center;
  gap: 14px;
  min-height: 54px;
  border-top: 1px solid rgba(6, 32, 77, 0.08);
  color: #304467;
  font-size: 13px;
}

.spot-score-row > strong {
  color: var(--ink);
  font-size: 18px;
  font-weight: 750;
  text-align: right;
}

.spot-score-row small {
  margin-left: 2px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 650;
}

.spot-score-dots {
  display: flex;
  gap: 5px;
}

.spot-score-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #dce8f6;
}

.spot-score-dot.is-filled {
  background: var(--blue);
  box-shadow: 0 0 0 3px rgba(51, 114, 217, 0.08);
}

.spot-condition-list dd {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.spot-condition-list dd span {
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue-dark);
  font-size: 11px;
}

.spot-facility-list .is-yes {
  color: var(--blue-dark);
}

.spot-facility-list .is-no {
  color: var(--muted);
}

.spot-panel-note {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(6, 32, 77, 0.08);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

.spot-panel-note strong {
  display: block;
  margin-bottom: 5px;
  color: var(--ink);
  font-size: 12px;
}

.spot-map-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 16px;
  color: var(--blue-dark);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.spot-map-link:hover {
  color: var(--blue);
}

.spot-access-panel {
  grid-column: 1 / -1;
}

.spot-access-panel .spot-fact-list,
.spot-access-panel .spot-panel-note {
  max-width: 820px;
}

.spot-map-panel {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: minmax(220px, 0.58fr) minmax(0, 1.42fr);
  align-items: center;
  gap: clamp(26px, 5vw, 58px);
}

.spot-map-copy > p:not(.eyebrow) {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.85;
}

.spot-map-frame {
  min-width: 0;
  min-height: 320px;
  overflow: hidden;
  border: 1px solid rgba(6, 32, 77, 0.1);
  border-radius: 18px;
  background: #eaf3fc;
}

.spot-map-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 320px;
  border: 0;
}

.spot-weather-section {
  border-top: 0;
  padding-bottom: 72px;
  padding-top: 52px;
}

.spot-weather-section + .page-section {
  padding-top: 52px;
}

.spot-weather-heading {
  margin-bottom: 30px;
}

.spot-weather-heading .eyebrow {
  margin-bottom: 16px;
}

.spot-weather-heading h2 {
  font-size: clamp(34px, 4vw, 48px);
  font-weight: 730;
  letter-spacing: -0.04em;
  line-height: 1.2;
}

.spot-weather-heading > p:last-child {
  margin-top: 13px;
  color: var(--muted);
  font-size: 14px;
}

.spot-weather-card {
  padding: clamp(28px, 4.5vw, 52px);
  border: 1px solid rgba(6, 32, 77, 0.09);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 42px rgba(6, 32, 77, 0.065);
}

.spot-weather-today {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.7fr);
  align-items: center;
  gap: clamp(30px, 7vw, 84px);
  padding: 0 clamp(12px, 3vw, 34px) 36px;
}

.spot-weather-date,
.spot-weather-day-date {
  color: var(--blue-dark);
  font-weight: 720;
  letter-spacing: 0.02em;
}

.spot-weather-date {
  font-size: 18px;
}

.spot-weather-date time {
  margin-left: 8px;
}

.spot-weather-condition {
  margin-top: 9px;
  color: var(--ink);
  font-size: clamp(20px, 2.4vw, 27px);
  font-weight: 700;
}

.spot-weather-temperature {
  display: flex;
  align-items: baseline;
  gap: 24px;
  margin-top: 8px;
  line-height: 1;
}

.spot-weather-temperature strong {
  color: var(--blue-dark);
  font-size: clamp(58px, 8vw, 82px);
  font-weight: 700;
}

.spot-weather-temperature strong small {
  font-size: 0.64em;
}

.spot-weather-temperature > span {
  color: #4885e6;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 680;
}

.spot-weather-today-visual {
  display: grid;
  justify-items: center;
  color: #304467;
  font-size: 13px;
}

.spot-weather-today-visual img,
.spot-weather-day img {
  filter: invert(38%) sepia(75%) saturate(1102%) hue-rotate(185deg) brightness(91%) contrast(91%);
}

.spot-weather-today-visual img {
  width: 112px;
  height: 112px;
}

.spot-weather-today-visual p {
  margin-top: 10px;
}

.spot-weather-today-visual strong {
  margin-left: 5px;
  color: var(--blue-dark);
  font-size: 25px;
  font-weight: 720;
}

.spot-weather-today-visual small {
  font-size: 0.68em;
}

.spot-weather-days {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid rgba(6, 32, 77, 0.09);
}

.spot-weather-day {
  display: grid;
  min-width: 0;
  justify-items: center;
  padding: 24px 18px 8px;
  text-align: center;
}

.spot-weather-day + .spot-weather-day {
  border-left: 1px solid rgba(6, 32, 77, 0.09);
}

.spot-weather-day-date {
  font-size: 14px;
}

.spot-weather-day-condition {
  min-height: 3.6em;
  margin-top: 7px;
  color: #304467;
  font-size: 13px;
  line-height: 1.8;
}

.spot-weather-day img {
  width: 58px;
  height: 58px;
  margin: 8px 0 13px;
}

.spot-weather-day-temperature {
  display: flex;
  align-items: baseline;
  gap: 13px;
  line-height: 1;
}

.spot-weather-day-temperature strong {
  color: var(--blue-dark);
  font-size: 16px;
  font-weight: 680;
}

.spot-weather-day-temperature > span {
  color: #4885e6;
  font-size: 16px;
  font-weight: 680;
}

.spot-weather-note {
  margin-top: 26px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}

.spot-weather-note a {
  color: var(--blue-dark);
}

@media (min-width: 761px) {
  .spot-weather-today {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 900px;
    margin-right: auto;
    margin-left: auto;
  }

  .spot-weather-today-copy {
    text-align: center;
  }

  .spot-weather-temperature {
    justify-content: center;
  }
}

.spot-prose-stack {
  display: grid;
  max-width: 820px;
  gap: 0;
}

.spot-prose-section {
  padding: 52px 0;
  border-top: 1px solid rgba(6, 32, 77, 0.09);
}

.spot-prose-section:first-child {
  padding-top: 0;
  border-top: 0;
}

.spot-prose-section:last-child {
  padding-bottom: 0;
}

.spot-prose-section h2 {
  margin-bottom: 19px;
  font-size: clamp(30px, 3.4vw, 42px);
  font-weight: 730;
  letter-spacing: -0.04em;
}

.spot-prose-section > p,
.spot-prose-section li {
  color: #304467;
  font-size: 16px;
  line-height: 1.95;
}

.spot-prose-section ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 1.25em;
}

.spot-safety-section {
  background: #fff;
}

.spot-safety-box {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1fr);
  align-items: end;
  gap: clamp(40px, 8vw, 92px);
  padding: clamp(30px, 5vw, 52px);
  border: 1px solid rgba(51, 114, 217, 0.17);
  border-radius: 24px;
  background: linear-gradient(145deg, #fff 0%, #eaf3fc 100%);
}

.spot-safety-box h2 {
  font-size: clamp(29px, 3.6vw, 44px);
  font-weight: 730;
  letter-spacing: -0.04em;
  line-height: 1.25;
}

.spot-safety-box > p {
  color: #304467;
  font-size: 15px;
  line-height: 1.9;
}

.spot-related-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid rgba(6, 32, 77, 0.1);
  border-bottom: 1px solid rgba(6, 32, 77, 0.1);
}

.spot-related-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 68px;
  padding: 14px 19px;
  border-bottom: 1px solid rgba(6, 32, 77, 0.08);
  color: var(--ink);
  font-size: 14px;
  font-weight: 680;
  text-decoration: none;
}

.spot-related-links a:nth-child(odd) {
  border-right: 1px solid rgba(6, 32, 77, 0.08);
}

.spot-related-links a:hover {
  background: rgba(255, 255, 255, 0.72);
  color: var(--blue-dark);
}

@media (max-width: 960px) {
  .spot-directory-hero-grid,
  .spot-area-hero-grid,
  .spot-detail-hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .spot-character--directory {
    width: 240px;
    margin-top: -24px;
  }

  .spot-character--area {
    width: 180px;
    margin: -54px 12px -34px auto;
    transform: none;
  }

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

  .spot-basic-card,
  .spot-basic-visual {
    max-width: 520px;
  }
}

@media (max-width: 760px) {
  .spot-directory-hero,
  .spot-area-hero {
    padding: 60px 0 82px;
  }

  .spot-detail-hero-grid {
    row-gap: 0;
  }

  .spot-directory-hero h1,
  .spot-area-hero h1,
  .spot-detail-hero h1 {
    font-size: clamp(42px, 12vw, 58px);
  }

  .spot-area-grid,
  .spot-panel-grid,
  .spot-data-note,
  .spot-safety-box,
  .spot-map-panel {
    grid-template-columns: 1fr;
  }

  .spot-map-panel {
    align-items: start;
  }

  .spot-weather-today {
    grid-template-columns: minmax(0, 1fr) minmax(150px, 0.7fr);
    gap: 24px;
    padding-right: clamp(24px, 6vw, 36px);
    padding-left: clamp(24px, 6vw, 36px);
  }

  .spot-weather-temperature strong {
    font-size: clamp(48px, 7vw, 54px);
  }

  .spot-weather-temperature {
    gap: 20px;
  }

  .spot-weather-today-visual img {
    width: clamp(72px, 18vw, 96px);
    height: clamp(72px, 18vw, 96px);
  }

  .spot-weather-days {
    display: flex;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: x proximity;
    scrollbar-color: rgba(51, 114, 217, 0.38) transparent;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
  }

  .spot-weather-days::-webkit-scrollbar {
    height: 4px;
  }

  .spot-weather-days::-webkit-scrollbar-track {
    background: transparent;
  }

  .spot-weather-days::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(51, 114, 217, 0.38);
  }

  .spot-weather-days:focus-visible {
    outline: 3px solid var(--blue);
    outline-offset: 4px;
  }

  .spot-weather-day {
    flex: 0 0 clamp(122px, 36vw, 148px);
    scroll-snap-align: start;
  }

  .spot-area-card-main {
    min-height: 0;
  }

  .spot-character--directory {
    width: 180px;
    margin-top: -18px;
  }

  .spot-safety-box {
    align-items: start;
  }
}

@media (max-width: 600px) {
  .spot-list-grid,
  .spot-related-links {
    grid-template-columns: 1fr;
  }

  .spot-related-links a:nth-child(odd) {
    border-right: 0;
  }

  .spot-map-frame,
  .spot-map-frame iframe {
    min-height: 260px;
  }
}

@media (max-width: 420px) {
  .spot-directory-hero h1,
  .spot-area-hero h1,
  .spot-detail-hero h1 {
    font-size: 38px;
    overflow-wrap: anywhere;
    text-wrap: wrap;
  }

  .spot-preview-links {
    grid-template-columns: 1fr;
  }

  .spot-character--directory {
    width: 150px;
  }

  .spot-character--area {
    width: 132px;
    margin: -46px 4px -26px auto;
  }

  .spot-weather-card {
    padding: 24px 18px;
  }

  .spot-weather-today {
    grid-template-columns: minmax(0, 1fr) 112px;
  }

  .spot-weather-today-visual p {
    font-size: 11px;
    text-align: center;
  }

  .spot-weather-today-visual strong {
    display: block;
    margin: 2px 0 0;
    font-size: 21px;
  }

  .spot-weather-day {
    padding-right: 10px;
    padding-left: 10px;
  }

  .spot-character--detail {
    right: 14px;
    width: 86px;
  }

  .spot-preview-links li:nth-child(n) {
    padding-right: 0;
    padding-left: 0;
  }

  .spot-score-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
  }

  .spot-score-dots {
    grid-column: 1 / -1;
    grid-row: 2;
    padding-bottom: 11px;
  }

  .spot-score-row > strong {
    grid-column: 2;
    grid-row: 1;
  }

  .spot-fact-list > div,
  .spot-condition-list > div,
  .spot-facility-list > div {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .spot-fact-list dd,
  .spot-condition-list dd,
  .spot-facility-list dd,
  .spot-condition-list dd {
    justify-content: flex-start;
    text-align: left;
  }

  .spot-basic-facts {
    grid-template-columns: 1fr;
  }

  .spot-basic-facts > div:nth-child(1),
  .spot-basic-facts > div:nth-child(2),
  .spot-basic-facts > div:nth-child(n + 3) {
    padding: 22px 0;
    border-top: 1px solid rgba(6, 32, 77, 0.1);
    border-right: 0;
  }

  .spot-basic-facts > div:nth-child(1) {
    padding-top: 0;
    border-top: 0;
  }

  .spot-basic-facts dd {
    font-size: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .spot-area-card,
  .spot-list-card {
    transition: none;
  }
}
