/* ============================================================
   Guide Tab (.guide-*)
   ============================================================ */

.guide-container {
  padding: 16px;
  max-width: 600px;
  margin: 0 auto;
}

.guide-filters {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 16px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.guide-filters::-webkit-scrollbar { display: none; }

.guide-filter-btn {
  appearance: none;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-dim);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s;
}
.guide-filter-btn:hover {
  border-color: var(--accent);
  color: var(--text);
}
.guide-filter-btn.active {
  background: var(--accent);
  color: #1a1a2a;
  border-color: var(--accent);
  font-weight: 600;
}

.guide-country-header {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin: 24px 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.guide-city-section {
  margin-bottom: 20px;
}

.guide-city-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 10px;
  padding-left: 2px;
}

.guide-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 10px;
}

.guide-card-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.guide-card-text {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.6;
}

.guide-tip {
  background: var(--surface);
  border: 1px solid var(--accent);
  border-left: 3px solid var(--accent);
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 10px;
}

.guide-phrase-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.guide-phrase-row:last-child { border-bottom: none; }

.guide-phrase-local {
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
}

.guide-phrase-english {
  font-size: 12px;
  color: var(--text-dim);
}

.guide-phrase-pronounce {
  font-size: 13px;
  color: var(--accent);
  font-style: italic;
}

.guide-taxi-card {
  background: var(--text);
  color: var(--bg);
  border-radius: 16px;
  padding: 28px 20px;
  text-align: center;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 10px;
  user-select: all;
}

.guide-icon {
  display: inline-block;
  font-size: 16px;
  vertical-align: middle;
  margin-right: 4px;
}

.guide-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 10px;
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--text-dim);
}
.guide-badge.transport { background: rgba(90,138,192,0.15); color: var(--moderate); border-color: var(--moderate); }
.guide-badge.emergency { background: rgba(224,96,80,0.15); color: var(--urgent); border-color: var(--urgent); }
.guide-badge.language  { background: rgba(212,160,96,0.15); color: var(--accent); border-color: var(--accent); }
.guide-badge.practical { background: rgba(106,170,106,0.15); color: var(--flexible); border-color: var(--flexible); }


/* ============================================================
   Checklist Tab (.check-*)
   ============================================================ */

.check-container {
  padding: 16px;
  max-width: 600px;
  margin: 0 auto;
}

.check-filters {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.check-filter-btn {
  appearance: none;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-dim);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s;
}
.check-filter-btn:hover {
  border-color: var(--accent);
  color: var(--text);
}
.check-filter-btn.active {
  background: var(--accent);
  color: #1a1a2a;
  border-color: var(--accent);
  font-weight: 600;
}

.check-progress {
  margin-bottom: 20px;
}

.check-progress-bar {
  width: 100%;
  height: 8px;
  background: var(--surface2);
  border-radius: 4px;
  overflow: hidden;
}

.check-progress-fill {
  height: 100%;
  background: var(--booked);
  border-radius: 4px;
  transition: width 0.4s ease;
}

.check-progress-text {
  font-size: 13px;
  color: var(--text-dim);
  margin-top: 6px;
  text-align: right;
}

.check-category {
  margin-bottom: 12px;
}

.check-category-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  cursor: pointer;
  transition: background 0.2s;
  user-select: none;
}
.check-category-header:hover {
  background: var(--surface2);
}
.check-category-header .arrow {
  font-size: 12px;
  color: var(--text-dim);
  transition: transform 0.2s;
}
.check-category.open .check-category-header .arrow {
  transform: rotate(90deg);
}
.check-category-header .cat-name {
  font-size: 14px;
  font-weight: 600;
  flex: 1;
  margin-left: 8px;
}
.check-category-header .cat-count {
  font-size: 12px;
  color: var(--text-dim);
  margin-right: 8px;
}

.check-category-items {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.3s ease;
  padding: 0 4px;
}
.check-category.open .check-category-items {
  max-height: 2000px;
}

.check-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 4px;
  border-bottom: 1px solid var(--border);
  transition: opacity 0.2s;
}
.check-item:last-child { border-bottom: none; }

.check-item.checked {
  opacity: 0.5;
}
.check-item.checked .check-item-text {
  text-decoration: line-through;
}

.check-checkbox {
  appearance: none;
  width: 20px;
  height: 20px;
  min-width: 20px;
  border: 2px solid var(--border);
  border-radius: 5px;
  background: var(--surface2);
  cursor: pointer;
  position: relative;
  transition: all 0.2s;
  margin-top: 1px;
}
.check-checkbox:checked {
  background: var(--accent);
  border-color: var(--accent);
}
.check-checkbox:checked::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 12px;
  font-weight: 700;
  color: #1a1a2a;
}

.check-item-text {
  font-size: 14px;
  color: var(--text);
}

.check-item-note {
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 2px;
}

.check-doc-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 10px;
}

.check-doc-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 10px;
}

.check-doc-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.check-doc-row:last-child { border-bottom: none; }

.check-doc-status {
  font-size: 12px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 10px;
}
.check-doc-status.ready {
  background: rgba(106,170,106,0.15);
  color: var(--booked);
}
.check-doc-status.missing {
  background: rgba(224,96,80,0.15);
  color: var(--urgent);
}


/* ============================================================
   Journal Tab (.journal-*)
   ============================================================ */

.journal-container {
  padding: 16px;
  max-width: 600px;
  margin: 0 auto;
}

.journal-filters {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.journal-filter-btn {
  appearance: none;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-dim);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s;
}
.journal-filter-btn:hover {
  border-color: var(--accent);
  color: var(--text);
}
.journal-filter-btn.active {
  background: var(--accent);
  color: #1a1a2a;
  border-color: var(--accent);
  font-weight: 600;
}

.journal-day-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 12px;
  transition: border-color 0.2s;
}
.journal-day-card.is-today {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}
.journal-day-card.is-future {
  opacity: 0.45;
}

.journal-day-header {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.journal-day-num {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
}

.journal-photo {
  width: 100%;
  max-width: 100%;
  border-radius: 10px;
  margin-bottom: 10px;
  display: block;
}

.journal-caption {
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 8px;
  font-style: italic;
}

.journal-mood {
  font-size: 16px;
  letter-spacing: 2px;
  margin-bottom: 6px;
}

.journal-highlight {
  font-size: 14px;
  color: var(--text);
  font-style: italic;
  padding: 8px 0;
  border-top: 1px solid var(--border);
  margin-top: 8px;
}

.journal-form {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.journal-input {
  appearance: none;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  padding: 10px 12px;
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.2s;
}
.journal-input:focus {
  outline: none;
  border-color: var(--accent);
}
.journal-input::placeholder {
  color: var(--text-dim);
}

.journal-textarea {
  appearance: none;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  padding: 10px 12px;
  font-size: 14px;
  font-family: inherit;
  min-height: 80px;
  resize: vertical;
  transition: border-color 0.2s;
}
.journal-textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.journal-textarea::placeholder {
  color: var(--text-dim);
}

.journal-photo-btn {
  appearance: none;
  background: var(--surface2);
  border: 1px dashed var(--border);
  border-radius: 8px;
  color: var(--text-dim);
  padding: 14px;
  font-size: 13px;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s;
}
.journal-photo-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.journal-save-btn {
  appearance: none;
  background: var(--accent);
  border: none;
  border-radius: 10px;
  color: #1a1a2a;
  padding: 12px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: opacity 0.2s;
}
.journal-save-btn:hover {
  opacity: 0.9;
}
.journal-save-btn:active {
  opacity: 0.8;
}

.journal-food-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 10px;
}

.journal-food-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.journal-food-meta {
  font-size: 12px;
  color: var(--text-dim);
  margin-bottom: 6px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.journal-food-notes {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.5;
  margin-bottom: 8px;
}

.journal-food-rating {
  font-size: 15px;
  letter-spacing: 2px;
  margin-bottom: 6px;
}

.journal-food-tried {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 10px;
  background: var(--surface2);
  color: var(--text-dim);
  border: 1px solid var(--border);
}
.journal-food-tried.tried {
  background: rgba(106,170,106,0.15);
  color: var(--booked);
  border-color: var(--booked);
}

.journal-kids-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 10px;
}

.journal-kids-emoji {
  font-size: 28px;
  margin-bottom: 6px;
}

.journal-kids-text {
  font-size: 14px;
  color: var(--text);
  margin-bottom: 4px;
}

.journal-kids-meta {
  font-size: 12px;
  color: var(--text-dim);
}

.journal-add-btn {
  appearance: none;
  position: fixed;
  bottom: 76px;
  right: 20px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--accent);
  border: none;
  color: #1a1a2a;
  font-size: 26px;
  font-weight: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
  transition: transform 0.2s, opacity 0.2s;
  z-index: 50;
}
.journal-add-btn:hover {
  transform: scale(1.05);
}
.journal-add-btn:active {
  transform: scale(0.95);
}

.journal-empty {
  text-align: center;
  padding: 40px 16px;
  color: var(--text-dim);
  font-size: 14px;
  font-style: italic;
}
