/* --- Travel Planner: Passport Identity --- */
:root {
    --travel-blue: #0ea5e9;
    --travel-orange: #c2410c;
    --travel-bg: #fdfcfb;
    --travel-border: #e7e5e4;
    --travel-text: #44403c;
}

body.travel-theme {
    background-color: var(--travel-bg);
    color: var(--travel-text);
    margin: 0;
    font-family: 'Inter', -apple-system, sans-serif;
}

/* --- GLOBAL THEME RESET --- */
body.travel-theme {
    background-image: none !important; /* Remove main site background */
    background-color: #fdfcfb !important; /* Force Travel Hub cream background */
}

.t-header {
    background: rgba(253, 252, 251, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--travel-border);
    padding: 15px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0; z-index: 1000;
}

.t-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #003e67; font-weight: 800; font-size: 1.2rem; }
.t-logo img { height: 30px; }
.t-logo small { color: var(--travel-orange); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 1px; display: block; margin-top: -5px; }

.t-hero { padding: 80px 20px; text-align: center; background: url('/webimages/travel_hero_bg.jpg') center/cover; }
.t-badge { background: rgba(14, 165, 233, 0.1); color: var(--travel-blue); padding: 5px 15px; border-radius: 50px; font-size: 0.75rem; font-weight: 800; display: inline-block; margin-bottom: 20px; }
.t-hero h1 { font-size: 3rem; margin: 0; color: #1c1917; font-weight: 900; }
.t-highlight { color: var(--travel-orange); }

.t-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 30px; margin-top: 30px; }
.t-card { text-decoration: none; color: inherit; transition: 0.3s; }
.t-card:hover { transform: translateY(-5px); }
.t-thumb { width: 100%; aspect-ratio: 3/4; border-radius: 12px; overflow: hidden; border: 1px solid var(--travel-border); box-shadow: 0 4px 15px rgba(0,0,0,0.05); }
.t-thumb img { width: 100%; height: 100%; object-fit: cover; }
.t-card h3 { font-size: 1rem; margin: 12px 0 5px 0; color: #1c1917; }
.t-meta { font-size: 0.8rem; color: var(--travel-blue); font-weight: 600; }

/* --- TRAVEL DROPDOWN --- */
.t-profile-wrapper { position: relative; }
.t-profile-btn { width: 36px; height: 36px; border-radius: 50%; background: #fff; border: 1px solid #e7e5e4; cursor: pointer; overflow: hidden; display: flex; align-items: center; justify-content: center; padding: 0; transition: border-color 0.2s; }
.t-profile-btn:hover { border-color: var(--travel-blue); }
.t-avatar-img { width: 100%; height: 100%; object-fit: cover; }
.t-avatar-emoji { font-size: 1.4rem; }

.t-dropdown-content {
    display: none; position: absolute; right: 0; top: 45px;
    background-color: #ffffff; min-width: 220px;
    border-radius: 12px; border: 1px solid #e7e5e4;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1); z-index: 5000;
    padding: 10px 0; overflow: hidden;
}
.t-dropdown-content.show { display: block; }
.t-dropdown-content a {
    color: var(--travel-text); padding: 12px 20px; text-decoration: none;
    display: flex; align-items: center; gap: 12px; font-size: 0.9rem; font-weight: 600;
}
.t-dropdown-content a:hover { background-color: #f5f5f4; color: var(--travel-blue); }
.t-dropdown-header { padding: 12px 20px; border-bottom: 1px solid #e7e5e4; margin-bottom: 5px; font-size: 0.8rem; color: #a8a29e; text-transform: uppercase; }

.menu-icon { width: 18px; height: 18px; fill: currentColor; }

/* --- LAYOUT & SPACING --- */
.t-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 90px; /* Added significant vertical padding */
}

.t-section {
    margin-bottom: 80px; /* Space between rows */
}

.t-section-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: #1c1917;
    margin-bottom: 30px;
    border-left: 5px solid var(--travel-blue);
    padding-left: 15px;
}

.t-btn-primary {
    background-color: var(--travel-blue);
    color: white;
    padding: 14px 30px;
    border-radius: 50px;
    font-weight: 800;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.t-btn-primary:hover {
    background-color: #0369a1;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(14, 165, 233, 0.2);
}

/* --- TRAVEL CARD EDIT BUTTON --- */
.t-card-actions {
    margin-top: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.t-edit-btn {
    background: #f1f5f9;
    color: #475569;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    border: 1px solid #e2e8f0;
    transition: all 0.2s;
}

.t-edit-btn:hover {
    background: var(--travel-blue);
    color: white;
    border-color: var(--travel-blue);
}

/* --- GENERATING OVERLAY --- */
.spinner-overlay {
    position: fixed;
    inset: 0;
    background: rgba(2, 6, 23, 0.85);
    backdrop-filter: blur(5px);
    display: none; /* Controlled by JS */
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.spinner-icon {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(14, 165, 233, 0.2);
    border-top-color: #0ea5e9; /* Travel Blue */
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.hidden { display: none !important; }

