/* ===== DASHBOARD VIEW ===== */
.dashboard-view .sidebar,
.dashboard-view .mobile-header,
.dashboard-view .sidebar-overlay {
  display: none !important;
}

.dashboard-view .main {
  margin-left: 0;
  width: 100%;
}

.dashboard-view #app {
  min-height: 100vh;
}

/* ===== TRIP VIEW ===== */
.trip-view #app {
  display: flex;
  min-height: 100vh;
}

.trip-view .main {
  margin-left: 240px;
  flex: 1;
  min-width: 0;
  min-height: 100vh;
  overflow-x: hidden;
  width: calc(100vw - 240px);
}

@media (max-width: 900px) {
  .trip-view .main {
    margin-left: 0;
    width: 100%;
  }
}

/* ===== DASHBOARD LAYOUT ===== */
.dashboard {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.dash-header {
  padding: 60px 0 40px;
  text-align: center;
}

.dash-header h1 {
  font-family: var(--font-display, 'DM Serif Display', serif);
  font-size: 48px;
  font-weight: 400;
  color: var(--bluestone, #2C363F);
  margin: 0;
  letter-spacing: -1px;
}

.dash-subtitle {
  font-family: var(--font-body, 'DM Sans', sans-serif);
  font-size: 16px;
  color: var(--ink-secondary, #5A534B);
  margin-top: 8px;
}

/* ===== TRIP CARDS GRID ===== */
.dash-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  padding-bottom: 60px;
}

.trip-card {
  background: var(--cream, #FFFCF7);
  border: 1px solid var(--border, #E8E0D4);
  border-radius: var(--r-lg, 12px);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.trip-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.08);
}

.trip-card-img {
  height: 180px;
  background-size: cover;
  background-position: center;
  background-color: var(--limestone, #F8F4EC);
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 16px;
}

.trip-card-emoji {
  font-size: 48px;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.3));
}

.trip-card-body {
  padding: 20px;
  flex: 1;
}

.trip-card-body h3 {
  font-family: var(--font-display, 'DM Serif Display', serif);
  font-size: 22px;
  font-weight: 400;
  margin: 0 0 4px;
  color: var(--bluestone, #2C363F);
}

.trip-card-dest {
  font-size: 14px;
  color: var(--ink-secondary, #5A534B);
  margin: 0 0 8px;
}

.trip-card-dates {
  font-size: 13px;
  color: var(--ink-tertiary, #8A7E72);
  margin: 0 0 12px;
}

.trip-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.trip-card-days {
  font-size: 12px;
  font-weight: 600;
  color: var(--tram-gold, #C5933A);
  background: var(--tram-gold-bg, rgba(197,147,58,0.1));
  padding: 4px 10px;
  border-radius: var(--r-full, 999px);
}

.trip-card-status {
  font-size: 12px;
  color: var(--ink-tertiary, #8A7E72);
}

/* ===== NEW TRIP CARD ===== */
.trip-card-new {
  border: 2px dashed var(--border, #E8E0D4);
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 280px;
  font-family: inherit;
}

.trip-card-new:hover {
  border-color: var(--tram-gold, #C5933A);
  background: var(--tram-gold-bg, rgba(197,147,58,0.05));
}

.trip-card-new-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--limestone, #F8F4EC);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: var(--tram-gold, #C5933A);
  margin-bottom: 12px;
}

.trip-card-new h3 {
  font-family: var(--font-display, 'DM Serif Display', serif);
  font-size: 20px;
  margin: 0 0 4px;
  color: var(--bluestone, #2C363F);
}

.trip-card-new p {
  font-size: 14px;
  color: var(--ink-tertiary, #8A7E72);
  margin: 0;
}

/* ===== MODAL ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  backdrop-filter: blur(4px);
}

.modal {
  background: var(--cream, #FFFCF7);
  border-radius: var(--r-lg, 12px);
  padding: 32px;
  width: min(480px, 90vw);
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 64px rgba(0,0,0,0.15);
}

.modal h2 {
  font-family: var(--font-display, 'DM Serif Display', serif);
  font-size: 24px;
  margin: 0 0 24px;
  color: var(--bluestone, #2C363F);
}

.modal label {
  display: block;
  margin-bottom: 16px;
}

.modal label span {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-secondary, #5A534B);
  margin-bottom: 4px;
}

.modal input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border, #E8E0D4);
  border-radius: var(--r-sm, 6px);
  font-family: inherit;
  font-size: 14px;
  background: #fff;
  color: var(--ink-primary, #2C363F);
  box-sizing: border-box;
}

.modal input:focus {
  outline: none;
  border-color: var(--tram-gold, #C5933A);
  box-shadow: 0 0 0 3px var(--tram-gold-bg, rgba(197,147,58,0.15));
}

.form-row {
  display: flex;
  gap: 12px;
}

.form-row label {
  flex: 1;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--border, #E8E0D4);
}

.btn-cancel {
  padding: 10px 20px;
  border: 1px solid var(--border, #E8E0D4);
  border-radius: var(--r-sm, 6px);
  background: transparent;
  font-family: inherit;
  font-size: 14px;
  color: var(--ink-secondary, #5A534B);
  cursor: pointer;
}

.btn-cancel:hover {
  background: var(--limestone, #F8F4EC);
}

.btn-create {
  padding: 10px 24px;
  border: none;
  border-radius: var(--r-sm, 6px);
  background: var(--bluestone, #2C363F);
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.btn-create:hover {
  opacity: 0.9;
}

/* ===== BACK LINK ===== */
.back-link {
  display: block;
  font-size: 12px;
  color: var(--ink-faded, rgba(255,255,255,0.5));
  text-decoration: none;
  margin-bottom: 8px;
  transition: color 0.15s;
}

.back-link:hover {
  color: #fff;
}

/* ===== EMPTY TRIP ===== */
.empty-trip {
  text-align: center;
  padding: 80px 24px;
  color: var(--ink-secondary, #5A534B);
}

.empty-icon {
  font-size: 64px;
  margin-bottom: 16px;
}

.empty-trip h3 {
  font-family: var(--font-display, 'DM Serif Display', serif);
  font-size: 24px;
  color: var(--bluestone, #2C363F);
  margin: 0 0 8px;
}

.empty-trip p {
  max-width: 400px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 640px) {
  .dash-header h1 {
    font-size: 36px;
  }
  .dash-grid {
    grid-template-columns: 1fr;
  }
  .modal {
    margin: 16px;
  }
  .form-row {
    flex-direction: column;
    gap: 0;
  }
}
