/**
 * VisitTanzania 2026 Portal - Master Global Stylesheet
 * Filepath: style/style.css
 * Author: Platform Lead UI/UX Engineer
 * Architecture: Modular Tokenized CSS Standard
 * Role: Unified design system styling public B2C pages and dashboard B2B operator panels.
 */

/* ==========================================================================
   1. DESIGN TOKENS & SYSTEM VARIABLES
   ========================================================================== */
:root {
    /* Pure Google Sans Typography System */
    --font-primary: 'Google Sans', system-ui, -apple-system, sans-serif;
    --font-title: 'Google Sans', system-ui, -apple-system, sans-serif;

    /* Elegant Safari Marketplace Brand Palette */
    --color-com-1: #3f2700;           /* Deep Warm Savannah Bronze */
    --color-com-1-contrast: #ffffff;
    --color-com-2: #4b6383;           /* Wilderness Sky Blue */
    --color-com-2-contrast: #ffffff;
    --color-com-3: #240f00;           /* Charcoal Cocoa / Deep Savannah Night */
    --color-com-3-contrast: #ffffff;
    --color-com-4: #b09979;           /* Serengeti Sand Dust / Desert Sand */
    --color-com-4-contrast: #000000;
    --color-com-5: #7b8faa;           /* Soft Morning Mist / Slate Blue */
    --color-com-5-contrast: #000000;
    --color-com-6: #3a4758;           /* Gunmetal Escrow Stone / Charcoal Blue */
    --color-com-6-contrast: #ffffff;

    /* Platform Semantic Colors */
    --color-bg-app: #faf9f6;          /* Linen White App Background */
    --color-card-bg: #ffffff;
    --color-border: #eae5dc;          /* Soft Clay Border Line */
    --color-slate-dark: #240f00;
    --color-slate-gray: #64748b;

    /* Semantic Status Accents */
    --color-emerald-accent: #059669;  /* Verified Active Success */
    --color-emerald-light: #ecfdf5;
    --color-amber-accent: #d97706;    /* Pending Active Warnings */
    --color-amber-light: #fffbeb;
    --color-danger-accent: #dc2626;   /* Cancelled / Rejection Alerts */
    --color-danger-light: #fef2f2;

    /* Premium Sharp Corner Geometry Tokens */
    --border-radius-lg: 6px;          /* Sharp 6px Card corners */
    --border-radius-md: 4px;          /* Sharp 4px input, button & badge corners */
    --border-radius-sm: 2px;          /* Micro structural elements */

    /* Consistent Box Shadow Indexes */
    --shadow-sm: 0 1px 3px rgba(36, 15, 0, 0.05), 0 1px 2px rgba(36, 15, 0, 0.03);
    --shadow-md: 0 4px 6px -1px rgba(36, 15, 0, 0.08), 0 2px 4px -1px rgba(36, 15, 0, 0.04);
    --shadow-lg: 0 10px 15px -3px rgba(36, 15, 0, 0.1), 0 4px 6px -2px rgba(36, 15, 0, 0.05);

    /* Animation Transitions */
    --transition-smooth: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   2. SYSTEM RESET & BASE STYLES
   ========================================================================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    background-color: var(--color-bg-app);
    color: var(--color-com-3);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ==========================================================================
   3. TYPOGRAPHY OVERRIDES (GOEGL SANS & TRUE BLACK HEADINGS)
   ========================================================================== */
h1, h2, h3, h4, h5, h6,
.hero-title, .section-headline, .card-title, .price-value,
.trust-box h4, .operator-title, .catalog-title, .directory-title,
.safari-title, .booking-heading, .public-logo {
    font-family: var(--font-title) !important;
    font-weight: 800 !important;
    color: #000000 !important; /* Premium Absolute Black */
}

a {
    color: var(--color-com-1);
    text-decoration: none;
    transition: var(--transition-smooth);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ==========================================================================
   4. B2C PUBLIC PORTAL LAYOUT COMPONENTS
   ========================================================================== */
.public-navbar {
    height: 85px;
    background-color: rgba(253, 251, 248, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 4rem;
    position: sticky;
    top: 0;
    z-index: 10000;
    box-shadow: 0 4px 20px rgba(36, 15, 0, 0.02);
    width: 100%;
}

.public-logo {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    font-size: 1.45rem;
    color: var(--color-com-1);
    text-decoration: none;
}

.logo-badge-icon {
    width: 38px;
    height: 38px;
    background-color: var(--color-com-1);
    color: var(--color-com-4);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius-md);
    font-weight: 800;
    font-size: 0.95rem;
    box-shadow: 0 4px 8px rgba(63, 39, 0, 0.1);
}

.public-nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--color-com-6);
}

.public-nav-links a {
    text-decoration: none;
    color: inherit;
    position: relative;
    padding: 0.5rem 0;
}

.public-nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: var(--color-com-1);
    transition: var(--transition-smooth);
}

.public-nav-links a:hover {
    color: var(--color-com-1);
}

.public-nav-links a:hover::after {
    width: 100%;
}

/* Premium pill-shaped call-to-action buttons */
.btn-portal-action {
    background-color: var(--color-com-1);
    color: var(--color-com-1-contrast) !important;
    padding: 0.75rem 2.25rem !important; /* Locked padding bounds */
    border-radius: 100px !important; /* Perfect Pill Shape */
    font-size: 0.85rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(63, 39, 0, 0.12);
    transition: var(--transition-smooth);
    border: 1.5px solid transparent;
}

.btn-portal-action:hover {
    background-color: var(--color-com-3);
    transform: translateY(-1px);
    box-shadow: 0 6px 15px rgba(36, 15, 0, 0.2);
}

/* Circular, proportionally cropped user avatar frames */
.public-avatar-circle {
    width: 44px;
    height: 44px;
    border-radius: 100% !important; /* Perfect circular crop mask */
    overflow: hidden !important;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #ffffff;
    box-shadow: 0 4px 12px rgba(63, 39, 0, 0.15);
    background-color: var(--color-com-1);
    transition: var(--transition-smooth);
    cursor: pointer;
    color: #ffffff;
    font-weight: 800;
    font-size: 0.85rem;
}

/* Dynamic proportional crop fit inside circular mask (prevents squishing) */
.public-avatar-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.public-avatar-circle:hover {
    transform: scale(1.05);
    background-color: var(--color-com-3);
    box-shadow: 0 6px 16px rgba(36, 15, 0, 0.25);
}

/* ==========================================================================
   5. B2B SYSTEM DASHBOARD CORES (SIDEBARS & WORKSPACE WRAPPERS)
   ========================================================================== */
.dashboard-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: 100vh;
}

@media (max-width: 960px) {
    .dashboard-layout {
        grid-template-columns: 1fr;
    }
}

/* Dark cocoa sidebar navigation column */
.portal-sidebar {
    background-color: var(--color-com-3); /* Dark Cocoa */
    color: #ffffff;
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

@media (max-width: 960px) {
    .portal-sidebar {
        display: none; /* Collapsible on mobile viewports */
    }
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 2rem;
}

.sidebar-logo .logo-icon {
    width: 40px;
    height: 40px;
    background-color: var(--color-com-4);
    color: var(--color-com-3);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius-md);
    font-weight: 800;
}

.logo-title {
    font-size: 1.15rem;
    font-weight: 800;
    display: block;
    letter-spacing: -0.01em;
}

.logo-badge {
    background-color: rgba(176, 153, 121, 0.15);
    color: var(--color-com-4);
    font-size: 0.65rem;
    font-weight: 800;
    padding: 0.15rem 0.45rem;
    border-radius: var(--border-radius-sm);
    text-transform: uppercase;
    display: inline-block;
    margin-top: 0.15rem;
}

/* Navigation menu item list and active state pointers */
.sidebar-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.menu-item a {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    color: #c2b8aa;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.75rem 1rem;
    border-radius: var(--border-radius-md);
    transition: var(--transition-smooth);
}

.menu-item a:hover, .menu-item.active a {
    background-color: rgba(255, 255, 255, 0.06);
    color: #ffffff;
}

.menu-item.active a {
    border-left: 3px solid var(--color-com-4);
}

/* Main Workspace Content Area */
.portal-content {
    background-color: var(--color-bg-app);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Glassmorphic dashboard topbar */
.portal-topbar {
    height: 75px;
    background-color: #ffffff;
    border-bottom: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 3rem;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.user-identity {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.avatar-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--color-com-4);
    color: var(--color-com-3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.85rem;
}

/* Responsive workspace containers */
.page-container {
    padding: 3rem;
    flex: 1;
    max-width: 1440px;
    width: 100%;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .page-container {
        padding: 1.5rem;
    }
}

/* ==========================================================================
   6. INTERACTIVE B2B DASHBOARD STYLES (KPI CARDS, CONTROLS & TABLES)
   ========================================================================== */
.grid-three-cols {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.stat-widget {
    background-color: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-lg); /* Sharp 6px Corners */
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
}

.stat-widget:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-label {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--color-slate-gray);
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1.1;
    color: #000000 !important; /* Absolute Black override */
}

.stat-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--border-radius-md); /* Sharp 4px Corners */
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-emerald {
    background-color: var(--color-emerald-light);
    color: var(--color-emerald-accent);
}

.icon-amber {
    background-color: var(--color-amber-light);
    color: var(--color-amber-accent);
}

.icon-danger {
    background-color: var(--color-danger-light);
    color: var(--color-danger-accent);
}

/* Universal white dashboard cards and shadow depths */
.dashboard-card {
    background-color: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-lg); /* Sharp 6px Corners */
    box-shadow: var(--shadow-sm);
    padding: 2rem;
    margin-bottom: 2rem;
}

/* Semantic form inputs, textareas, and active focus transitions */
.form-input-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-com-3);
    margin-bottom: 0.5rem;
}

.form-control, select.form-control {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1.5px solid var(--color-border);
    border-radius: var(--border-radius-md); /* Sharp 4px Corners */
    background-color: #faf9f6;
    color: var(--color-com-3);
    font-size: 0.9rem;
    font-weight: 600;
    outline: none;
    transition: var(--transition-smooth);
}

.form-control:focus, select.form-control:focus {
    border-color: var(--color-com-4);
    background-color: #ffffff;
    box-shadow: 0 0 0 4px rgba(176, 153, 121, 0.1);
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

.btn-submit {
    background-color: var(--color-com-1);
    color: var(--color-com-1-contrast);
    border: none;
    padding: 0.85rem 2rem;
    border-radius: var(--border-radius-md); /* Sharp 4px Corners */
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 10px rgba(63, 39, 0, 0.12);
}

.btn-submit:hover {
    background-color: var(--color-com-3);
    transform: translateY(-1px);
    box-shadow: 0 6px 15px rgba(36, 15, 0, 0.2);
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Data-dense matrices and table grids */
.pricing-matrix-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1.5rem;
}

.pricing-matrix-table th {
    background-color: #faf9f6;
    border-bottom: 2px solid var(--color-border);
    color: var(--color-com-3);
    font-weight: 800;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 1rem 1.25rem;
    text-align: left;
}

.pricing-matrix-table td {
    padding: 1.15rem 1.25rem;
    border-bottom: 1px solid var(--color-border);
    font-size: 0.9rem;
    color: var(--color-com-6);
}

.pricing-matrix-table tr:hover td {
    background-color: #fdfbf8;
}

.currency-input-prefix {
    position: relative;
    display: flex;
    align-items: center;
}

.currency-input-prefix::before {
    content: '$';
    position: absolute;
    left: 12px;
    font-weight: 800;
    color: var(--color-slate-gray);
    font-size: 0.85rem;
}

.currency-input-prefix input {
    padding-left: 24px !important;
}

/* ==========================================================================
   7. ASYNCHRONOUS FILE UPLOAD MODULES & COMPONENT DROPS
   ========================================================================== */
.media-dropzone {
    border: 2px dashed var(--color-border);
    background-color: #faf9f6;
    border-radius: var(--border-radius-lg); /* Sharp 6px Corners */
    padding: 3rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.media-dropzone:hover {
    border-color: var(--color-com-4);
    background-color: #faf7f2;
}

.loader-circle {
    width: 30px;
    height: 30px;
    border: 3px solid var(--color-border);
    border-top-color: var(--color-emerald-accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 0.75rem auto;
}

@keyframes spin {
    100% { transform: rotate(360deg); }
}

/* Semantic status notification alerts and toast boxes */
.alert-box {
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius-md); /* Sharp 4px Corners */
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    font-weight: 600;
}

.alert-success {
    background-color: var(--color-emerald-light);
    border: 1px solid #a7f3d0;
    color: #065f46;
}

.alert-danger {
    background-color: var(--color-danger-light);
    border: 1px solid #fca5a5;
    color: #991b1b;
}

.alert-warning {
    background-color: var(--color-amber-light);
    border: 1px solid #fde68a;
    color: #92400e;
}

.alert-info {
    background-color: #f0f4f8;
    border: 1px solid var(--color-border);
    color: var(--color-com-2);
}

/* ==========================================================================
   8. SYSTEM PORTAL FOOTERS
   ========================================================================== */
.public-footer {
    background-color: var(--color-com-3);
    color: #c2b8aa;
    padding: 4rem 4rem 2rem 4rem;
    border-top: 1px solid var(--color-border);
    width: 100%;
}

.public-footer-grid {
    max-width: 1440px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 3rem;
}

@media (max-width: 840px) {
    .public-footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.footer-column h4 {
    color: #ffffff !important;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1.5rem;
}

.footer-brand-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.3rem;
    color: #ffffff !important;
    margin-bottom: 1.25rem;
}

.footer-brand-desc {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    max-width: 320px;
}

.footer-links-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links-list a {
    color: #c2b8aa;
    font-size: 0.9rem;
    font-weight: 500;
}

.footer-links-list a:hover {
    color: #ffffff;
}

.footer-trust-badges {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.footer-trust-badge {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(176, 153, 121, 0.2);
    color: var(--color-com-4);
    padding: 0.35rem 0.75rem;
    border-radius: var(--border-radius-sm);
    font-size: 0.75rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.public-footer-bottom {
    max-width: 1440px;
    margin: 3rem auto 0 auto;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    font-weight: 500;
}

@media (max-width: 640px) {
    .public-footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

.portal-footer {
    padding: 1.5rem 3rem;
    background-color: #ffffff;
    border-top: 1px solid var(--color-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--color-slate-gray);
    font-weight: 500;
}

@media (max-width: 768px) {
    .portal-footer {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
        padding: 1.5rem;
    }
}