/* ==========================================
   TRAVEL PAGES — non-yacht trip pages
   ========================================== */

/* ==========================================
   CLIMATE CITIES
   ========================================== */

.climate-cities {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 0;
}

.climate-city {
  white-space: nowrap;
  padding-right: 16px;
  margin-right: 16px;
  border-right: 1px solid var(--sand-dark);
}

.climate-city:last-child {
  border-right: none;
  padding-right: 0;
  margin-right: 0;
}

/* ==========================================
   PLAN SECTION
   ========================================== */

.plan-section {
  background: var(--white);
  padding: 80px 40px;
}

.plan-inner { max-width: 800px; margin: 0 auto; }

.plan-list { display: flex; flex-direction: column; }

.plan-item {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--sand-dark);
}
.plan-item:last-child { border-bottom: none; }

.plan-item-date {
  flex-shrink: 0;
  width: 52px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 2px;
}

.plan-date-num {
  font-family: var(--serif);
  font-size: 38px;
  font-weight: 300;
  color: var(--ocean);
  line-height: 1;
}

.plan-date-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-top: 3px;
}

.plan-date-sep {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--sand-dark);
  margin: 6px 0;
  letter-spacing: 0.05em;
}

.plan-item-content {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding-left: 24px;
  border-left: 1px solid var(--sand-dark);
}

.plan-item-icon {
  font-size: 18px;
  flex-shrink: 0;
  width: 28px;
  text-align: center;
  padding-top: 1px;
}

.plan-item-body { flex: 1; min-width: 0; }

.plan-item-title {
  color: var(--ocean);
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 4px;
}

.plan-item-detail {
  font-family: var(--mono);
  font-size: 12px;
  color: rgba(10,42,58,0.55);
  letter-spacing: 0.03em;
  line-height: 1.7;
}

/* ==========================================
   HOTEL PRICES
   ========================================== */

.plan-hotel-prices {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.plan-hotel-prices.nested {
  margin-top: 0;
  padding-left: 14px;
  border-left: 2px solid var(--sand-dark);
}

.plan-hotel-price-header {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 2px;
}

.plan-hotel-price-source {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ocean);
  font-weight: 600;
}

.plan-hotel-price-ts {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text-muted);
}

.plan-hotel-price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
}

.plan-hotel-price-label {
  color: var(--text-muted);
  white-space: nowrap;
}

.plan-hotel-price-value {
  color: var(--ocean);
  font-weight: 600;
  white-space: nowrap;
}

.plan-hotel-price-link {
  color: var(--ocean-light);
  text-decoration: none;
  opacity: 0.7;
  transition: opacity 0.15s;
}
.plan-hotel-price-link:hover { opacity: 1; }

.plan-hotel-price-na {
  color: var(--text-muted);
  font-style: italic;
}

/* ==========================================
   HOTEL SEARCH LINK
   ========================================== */

.plan-hotel-search {
  margin: 6px 0 10px;
}

.plan-hotel-search a {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ocean-light);
  text-decoration: none;
}

.plan-hotel-search a:hover {
  text-decoration: underline;
}

/* ==========================================
   HOTEL RECOMMENDATIONS LIST
   ========================================== */

.plan-hotel-list {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.plan-hotel-rec {
  font-size: 12px;
  line-height: 1.6;
  color: rgba(10,42,58,0.6);
}

.plan-hotel-rec-name {
  color: var(--ocean);
  font-weight: 500;
  text-decoration: none;
}

a.plan-hotel-rec-name:hover {
  text-decoration: underline;
}

/* ==========================================
   DOMESTIC FLIGHT OPTIONS LIST
   ========================================== */

.plan-flight-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 6px;
}

.plan-flight-option {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.6;
  color: rgba(10,42,58,0.38);
}

.plan-flight-option.preferred {
  color: rgba(10,42,58,0.65);
}

.plan-flight-num {
  font-weight: 600;
}

.plan-flight-option.preferred .plan-flight-num {
  color: var(--ocean);
}

.plan-flight-price {
  flex-shrink: 0;
  white-space: nowrap;
}

.plan-flight-option.preferred .plan-flight-price {
  color: var(--ocean);
  font-weight: 600;
}

.plan-flight-links {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 11px;
}

.plan-flight-links-label {
  color: var(--text-muted);
}

.plan-flight-delta {
  font-size: 16px;
  margin-left: 2px;
  cursor: help;
  position: relative;
}
.plan-flight-delta.up   { color: var(--coral); }
.plan-flight-delta.down { color: #3a9e5f; }

.plan-flight-delta[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 4px);
  right: 0;
  background: rgba(10,42,58,0.88);
  color: #fff;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 400;
  white-space: nowrap;
  padding: 3px 8px;
  border-radius: 3px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.08s;
}
.plan-flight-delta[data-tooltip]:hover::after { opacity: 1; }

/* ==========================================
   DOMESTIC FLIGHT MONITOR
   ========================================== */

.plan-domestic-log {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.plan-domestic-entry {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-family: var(--mono);
  font-size: 11px;
}

.plan-domestic-date {
  color: var(--ocean);
  font-weight: 600;
  white-space: nowrap;
}

.plan-domestic-text {
  color: var(--text-muted);
}

/* ==========================================
   ACTIVITY
   ========================================== */

.plan-item-activity {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--sand-dark);
}

.plan-activity-icon { font-size: 16px; }

.plan-activity-name {
  font-size: 13px;
  color: var(--ocean);
}

.plan-activity-date {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.plan-activity-note {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-muted);
}

.plan-item-status {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.plan-status {
  flex-shrink: 0;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 3px;
  white-space: nowrap;
}

.plan-status.booked {
  background: var(--foam-dark);
  color: var(--ocean-light);
}

.plan-status.selecting {
  background: #f3d9a8;
  color: #7a4a10;
}

.plan-status.monitoring {
  background: rgba(10,42,58,0.05);
  color: rgba(10,42,58,0.35);
}

.plan-status.refunding {
  background: rgba(10,42,58,0.05);
  color: rgba(10,42,58,0.35);
}

.plan-item.refunding {
  opacity: 0.55;
  background: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 6px,
    rgba(10,42,58,0.04) 6px,
    rgba(10,42,58,0.04) 12px
  );
}

/* ==========================================
   FLIGHT STATUS inside plan items (light bg)
   ========================================== */

.plan-flight-status {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  padding: 3px 6px;
  border-radius: 3px;
}

.plan-flight-status.flight-status-pending { color: rgba(10,42,58,0.35); }
.plan-flight-status.flight-status-ok      { color: var(--ocean-light); background: var(--foam-dark); }
.plan-flight-status.flight-status-changed { color: #7a4a10; background: #f3d9a8; }
.plan-flight-status.flight-status-warn    { color: var(--white); background: var(--coral); }
.plan-flight-status.flight-status-error   { color: rgba(10,42,58,0.35); }

.plan-flight-status .flight-status-line {
  opacity: 0.75;
  font-style: italic;
}

.visa-map-img img,
.map-img { cursor: default; }

@media (max-width: 600px) {
  .plan-section { padding: 60px 20px; }

  .visa-map-img { display: none; }

  .climate-cities { display: block; }

  .climate-city {
    display: block;
    border-right: none;
    padding-right: 0;
    margin-right: 0;
  }

  .plan-item {
    display: grid;
    grid-template-columns: 1fr auto;
    row-gap: 10px;
    column-gap: 8px;
    padding: 20px 0;
    align-items: start;
  }

  /* Дата — числа и метки в строку, первая колонка первой строки */
  .plan-item-date {
    grid-column: 1;
    grid-row: 1;
    flex-direction: row;
    width: auto;
    align-items: baseline;
    gap: 4px;
    padding-top: 0;
  }

  .plan-date-num { font-size: 22px; }

  .plan-date-sep {
    margin: 0 4px;
    font-size: 10px;
  }

  /* Статус — вторая колонка первой строки, бейджи столбиком вправо */
  .plan-item-status {
    grid-column: 2;
    grid-row: 1;
    flex-direction: column;
    align-items: flex-end;
  }

  /* Маршрут — вся ширина второй строки */
  .plan-item-content {
    grid-column: 1 / -1;
    grid-row: 2;
    padding-left: 0;
    border-left: none;
    padding-top: 14px;
    position: relative;
  }

  .plan-item-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 96px;
    height: 1px;
    background: var(--sand-dark);
  }
}
