/* ══════════════════════════════════════════════════════════════════════════════
   COLIBRI — EDITORIAL LUXURY TRACKING PAGE
   Cohesive with the landing page & admin design system
   ══════════════════════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600;700&family=DM+Sans:opsz,wght@9..40,300;9..40,400;9..40,500;9..40,600;9..40,700&display=swap');

:root {
    --navy-50:  #f0f1f5;
    --navy-100: #dfe1ea;
    --navy-200: #bcc0d4;
    --navy-400: #747ba1;
    --navy-700: #333a5e;
    --navy-800: #252b4d;
    --navy-900: #1a1f3c;
    --navy-950: #0d1121;
    --gold-400: #f5c542;
    --gold-500: #d4a84b;
    --gold-600: #b8923f;
    --gold-700: #967433;
    --terracotta-500: #c76a4a;
    --cream:      #faf8f5;
    --cream-dark: #f0ebe3;
    --stone-100:  #f0ebe3;
    --stone-200:  #e8e4de;
    --stone-300:  #d4cfc6;
    --stone-400:  #9a9487;
    --stone-500:  #7d7870;
    --stone-600:  #6b665c;
    --stone-800:  #3d3a35;
    --success:    #4a9b6d;
    --font-serif: 'Cormorant Garamond', Georgia, Cambria, serif;
    --font-sans:  'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --ease-expo:  cubic-bezier(0.16, 1, 0.3, 1);
}

body {
    background: var(--cream);
    min-height: 100vh;
    font-family: var(--font-sans);
    color: var(--stone-800);
    padding: 1.5rem 0;
    -webkit-font-smoothing: antialiased;
}

.container { max-width: 900px; }

/* ═══════════════ CARDS ═══════════════ */
.card {
    border: 1px solid var(--stone-200);
    border-radius: 16px;
    overflow: hidden;
    box-shadow:
        0 1px 2px rgba(0,0,0,0.02),
        0 4px 8px rgba(0,0,0,0.02),
        0 16px 32px rgba(0,0,0,0.04);
    background: white;
    transition: box-shadow 0.4s var(--ease-expo);
}

.card:hover {
    box-shadow:
        0 1px 2px rgba(0,0,0,0.02),
        0 8px 16px rgba(0,0,0,0.06);
}

.card-header {
    border-radius: 0 !important;
    background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-800) 100%);
    border-bottom: none;
    padding: 1.25rem 1.5rem;
    position: relative;
}

/* Gold accent bar under header */
.card-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gold-400), var(--gold-600));
}

.card-header h3 {
    color: #ffffff;
    font-family: var(--font-serif);
    font-weight: 600;
    margin: 0;
    font-size: 1.25rem;
    letter-spacing: -0.01em;
}

.card-body { padding: 1.5rem; }

/* ═══════════════ HEADINGS ═══════════════ */
.display-4 {
    font-family: var(--font-serif);
    color: var(--navy-900);
    font-weight: 600;
    letter-spacing: -0.02em;
}

.text-muted {
    color: var(--stone-600) !important;
}

/* ═══════════════ HORIZONTAL TIMELINE ═══════════════ */
.tracking-status-card {
    background: linear-gradient(135deg, white 0%, var(--cream) 100%);
    border: 1px solid var(--stone-200);
    border-radius: 12px;
    padding: 1.25rem;
}

.horizontal-timeline { margin-top: 0.75rem; }

.timeline-bar {
    position: relative;
    height: 6px;
    background: var(--stone-200);
    border-radius: 10px;
    overflow: hidden;
    margin: 0.75rem 0;
}

.timeline-progress {
    position: absolute;
    top: 0; left: 0;
    height: 100%;
    background: linear-gradient(90deg, var(--gold-500), var(--success));
    border-radius: 10px;
    transition: width 0.6s var(--ease-expo);
}

.timeline-marker-current {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    transition: left 0.6s var(--ease-expo);
}

.marker-circle {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: white;
    border: 3px solid var(--gold-500);
    box-shadow: 0 0 0 4px rgba(212, 168, 75, 0.2), 0 2px 8px rgba(0,0,0,0.1);
    animation: pulse-marker 2s infinite;
}

@keyframes pulse-marker {
    0%, 100% { box-shadow: 0 0 0 4px rgba(212, 168, 75, 0.2), 0 2px 8px rgba(0,0,0,0.1); }
    50%      { box-shadow: 0 0 0 8px rgba(212, 168, 75, 0.1), 0 2px 12px rgba(0,0,0,0.15); }
}

.timeline-bar-error .timeline-progress {
    background: linear-gradient(90deg, var(--terracotta-500) 0%, #c82333 100%);
}
.timeline-bar-error .marker-circle {
    border-color: var(--terracotta-500);
    box-shadow: 0 0 0 4px rgba(199, 106, 74, 0.2), 0 2px 8px rgba(0,0,0,0.1);
}
.timeline-bar-error .marker-circle-error {
    animation: pulse-marker-error 2s infinite;
}
@keyframes pulse-marker-error {
    0%, 100% { box-shadow: 0 0 0 4px rgba(199, 106, 74, 0.2), 0 2px 8px rgba(0,0,0,0.1); }
    50%      { box-shadow: 0 0 0 8px rgba(199, 106, 74, 0.1), 0 2px 12px rgba(0,0,0,0.15); }
}

/* ═══════════════ VERTICAL TIMELINE ═══════════════ */
.timeline {
    position: relative;
    padding-left: 2.5rem;
    margin-top: 1.25rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 1rem;
    top: 0; bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--navy-900), var(--gold-500));
}

.timeline-item {
    position: relative;
    padding-bottom: 1.25rem;
    padding-left: 1.5rem;
    opacity: 0;
    animation: fadeSlideIn 0.5s var(--ease-expo) both;
}
.timeline-item:nth-child(1) { animation-delay: 0.1s; }
.timeline-item:nth-child(2) { animation-delay: 0.2s; }
.timeline-item:nth-child(3) { animation-delay: 0.3s; }
.timeline-item:nth-child(4) { animation-delay: 0.4s; }
.timeline-item:nth-child(5) { animation-delay: 0.5s; }
.timeline-item:last-child { padding-bottom: 0; }

.timeline-marker {
    position: absolute;
    left: -2.5rem;
    top: 0.25rem;
    width: 1.125rem;
    height: 1.125rem;
    border-radius: 50%;
    background: white;
    border: 2.5px solid var(--navy-900);
    box-shadow: 0 2px 6px rgba(26, 31, 60, 0.15);
    z-index: 1;
}
.timeline-item:first-child .timeline-marker {
    background: var(--navy-900);
    border-color: var(--navy-900);
}
.timeline-item:last-child .timeline-marker {
    background: var(--gold-500);
    border-color: var(--gold-500);
    box-shadow: 0 0 0 4px rgba(212, 168, 75, 0.2);
}

.timeline-content {
    background: white;
    padding: 0.875rem 1rem;
    border-radius: 10px;
    border: 1px solid var(--stone-200);
    box-shadow: 0 1px 4px rgba(0,0,0,0.02);
    transition: all 0.3s var(--ease-expo);
}
.timeline-content:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    transform: translateX(4px);
    border-color: var(--stone-300);
}
.timeline-content h6 {
    font-family: var(--font-serif);
    color: var(--navy-900);
    font-weight: 600;
    margin-bottom: 0.25rem;
    font-size: 0.95rem;
}
.timeline-content p {
    color: var(--stone-600);
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
}
.timeline-content small {
    color: var(--stone-400);
    font-size: 0.75rem;
}

/* ═══════════════ BUTTONS ═══════════════ */
.btn-lg {
    padding: 0.875rem 2rem;
    font-family: var(--font-sans);
    font-size: 1rem;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.4s var(--ease-expo);
    background: linear-gradient(135deg, var(--gold-400), var(--gold-600));
    color: var(--navy-950);
    border: none;
    letter-spacing: 0.02em;
}
.btn-lg:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px -8px rgba(212, 168, 75, 0.5);
    color: var(--navy-950);
}

.btn-outline-primary {
    border: 1.5px solid var(--navy-900);
    color: var(--navy-900);
    border-radius: 4px;
    font-weight: 500;
    font-family: var(--font-sans);
    transition: all 0.4s var(--ease-expo);
    background: transparent;
}
.btn-outline-primary:hover {
    background: var(--navy-900);
    color: white;
    border-color: var(--navy-900);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(26, 31, 60, 0.2);
}

.btn-outline-secondary {
    border: 1.5px solid var(--stone-300);
    color: var(--stone-600);
    border-radius: 4px;
    font-weight: 500;
    font-family: var(--font-sans);
    transition: all 0.4s var(--ease-expo);
    background: transparent;
}
.btn-outline-secondary:hover {
    background: var(--stone-800);
    color: white;
    border-color: var(--stone-800);
    transform: translateY(-1px);
}

.btn-primary {
    background: linear-gradient(135deg, var(--gold-400), var(--gold-600));
    color: var(--navy-950);
    border: none;
    font-weight: 600;
    transition: all 0.4s var(--ease-expo);
}
.btn-primary:hover {
    background: linear-gradient(135deg, var(--gold-500), var(--gold-700));
    color: var(--navy-950);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(212, 168, 75, 0.35);
}

/* ═══════════════ FORM ═══════════════ */
.form-control {
    font-family: var(--font-sans);
    border: 1.5px solid var(--stone-300);
    border-radius: 8px;
    color: var(--stone-800);
    background: white;
    transition: all 0.3s ease;
    padding: 0.75rem 1rem;
}
.form-control:focus {
    border-color: var(--navy-900);
    box-shadow: 0 0 0 3px rgba(26, 31, 60, 0.06);
    outline: none;
}
.form-control::placeholder {
    color: var(--stone-400);
}

/* ═══════════════ BADGES ═══════════════ */
.badge {
    padding: 0.5rem 1.25rem;
    font-family: var(--font-sans);
    font-weight: 500;
    font-size: 0.8rem;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    transition: all 0.3s var(--ease-expo);
    border: none;
    box-shadow: none;
}
.badge:hover { transform: scale(1.03); }

.badge.bg-warning { background: rgba(212, 168, 75, 0.15) !important; color: var(--gold-700) !important; }
.badge.bg-info    { background: rgba(90, 143, 212, 0.12) !important; color: #4a7cc0 !important; }
.badge.bg-primary { background: rgba(26, 31, 60, 0.1) !important;   color: var(--navy-900) !important; }
.badge.bg-success { background: rgba(74, 155, 109, 0.12) !important; color: var(--success) !important; animation: none; }
.badge.bg-danger  { background: rgba(199, 106, 74, 0.12) !important; color: var(--terracotta-500) !important; }
.badge.bg-secondary { background: var(--stone-200) !important;       color: var(--stone-600) !important; }

/* ═══════════════ ALERT ═══════════════ */
.alert-info {
    background: var(--cream);
    border: 1px solid var(--stone-200);
    border-left: 3px solid var(--gold-500);
    border-radius: 10px;
    color: var(--stone-800);
    padding: 1rem 1.25rem;
}
.alert-info h6 {
    font-family: var(--font-serif);
    color: var(--navy-900);
    font-weight: 600;
}
.alert-info a {
    color: var(--navy-900);
    font-weight: 500;
    transition: color 0.3s ease;
}
.alert-info a:hover { color: var(--gold-600); }

.alert-danger {
    border-left: 3px solid var(--terracotta-500);
    border-radius: 10px;
    background: rgba(199, 106, 74, 0.06);
}

/* ═══════════════ ADDRESS & CODE SECTIONS ═══════════════ */
.card-body h5 {
    font-family: var(--font-serif);
    color: var(--navy-900);
    font-weight: 600;
    font-size: 1rem;
}

.border.rounded {
    border: 1.5px solid var(--stone-200) !important;
    border-radius: 10px !important;
    background: var(--cream);
    transition: all 0.3s var(--ease-expo);
}
.border.rounded:hover {
    border-color: var(--gold-500) !important;
    box-shadow: 0 4px 12px rgba(212, 168, 75, 0.12);
    transform: translateY(-2px);
}
.border.rounded small {
    color: var(--stone-500);
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.06em;
}

.font-monospace {
    color: var(--navy-900);
    font-weight: 700;
    letter-spacing: 0.12em;
}

.card-body .row .col-md-6 {
    padding: 0.875rem 1rem;
    background: var(--cream);
    border-radius: 10px;
    border: 1px solid var(--stone-200);
    transition: all 0.3s var(--ease-expo);
}
.card-body .row .col-md-6:hover {
    background: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
    transform: translateY(-2px);
}

/* Price */
.text-center h4 {
    font-family: var(--font-serif);
    color: var(--navy-900);
    font-weight: 700;
    font-size: 1.75rem;
    letter-spacing: -0.01em;
}

/* ═══════════════ LOGO ═══════════════ */
.logo-link {
    display: inline-block;
    transition: transform 0.3s var(--ease-expo);
}
.logo-link:hover { transform: scale(1.05); }
.logo-link img {
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.08));
}

/* ═══════════════ ANIMATIONS ═══════════════ */
@keyframes fadeSlideIn {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

.card {
    animation: fadeSlideIn 0.5s var(--ease-expo);
}

/* ═══════════════ RESPONSIVE ═══════════════ */
@media (max-width: 768px) {
    body { padding: 1rem 0; }
    .container { padding: 0 1rem; }
    .card-body { padding: 1.25rem; }
    .timeline { padding-left: 2rem; }
    .timeline-marker { left: -2.25rem; width: 0.875rem; height: 0.875rem; }
}
