/* =============================================
   Destina Tourism — Global Layout
   Header · Mobile Menu · Footer
   Design system: --dt-brand #F38709 / --dt-navy #1e3a5f
   ============================================= */

/* ── variables (mirrored from home-index.css) ── */
:root {
    --dt-brand:       #F38709;
    --dt-brand-dark:  #d97706;
    --dt-navy:        #1e3a5f;
    --dt-navy-deep:   #152d4a;
    --dt-footer-bg:   #1a1a2a;
    --dt-footer-deep: #13131f;
    --dt-white:       #ffffff;
    --dt-border:      #e2e8f0;
    --dt-bg:          #f1f5f9;
    --dt-text:        #334155;
    --dt-muted:       #64748b;
    --hdr-h:          68px;
}

/* ═══════════════════════════════════════
   HEADER
═══════════════════════════════════════ */
.dt-header {
    position: fixed;
    top: 0; left: 0; width: 100%;
    height: var(--hdr-h);
    background: var(--dt-white);
    border-bottom: 1px solid var(--dt-border);
    box-shadow: 0 2px 16px rgba(30,58,95,.07);
    z-index: 9999;
    transition: box-shadow .3s;
}
.dt-header.scrolled {
    box-shadow: 0 4px 24px rgba(30,58,95,.13);
}

.dt-header__inner {
    display: flex;
    align-items: center;
    height: var(--hdr-h);
    gap: 0;
}

/* Logo */
.dt-header__logo {
    display: flex; align-items: center;
    flex-shrink: 0;
    margin-right: 32px;
    text-decoration: none !important;
}
.dt-header__logo img {
    height: 40px; width: auto;
    display: block;
}

/* Nav */
.dt-header__nav { flex: 1; }
.dt-header__nav ul {
    display: flex; align-items: center;
    list-style: none; margin: 0; padding: 0;
    gap: 2px;
}
.dt-header__nav ul li a {
    display: inline-flex; align-items: center;
    padding: 8px 13px;
    font-size: 13px; font-weight: 600;
    color: var(--dt-text) !important;
    text-decoration: none !important;
    border-radius: 8px;
    transition: color .2s, background .2s;
    white-space: nowrap;
}
.dt-header__nav ul li a:hover,
.dt-header__nav ul li a.active {
    color: var(--dt-brand) !important;
    background: rgba(243,135,9,.07);
}
.dt-header__nav ul li a.dt-nav-highlight {
    color: var(--dt-brand) !important;
    background: rgba(243,135,9,.1);
}

/* Right actions */
.dt-header__actions {
    display: flex; align-items: center;
    gap: 8px; flex-shrink: 0;
    margin-left: 16px;
}
.dt-header__phone {
    display: flex; align-items: center; gap: 6px;
    font-size: 13px; font-weight: 700;
    color: var(--dt-navy) !important;
    text-decoration: none !important;
    padding: 6px 12px;
    border-radius: 8px;
    border: 1.5px solid var(--dt-border);
    transition: .2s; white-space: nowrap;
}
.dt-header__phone i { color: var(--dt-brand); font-size: 13px; }
.dt-header__phone:hover {
    border-color: var(--dt-brand);
    color: var(--dt-brand) !important;
}

.dt-header__welcome {
    font-size: 13px; font-weight: 700;
    color: var(--dt-navy);
    padding: 6px 10px;
    max-width: 160px; overflow: hidden;
    white-space: nowrap; text-overflow: ellipsis;
    display: inline-flex; align-items: center; gap: 6px;
}
.dt-header__welcome i { color: var(--dt-brand); }

/* Buttons */
.dt-btn-login {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 16px;
    border-radius: 10px; font-size: 13px; font-weight: 700;
    text-decoration: none !important;
    border: 1.5px solid var(--dt-border);
    color: var(--dt-navy) !important;
    background: var(--dt-white);
    transition: .2s; white-space: nowrap;
}
.dt-btn-login:hover {
    border-color: var(--dt-brand); color: var(--dt-brand) !important;
}
.dt-btn-signup {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 16px;
    border-radius: 10px; font-size: 13px; font-weight: 700;
    text-decoration: none !important;
    background: var(--dt-brand);
    color: var(--dt-white) !important;
    border: none;
    box-shadow: 0 4px 14px rgba(243,135,9,.3);
    transition: .2s; white-space: nowrap;
}
.dt-btn-signup:hover {
    background: var(--dt-brand-dark);
    box-shadow: 0 6px 18px rgba(243,135,9,.4);
    transform: translateY(-1px);
}
.dt-btn-logout {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 14px;
    border-radius: 10px; font-size: 13px; font-weight: 700;
    text-decoration: none !important;
    background: #fee2e2; color: #dc2626 !important;
    border: 1.5px solid #fca5a5;
    transition: .2s; white-space: nowrap;
}
.dt-btn-logout:hover {
    background: #fecaca;
}
.dt-btn-mypage {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 13px;
    border-radius: 10px; font-size: 13px; font-weight: 700;
    text-decoration: none !important;
    background: #eff6ff; color: var(--dt-navy) !important;
    border: 1.5px solid #bfdbfe;
    transition: .2s; white-space: nowrap;
}
.dt-btn-mypage:hover {
    background: #dbeafe;
}

/* Hamburger */
.dt-burger {
    display: none;
    flex-direction: column; justify-content: center;
    gap: 5px; width: 40px; height: 40px;
    background: none; border: 1.5px solid var(--dt-border);
    border-radius: 10px; cursor: pointer; padding: 8px;
    flex-shrink: 0; margin-left: 12px;
    transition: .2s;
}
.dt-burger:hover { border-color: var(--dt-brand); }
.dt-burger span {
    display: block; height: 2px; width: 100%;
    background: var(--dt-navy); border-radius: 2px;
    transition: .3s;
}
.dt-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.dt-burger.open span:nth-child(2) { opacity: 0; }
.dt-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── body offset ── */
body {
    background-color: #f1f5f9 !important;
    padding-top: var(--hdr-h) !important;
}

/* ═══════════════════════════════════════
   MOBILE MENU
═══════════════════════════════════════ */
.dt-mobile-nav {
    display: none;
    position: fixed;
    top: var(--hdr-h); left: 0; right: 0;
    background: var(--dt-white);
    border-bottom: 1px solid var(--dt-border);
    box-shadow: 0 8px 24px rgba(30,58,95,.12);
    z-index: 9998;
    max-height: calc(100vh - var(--hdr-h));
    overflow-y: auto;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: transform .25s ease, opacity .25s ease;
}
.dt-mobile-nav.open {
    display: block;
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}
.dt-mobile-nav__inner {
    padding: 16px;
}
.dt-mobile-nav ul {
    list-style: none; margin: 0; padding: 0;
}
.dt-mobile-nav ul li { border-bottom: 1px solid var(--dt-border); }
.dt-mobile-nav ul li:last-child { border-bottom: none; }
.dt-mobile-nav ul li a {
    display: flex; align-items: center; gap: 10px;
    padding: 13px 8px;
    font-size: 14px; font-weight: 600;
    color: var(--dt-text) !important;
    text-decoration: none !important;
    transition: color .2s;
}
.dt-mobile-nav ul li a i { color: var(--dt-brand); width: 18px; text-align: center; }
.dt-mobile-nav ul li a:hover { color: var(--dt-brand) !important; }

.dt-mobile-nav__actions {
    display: flex; gap: 10px; flex-wrap: wrap;
    padding: 14px 8px 6px;
    border-top: 2px solid var(--dt-border);
    margin-top: 8px;
}
.dt-mobile-nav__actions a { flex: 1; min-width: 120px; text-align: center; justify-content: center; }
.dt-mobile-nav__phone {
    display: flex; align-items: center; gap: 8px;
    padding: 12px 8px;
    font-size: 14px; font-weight: 700;
    color: var(--dt-navy) !important;
    text-decoration: none !important;
    border-top: 1px solid var(--dt-border);
}
.dt-mobile-nav__phone i { color: var(--dt-brand); }

/* ═══════════════════════════════════════
   AI CHATBOT BUTTON
═══════════════════════════════════════ */
.dt-chatbot-btn {
    position: fixed;
    right: 0;
    bottom: 9px;
    z-index: 9990;
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    line-height: 0;
    transition: transform .2s;
}
.dt-chatbot-btn:hover { transform: scale(1.06); }
.dt-chatbot-btn img {
    width: 100px;
    height: 100px;
    display: block;
    object-fit: contain;
}
.dt-chatbot-btn--hidden { opacity: 0; pointer-events: none; transform: scale(.8); }

/* Chat panel */
.dt-chat-widget {
    position: fixed;
    right: 12px;
    bottom: 118px;
    width: min(360px, calc(100vw - 24px));
    max-height: min(520px, calc(100vh - 140px));
    z-index: 9991;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(15, 23, 42, .22);
    border: 1px solid rgba(15, 23, 42, .08);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px) scale(.96);
    transition: opacity .2s, transform .2s, visibility .2s;
    font-family: 'Inter', Arial, sans-serif;
}
.dt-chat-widget.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}
.dt-chat-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%);
    color: #fff;
}
.dt-chat-header__avatar img {
    width: 44px;
    height: 44px;
    object-fit: contain;
}
.dt-chat-header__text { flex: 1; min-width: 0; }
.dt-chat-header__text strong { display: block; font-size: 15px; }
.dt-chat-header__text span { font-size: 11px; opacity: .9; }
.dt-chat-close {
    background: rgba(255,255,255,.2);
    border: none;
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}
.dt-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
    min-height: 200px;
    max-height: 280px;
    background: #f8fafc;
}
.dt-chat-msg { margin-bottom: 10px; display: flex; flex-direction: column; }
.dt-chat-msg--user { align-items: flex-end; }
.dt-chat-msg--bot { align-items: flex-start; }
.dt-chat-bubble {
    max-width: 92%;
    padding: 10px 12px;
    border-radius: 12px;
    font-size: 13px;
    line-height: 1.45;
}
.dt-chat-msg--user .dt-chat-bubble {
    background: #0d9488;
    color: #fff;
    border-bottom-right-radius: 4px;
}
.dt-chat-msg--bot .dt-chat-bubble {
    background: #fff;
    color: #1e293b;
    border: 1px solid #e2e8f0;
    border-bottom-left-radius: 4px;
}
.dt-chat-links {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
    max-width: 92%;
}
.dt-chat-links a {
    font-size: 11px;
    padding: 5px 10px;
    background: #ecfdf5;
    color: #0f766e;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
}
.dt-chat-links a:hover { background: #d1fae5; }
.dt-chat-typing span {
    display: inline-block;
    width: 6px; height: 6px;
    margin: 0 2px;
    background: #94a3b8;
    border-radius: 50%;
    animation: dtChatDot 1s infinite;
}
.dt-chat-typing span:nth-child(2) { animation-delay: .15s; }
.dt-chat-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes dtChatDot {
    0%, 80%, 100% { opacity: .3; transform: scale(.8); }
    40% { opacity: 1; transform: scale(1); }
}
.dt-chat-quick {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 8px 10px;
    border-top: 1px solid #e2e8f0;
    background: #fff;
}
.dt-chat-quick button {
    font-size: 11px;
    padding: 5px 10px;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    background: #fff;
    color: #334155;
    cursor: pointer;
}
.dt-chat-quick button:hover { border-color: #0d9488; color: #0f766e; }
.dt-chat-footer {
    display: flex;
    gap: 8px;
    padding: 10px;
    border-top: 1px solid #e2e8f0;
    background: #fff;
}
.dt-chat-footer input {
    flex: 1;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 14px;
    outline: none;
}
.dt-chat-footer input:focus { border-color: #0d9488; }
.dt-chat-footer button {
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 10px;
    background: #0d9488;
    color: #fff;
    cursor: pointer;
}
.dt-chat-footer button:disabled { opacity: .5; cursor: wait; }

@media (max-width: 480px) {
    .dt-chat-widget { right: 8px; bottom: 100px; }
    .dt-chatbot-btn img { width: 80px; height: 80px; }
}

/* ═══════════════════════════════════════
   FOOTER
═══════════════════════════════════════ */
.dt-footer {
    background: linear-gradient(180deg, var(--dt-footer-bg) 0%, var(--dt-footer-deep) 100%);
    color: rgba(255,255,255,.85);
    font-family: 'Inter', Arial, sans-serif;
}

/* Top band — newsletter / trust */
.dt-footer-top-band {
    background: var(--dt-brand);
    padding: 18px 0;
}
.dt-footer-top-band .container {
    display: flex; align-items: center;
    justify-content: space-between; gap: 16px;
    flex-wrap: wrap;
}
.dt-footer-trust {
    display: flex; align-items: center; flex-wrap: wrap; gap: 24px;
}
.dt-footer-trust-item {
    display: flex; align-items: center; gap: 8px;
    font-size: 13px; font-weight: 700; color: var(--dt-white);
}
.dt-footer-trust-item i { font-size: 16px; opacity: .9; }

/* Main body */
.dt-footer-body {
    padding: 56px 0 40px;
}
.dt-footer-grid {
    display: grid;
    grid-template-columns: 220px repeat(4, 1fr);
    gap: 32px;
}

/* Logo column */
.dt-footer-brand img {
    height: 44px; width: auto; margin-bottom: 16px; display: block;
    filter: brightness(0) invert(1);
}
.dt-footer-brand p {
    font-size: 13px; color: rgba(255,255,255,.6); line-height: 1.7; margin: 0;
}
.dt-footer-social {
    display: flex; gap: 10px; margin-top: 20px;
}
.dt-footer-social a {
    width: 36px; height: 36px; border-radius: 10px;
    background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12);
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,.7) !important; font-size: 14px;
    text-decoration: none !important; transition: .2s;
}
.dt-footer-social a:hover {
    background: var(--dt-brand); border-color: var(--dt-brand); color: var(--dt-white) !important;
    transform: translateY(-2px);
}

/* Link columns */
.dt-footer-col h5 {
    font-size: 12px; font-weight: 800;
    text-transform: uppercase; letter-spacing: .08em;
    color: var(--dt-white); margin-bottom: 18px;
    display: flex; align-items: center; gap: 8px;
}
.dt-footer-col h5::after {
    content: ''; flex: 1; height: 1px;
    background: rgba(255,255,255,.12);
}
.dt-footer-col ul {
    list-style: none; padding: 0; margin: 0;
}
.dt-footer-col ul li { margin-bottom: 10px; }
.dt-footer-col ul li a {
    display: flex; align-items: center; gap: 8px;
    font-size: 13px; font-weight: 500;
    color: rgba(255,255,255,.65) !important;
    text-decoration: none !important;
    transition: color .2s, padding-left .2s;
}
.dt-footer-col ul li a i {
    color: var(--dt-brand); font-size: 10px; flex-shrink: 0;
}
.dt-footer-col ul li a:hover {
    color: var(--dt-white) !important;
    padding-left: 4px;
}

/* Contact info */
.dt-footer-contact-item {
    display: flex; align-items: flex-start; gap: 10px;
    margin-bottom: 14px; font-size: 13px; color: rgba(255,255,255,.7);
}
.dt-footer-contact-item i {
    color: var(--dt-brand); font-size: 14px; margin-top: 1px; flex-shrink: 0;
}
.dt-footer-contact-item a {
    color: rgba(255,255,255,.7) !important; text-decoration: none !important;
}
.dt-footer-contact-item a:hover { color: var(--dt-white) !important; }

/* Divider */
.dt-footer-divider {
    border: none; border-top: 1px solid rgba(255,255,255,.1);
    margin: 0;
}

/* Destinations band */
.dt-footer-destinations {
    padding: 18px 0;
    display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
}
.dt-footer-destinations strong {
    font-size: 12px; font-weight: 800; color: var(--dt-white);
    text-transform: uppercase; letter-spacing: .06em; margin-right: 4px;
}
.dt-footer-dest-tag {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 4px 10px;
    background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
    border-radius: 100px; font-size: 12px; font-weight: 500;
    color: rgba(255,255,255,.7);
    transition: .2s;
}
.dt-footer-dest-tag:hover {
    background: rgba(243,135,9,.2); border-color: var(--dt-brand);
    color: var(--dt-white);
}

/* Payments + bottom bar */
.dt-footer-bottom {
    padding: 20px 0;
    border-top: 1px solid rgba(255,255,255,.1);
}
.dt-footer-bottom-inner {
    display: flex; align-items: center;
    justify-content: space-between; flex-wrap: wrap; gap: 16px;
}
.dt-footer-copy {
    font-size: 12px; color: rgba(255,255,255,.45);
}
.dt-footer-copy a {
    color: rgba(255,255,255,.6) !important; text-decoration: underline !important;
}
.dt-footer-copy a:hover { color: var(--dt-white) !important; }

.dt-footer-payments {
    display: flex; align-items: center; gap: 8px;
}
.dt-pay-chip {
    background: rgba(255,255,255,.92); border-radius: 6px;
    padding: 5px 10px; display: flex; align-items: center;
    box-shadow: 0 1px 4px rgba(0,0,0,.1);
}
.dt-pay-chip img {
    height: 20px; width: auto; object-fit: contain;
}

/* ═══════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════ */
@media (max-width: 1200px) {
    .dt-footer-grid { grid-template-columns: 200px repeat(3, 1fr); }
    .dt-footer-grid > .dt-footer-col:last-child { grid-column: span 1; }
}
@media (max-width: 991px) {
    .dt-header__nav { display: none; }
    .dt-burger { display: flex; }
    .dt-header__phone { display: none; }
    .dt-footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
    .dt-footer-brand { grid-column: span 2; display: flex; align-items: flex-start; gap: 24px; }
    .dt-footer-brand img { margin-bottom: 0; }
}
@media (max-width: 575px) {
    .dt-header__actions .dt-btn-login,
    .dt-header__actions .dt-btn-mypage,
    .dt-header__actions .dt-header__welcome { display: none; }
    .dt-footer-grid { grid-template-columns: 1fr; }
    .dt-footer-brand { flex-direction: column; grid-column: span 1; }
    .dt-footer-top-band .container { justify-content: center; }
    .dt-footer-trust { justify-content: center; }
    .dt-footer-bottom-inner { flex-direction: column; align-items: center; text-align: center; }
    .dt-footer-destinations { justify-content: center; }
}

/* ── util overrides ── */
button.btn.btn-outline-primary {
    background-color: var(--dt-brand);
    color: white; border: none !important;
}
button.btn.btn-outline-danger {
    background-color: var(--dt-brand);
    color: white; border: none !important;
}
.list-extras .item-extra .extra-info span.price { background-color: var(--dt-brand); }
span.icon-item { background-color: var(--dt-brand); }
span.location-item { background-color: var(--dt-brand); }
.list-routes li .location-item { background: var(--dt-brand); }
.form-check-input:checked {
    background-color: var(--dt-brand) !important;
    border-color: var(--dt-brand) !important;
}

/* intlTelInput */
.iti { width: 100% !important; }
.iti--allow-dropdown { display: flex; align-items: center; }
.iti__flag-container { left: 10px; right: auto; }
.iti input[type="tel"] {
    width: 100% !important; height: 45px !important;
    padding-left: 70px !important;
    text-align: left !important;
}
.form-control { height: 45px !important; }
