/* style.css */
:root {
    --primary: #d97706; /* Savannah Orange */
    --primary-dark: #b45309;
    --bg-light: #fdfcf9; /* Bone/Off-white */
    --text-main: #1f2937;
    --text-muted: #6b7280;
    
    --primary-light: #fff1e2;  /* Soft Highlight */
    --primary-dark: #b45309;
    --border: #e5e7eb;
    --bg-body: #f9fafb;
    --radius-lg: 24px;
    --radius-md: 12px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body

{

background-color: var(--bg-light);

color: var(--text-main); line-height: 1.6; 
   font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.5; 
    
    
}

/* Header & Nav */
header {
    background: white;
    padding: 0.75rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.logo-container { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-icon { background: var(--primary); color: white; width: 40px; height: 40px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.2rem; }
.logo-text { font-size: 1.4rem; font-weight: 800; color: var(--text-main); }
.logo-text span { color: var(--primary); }

/* Search Bar */
.search-container { flex-grow: 1; max-width: 600px; margin: 0 2rem; position: relative; }
.search-input { width: 100%; padding: 0.75rem 1rem 0.75rem 3rem; border: 1px solid #e5e7eb; border-radius: 50px; background: #f9fafb; transition: all 0.2s; font-size: 0.95rem; }
.search-input:focus { outline: none; border-color: var(--primary); background: white; box-shadow: 0 0 0 4px rgba(217, 119, 6, 0.1); }
.search-icon { position: absolute; left: 1.2rem; top: 50%; transform: translateY(-50%); color: #9ca3af; }

/* Right Menu */
.nav-links { display: flex; gap: 1.5rem; align-items: center; }
.nav-link { text-decoration: none; color: var(--text-muted); font-weight: 500; transition: color 0.2s; }
.nav-link:hover { color: var(--primary); }
.btn-post { background: var(--primary); color: white; padding: 0.6rem 1.4rem; border-radius: 50px; text-decoration: none; font-weight: 700; transition: 0.2s; box-shadow: 0 4px 6px rgba(217, 119, 6, 0.2); }
.btn-post:hover { background: var(--primary-dark); transform: translateY(-1px); }

/* Hero Section */
.hero { padding: 4rem 2rem; text-align: center; background: linear-gradient(to bottom, #fff, #fdfcf9); }
.hero h1 { font-size: 2.5rem; margin-bottom: 1rem; letter-spacing: -0.02em; }
.hero p { color: var(--text-muted); font-size: 1.1rem; max-width: 600px; margin: 0 auto 2rem; }

/* Thread Grid */
.thread-container { max-width: 1100px; margin: 0 auto 4rem; padding: 0 1rem; }
.section-title { margin-bottom: 1.5rem; font-size: 1.2rem; font-weight: 700; display: flex; justify-content: space-between; align-items: center; }
.thread-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.5rem; }
.thread-card { background: white; padding: 1.5rem; border-radius: 16px; border: 1px solid #eee; transition: 0.2s; text-decoration: none; color: inherit; display: block; }
.thread-card:hover { border-color: var(--primary); transform: translateY(-3px); box-shadow: 0 10px 20px rgba(0,0,0,0.03); }
.tag { font-size: 0.7rem; text-transform: uppercase; font-weight: 800; color: var(--primary); background: rgba(217,119,6,0.1); padding: 4px 8px; border-radius: 4px; margin-bottom: 0.75rem; display: inline-block; }
.thread-card h3 { font-size: 1.1rem; margin-bottom: 0.5rem; line-height: 1.4; }
.thread-meta { font-size: 0.85rem; color: var(--text-muted); display: flex; gap: 15px; }

@media (max-width: 768px) {
    header { flex-direction: column; gap: 1rem; padding: 1rem; }
    .search-container { margin: 0; width: 100%; order: 3; }
    .nav-links { width: 100%; justify-content: space-between; order: 2; }
}

/* Footer Styles */
footer {
    background-color: #1a1a1a;
    color: #e5e7eb;
    padding: 4rem 2rem 2rem;
    margin-top: 4rem;
}

.footer-container {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
}

.footer-brand p {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #9ca3af;
    line-height: 1.6;
}

.footer-column h4 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1rem;
    font-weight: 700;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: #9ca3af;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-newsletter input {
    width: 100%;
    padding: 0.75rem;
    border-radius: 8px;
    border: none;
    background: #2d2d2d;
    color: white;
    margin-bottom: 0.5rem;
}

.footer-bottom {
    max-width: 1100px;
    margin: 3rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid #2d2d2d;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: #6b7280;
}

@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr 1fr;
    }
}



/* --- 2. THE FORM CONTAINER --- */
.form-container {
    max-width: 850px;
    margin: 3rem auto;
    background: #ffffff;
    padding: 3.5rem;
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
}

.form-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.form-header h1 {
    font-size: 2.25rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

/* --- 3. SECTION HIERARCHY --- */
.form-section {
    padding-top: 3rem;
    margin-top: 3rem;
    border-top: 1px solid #f3f4f6;
}

.form-section:first-child {
    border-top: none;
    padding-top: 0;
    margin-top: 0;
}

.section-title-bar {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 2rem;
}

.section-number {
    background: var(--primary-light);
    color: var(--primary);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}

.section-title-bar label {
    font-size: 1.3rem;
    font-weight: 700;
}

/* --- 4. INPUT STYLING --- */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.form-control {
    width: 100%;
    padding: 0.85rem 1.1rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 1rem;
    transition: all 0.2s ease;
    font-family: inherit;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(217, 119, 6, 0.1);
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-hint {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
    display: block;
}

/* --- 5. COUNTRY SELECTION CARDS --- */
.radio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 12px;
}

.radio-card {
    border: 1.5px solid var(--border);
    padding: 1rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    text-align: center;
    transition: 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.radio-card input {
    display: none; /* Hide original checkbox */
}

.radio-card:hover {
    border-color: var(--primary);
    background-color: var(--primary-light);
}

/* Logic for when the hidden checkbox is checked */
.radio-card:has(input:checked) {
    border-color: var(--primary);
    background-color: var(--primary-light);
    box-shadow: 0 0 0 1px var(--primary);
}

.radio-card span {
    font-weight: 600;
}

/* --- 6. BUTTON & SUBMIT --- */
.submit-area {
    margin-top: 4rem;
    text-align: center;
}

.btn-large {
    width: 100%;
    max-width: 450px;
    background: var(--primary);
    color: #ffffff;
    padding: 1.25rem;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 25px rgba(217, 119, 6, 0.2);
}

.btn-large:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(217, 119, 6, 0.3);
}

/* --- 7. RESPONSIVE --- */
@media (max-width: 768px) {
    .form-container {
        margin: 0;
        padding: 2rem 1.25rem;
        border-radius: 0;
    }
    
    .grid-2 {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .form-header h1 {
        font-size: 1.75rem;
    }
}


/* --- BROWSE PAGE LAYOUT --- */
.browse-layout {
    max-width: 1200px;
    margin: 2rem auto;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
    padding: 0 1.5rem;
}

/* Sidebar */
.filter-sidebar {
    background: white;
    padding: 1.5rem;
    border-radius: 16px;
    height: fit-content;
    position: sticky;
    top: 100px;
    border: 1px solid #eee;
}

.filter-group {
    margin-bottom: 2rem;
}

.filter-group h4 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.filter-list {
    list-style: none;
}

.filter-list li {
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    color: var(--text-main);
    cursor: pointer;
}

/* Feed & Thread Items */
.feed-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.thread-item {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    display: flex;
    gap: 1.5rem;
    border: 1px solid #eee;
    transition: transform 0.2s, box-shadow 0.2s;
}

.thread-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
}

.thread-stats {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 80px;
}

.stat-box {
    text-align: center;
    padding: 8px;
    border-radius: 8px;
    background: #f9fafb;
    border: 1px solid #eee;
}

.stat-box.bids {
    background: var(--primary-light);
    border-color: var(--primary);
}

.stat-num {
    display: block;
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--text-main);
}

.stat-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: var(--text-muted);
}

.thread-content h3 {
    font-size: 1.2rem;
    margin: 0.5rem 0;
}

.thread-content h3 a {
    text-decoration: none;
    color: var(--text-main);
}

.thread-content h3 a:hover {
    color: var(--primary);
}

.tag-pill {
    font-size: 0.75rem;
    background: #f3f4f6;
    padding: 4px 10px;
    border-radius: 50px;
    margin-right: 5px;
    color: var(--text-muted);
}

.thread-meta {
    margin-top: 1rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    gap: 15px;
}

/* Pagination */
.pagination {
    display: flex;
    gap: 8px;
    margin-top: 2rem;
    justify-content: center;
}

.page-btn {
    padding: 8px 16px;
    border-radius: 8px;
    border: 1px solid #eee;
    text-decoration: none;
    color: var(--text-main);
    background: white;
}

.page-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

@media (max-width: 900px) {
    .browse-layout { grid-template-columns: 1fr; }
    .filter-sidebar { display: none; } /* On mobile, you might want a toggle drawer */
}

:root {
    --primary: #d97706;
    --primary-light: #fff1e2;
    --primary-dark: #b45309;
    --text-main: #1f2937;
    --text-muted: #6b7280;
    --white: #ffffff;
    --border: #f0f0f0;
}

body { font-family: 'Inter', sans-serif; color: var(--text-main); line-height: 1.5; }

/* Main Layout */
.thread-layout {
    max-width: 1200px;
    margin: 2rem auto;
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 2.5rem;
    padding: 0 1.5rem;
}

/* Post Cards */
.post-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--border);
    margin-bottom: 1.5rem;
}

.original-post { border-left: 6px solid var(--primary); }
.post-header h1 { font-size: 1.75rem; font-weight: 800; margin: 0.5rem 0; }
.tag-pill { font-size: 0.75rem; background: #f3f4f6; padding: 4px 12px; border-radius: 50px; font-weight: 600; color: var(--text-muted); }

/* Authors & Avatars */
.author-info { display: flex; align-items: center; gap: 12px; margin-bottom: 1rem; }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: #e5e7eb; display: flex; align-items: center; justify-content: center; font-weight: 800; }
.bg-orange { background: var(--primary); color: white; }
.author-label { display: block; font-size: 0.75rem; color: var(--primary); font-weight: 700; }

/* Pricing Box */
.pricing-box {
    background: var(--primary-light);
    padding: 1.25rem;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 1.5rem 0;
}
.amount { font-size: 1.8rem; font-weight: 800; color: var(--primary-dark); }
.basis { display: block; font-size: 0.75rem; color: var(--primary); font-weight: 600; }

/* Sub-Replies (The Threading Logic) */
.sub-reply-container {
    margin-left: 2.5rem;
    margin-top: 2rem;
    padding-left: 1.5rem;
    border-left: 2px solid #edf2f7;
}

.sub-reply {
    background: #fcfcfc;
    padding: 1.25rem;
    border-radius: 12px;
    border: 1px solid #f0f0f0;
    margin-bottom: 1rem;
}

.author-info.small .avatar.mini { width: 28px; height: 28px; font-size: 0.7rem; }
.author-info.small .author-name { font-size: 0.85rem; font-weight: 700; }

/* Nested Mini-Itinerary */
.mini-itinerary {
    background: #fff9f2;
    border: 1px dashed var(--primary);
    padding: 1rem;
    border-radius: 8px;
    margin-top: 0.75rem;
    font-size: 0.9rem;
}
.price-mini { font-weight: 800; color: var(--primary-dark); }

/* Buttons & Actions */
.reply-actions { display: flex; gap: 1rem; align-items: center; margin-top: 1.5rem; }
.btn-action { background: var(--text-main); color: white; border: none; padding: 0.6rem 1.2rem; border-radius: 50px; font-weight: 700; cursor: pointer; }
.btn-text { background: none; border: none; color: var(--primary); font-weight: 700; cursor: pointer; font-size: 0.85rem; }

/* Sidebar Widget Styles */
.sidebar-widget { background: white; padding: 1.5rem; border-radius: 16px; border: 1px solid var(--border); margin-bottom: 1.5rem; }
.summary-list { list-style: none; padding: 0; }
.summary-list li { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid #f9fafb; font-size: 0.9rem; }
.btn-primary-block { display: block; background: var(--primary); color: white; text-align: center; padding: 0.8rem; border-radius: 50px; text-decoration: none; font-weight: 700; margin-top: 1rem; }

/* Mobile */
@media (max-width: 900px) {
    .thread-layout { grid-template-columns: 1fr; }
    .thread-sidebar { display: none; }
    .sub-reply-container { margin-left: 1rem; padding-left: 1rem; }
}

/* Tab Switcher */
.form-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 2rem;
    border-bottom: 1px solid #eee;
}

.tab-btn {
    padding: 12px 24px;
    border: none;
    background: none;
    font-weight: 700;
    color: #6b7280;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

.tab-btn.active {
    color: var(--primary);
    border-bottom: 3px solid var(--primary);
}

.tab-btn:hover {
    color: var(--primary);
}

/* Login Box */
.login-box {
    background: #fff;
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid #eee;
    text-align: center;
    max-width: 500px;
    margin: 0 auto 3rem;
}

.login-box h3 { margin-bottom: 0.5rem; }
.login-box p { color: #6b7280; margin-bottom: 1.5rem; font-size: 0.9rem; }

.inline-login {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Logged in Alert */
.logged-in-alert {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.logged-in-alert a {
    color: #166534;
    text-decoration: underline;
    margin-left: 10px;
}

.dashboard-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1.5rem;
}

.dashboard-header {
    margin-bottom: 2.5rem;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 3rem;
}

.dash-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid #eee;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.dash-card h3 {
    font-size: 0.9rem;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

/* Role Specific Colors */
.primary-card { background: var(--primary); color: white; }
.primary-card h3 { color: rgba(255,255,255,0.8); }
.primary-card .stat-number { color: white; }

.bg-success { border-left: 5px solid #10b981; }
.warning { border-left: 5px solid #ef4444; }

/* Activity Table */
.recent-activity {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid #eee;
}

.activity-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.activity-table th {
    text-align: left;
    padding: 12px;
    border-bottom: 2px solid #f9fafb;
    color: #6b7280;
    font-size: 0.85rem;
}

.activity-table td {
    padding: 15px 12px;
    border-bottom: 1px solid #f9fafb;
    font-size: 0.95rem;
}

.status-pill {
    background: #dcfce7;
    color: #166534;
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
}

.btn-white {
    display: inline-block;
    background: white;
    color: var(--primary);
    padding: 10px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    margin-top: 10px;
}


.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.login-card {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    width: 100%;
    max-width: 450px;
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-logo {
    height: 50px;
    margin-bottom: 1rem;
}

/* Alert Styles */
.alert {
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.alert-danger {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.alert-success {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.login-footer {
    margin-top: 2rem;
    text-align: center;
    font-size: 0.9rem;
    color: #6b7280;
}

.login-footer a {
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
}



