/* ─── My Journey Page ─────────────────────────────────────── */

.my-journey-page {
    padding: 3rem 0 5rem;
    min-height: 60vh;
}

.my-journey-header {
    margin-bottom: 2rem;
}

.my-journey-header h1 {
    font-size: 2.4rem;
    font-weight: 700;
    margin: 0.25rem 0 0.5rem;
}

.my-journey-subtitle {
    color: var(--color-muted, #6b7280);
    font-size: 1.05rem;
}

/* Guest notice */
.my-journey-guest-notice {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    background: var(--color-sand-light, #faf5eb);
    border: 1px solid var(--color-gold-light, #d4af37);
    border-radius: 6px;
    padding: 0.85rem 1.1rem;
    margin-bottom: 2rem;
    font-size: 0.95rem;
    color: var(--color-text, #222);
}

.my-journey-guest-notice i {
    color: var(--color-gold, #b8942a);
    margin-top: 0.15em;
    flex-shrink: 0;
}

.my-journey-guest-notice a {
    color: var(--color-primary, #6b2d2d);
    text-decoration: underline;
}

/* Empty state */
.my-journey-empty {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--color-muted, #6b7280);
}

.my-journey-empty i.fas {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    opacity: 0.4;
}

.my-journey-empty h2 {
    font-size: 1.4rem;
    margin-bottom: 0.6rem;
    color: var(--color-text, #222);
}

.my-journey-empty p {
    max-width: 420px;
    margin: 0 auto 1.6rem;
}

/* Sections */
.my-journey-section {
    margin-bottom: 3rem;
}

.my-journey-section-title {
    font-size: 1.25rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-bottom: 0.6rem;
    border-bottom: 2px solid var(--color-border, #e5e7eb);
    margin-bottom: 1.25rem;
}

.my-journey-section-title i {
    color: var(--color-primary, #6b2d2d);
}

/* City group */
.mj-city-group {
    margin-bottom: 1.75rem;
}

.mj-city-label {
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-muted, #6b7280);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.mj-city-label i {
    font-size: 0.8em;
}

.mj-city-items {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Individual item */
.mj-item {
    background: #fff;
    border: 1px solid var(--color-border, #e5e7eb);
    border-radius: 8px;
    padding: 1rem 1.1rem;
}

.mj-item-header {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    margin-bottom: 0.4rem;
}

.mj-item-badge {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    background: var(--color-primary, #6b2d2d);
    color: #fff;
    border-radius: 3px;
    padding: 0.15em 0.5em;
    white-space: nowrap;
    margin-top: 0.2em;
    flex-shrink: 0;
}

.mj-item-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    flex: 1;
    line-height: 1.35;
}

.mj-remove-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-muted, #9ca3af);
    padding: 0.15rem 0.3rem;
    line-height: 1;
    border-radius: 3px;
    flex-shrink: 0;
    transition: color 0.15s;
}

.mj-remove-btn:hover {
    color: #dc2626;
}

.mj-item-location {
    font-size: 0.88rem;
    color: var(--color-muted, #6b7280);
    margin: 0 0 0.65rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.mj-item-location i {
    font-size: 0.8em;
}

.mj-item-notes {
    margin-top: 0.6rem;
}

.mj-item-notes label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-muted, #9ca3af);
    margin-bottom: 0.3rem;
}

.mj-notes-input {
    width: 100%;
    min-height: 4.5rem;
    border: 1px solid var(--color-border, #e5e7eb);
    border-radius: 5px;
    padding: 0.5rem 0.65rem;
    font-size: 0.9rem;
    font-family: inherit;
    resize: vertical;
    color: var(--color-text, #222);
    background: var(--color-sand-light, #fafaf8);
}

.mj-notes-input:focus {
    outline: 2px solid var(--color-primary, #6b2d2d);
    outline-offset: 1px;
}

/* Footer actions */
.my-journey-footer-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    padding-top: 2rem;
    border-top: 1px solid var(--color-border, #e5e7eb);
    margin-top: 1rem;
}

.btn-journey-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--color-primary, #6b2d2d);
    color: #fff;
    padding: 0.7rem 1.4rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: background 0.15s;
}

.btn-journey-cta:hover {
    background: var(--color-primary-dark, #4d1f1f);
    color: #fff;
}

.btn-journey-clear {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: none;
    border: 1px solid var(--color-border, #e5e7eb);
    border-radius: 6px;
    padding: 0.68rem 1.1rem;
    font-size: 0.9rem;
    color: var(--color-muted, #6b7280);
    cursor: pointer;
    transition: color 0.15s, border-color 0.15s;
}

.btn-journey-clear:hover {
    color: #dc2626;
    border-color: #dc2626;
}

/* ── Toast notification for guest adds ───── */
.journey-guest-toast {
    position: fixed;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%) translateY(1rem);
    background: #1f2937;
    color: #fff;
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    font-size: 0.9rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.25s, transform 0.25s;
    max-width: 400px;
    text-align: center;
    pointer-events: none;
}

.journey-guest-toast.is-visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

.journey-guest-toast--success { background: #166534; }
.journey-guest-toast--info    { background: #1e40af; }
.journey-guest-toast--warning { background: #92400e; }
.journey-guest-toast--error   { background: #991b1b; }

.journey-guest-toast a {
    color: #fff;
    text-decoration: underline;
}

/* ── Responsive ───────────────── */
@media (max-width: 640px) {
    .my-journey-header h1 { font-size: 1.8rem; }
    .mj-item { padding: 0.85rem; }
    .my-journey-footer-actions { flex-direction: column; align-items: stretch; }
    .btn-journey-cta, .btn-journey-clear { justify-content: center; }
}
