@import url("https://fonts.googleapis.com/css2?family=Caveat:wght@500;600&family=Noto+Sans+KR:wght@400;500;600;700&family=Playfair+Display:wght@600;700&display=swap");
:root {
  --dash-ink: #152c43;
  --dash-line: #e0e9ee;
  --dash-soft: #f1f8fc;
  --dash-blue: #087eb7;
}
body {
  font-family: "Noto Sans KR", sans-serif;
  background: #f6f9fb;
  color: var(--dash-ink);
}
button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: default;
  opacity: 0.5;
}
button:focus-visible,
a:focus-visible {
  outline: 2px solid #168ec0;
  outline-offset: 3px;
}
.lucide {
  stroke-width: 1.65;
  flex-shrink: 0;
}
.app-shell {
  height: auto;
  min-height: 100vh;
  overflow: visible;
  display: block;
  background: linear-gradient(#fff, #f8fbfc);
}
.hero-banner {
  height: 148px;
  position: relative;
  overflow: hidden;
  color: #fff;
  background-color: #15566c;
  background-image:
    linear-gradient(
      90deg,
      rgba(4, 29, 43, 0.44),
      rgba(4, 29, 43, 0.12),
      rgba(4, 29, 43, 0.38)
    ),
    var(--hero-photo, url("../assets/images/oceanic-manta.jpg"));
  background-position: center 48%;
  background-size: cover;
}
.hero-copy {
  position: absolute;
  left: max(32px, calc((100vw - 1540px) / 2));
  top: 17px;
  font:
    600 41px/0.94 "Caveat",
    cursive;
  transform: rotate(-5deg);
}
.hero-copy small {
  display: block;
  font:
    500 9px/1.5 "Noto Sans KR",
    sans-serif;
  letter-spacing: 0.22em;
  margin: 12px 0 0 4px;
}
.hero-quote {
  position: absolute;
  right: max(34px, calc((100vw - 1540px) / 2));
  top: 27px;
  font-size: 17px;
  letter-spacing: 0.13em;
  line-height: 1.8;
}
.hero-quote small {
  display: block;
  text-align: right;
  font:
    24px "Caveat",
    cursive;
  letter-spacing: 0;
  margin-top: 7px;
}
.topbar {
  max-width: 1600px;
  margin: auto;
  min-height: 110px;
  grid-template-columns: minmax(0, 1fr) auto auto;
  padding: 22px 24px;
  gap: 24px;
  border: 0;
  background: transparent;
}
.brand-row {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}
.brand-globe {
  display: grid;
  place-items: center;
  flex: 0 0 57px;
  height: 57px;
  background: #087f70;
  color: #fff;
  border-radius: 50%;
}
.brand-globe svg {
  width: 39px;
  height: 39px;
  stroke-width: 1.3;
}
.brand h1 {
  font:
    700 33px/1.1 "Playfair Display",
    serif;
  letter-spacing: -0.6px;
}
.brand p {
  font-size: 12px;
  color: #84909d;
  margin: 9px 0 0;
}
.stats {
  display: none;
}
.controls {
  gap: 7px;
}
.controls button,
.controls select,
.country-search input {
  font-size: 12px;
  font-weight: 500;
}
.country-search input {
  width: 140px;
}
.trip-filter button {
  display: flex;
  align-items: center;
  gap: 4px;
}
.trip-filter svg {
  width: 14px;
  height: 14px;
}
.adventure-mark {
  display: flex;
  gap: 8px;
  align-items: center;
  transform: rotate(-9deg);
  margin-left: 8px;
}
.adventure-mark span {
  font:
    25px/0.85 "Caveat",
    cursive;
}
.adventure-mark svg {
  width: 33px;
  height: 33px;
}
/* Each section owns a grid cell. Statistics never use map-positioned overlays. */
.desktop-shell {
  max-width: 1560px;
  width: calc(100% - 40px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr) 306px;
  grid-template-areas: "sidebar map insights" "sidebar records records" "sidebar photos photos" "sidebar motto motto";
  gap: 14px;
  align-items: start;
  padding-bottom: 20px;
}
.main-column {
  display: contents;
}
.sidebar {
  grid-area: sidebar;
  min-width: 0;
}
.dashboard {
  grid-area: map;
  display: block;
  min-width: 0;
  padding: 0;
}
.records-panel {
  grid-area: records;
}
.photo-strip {
  grid-area: photos;
}
.insights-panel {
  grid-area: insights;
  min-width: 0;
  position: static;
  display: grid;
  gap: 12px;
}
.bottom-motto {
  grid-area: motto;
}
.desktop-shell > * {
  min-width: 0;
}
.side-nav,
.sidebar-quote,
.next-adventure,
.map-stage,
.records-panel,
.photo-strip,
#desktopInsights,
.bucket-panel {
  border: 1px solid var(--dash-line);
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 2px 8px #28486003;
}
.side-nav {
  padding: 7px;
  display: grid;
  gap: 2px;
}
.side-nav button {
  border: 0;
  background: transparent;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 10px;
  border-radius: 7px;
  text-align: left;
  font-size: 12px;
  min-height: 34px;
}
.side-nav svg {
  width: 16px;
  height: 16px;
}
.side-nav button.active,
.side-nav button:hover:not(:disabled) {
  background: linear-gradient(90deg, #e0f2fc, #edf8fa);
  color: #076b98;
}
.sidebar-quote {
  height: 163px;
  margin-top: 12px;
  padding: 17px 13px;
  position: relative;
  background: linear-gradient(130deg, #f9fbfd, #fff);
  overflow: hidden;
}
.sidebar-quote > span {
  font-size: 13px;
  line-height: 1.9;
  color: #506174;
}
.compass-art {
  position: absolute;
  bottom: -7px;
  right: 15px;
  transform: rotate(-18deg);
  color: #a9a292;
}
.compass-art svg {
  width: 90px;
  height: 90px;
  stroke-width: 0.75;
}
.next-adventure {
  padding: 11px;
  margin-top: 12px;
}
.mini-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 14px;
}
.mini-heading svg {
  width: 17px;
  height: 17px;
}
.next-cover {
  height: 127px;
  border-radius: 7px;
  background: linear-gradient(160deg, #d8eaf1, #b0d1d7 60%, #839d95);
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 8px;
  color: #fff;
  margin-bottom: 10px;
}
.next-cover svg {
  width: 66px;
  height: 66px;
  stroke-width: 1;
}
.next-cover span {
  font-size: 8px;
  letter-spacing: 0.2em;
}
.next-adventure > strong {
  font-size: 13px;
  display: block;
}
.next-adventure > small {
  display: block;
  font-size: 11px;
  color: #84919c;
  line-height: 1.7;
  margin: 7px 0 12px;
}
.next-adventure label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  margin: 9px 0;
}
.map-stage {
  height: 456px;
  min-height: 456px;
  max-height: none;
  background: radial-gradient(ellipse at 55% 40%, #fff 35%, #f0f8fb);
  overflow: hidden;
}
.map-label {
  top: 14px;
  left: 15px;
}
.map-label span {
  display: flex;
  gap: 9px;
  align-items: center;
  font-size: 16px;
  letter-spacing: -0.02em;
  color: #152c43;
}
.map-label svg {
  width: 21px;
  height: 21px;
  color: #137e74;
}
.map-label small {
  display: none;
}
.visit-key {
  position: absolute;
  left: 18px;
  top: 66px;
  z-index: 4;
  display: grid;
  gap: 10px;
  font-size: 10px;
  color: #52687a;
  pointer-events: none;
}
.visit-key span {
  display: flex;
  gap: 9px;
  align-items: center;
}
.swatch {
  width: 13px;
  height: 13px;
  border-radius: 3px;
}
.s3 {
  background: #086a9d;
}
.s2 {
  background: #2fa7d9;
}
.s1 {
  background: #85c8ef;
}
.swish {
  background: #a8d7ae;
}
.s0 {
  background: #d8dde0;
}
#map {
  padding: 42px 10px 35px;
}
.legend {
  display: none;
}
.zoom-controls {
  right: 10px;
  top: 12px;
  flex-direction: row;
  gap: 4px;
}
.zoom-controls button {
  width: 26px;
  height: 26px;
  font-size: 15px;
  border-radius: 7px;
  box-shadow: none;
}
.map-script {
  position: absolute;
  right: 8%;
  bottom: 20px;
  font:
    23px/0.9 "Caveat",
    cursive;
  transform: rotate(-8deg);
  color: #607184;
  pointer-events: none;
}
.map-compass {
  position: absolute;
  left: 26px;
  bottom: 22px;
  color: #b1bfc5;
  pointer-events: none;
}
.map-compass svg {
  width: 65px;
  height: 65px;
  stroke-width: 0.7;
}
.timeline-section {
  display: none;
}
.panel-heading {
  padding: 12px 13px 8px;
}
.panel-heading h3 {
  margin: 0;
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 9px;
}
.panel-heading h3 svg {
  width: 19px;
  height: 19px;
}
.panel-heading span {
  display: none;
}
.insight-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  padding: 0 9px 10px;
}
.insight-card {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  column-gap: 7px;
  align-content: center;
  min-height: 70px;
  padding: 10px 8px;
  background: linear-gradient(120deg, #f0f8fc, #f5fafc);
  border-radius: 8px;
}
.insight-card > svg {
  grid-row: 1/3;
  width: 27px;
  height: 27px;
  align-self: center;
  color: #0785bd;
  stroke-width: 1.8;
}
.insight-card span {
  font-size: 10px;
  color: #607b91;
}
.insight-card strong {
  font-size: 23px;
  line-height: 1.3;
  margin-top: 3px;
  font-variant-numeric: tabular-nums;
}
.insight-card.wide strong {
  font-size: 11px;
  line-height: 1.5;
}
.bucket-panel {
  padding: 12px 13px 65px;
  position: relative;
  min-height: 242px;
}
.bucket-title {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 12px;
}
.bucket-title svg {
  width: 19px;
  height: 19px;
}
.bucket-title h3 {
  margin: 0;
  font-size: 15px;
  letter-spacing: -0.5px;
}
.bucket-title small {
  font-size: 11px;
}
.bucket-list label {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  font-size: 11px;
  line-height: 1.7;
  margin: 6px 0;
}
.bucket-list input {
  margin: 4px 0 0;
  accent-color: #138b9e;
}
.bucket-list p {
  font-size: 11px;
  color: #84919c;
}
.sample-note {
  font-size: 9px;
  color: #8b99a6;
  margin: 0 0 7px;
}
.right-script {
  position: absolute;
  right: 16px;
  bottom: 12px;
  font:
    21px/0.85 "Caveat",
    cursive;
  text-align: right;
  transform: rotate(-7deg);
  color: #657489;
}
.records-panel,
.photo-strip {
  min-width: 0;
  overflow: hidden;
}
.records-title {
  padding: 12px 12px 7px;
  border-bottom: 1px solid var(--dash-line);
}
.records-title > div:first-child,
.photo-heading > div:first-child {
  display: flex;
  gap: 9px;
  align-items: center;
}
.records-title h3,
.photo-heading h3 {
  font-size: 16px;
  margin: 0;
}
.records-title svg,
.photo-heading svg {
  width: 18px;
  height: 18px;
}
.record-tabs,
.photo-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.record-tabs {
  margin-top: 10px;
}
.record-tabs button,
.photo-tabs button {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #778697;
  padding: 5px 12px;
}
.record-tabs button.active,
.photo-tabs button.active {
  background: #304d6c;
  color: white;
  box-shadow: 0 2px 4px #223b5b14;
}
.record-tabs svg,
.photo-tabs svg {
  width: 13px;
  height: 13px;
}
.records-wrap {
  overflow: auto;
  max-height: 340px;
}
.records-table {
  border-collapse: collapse;
  width: 100%;
  font-size: 11px;
  min-width: 850px;
}
.records-table th {
  position: sticky;
  top: 0;
  background: #f6f9fc;
  color: #7d8b9b;
  font-weight: 500;
  z-index: 1;
}
.records-table th,
.records-table td {
  text-align: left;
  padding: 8px 10px;
  border-bottom: 1px solid #ebf0f4;
  border-right: 1px solid #f0f3f5;
  white-space: nowrap;
}
.records-table tbody tr:hover {
  background: #f5fafc;
}
.trip-open {
  border: 0;
  background: none;
  padding: 0;
  font-size: inherit;
  font-weight: 600;
  text-align: left;
}
.theme-pill {
  display: inline-block;
  border-radius: 4px;
  padding: 2px 7px;
  color: #167c9b;
  background: #dcf2fc;
}
.theme-pill.liveaboard {
  background: #f9e1f0;
  color: #a75c8f;
}
.theme-pill.family {
  background: #fff0d9;
  color: #b37b32;
}
.rating {
  color: #eda43c;
}
.revisit-heart {
  color: #d52146;
  font-size: 16px;
}
.empty-records {
  text-align: center !important;
  color: #8192a1;
  padding: 25px !important;
}
.photo-heading {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  padding: 11px 12px 9px;
}
.photo-heading > a {
  margin-left: auto;
  text-decoration: none;
  font-size: 11px;
  color: #1685c0;
}
.photo-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 9px;
  padding: 0 10px 12px;
}
.photo-card {
  min-width: 0;
  color: #43576b;
  text-decoration: none;
  display: block;
}
.photo-card img,
.photo-placeholder {
  width: 100%;
  aspect-ratio: 1.42;
  object-fit: cover;
  border-radius: 6px;
  background: #e1edf1;
  display: block;
}
.photo-placeholder {
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, var(--photo-tone, #b2dce9), #edf5f7);
  color: #ffffff;
}
.photo-placeholder svg {
  width: 45px;
  height: 45px;
  stroke-width: 1;
}
.photo-card small {
  display: block;
  font-size: 10px;
  line-height: 1.5;
  margin-top: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.photo-card small span {
  display: block;
  color: #97a3ad;
  font-size: 9px;
}
.photo-empty {
  grid-column: 1/-1;
  text-align: center;
  font-size: 12px;
  padding: 25px;
  color: #8495a5;
}
.bottom-motto {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 5px 10px 12px;
  color: #78879a;
}
.bottom-motto > svg {
  width: 95px;
  height: 44px;
  stroke-width: 0.8;
}
.bottom-motto > span {
  font-size: 12px;
  letter-spacing: 0.04em;
}
.bottom-motto b {
  font:
    21px "Caveat",
    cursive;
  display: flex;
  align-items: center;
  gap: 7px;
  margin-left: auto;
  white-space: nowrap;
}
.bottom-motto b svg {
  width: 24px;
  height: 24px;
}
.app-shell > footer {
  padding: 8px;
  font-size: 8px;
  color: #aab5bf;
}
@media (min-width: 1400px) {
  .map-stage {
    height: 485px;
    min-height: 485px;
  }
}
@media (min-width: 901px) and (max-width: 1199px) {
  .desktop-shell {
    grid-template-columns: 190px minmax(0, 1fr);
    grid-template-areas: "sidebar map" "sidebar insights" "sidebar records" "sidebar photos" "sidebar motto";
  }
  .insights-panel {
    grid-template-columns: 1fr 1fr;
  }
  .topbar {
    gap: 15px;
  }
  .adventure-mark {
    display: none;
  }
  .brand h1 {
    font-size: 29px;
  }
  .brand p {
    font-size: 10px;
  }
  .photo-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .bottom-motto {
    flex-wrap: wrap;
  }
  .bottom-motto b {
    margin-left: 0;
  }
  .map-stage {
    height: 450px;
    min-height: 450px;
  }
}
@media (max-width: 900px) {
  .hero-banner {
    display: none;
  }
  .topbar {
    padding: 16px 14px;
    min-height: 0;
    gap: 12px;
  }
  .brand-row {
    display: contents;
  }
  .brand-globe,
  .brand p,
  .adventure-mark {
    display: none;
  }
  .brand h1 {
    font-size: 27px;
  }
  .stats {
    display: flex;
  }
  .desktop-shell {
    width: 100%;
    padding: 0 8px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  .sidebar {
    display: none;
  }
  .main-column {
    display: contents;
  }
  .dashboard {
    width: 100%;
    order: 0;
    display: grid;
    padding: 0;
    gap: 10px;
  }
  .insights-panel {
    width: 100%;
    order: 1;
    grid-template-columns: 1fr 1fr;
  }
  .records-panel {
    width: 100%;
    order: 2;
  }
  .photo-strip {
    width: 100%;
    order: 3;
  }
  .bottom-motto {
    width: 100%;
    order: 4;
    flex-wrap: wrap;
  }
  .bottom-motto b {
    margin: 0;
  }
  .desktop-only {
    display: none;
  }
  .map-stage {
    min-height: 430px;
    height: 72vw;
    max-height: 620px;
  }
  .map-label span {
    font-size: 14px;
  }
  .map-label {
    top: 14px;
    left: 13px;
  }
  #map {
    padding: 28px 1px 2px;
  }
  .zoom-controls {
    flex-direction: column;
  }
  .zoom-controls button {
    width: 36px;
    height: 36px;
    font-size: 18px;
  }
  .legend {
    display: flex;
  }
  .timeline-section {
    display: block;
  }
  .photo-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .insight-card span {
    font-size: 12px;
  }
  .insight-card strong {
    font-size: 24px;
  }
  .insight-card.wide strong {
    font-size: 13px;
  }
  .bucket-list label {
    font-size: 13px;
  }
  .records-table {
    font-size: 13px;
  }
  .record-tabs button,
  .photo-tabs button {
    font-size: 12px;
    min-height: 34px;
  }
  .photo-card small {
    font-size: 12px;
  }
  .photo-card small span {
    font-size: 11px;
  }
  .photo-heading > a {
    font-size: 12px;
  }
}
@media (max-width: 520px) {
  .map-stage {
    height: 74vw;
    min-height: 340px;
    max-height: 400px;
  }
  .insights-panel {
    grid-template-columns: 1fr;
  }
  .hero-banner {
    display: none;
  }
  .brand h1 {
    font-size: 27px;
  }
  .photo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .photo-heading {
    gap: 10px;
  }
  .photo-heading .photo-tabs {
    order: 3;
    width: 100%;
    gap: 1px;
  }
  .photo-tabs button {
    padding: 5px 9px;
  }
  .bucket-panel {
    min-height: 260px;
  }
  .bottom-motto > svg {
    display: none;
  }
  .bottom-motto > span {
    font-size: 11px;
  }
  .insight-card {
    min-height: 79px;
  }
  .photo-heading > a {
    margin-left: auto;
  }
  .records-title {
    padding: 12px 10px;
  }
  .record-tabs {
    gap: 0;
  }
  .record-tabs button {
    padding: 5px 9px;
  }
}
/* Keep the first grid row balanced and long real-world city lists contained. */
@media (min-width: 1200px) {
  .dashboard {
    align-self: stretch;
  }
  .map-stage {
    height: 100%;
    min-height: 485px;
  }
  .insights-panel {
    gap: 10px;
  }
  .bucket-panel {
    padding-bottom: 52px;
  }
  .bucket-list label {
    margin: 4px 0;
  }
  .insight-card {
    min-height: 66px;
  }
}
.records-table {
  table-layout: fixed;
  min-width: 900px;
  font-size: 12px;
}
.records-table th:nth-child(1) {
  width: 18%;
}
.records-table th:nth-child(2) {
  width: 12%;
}
.records-table th:nth-child(3) {
  width: 16%;
}
.records-table th:nth-child(4) {
  width: 8%;
}
.records-table th:nth-child(5) {
  width: 6%;
}
.records-table th:nth-child(6) {
  width: 12%;
}
.records-table th:nth-child(7) {
  width: 14%;
}
.records-table th:nth-child(8) {
  width: 6%;
}
.records-table th:nth-child(9) {
  width: 8%;
}
.records-table td {
  overflow: hidden;
  text-overflow: ellipsis;
}
.trip-open {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.theme-pill {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
}
@media (max-width: 520px) {
  .country-search input {
    width: 100%;
    font-size: 16px;
  }
  .brand h1 {
    white-space: normal;
  }
  .records-table {
    font-size: 13px;
  }
  .legend i {
    background: linear-gradient(90deg, #85c8ef, #2fa7d9, #086a9d);
  }
}
