*{
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    word-spacing: normal;
    letter-spacing: normal;
    -webkit-tap-highlight-color: transparent;
}

:root{
    --bg-color: linear-gradient(180deg, #f5f7fb 0%, #eef2ff 100%);
    --card-bg: white;
    --text-primary: #111827;
    --text-secondary: #6b7280;
    --accent-start: #6A82E9;
    --accent-end: #7E57A8;
    --muted: #f3f4f6;
    --shell-start: #6b46c1;
    --shell-end: #9f7aea;
}

/* Remove the default blue tap/focus ring on every interactive element (browser + Android WebView) */
html{
    -webkit-tap-highlight-color: transparent;
}

a, button, input, textarea, select, [tabindex]{
    -webkit-tap-highlight-color: transparent;
}

a:focus, button:focus, input:focus, textarea:focus, select:focus, [tabindex]:focus,
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible{
    outline: none;
}

html, body{
    height: 100%;
}

body{
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, 'Noto Sans', sans-serif;
    min-height: 100vh;
    min-height: 100dvh;
    background: linear-gradient(180deg,#e9d8fd 0%, #f3e8ff 100%);
    transition: background-color 0.3s ease;
    display: flex;
    justify-content: center;
    /* flex-start (not center) so content taller than the viewport scrolls from the
       top instead of being vertically centered and clipped above the fold */
    align-items: flex-start;
    margin: 0;
    padding: 28px 12px;
    padding-top: max(28px, env(safe-area-inset-top));
    padding-bottom: max(28px, env(safe-area-inset-bottom));
    padding-left: max(12px, env(safe-area-inset-left));
    padding-right: max(12px, env(safe-area-inset-right));
    box-sizing: border-box;
    color: var(--text-primary);
}

.device-shell{
    width: 100%;
    max-width: 390px;
    border-radius: 28px;
    padding: 18px;
    background: linear-gradient(180deg, var(--shell-start), var(--shell-end));
    box-shadow: 0 12px 40px rgba(99, 102, 241, 0.18);
}

.card{
    background: var(--card-bg);
    color: var(--text-primary);
    transition: background-color 0.3s ease, color 0.3s ease;
    padding: 28px 22px 34px;
    border-radius: 16px;
    text-align: center;
    width: 100%;
    box-shadow: 0 8px 20px rgba(17, 24, 39, 0.08);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

/* On real phones/tablets (and the packaged Android app) drop the desktop "phone mockup"
   frame so the UI fills the entire screen edge-to-edge instead of floating in a box. */
@media (max-width: 480px){
    body{
        display: block;
        min-height: 100vh;
        min-height: 100dvh;
        padding: 0;
        padding-top: max(16px, env(safe-area-inset-top));
        padding-bottom: max(16px, env(safe-area-inset-bottom));
        padding-left: env(safe-area-inset-left);
        padding-right: env(safe-area-inset-right);
    }

    .device-shell{
        max-width: 100%;
        border-radius: 0;
        padding: 0;
        box-shadow: none;
    }

    .card{
        min-height: calc(100vh - 32px);
        min-height: calc(100dvh - 32px);
        border-radius: 0;
        box-shadow: none;
    }
}



.table-scroll-container{
    width: 100%;
    overflow-x: auto;
    margin-top: 20px; 
    border-radius: 10px;
    -webkit-overflow-scrolling: touch;
    color: black;
}

.card-settings{
    max-width: 400px;
    width: 90%;
    margin: 0 auto;
    text-align: left;
    padding: 24px 20px;
    box-sizing: border-box;
}

.card-settings p{
    text-align: left;
}

#promptBox{
    text-align: left !important;
    display: block !important;
    padding: 20px;
    line-height: 1.6;
    background: #f4f4f4;
    border-radius: 10px;
    font-size: 14px;
    white-space: pre-wrap;
    margin-top: 20px;
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid #ddd;
    cursor: text;
}

#promptBox p,
#promptBox h1,
#promptBox h2,
#promptBox h3,
#promptBox tr {
    page-break-inside: avoid;
    break-inside: avoid;
}

#promptBox:focus{
    outline: none;
    background-color: #f9f9f9;
    border-radius: 5px;
}

#promptBox table{
    width: 100%; 
    border-collapse: collapse; 
    margin: 10px 0;
    font-size: 14px;
    text-align: left;
    min-width: 650px;
}

#promptBox th{
    background: linear-gradient(to right, #6A82E9, #7E57A8);
    color: white;
    padding: 12px;
    font-weight: 600;
}

#promptBox td{
    padding: 12px;
    border-bottom: 1px solid #eee;
    color: #333;
    background-color: #ffffff;
}

#promptBox tr:nth-child(even) td{
    background-color: #fafdff;
}

#promptBox ul, #promptBox li{
    text-align: left !important;
    list-style-position: inside;
    word-spacing: normal !important;
}

#promptBox h1, #promptBox h2, #promptBox h3{
    margin-top: 25px;
    margin-bottom: 10px;
    padding-top: 5px;
}

#promptBox p{
    margin-bottom: 15px;
}

#promptBox a{
    display: inline-block;
    margin: 10px 0;
    padding: 8px 15px;
    background-color: #4285F4;
    color: white !important;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
}

#promptBox:focus{
    outline: 2px dashed #4285F4;
    background-color: #fcfcfc;
    padding: 10px;
    border-radius: 8px;
}

.logo{
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 10px;
    margin-top: 0;
    max-width: 100%;
}

#app-logo{max-width: 120px; margin-bottom: 12px;}

.language_translate{position:absolute; right:20px; top:18px;}
.language_translate select{font-size:12px}

.menu-root{position:absolute; left:18px; top:18px}



.logo-smaller{
    width: 200px;
}
.page-heading{
    margin-top: 8px;
    margin-bottom: 8px;
    text-align: center;
    font-size: 20px;
}

.page-heading-small{
    margin-top: 0;
    margin-bottom: 12px;
    text-align: center;
    font-size: 24px;
}

.page-subtitle{
    color: #666;
    font-size: 13px;
    margin-bottom: 18px;
    line-height: 1.5;
    text-align: center;
}

.divider{border:0; height:1px; background: linear-gradient(90deg, rgba(0,0,0,0.06), rgba(0,0,0,0.02)); margin:28px 0;}

.section-title{margin-bottom:4px; font-size:18px;}

.reasons-grid{display:grid; grid-template-columns:repeat(4,1fr); gap:4px; margin-top:2px;}
.reason-item{background:var(--muted); padding:8px 10px; border-radius:10px; font-size:8px;}

.accent-link{color:var(--accent-start); text-decoration:none; font-size:10px}
.accent-link:hover{text-decoration:underline}

.inline-row{margin-top:12px;}

.footer-text{
    text-align: center;
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 15px;
    line-height: 1.5;
}

.footer-content {
    display: flex;
    flex-direction: column;
    max-width: 1200px;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    gap: 12px;
    padding: 10px 0;
}

.social-links {
    display: flex;
    gap: 8px;
}

.social-links p {
    font-size: 12px;
    white-space: nowrap;
    margin: 0;
}

.social-icon {
    font-size: 14px;
    font-weight: 500;
    color: #6c5ce7;
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
}

.social-icon:hover {
    color: #a29bfe;
    text-decoration: underline;
}

.app-download-badges {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin: 10px 0;
}

.badge-link {
    display: inline-block;
    transition: transform 0.2s ease cubic-bezier(0.175,0.885,0.32,1.275), filter 0.2s ease;
}

.badge-link:hover {
    transform: scale(1.05);
    filter: brightness(1.15);
}

.badge-link:active {
    transform: scale(0.98);
}

.store-badge {
    height: 40px; /* Standard professional size */
    width: auto;
    display: block;
}

@media (max-width: 600px) {
    .app-download-badges {
        flex-direction: row;
        gap: 10px
    }

    .store-badge {
        height: 35px;
    }
}


@media (max-width: 600px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    .social-links {
        justify-content: center;
    }
}

.button-group{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px; 
    margin-top: 15px;
    width: 100%;
    max-width: 350px;
    margin-left: auto;
    margin-right: auto;
}

.button-group button{
    display: block !important;
    width: 100% !important;
    text-align: center;
    min-width: 250px;
    padding: 15px 25px;
    box-sizing: border-box;
}

button, .btn, .ColoredButton{
    width: 100%;
    padding: 15px;
    border-radius: 12px;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    border: none;
    transition: transform 0.1s, opacity 0.2s;
    display: inline-flex;
    justify-content: center;
    align-items: center;
}

button:active, .btn:active, .ColoredButton:active{
    transform: scale(0.98);
}





.btn, .ColoredButton{
    background: linear-gradient(90deg, var(--accent-start), var(--accent-end));
    color: white;
    margin-bottom: 12px;
    box-shadow: 0 6px 18px rgba(110, 95, 255, 0.12);
    border-radius: 999px;
}

.ColoredButton{display:inline-block; text-decoration:none; padding:12px 18px; border-radius:12px; width:100%; font-weight:600}
.ColoredButton.secondary{background:linear-gradient(90deg,#6b7280,#4b5563); border-radius:999px}

.page-footer-badges{margin-top:18px}

/* Make top-left menu and language visible */
#global-menu-root{position:absolute; left:18px; top:18px}

.link{
    color: #4A90E2;
    text-decoration: underline;
    font-size: 13px;
}

.link:hover{
    text-decoration: none;
}

.label, .label-text{
    font-weight: bold;
    display: block;
    margin-bottom: 8px;
    margin-top: 15px;
    font-size: 14px;
    text-align: left;
}

.form-row{
    display: flex;
    justify-content: space-between;
    gap: 4%;
    margin-bottom: 20px;
}



.form-input, .input{
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    box-sizing: border-box;
    margin-bottom: 15px;
}

@media (max-width: 420px){
    body{padding:18px 10px}
    .card{border-radius:12px; padding:18px}
    .page-heading{font-size:18px}
    .reasons-grid{grid-template-columns:1fr}
    .device-shell{border-radius:20px}
}

.input{
    margin-bottom: 10px;
}

.checkbox-grid{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 5px;
}

.checkbox-label{
    flex: 0 0 33.33%;
    font-size: 13px;
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    cursor: pointer;
}

.checkbox-label input{
    margin-right: 5px;
}

.plan-options{
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
    text-align: left;
}

.plan-option{
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 14px;
    gap: 12px;
    width: 100%;
}

.plan-option label{
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    cursor: pointer;
}

.plan-option b{
    display: block;
    margin-bottom: 4px;
}

.plan-option span{
    font-size: 12px;
    color: #666;
}

.terms-row{
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    width: 100%;
}

.terms-row label{
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.accent-link{
    color: #717EE9;
    text-decoration: none;
    font-weight: bold;
}

.link-button{
    text-decoration: none;
}

.menu-container{
    position: absolute;
    top: 25px;
    left: 0;
    cursor: pointer;
    z-index: 2000;
}

.menu-line{
    width: 25px;
    height: 3px;
    background-color: #6f7cff;
    margin: 4px 0;
    border-radius: 2px;
    display: block;
}

.menu-options{
    position: absolute;
    top: 35px;
    left: 0;
    background-color: var(--card-bg);
    min-width: 150px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    text-align: left;
    padding: 10px 0;
    border: 1px solid #eee;
    z-index: 2000;
}

.menu-options:hover{
    transform: translateY(-1px);
}

.menu-options:active{
    transform: scale(0.95);
}

.menu-options a{
    color: var(--text-primary);
    padding: 10px 15px;
    text-decoration: none;
    display: inline-block;
    width: 100%;
    box-sizing: border-box;
    font-size: 14px;
    font-weight: 500;
    transition: transform 0.1s cubic-bezier(0.175,0.885,0.32,1.275);
}

.menu-options a:hover{
    background-color: #f4f7ff;
    color: #6f7cff;
}

.menu-options a:active{
    transform: scale(0.94);
}

.menu-link{
    color: var(--text-primary);
    padding: 10px 15px;
    text-decoration: none;
    display: inline-block;
    box-sizing: border-box;
    font-size: 14px;
    font-weight: 500;
    transition: transform 0.1s cubic-bezier(0.175,0.885,0.32,1.275);
    border-radius: 8px;
}

.menu-link:hover{
    background-color: #f4f7ff;
    color: #6f7cff;
}

.menu-link:active{
    transform: scale(0.94);
}

.info-box{
    text-align: left;
    background-color: #eaf4ff;
    border-left: 4px solid #6f7cff;
    padding: 16px;
    margin: 16px 0;
    border-radius: 10px;
    box-sizing: border-box;
}

.info-box strong{
    display: block;
    margin-top: 8px;
    color: #1f3c88;
}

.info-box p{
    margin: 8px 0 0;
    color: #333;
}

.form-group{
    text-align: left;
    margin-bottom: 20px;
    position: relative;
    color: var(--text-primary);
}

.form-group label{
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    display: block;
    margin-bottom: 6px;
}

.form-group input{
    width: 100%;
    padding: 12px 14px;
    margin-top: 6px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    font-size: 15px;
    outline: none;
    box-sizing: border-box;
}

.form-group input:focus{
    border-color: #6f7cff;
}

.half-flex{
    flex: 1;
    margin-bottom: 0;
}

.hr{
    margin: 20px 0;
    border: 0;
    border-top: 1px solid #eee;
}

.spacer-bottom{
    margin-bottom: min(2.5vh, 25px);
}

.space-bottom{
    margin-bottom: 20px !important;
    display:block !important;
}

.no-margin_bottom{
    margin-bottom: 0;
}
 
.small-margin_bottom{
    margin-bottom: min(2.5vh, 15px);
}

#historyContainer{
    display: flex; 
    flex-direction: column;
    gap: 15px;
    margin: 20px 0;
    text-align: left;
}

.history-item{
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: transform 0.2s, box-shadow 0.2s;
    margin-bottom: 20px;
}

.history-item:hover{
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    border-color: #cbd5e1;
}

.history-item:last-child {
    margin-bottom: 0;
}

.history-details h3{
    color: #334155;
    margin-bottom: 4px;
    font-size: 18px;
}

.history-details p{
    color: #64748b;
    font-size: 13px;
}

.btn-view-old{
    width: auto !important;
    padding: 8px 16px !important;
    font-size: 13px !important;
    margin-bottom: 0 !important;
    background: linear-gradient(to right, #6A82E9, #7E57A8);
    color: white;
}

h1, h2, h3, p{
    text-align: center; 
    letter-spacing: normal !important;
    word-spacing: normal !important;
}

.itenerary-header{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
    width: 100%;
    box-sizing: border-box;
    clear: both;
    padding-left: 45px;
    padding-right: 45px;
    margin-top: 10px;
}

.itinerary-btn{
    background-color: #475569;
    color: white;
    padding: 8px 16px;
    border: none;
    border-radius: 5px;
    font-size: 13px;
    cursor: pointer;
    white-space: nowrap;
    flex: 1 1 auto;
    min-width: 100px;
    max-width: 150px;
    text-align: center;
}

.itinerary-title{
    text-align: center !important;
    word-spacing: 0 !important;
    letter-spacing: normal !important;
    display: block !important;
}

@media print {
    #promptBox {
        height: auto !important;
        overflow: visible !important;
        display: block !important;
    }

    #promptBox::-webkit-scrollbar {
        display: none;
    }
}



.no_margin-top{
    margin-top: -15px !important;
}

.register-terms{
    display: flex;
    align-items: flex-start; 
    gap: 10px;
    margin-top: 15px;
    margin-bottom: 20px;
    width: 100%;
}

.register-terms label{
    font-size: 13px;
    line-height: 1.5;
    text-align: left;
    color: #333;
    cursor: pointer;
}

.register-terms input[type="checkbox"]{
    margin-top: 3px; 
    cursor: pointer;
}

.terms-section{
    margin-bottom: 30px;
    text-align: left !important;
}

.terms-section h2{
    font-size: 18px;
    color: #111111;
    margin-bottom: 12px;
    border-bottom: 1px solid #eeeeee;
    padding-bottom: 5px;
    font-weight: 700;
}

.terms-section h3{
    font-size: 15px;
    color: #444444;
    margin-top: 15px;
    margin-bottom: 8px;
    font-weight: 600;
}

.terms-section p{
    font-size: 14px;
    line-height: 1.6;
    color: #333333;
    margin-bottom: 15px;
    text-align: left;
}

.terms-section ul{
    margin-left: 20px;
    margin-bottom: 15px;
    text-align: left;
}

.terms-section li{
    font-size: 13.5px;
    line-height: 1.5;
    color: #444444;
    margin-bottom: 8px;
}







.depth-header{
    display: flex;
    width: 50%;
    gap: 10px;
    margin: 20px 0;
}

.depth-header button{
    flex: 1;
    padding: 12px 20px;
    font-size: 16px;
    cursor: pointer;

    background-color: #f8f9fa;
    border: 1px solid #d4af37;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.depth-header button:hover{
    background-color: #d4af37;
    color: white;
}

.depth-header button.active{
    background-color: #d4af37;
    color: white;
    border-color: #b8860b;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.2);
}

.settings-container{
    width: 90%;
    display: flex;
    flex-direction: column;
    gap: 20px;                        
    max-width: 400px;
    margin: 0 auto;         
    box-sizing: border-box;       
}

.settings-sidebar{
    display: flex;
    flex-direction: row;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 6px;
    width: 100%;
    -webkit-overflow-scrolling: touch;
}

.settings-sidebar a{
    white-space: nowrap;
    padding: 8px 14px;
    border-radius: 8px;
    background-color: var(--card-bg);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    flex-shrink: 0;
    border: 1px solid var(--border-color);
}

.settings-sidebar a.active, .settings-sidebar a:hover{
    background-color: var(--sidebar-hover);
    color: var(--text-primary);
}

.settings-sidebar a:active{
    background-color: #7966d6;
    border: #ffffff;
    border-color: #7966d6;
}

.settings-sidebar::-webkit-scrollbar {
    display: none;
}

.settings-workspace{
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}

.settings-card{
    width: 100%;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    text-align: left;
    box-sizing: border-box;
}

.settings-card h2 {
    font-size: 18px;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.settings-card p {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 14px;
}

#clear-btn{
    background-color: #dc2626;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

#clear-btn:hover{
    background-color: #b91c1c;
}
#clear-btn:active{
    transform: scale(0.98);
}

#delete-btn{
    background-color: #dc2626;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

#delete-btn:hover{
    background-color: #b91c1c;
}
#delete-btn:active{
    transform: scale(0.98);
}


:root{
    color-scheme: light;
    --bg-color: #7966d6;
    --card-bg: #ffffff;
    --text-primary: #1a202c;
    --text-secondary: #4a5568;
    --border-color: #e2e8f0;
    --sidebar-hover: #edf2f7;
}

[data-theme="dark"]{
    color-scheme: dark;
    --bg-color: #1a1625;
    --card-bg: #2d2438;
    --text-primary: #f7fafc;
    --text-secondary: #cbd5e0;
    --border-color: #4a3b5c;
    --sidebar-hover: #3d314a;
}

.toggle-control{
    display: inline-flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-weight: 500;
    color: var(--text-primary);
    margin-top: 8px;
}

.toggle-control input[type="checkbox"]{
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.setting-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
    gap: 12px;
}

.setting-row select {
    padding: 6px 10px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background-color: var(--card-bg);
    color: var(--text-primary);
    font-size: 13px;
    max-width: 130px;
}


.setting-row select,
.setting-row input {
    max-width: 140px;
}

.setting-label{
    font-size: 14px;
    color: var(--text-primary);
}




#temp-selector, 
#unit-selector {
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background-color: var(--card-bg);
    color: var(--text-primary);
    font-size: 14px;
    cursor: pointer;
    outline: none;

    -webkit-tap-highlight-color: transparent;
    transition: border-color 0.2s ease;
}

#temp-selector:focus, 
#unit-selector:focus {
    border-color: #7966d6;
}

#unit-selector option,
#temp-selector option {
    background: var(--card-bg) !important;
    color: var(--text-primary) !important;
}


#marker-selector{
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background-color: var(--card-bg);
    color: var(--text-primary);
    font-size: 14px;
    cursor: pointer;
    outline: none;
    transition: border-color 0.2s ease;
}

#marker-selector:focus{
    border-color: #7966d6;
}


.profile-value-text{
    color: var(--text-secondary);
    font-weight: 400;
}

.reasons-grid{
    display: grid;
    grid-template-columns: repeat(2, 1fr); 
    gap: 15px 30px;                        
    max-width: 450px;                      
    margin: 0 auto;                        
}

.reason-item{
    font-size: 12px;
    font-weight: 500;
    text-align: left;                      
    padding: 5px;
}

.jump-container{
    background-color: var(--card-bg);
    padding: 15px 20px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    margin-bottom: 25px;
}

.jump-header{
    margin-bottom: 12px;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.jump-grid{
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 10px;
}

.jump-link{
    font-size: 13px;
    color: var(--text-primary);
    text-decoration: none;
    text-align: left;
    display: flex;
    align-items: center;
    padding: 10px 14px;
    background-color: rgba(0,0,0,0.3);
    border-radius: 6px;
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

.jump-link:hover{
    background-color: rgba(0,0,0,0.7);
    transform: translateY(-1px);
}

.search-container{
    position: relative;
    width: 100%;
}

.autocomplete-dropdown{
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 99999 !important;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    opacity: 0.98;
    border-radius: 0 0 8px 8px;
    list-style: none;
    padding: 0;
    margin: 4px 0 0 0;
    max-height: 200px;
    overflow-y: auto;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    display: none;
    width: 100%;
    color: var(--text-secondary);
}

.autocomplete-dropdown li,
.autocomplete-dropdown div {
    padding: 10px 14px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-secondary);
    text-align: left;
}

.autocomplete-dropdown li:hover,
.autocomplete-dropdown div:hover{
    background-color: rgba(255,255,255,0.15);
    backdrop-filter: brightness(0.85);
}

.autocomplete-item {
    padding: 10px 15px;
    cursor: pointer;
    color: var(--text-primary);
    font-size: 14px;
    text-align: left;
}

.autocomplete-item:hover {
    background-color: #f0f0f0;
}

#map{
    height: 250px;
    width: 100%;
    margin-top: 15px;
    margin-bottom: 15px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    z-index: 1;
    position: relative;
}

.form-bottom-center {
    margin-top: 20px;
    text-align: center;
    justify-content: center;
}

.signature-reset-margin {
    margin-top: 0;
}

.sign-in-link {
    font-size: 13px;
    margin-left: 5px;
}

.red_error_box {
    display: none; 
    background-color: #fde8e8;
    border: 1px solid #f5baba;
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 15px;
    text-align: center;
}

.red_error_box.visible {
    display: block;
}

.error_text {
    color: #e53e3e;
    font-size: 14px;
    font-weight: 600;
    margin: 0;
}

.white_gap{
    color:white;
    display:block;
    width:100%;
    height: 10px;
}

.faq-container {
    max-width: 100%;
    margin: 20px auto;
    padding: 0 15px;
    box-sizing: border-box;
    text-align: left; 
}

.faq-container h2{
    color: var(--text-primary);
    font-size: 18px;
    margin-bottom: 15px;
    text-align: left; 
}

.faq-item{
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 10px;
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}

.faq-item summary::-webkit-details-marker{
    display: none;
}

.faq-question {
    display: flex;
    justify-content: flex-start; 
    align-items: center;
    text-align: left; 
    padding: 14px 16px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    list-style: none; 
    user-select: none;
    transition: background-color 0.15s ease;   
}

.faq-item[open] .faq-question{
    background-color: var(--bg-color);
    border-bottom: 1px solid var(--border-color);
}

.faq-answer{
    padding: 14px 16px;
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-secondary);
    text-align: left; 
}

.faq-answer p{
    margin: 0;
    text-align:left;
}


.history-container{
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

.history-header{
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.history-empty-text{
    color: var(--text-secondary);
    margin: 20px 0;
    text-align: center;
}

.history-actions{
    display: flex;
    align-items: center;
    gap: 12px;
}

.favorite-btn, .delete-btn{
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    padding: 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, opacity 0.2s ease;
    outline: none;
}

.favorite-btn:hover, .delete-btn:hover{
    transform: scale(1.2);
    opacity: 0.85;
}

.favorite-btn:active, .delete-btn:active{
    transform: scale(0.95);
}

.history-item.is-favorite{
    border-left: 5px solid #ffc107;
    border-color: var(--border-color);
}

.filter-controls{
    background-color: #ffffff;
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    margin-bottom: 25px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    color: black;
}

.search-input{
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 25px;
    font-size: 15px;
    color: #2f3542;
    background-color: #f8f9fa;
    outline: none;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

.search-input:focus{
    border-color: #007bff;
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(108,92,231,0.15);
}

.history-checkbox{
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    user-select: none;
}

.history-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #6c5ce7;
    cursor: pointer;
}



.wizard-progress{
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
}

.progress-node{
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    padding-bottom: 5px;
    border-bottom: 2px solid var(--border-color);
    flex: 1;
    text-align: center;
}

.progress-node.active{
    color: #007bff !important;
    border-bottom: 2px solid #007bff !important;
}

.progress-line{
    width: 20px;
    height: 2px;
    background-color: var(--card-bg);
    margin: 0 10px;
}

.wizard-buttons{
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-top: 25px;
}

.wizard-buttons button{
    flex: 1;
    padding: 12px;
    cursor: pointer;
    border-radius: 6px;
    font-size: 15px;
}

.SecondaryButton{
    background-color: var(--card-bg);
    color: #4a5568;
    border: none;
}

.info-nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    width: 100%;
    padding: 15px 10px;
    margin-bottom: 30px;
    box-sizing: border-box;
}

.info-nav-wrapper::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 4px;
    background-color: var(--card-bg);
    z-index: 1;
    transform: translateY(-50%);
}

.nav-tab-btn {
    position: relative;
    z-index: 2; /* Sits ON TOP of the progress track line */
    background-color: var(--card-bg); /* White background hides the track behind the text */
    border: 2px solid var(--border-color);
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: 20px; /* Gives it a pill/step badge shape */
    transition: all 0.3s ease;
    white-space: nowrap;
}

.nav-tab-btn:hover {
    color: #007bff;
    border-color: #007bff;
    background-color: var(--card-bg);
}

.nav-tab-btn.active {
    color: var(--card-bg);
    background-color: #007bff; /* Turns the active pill blue */
    border-color: #007bff;
    box-shadow: 0 4px 10px rgba(0, 123, 255, 0.3);
}

.info-tab-content {
    animation: fadeIn 0.4s ease; /* Smooth visual transition when switching tabs */
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--text-secondary);
    line-height: 1.65;
    display: none;
}

.info-tab-content h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
    position: relative;
    display: inline-block;
}

.info-tab-content h2::after {
    content: '';
    display: block;
    width: 40px;
    height: 4px;
    background: #007bff;
    border-radius: 2px;
    margin-top: 6px;
}

.info-tab-content p {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 20px;
    max-width: 100%; /* Let the text fill the available screen width instead of a fixed narrow column */
}

.info-tab-content.active-content {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.info-nav-scroll-container {
    width: 100%;
    overflow-x: auto; /* Adds a clean touch scrollbar if screen is tiny */
    padding-bottom: 5px;
}

.dev-box img.logo {
    max-width: 150px;
    width: 150px;
}

.star-rating-container {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 4px;
    margin-bottom: 10px;
}

.star-rating-container input[type="radio"] {
    display: none;
}

.star-rating-container label {
    font-size: 32px;
    color: #cbd5e1;
    cursor: pointer;
    transition: color 0.15s ease;
}

.star-rating-container input[type="radio"]:checked ~ label,
.star-rating-container label:hover,
.star-rating-container label:hover ~ label {
    color: #ffb800;
}

#tripbuddy-widget-container {
    position: absolute;
    bottom: 20px;
    z-index: 1000;
    right: 20px;
    font-family: sans-serif;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    
    /* 1. Make the entire outer bounding box ignore mouse hovers and clicks */
    pointer-events: none; 
}

#tripbuddy-toggle-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6c5ce7, #a29bfe);
    color: white;
    font-size: 26px;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, background 0.2s ease;

    /* 2. Turn clicks back ON so you can actually click the toggle button */
    pointer-events: auto; 
}


#tripbuddy-chat-window {
    width: 320px;
    height: 430px;
    background-color: white;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    margin-bottom: 12px;
    transition: opacity 0.25s ease, transform 0.25s ease;

    /* 1. By default, let the window accept clicks when it is visible */
    pointer-events: auto; 
}

#tripbuddy-chat-window.chat-window-maximized {
    width: 50vw;
    height: 70vh;

    max-width: calc(100vw-40px);
    max-height: calc(100vh-100px);

    min-width: 280px;
    min-height: 400px;
}

@media (max-width: 600px) {
    #tripbuddy-chat-window.chat-window-maximized {
        width: calc(100vw-30px);
        height: 75vh;
    }
}

#tripbuddy-chat-window.chat-window-maximized .maximize svg {
    transform: scale(1.1);
    opacity: 0.7;
}


.chat-window-hidden {
    /* 2. Keep your sliding/hiding styles here */
    transform: translateY(20px); 
    opacity: 0; /* Or whatever your script uses to fade it out */
    pointer-events: none !important; 
}

.chat-header {
    background: linear-gradient(135deg, #6c5ce7, #a29bfe);
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative !important;
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.control-btn {
    background: transparent;
    border: none;
    padding: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background-color 0.2s ease, transform 0.1s ease;
    outline: none;
}

.control-btn:hover {
    background-color: rgba(255,255,255,0.2);
}

.control-btn:active {
    transform: scale(0.9);
}

.control-btn.close:hover {
    background-color: rgba(235,94,85,0.8);
}

.control-btn svg {
    width: 14px;
    height: 14px;
    pointer-events: none;
}

.chat-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: white;
}

#chat-messages-log {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background-color: #f8f9fa;
}

.close-chat {
    position: absolute !important;
    top: 50% !important;
    right: 15px !important;
    transform: translateY(-50%) !important; /* Centers it perfectly on the right */
    
    background: transparent !important;
    border: none !important;
    font-size: 24px !important;
    cursor: pointer !important;
    line-height: 1 !important;
    z-index: 10000 !important;
    outline: none !important;
    padding: 0 !important;
}


.bot-message, .user-message {
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 14px;
    max-width: 80%;
    line-height: 1.4;
}

.bot-message {
    background-color: #f1f2f6;
    color: #2f3542;
    align-self: flex-start;
    border-top-left-radius: 2px;
}

.user-message {
    background-color: #6c5ce7;
    color: white;
    align-self: flex-end;
    border-top-right-radius: 2px;
}

.chat-input-area {
    display: flex;
    padding: 10px;
    background-color: white;
    border-top: 1px solid #edeec9;
    gap: 8px;
}

#chat-user-input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 20px;
    font-size: 14px;
    outline: none;
}

#chat-user-input:focus {
    border-color: #6c5ce7;
}

#send-chat-btn {
    background-color: #6c5ce7;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
}

#send-chat-btn:hover {
    background-color: #5b4cc4;
}

.language_translate {
    position: absolute;
    top: 15;
    left: auto !important;
    right: 15px !important;
    z-index: 9999;
    margin: 0;
    display: block;
}

.goog-logo-link {
    display: none !important;
}

.goog-te-gadget {
    background-color: transparent !important;
}

.goog-te-gadget-simple image ,
.goog-te-gadget-icon {
    display: none !important;
}

.goog-te-gadget-simple {
    background-color: transparent !important;
    padding: 0 !important;
}

.goog-te-combo {
    display: inline-block !important;
    color: var(--text-primary) !important;
}
.edit_profile {
    padding: 8px 16px; 
    font-weight: 600; 
    cursor: pointer;
}
.skeleton-container {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.skeleton-line {
    background: #e2e8f0;
    border-radius: 4px;
    height: 16px;
    width: 100%;
}

.skeleton-line.title {
    height: 28px;
    width: 40%;
}

.skeleton-line.paragraph {
    height: 16px;
    width: 90%;
}

.skeleton-line.short {
    width: 60%;
}

.shimmer {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite linear;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}


/* Lock & Gray Out Controls While Trip Is Loading */
body.loading-active #copyBtn,
body.loading-active #pdfBtn,
body.loading-active #emailBtn,
body.loading-active .ColoredButton,
body.loading-active #tripbuddy-toggle-btn,
body.loading-active #chat-user-input,
body.loading-active #send-chat-btn,
body.loading-active a:has(.ColoredButton) {
    pointer-events: none !important;
    opacity: 0.45 !important;
    cursor: not-allowed !important;
    filter: grayscale(80%) !important;
}