html {
  box-sizing: border-box;
}
*, *::before, *::after {
  box-sizing: inherit;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  padding: 20px;
  line-height: 1.5;
  color: #1f2937;
  background: linear-gradient(rgba(246, 248, 251, 0.45), rgba(246, 248, 251, 0.45)),
    url("../data/background.png") center/cover no-repeat fixed;
  min-height: 100vh;
}

.page-shell {
  max-width: 980px;
  margin: 0 auto;
}

.trip-header,
.status,
.destination-list,
.troubleshooting {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(219, 228, 238, 0.95);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
  padding: 16px;
}

.trip-header {
  margin-bottom: 16px;
}

.trip-header {
  margin-bottom: 16px;
}

.trip-header h1 {
  margin: 0 0 8px;
}

.trip-summary p {
  margin: 4px 0;
  color: #475569;
}

.status {
  margin-bottom: 12px;
  font-size: 0.95rem;
  color: #475569;
}

.destination-list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}

.destination-card {
  padding: 16px;
  border: 1px solid #dbe4ee;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.95);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.destination-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.1);
}

.destination-card__footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
}

.destination-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #2563eb;
}

.destination-card__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}

.destination-card:hover .destination-card__link,
.destination-card:focus-within .destination-card__link {
  color: #1d4ed8;
}

.destination-card:hover .destination-card__arrow,
.destination-card:focus-within .destination-card__arrow {
  transform: translate(2px, -2px);
}

.destination-card__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.destination-card h2 {
  margin: 0 0 4px;
  font-size: 1.15rem;
}

.meta-line,
.destination-vibe,
.destination-route,
.destination-weather {
  margin: 6px 0;
  color: #475569;
}

.destination-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.destination-meta span,
.pill {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 0.84rem;
  background: #eef4ff;
  color: #2451a7;
}

#content {
  max-height: 70vh;
  overflow-y: auto;
  border: 1px solid #dbe4ee;
  background: #fff;
  padding: 15px;
  border-radius: 12px;
}

#search {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  min-width: 0;
  font-size: 1rem;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
}

.detail-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.detail-nav button {
  background: #007acc;
  border: 1px solid #006bb3;
  color: #fff;
  padding: 10px 14px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.95rem;
}

.detail-nav button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

h1,
h2,
h3 {
  line-height: 1.1;
}

h2 {
  margin-top: 25px;
}

.detail-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.detail-header h1 {
  margin: 0;
  flex: 1 1 60%;
}

.visual-link {
  display: none;
  text-decoration: none;
}

.visual-link img {
  display: block;
  width: 120px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #ccc;
}

.section-card {
  padding: 14px 16px;
  margin: 16px 0 0;
  border-left: 5px solid #3b82f6;
  background: #f8fbff;
  border-radius: 10px;
}

.section-card h2,
.section-card h3 {
  margin-top: 0;
  margin-bottom: 10px;
}

.section-card p,
.section-card ul {
  margin-top: 0;
}

.section-card--hotel {
  border-left-color: #2f9e44;
  background: #f3fff6;
}

.section-card--weather {
  border-left-color: #3b82f6;
  background: #f4f9ff;
}

.section-card--food {
  border-left-color: #e8c84f;
  background: #fffce8;
}

.section-card--highlights {
  border-left-color: #7bc96f;
  background: #f3fff3;
}

.section-card--logistics {
  border-left-color: #e76f6f;
  background: #fff4f4;
}

.info-card {
  padding: 10px 12px;
  margin-bottom: 10px;
  border-radius: 8px;
}

.section-card--hotel .info-card {
  background: #f3fff6;
}

.section-card--weather .info-card {
  background: transparent;
  padding: 0;
  margin-bottom: 0;
}

.section-card--food .info-card {
  background: #fffce8;
}

.section-card--highlights .info-card {
  background: #f3fff3;
}

.section-card--logistics .info-card {
  background: #fff4f4;
}

.troubleshooting {
  margin-top: 24px;
  padding-top: 12px;
}

.troubleshooting summary {
  cursor: pointer;
  font-weight: bold;
  color: #334155;
}

.troubleshooting pre {
  margin-top: 8px;
  white-space: pre-wrap;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 10px;
  max-height: 180px;
  overflow: auto;
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  body {
    padding: 14px;
  }

  #content {
    padding: 12px;
  }

  h1 {
    font-size: 1.8rem;
  }

  h2 {
    font-size: 1.2rem;
  }
}

@media (max-width: 520px) {
  body {
    padding: 12px;
  }

  #search {
    font-size: 1rem;
  }

  .destination-card__header {
    flex-direction: column;
  }

  .troubleshooting {
    padding-top: 10px;
  }
}
