/* ==========================================================================
   Travel Planner — /travel-planner.html
   TDR+ COO Department
   ========================================================================== */

.tp-intro {
  max-width: 840px;
  margin: 0 auto 24px;
  color: var(--text-sub);
  font-size: 0.92rem;
  line-height: 1.8;
}
.tp-intro strong { color: var(--text); font-weight: 600; }

/* ------- 2 column layout ------- */
.tp-layout {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 32px;
  align-items: start;
  max-width: 1100px;
  margin: 0 auto 48px;
}
@media (max-width: 860px) {
  .tp-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* ------- Form ------- */
.tp-form {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px 22px 18px;
  position: sticky;
  top: 80px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.03);
}
@media (max-width: 860px) {
  .tp-form { position: static; }
}

.tp-form h2 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 14px;
  letter-spacing: 0.02em;
}

.tp-field {
  margin-bottom: 16px;
}
.tp-field > label,
.tp-field-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-sub);
  margin-bottom: 6px;
  letter-spacing: 0.03em;
}
.tp-field input[type="date"],
.tp-field input[type="number"] {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.92rem;
  color: var(--text);
  background: #fff;
  box-sizing: border-box;
  font-family: inherit;
}
.tp-field input[type="date"]:focus,
.tp-field input[type="number"]:focus {
  outline: none;
  border-color: var(--accent);
}

/* Park / duration toggle */
.tp-park-switch,
.tp-duration-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  background: #f7f5f2;
  border-radius: 8px;
  padding: 4px;
}
.tp-duration-switch {
  grid-template-columns: repeat(3, 1fr);
}
.tp-park-switch button,
.tp-duration-switch button {
  padding: 8px 6px;
  border: none;
  background: transparent;
  border-radius: 6px;
  font-size: 0.82rem;
  color: var(--text-sub);
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s;
}
.tp-park-switch button.active,
.tp-duration-switch button.active {
  background: #fff;
  color: var(--text);
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

/* Submit */
.tp-submit {
  width: 100%;
  padding: 12px;
  background: var(--text);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s;
  letter-spacing: 0.04em;
}
.tp-submit:hover { background: var(--accent); }

/* ------- Result panel ------- */
.tp-result {
  min-height: 400px;
}
.tp-result-empty {
  background: #fff;
  border: 1px dashed var(--border);
  border-radius: 14px;
  padding: 60px 24px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.8;
}
.tp-result-empty strong {
  display: block;
  color: var(--text-sub);
  font-size: 1rem;
  margin-bottom: 8px;
}

/* ------- Day card ------- */
.tp-day-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 22px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.tp-day-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-light);
}

.tp-day-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--text);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 700;
  flex-shrink: 0;
}

.tp-day-date {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
}
.tp-day-date small {
  font-weight: 400;
  color: var(--text-muted);
  margin-left: 6px;
}

.tp-crowd-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 10px;
  font-size: 0.72rem;
  font-weight: 600;
  color: #fff;
  margin-left: auto;
  white-space: nowrap;
}

/* ------- Section within day card ------- */
.tp-section {
  margin-bottom: 16px;
}
.tp-section:last-child {
  margin-bottom: 0;
}
.tp-section-title {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-sub);
  letter-spacing: 0.04em;
  margin-bottom: 8px;
  padding-left: 10px;
  border-left: 3px solid var(--accent);
}

.tp-attraction-list,
.tp-meal-list,
.tp-snack-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.tp-attraction-item,
.tp-meal-item,
.tp-snack-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  margin-bottom: 6px;
  background: #fafaf9;
  font-size: 0.88rem;
}
.tp-attraction-item:last-child,
.tp-meal-item:last-child,
.tp-snack-item:last-child {
  margin-bottom: 0;
}

.tp-item-name {
  color: var(--text);
  font-weight: 500;
}
.tp-item-area {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-left: 8px;
}
.tp-item-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
  white-space: nowrap;
  flex-shrink: 0;
  margin-left: 12px;
}
.tp-item-meta.wait-short { color: #2a8a5f; font-weight: 600; }
.tp-item-meta.wait-mid { color: #b08840; font-weight: 600; }
.tp-item-meta.wait-long { color: #c23a60; font-weight: 600; }

/* ------- Hotel suggestion card ------- */
.tp-hotel-section {
  background: #fafaf7;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 20px 22px;
  margin-bottom: 20px;
}
.tp-hotel-section-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 4px;
}
.tp-hotel-section-lead {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 0 0 16px;
  line-height: 1.6;
}
.tp-hotel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}
.tp-hotel-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.tp-hotel-card.cheapest {
  border-color: #2a8a5f;
  border-width: 2px;
}
.tp-hotel-badge {
  font-size: 0.68rem;
  font-weight: 600;
  color: #2a8a5f;
  margin-bottom: 2px;
}
.tp-hotel-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
}
.tp-hotel-category {
  font-size: 0.72rem;
  color: var(--text-muted);
}
.tp-hotel-price {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-top: 4px;
  font-family: "Inter", sans-serif;
}
.tp-hotel-price small {
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--text-muted);
}
.tp-hotel-link {
  display: inline-block;
  margin-top: 8px;
  font-size: 0.78rem;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px dotted var(--accent);
  align-self: flex-start;
  transition: color 0.15s;
}
.tp-hotel-link:hover {
  color: var(--text);
  border-bottom-color: var(--text);
}

/* ------- Cost summary ------- */
.tp-cost-summary {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 22px;
  margin-bottom: 20px;
}
.tp-cost-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 12px;
}
.tp-cost-table {
  width: 100%;
  border-collapse: collapse;
}
.tp-cost-table td {
  padding: 8px 4px;
  font-size: 0.88rem;
  border-bottom: 1px solid var(--border-light);
}
.tp-cost-table td:first-child {
  color: var(--text-sub);
}
.tp-cost-table td:last-child {
  text-align: right;
  font-weight: 600;
  color: var(--text);
  font-family: "Inter", sans-serif;
}
.tp-cost-table tr:last-child td {
  border-bottom: none;
}
.tp-cost-total td {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  padding-top: 12px;
  border-top: 2px solid var(--text);
  border-bottom: none;
}
.tp-cost-note {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 8px;
}

/* ------- Responsive ------- */
@media (max-width: 600px) {
  .tp-form { padding: 18px 16px 14px; }
  .tp-field input[type="date"],
  .tp-field input[type="number"] { font-size: 16px; }
  .tp-day-card { padding: 16px; }
  .tp-day-header { flex-wrap: wrap; gap: 8px; }
  .tp-crowd-badge { margin-left: 0; }
  .tp-hotel-grid { grid-template-columns: 1fr; }
  .tp-hotel-section { padding: 16px; }
  .tp-cost-summary { padding: 16px; }
  .tp-attraction-item,
  .tp-meal-item,
  .tp-snack-item { flex-wrap: wrap; gap: 4px; }
  .tp-item-meta { margin-left: 0; }
}

@media print {
  .site-header, .site-footer, .tp-form,
  .breadcrumb, .menu-toggle { display: none !important; }
  .tp-layout { grid-template-columns: 1fr !important; }
  .tp-result { min-height: auto; }
  .tp-day-card { break-inside: avoid; }
}
