#te-app{max-width:1000px;margin:0 auto;font-family:'Hiragino Sans','Yu Gothic',sans-serif;color:#333}

/* Nav */
.te-nav{display:flex;align-items:center;justify-content:center;padding:20px 0 30px}
.te-nav-item{display:flex;flex-direction:column;align-items:center;cursor:default}
.te-nav-num{width:36px;height:36px;border-radius:50%;background:#ddd;color:#999;display:flex;align-items:center;justify-content:center;font-size:15px;font-weight:700;margin-bottom:4px}
.te-nav-active .te-nav-num{background:#c0392b;color:#fff}
.te-nav-done .te-nav-num{background:#c0392b;color:#fff}
.te-nav-txt{font-size:12px;color:#999}
.te-nav-active .te-nav-txt,.te-nav-done .te-nav-txt{color:#333}
.te-nav-line{flex:1;height:2px;background:#ddd;margin:0 8px 18px}
.te-nav-done+.te-nav-line{background:#c0392b}

/* Layout */
.te-step{display:none}
.te-step-show{display:block}
.te-row{display:flex;gap:20px}
.te-col-form{flex:0 0 440px;border:1px solid #e0e0e0;border-radius:8px;padding:24px;background:#fff}
.te-col-wide{flex:1}
.te-col-map{flex:1}
.te-col-sidebar{flex:0 0 300px}

/* Form */
.te-field{margin-bottom:14px}
.te-field label{display:block;font-size:13px;color:#555;margin-bottom:4px;font-weight:600}
.te-req{color:#c0392b}
.te-inp{width:100%;padding:9px 10px;border:1px solid #ccc;border-radius:4px;font-size:16px;box-sizing:border-box;background:#fff}
.te-inp:focus{border-color:#c0392b;outline:none}
.te-textarea{resize:vertical;font-family:inherit;font-size:16px}
.te-field-row{display:flex;gap:12px}
.te-w50{flex:1}

/* Map */
.te-map{width:100%;height:380px;background:#f0f0f0;border-radius:6px;border:1px solid #ddd}
.te-map-sm{width:100%;height:200px;background:#f0f0f0;border-radius:6px;border:1px solid #ddd;margin-bottom:12px}
.te-route-info{padding:8px 0;font-size:13px;color:#555}

/* Buttons */
.te-btn-check{display:inline-block;padding:10px 24px;border:1px solid #c0392b;color:#c0392b;background:#fff;border-radius:4px;font-size:14px;cursor:pointer;margin-top:5px}
.te-btn-check:hover{background:#fdf2f2}
.te-btn-select{display:inline-block;padding:7px 20px;background:#c0392b;color:#fff;border:none;border-radius:4px;font-size:13px;cursor:pointer;margin-top:6px}
.te-btn-select:hover{background:#a93226}
.te-btn-select.te-selected-btn{background:#27ae60}
.te-btn-continue{display:block;width:100%;padding:12px;background:#c0392b;color:#fff;border:none;border-radius:4px;font-size:15px;cursor:pointer;margin-top:10px}
.te-btn-continue:hover{background:#a93226}
.te-btn-book{display:block;width:100%;padding:12px;background:#c0392b;color:#fff;border:none;border-radius:4px;font-size:16px;cursor:pointer;margin-top:10px}
.te-btn-book:hover{background:#a93226}
.te-btn-book:disabled{background:#c0392b;opacity:.7;cursor:not-allowed}
.te-spinner{display:inline-block;width:14px;height:14px;border:2px solid rgba(255,255,255,.3);border-top-color:#fff;border-radius:50%;animation:te-spin .6s linear infinite;vertical-align:middle;margin-right:6px}
@keyframes te-spin{to{transform:rotate(360deg)}}
.te-btn-row{margin-top:12px}
.te-btn-back{display:inline-block;padding:8px 20px;background:#eee;color:#666;border:1px solid #ddd;border-radius:4px;font-size:13px;cursor:pointer}
.te-btn-back:hover{background:#ddd;color:#333}
.te-btn-pair{display:flex;gap:10px;align-items:center;margin-top:14px}
.te-btn-pair .te-btn-back,.te-btn-pair .te-btn-continue,.te-btn-pair .te-btn-book{flex:1;text-align:center;padding:12px;font-size:15px;box-sizing:border-box;margin-top:0}

/* Vehicle cards */
.te-vcard{padding:16px;border-bottom:1px solid #eee}
.te-vcard:last-child{border-bottom:none}
.te-vcard-top{display:flex;align-items:center;gap:16px}
.te-vcard-img{width:120px;height:70px;object-fit:contain;flex-shrink:0;background:#f9f9f9;border-radius:4px}
.te-vcard-img-placeholder{width:120px;height:70px;background:#eee;border-radius:4px;flex-shrink:0}
.te-vcard-info{flex:1}
.te-vcard-name{font-size:16px;font-weight:700;margin-bottom:4px}
.te-vcard-meta{font-size:12px;color:#888;margin-bottom:2px}
.te-vcard-meta i{margin-right:4px}
.te-vcard-desc{font-size:12px;color:#666;margin:4px 0;line-height:1.4}
.te-vcard-bottom{display:flex;align-items:center;justify-content:space-between;margin-top:10px}
.te-vcard-price{font-size:18px;font-weight:700;color:#333;white-space:nowrap}
@media(max-width:600px){.te-vcard-top{flex-wrap:wrap}.te-vcard-img{width:100%;height:auto;max-height:160px}.te-vcard-img-placeholder{width:100%;height:120px}}

/* Extras */
.te-extra-item{padding:16px;border-bottom:1px solid #eee}
.te-extra-item:last-child{border-bottom:none}
.te-extra-title{font-size:16px;font-weight:700;margin-bottom:8px}
.te-extra-title span{color:#c0392b;font-size:14px;font-weight:400}
.te-extra-row{display:flex;gap:12px;align-items:center;margin-bottom:6px}
.te-extra-row label{font-size:13px;color:#555;min-width:50px}
.te-extra-row select,.te-extra-row input{padding:6px 8px;border:1px solid #ccc;border-radius:4px;font-size:13px}

/* Trip card sidebar */
.te-trip-card{background:#f9f9f9;border:1px solid #e0e0e0;border-radius:6px;padding:16px;font-size:13px}
.te-trip-card h4{margin:0 0 12px;font-size:15px;font-weight:700}
.te-tc-row{margin-bottom:10px}
.te-tc-label{font-weight:700;color:#333;margin-bottom:2px}
.te-tc-val{color:#666}
.te-tc-icon{color:#c0392b;margin-right:4px}
.te-tc-divider{border-top:1px solid #ddd;margin:10px 0}
.te-tc-total{display:flex;justify-content:space-between;font-size:16px;font-weight:700;padding-top:8px;border-top:2px solid #333}
.te-tc-total .te-tc-price{color:#c0392b}

/* Card element */
.te-card-el{padding:12px;border:1px solid #ccc;border-radius:4px;margin-bottom:8px}
.te-err{color:#c0392b;font-size:12px}

/* Done */
.te-done{text-align:center;padding:50px 20px}
.te-done-icon{width:60px;height:60px;border-radius:50%;background:#27ae60;color:#fff;font-size:30px;display:flex;align-items:center;justify-content:center;margin:0 auto 15px}
.te-done h3{color:#27ae60;font-size:22px}

/* Autocomplete dropdown */
.te-ac-wrap{position:relative}
.te-inp-clear{padding-right:30px}
.te-clear-btn{position:absolute;right:8px;top:50%;transform:translateY(-50%);width:20px;height:20px;line-height:20px;text-align:center;color:#999;font-size:18px;cursor:pointer;z-index:2}
.te-clear-btn:hover{color:#c0392b}
.te-ac-list{display:none;position:absolute;top:100%;left:0;right:0;background:#fff;border:1px solid #ddd;border-top:none;border-radius:0 0 6px 6px;max-height:220px;overflow-y:auto;z-index:99999;box-shadow:0 4px 12px rgba(0,0,0,0.12)}
.te-ac-item{padding:10px 14px;cursor:pointer;border-bottom:1px solid #f0f0f0;transition:background 0.15s}
.te-ac-item:hover{background:#f7f7f7}
.te-ac-item:last-child{border-bottom:none}
.te-ac-item .te-ac-main{font-size:13px;font-weight:600;color:#333;line-height:1.4}
.te-ac-item .te-ac-sub{font-size:11px;color:#999;margin-top:3px;line-height:1.3}

@media(max-width:700px){
    .te-row{flex-direction:column}
    .te-col-form,.te-col-sidebar,.te-col-wide{flex:1}
    .te-field-row{flex-direction:column;gap:0}
    #te-app input[type="date"]{font-size:16px;min-height:44px}
    #te-app select{font-size:16px;min-height:44px}
    #te-app .te-inp{font-size:16px;min-height:44px}
}

/* Date picker */
#te-app input[type="date"]{cursor:pointer;-webkit-appearance:none;appearance:none}
#te-app input[type="date"]::-webkit-calendar-picker-indicator{cursor:pointer;padding:0;margin:0;width:20px;opacity:0.5}
#te-app input[type="date"]::-webkit-datetime-edit{padding:0}

/* Toast - now inline message */
.te-toast{display:none}
.te-msg{display:none;margin-top:10px;padding:10px 14px;border-radius:4px;font-size:13px}
.te-msg-err{display:block;background:#fdf2f2;color:#c0392b;border:1px solid #f5c6cb}
.te-msg-ok{display:block;background:#e8f5e9;color:#2e7d32;border:1px solid #c8e6c9}

/* Query page */
#te-query-app{max-width:600px;margin:0 auto;font-family:'Hiragino Sans','Yu Gothic',sans-serif}
.te-query-box{border:1px solid #e0e0e0;border-radius:8px;padding:24px;background:#fff;margin-bottom:20px}
.te-query-title{margin:0 0 16px;font-size:18px;color:#333}
.te-query-result{border:1px solid #e0e0e0;border-radius:8px;padding:20px;background:#fff}
.te-query-result h4{margin:0 0 12px;font-size:16px}
.te-q-table{width:100%;border-collapse:collapse}
.te-q-table td{padding:12px 16px;border-bottom:1px solid #f0f0f0;font-size:14px}
.te-q-table td:first-child{width:110px;color:#888;font-size:13px;background:#fafafa}
