/* ============================================================
   trip-details.css — Premium Mobile-Responsive Trip Details Page
   ============================================================ */

.td-wrap { max-width: 900px; padding: 0 0 80px; }

/* ─── Back Button ─────────────────────────────────────────────── */
.td-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 28px;
    padding: 8px 18px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 50px;
    transition: all 0.25s;
}
.td-back:hover { color: var(--primary); border-color: var(--primary); background: var(--primary-light); }

/* ─── Hero ────────────────────────────────────────────────────── */
.td-hero {
    border-radius: 24px;
    overflow: hidden;
    height: 400px;
    position: relative;
    margin-bottom: 32px;
    box-shadow: var(--shadow-md);
}
.td-hero img { width: 100%; height: 100%; object-fit: cover; }
.td-hero-placeholder {
    width: 100%; height: 100%;
    background: var(--grad-premium);
    display: flex; align-items: center; justify-content: center;
    font-size: 5rem;
}
.td-hero-badge {
    position: absolute;
    top: 20px; left: 20px;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(10px);
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--text-main);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.td-hero-own {
    position: absolute;
    top: 20px; right: 20px;
    background: var(--grad-premium);
    color: #fff;
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 800;
}

/* ─── Title ───────────────────────────────────────────────────── */
.td-title {
    font-size: 2rem;
    font-weight: 900;
    color: var(--text-main);
    margin-bottom: 8px;
    line-height: 1.15;
    letter-spacing: -0.02em;
}
.td-subtitle {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

/* ─── Stats Strip ─────────────────────────────────────────────── */
.td-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 28px;
}

.td-stat {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 18px 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: var(--shadow-xs);
    transition: all 0.3s;
}

.td-stat:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }

.td-stat-icon {
    width: 46px; height: 46px;
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem; flex-shrink: 0;
}
.td-stat-icon.blue   { background: #eff6ff; color: #2563eb; }
.td-stat-icon.green  { background: #f0fdf4; color: #16a34a; }
.td-stat-icon.purple { background: #faf5ff; color: #7c3aed; }
.td-stat-icon.orange { background: #fff7ed; color: #ea580c; }

.td-stat-label {
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.td-stat-val { font-size: 1rem; font-weight: 900; color: var(--text-main); line-height: 1.2; }

/* ─── Body Grid ───────────────────────────────────────────────── */
.td-body {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 24px;
}

/* ─── Info Cards ──────────────────────────────────────────────── */
.td-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 28px;
    box-shadow: var(--shadow-xs);
    margin-bottom: 20px;
}

.td-card h3 {
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.td-desc {
    font-size: 0.95rem;
    line-height: 1.85;
    color: var(--text-secondary);
    white-space: pre-line;
}

.td-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-light);
}
.td-info-row:last-child { border-bottom: none; padding-bottom: 0; }
.td-info-row span:first-child { color: var(--text-muted); font-weight: 600; }
.td-info-row span:last-child  { font-weight: 800; color: var(--text-main); }

/* ─── Host Card ───────────────────────────────────────────────── */
.td-host-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 28px;
    text-align: center;
    box-shadow: var(--shadow-xs);
    position: sticky;
    top: 80px;
}

.td-host-ring {
    width: 90px; height: 90px;
    border-radius: 50%;
    background: var(--grad-premium);
    padding: 3px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    box-shadow: 0 8px 24px rgba(99,102,241,0.2);
}

.td-host-ring img {
    width: 100%; height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
}

.td-host-name { font-size: 1.05rem; font-weight: 900; color: var(--text-main); margin-bottom: 3px; }
.td-host-user { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 14px; }
.td-host-bio  {
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 18px;
    padding-top: 14px;
    border-top: 1px solid var(--border-light);
    text-align: left;
}

.td-msg-btn {
    display: flex;
    align-items: center; justify-content: center;
    gap: 8px; width: 100%;
    padding: 13px 20px;
    background: var(--grad-premium);
    color: #fff; border: none;
    border-radius: 14px;
    font-size: 0.92rem; font-weight: 800;
    cursor: pointer; text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 6px 20px rgba(99,102,241,0.25);
}
.td-msg-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(99,102,241,0.35); }

.td-edit-btn {
    display: flex;
    align-items: center; justify-content: center;
    gap: 8px; width: 100%;
    padding: 12px 20px;
    background: #f8fafc; color: var(--text-secondary);
    border: 1.5px solid var(--border);
    border-radius: 14px;
    font-size: 0.9rem; font-weight: 700;
    cursor: pointer; text-decoration: none;
    transition: all 0.25s; margin-top: 10px;
}
.td-edit-btn:hover { background: #f1f5f9; border-color: var(--border); }

.td-verified { color: var(--primary); font-size: 0.9rem; margin-left: 4px; }

/* ─── Mobile ──────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .td-hero  { height: 260px; border-radius: 18px; margin-bottom: 22px; }
    .td-title { font-size: 1.5rem; }

    .td-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .td-stat { padding: 14px 12px; gap: 10px; }
    .td-stat-icon { width: 36px; height: 36px; font-size: 0.9rem; border-radius: 10px; }
    .td-stat-val { font-size: 0.9rem; }

    .td-body {
        grid-template-columns: 1fr;
    }

    .td-host-card {
        position: static;
    }

    .td-back { font-size: 0.82rem; padding: 7px 14px; margin-bottom: 20px; }
    .td-card { padding: 20px; border-radius: 18px; }
}

@media (max-width: 480px) {
    .td-stats { grid-template-columns: repeat(2, 1fr); }
    .td-hero  { height: 220px; border-radius: 14px; }
    .td-title { font-size: 1.3rem; }
}

/* ─── Trip Gallery ───────────────────────────────────────────── */
.td-gallery {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid var(--border-light);
}

.td-gallery-title {
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--text-main);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.td-gallery-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.td-photo-item {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.td-photo-item img {
    width: 100%;
    height: auto;
    display: block;
}

.td-photo-info {
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.td-photo-user {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
}

.td-photo-caption {
    font-size: 0.9rem;
    color: var(--text-main);
}

.td-upload-card {
    background: #f8fafc;
    border: 2px dashed var(--border);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    margin-bottom: 30px;
}

.td-upload-card i {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 10px;
}

.td-upload-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 400px;
    margin: 20px auto 0;
}

.td-upload-form input[type="file"] {
    display: none;
}

.td-file-label {
    padding: 12px 20px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.td-file-label:hover {
    background: #f1f5f9;
}

.td-caption-input {
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 12px;
    font-size: 0.9rem;
}

.td-submit-btn {
    background: var(--grad-premium);
    color: #fff;
    border: none;
    padding: 12px;
    border-radius: 12px;
    font-weight: 800;
    cursor: pointer;
}

.td-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
