:root {
  --bg: #0b0b0c;
  --bg-elev: #121214;
  --text: #e7e7ea;
  --muted: #b3b3b8;
  --accent: #b91c1c;
  --accent-2: #e11d48;
  --card: #161618;
  --stroke: #252528;
  --ring: 0 0 0 3px rgba(185, 28, 28, 0.35);
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 10px 25px rgba(0, 0, 0, 0.3);
  --container: 1200px;
  --header-height: 72px;
  --font-main: "Inter", system-ui, -apple-system, sans-serif;
}

[data-theme="light"] {
  --bg: #f8f9fa;
  --bg-elev: #ffffff;
  --bg-input: #f1f3f5;
  --text: #1a1a1d;
  --text-muted: #6c757d;
  --card-bg: #ffffff;
  --stroke: #e9ecef;
  --header-bg: rgba(255, 255, 255, 0.85);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 10px 25px rgba(0, 0, 0, 0.05);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-main);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
}

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #333; border-radius: 5px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: #555; }

img { display: block; max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; transition: color 0.2s; }
ul { list-style: none; padding: 0; margin: 0; }
button { font-family: inherit; }

.container { max-width: var(--container); margin-inline: auto; padding-inline: 24px; }

.site-header {
  position: sticky;
  top: 16px;
  z-index: 100;
  background: rgba(11, 11, 12, 0.85);
  backdrop-filter: blur(12px) saturate(1.2);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
  border: 1px solid var(--stroke);
  border-radius: 24px;
  height: var(--header-height);
  margin: 16px auto 0;
  width: calc(100% - 32px);
  max-width: var(--container);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 16px;
  height: 100%;
}

.brand { font-weight: 800; font-size: 22px; letter-spacing: -0.5px; display: inline-flex; align-items: center; }
.brand-accent { color: var(--accent); }
.brand-sm { font-size: 18px; }

.nav { justify-self: center; }
.nav-list { display: flex; gap: 8px; }
.nav-list a { color: var(--muted); font-weight: 500; font-size: 14px; padding: 8px 14px; border-radius: 50px; }
.nav-list a:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }

.nav-toggle { display: none; background: transparent; border: 0; width: 40px; height: 40px; align-items: center; justify-content: center; color: var(--text); cursor: pointer; }

.search { display: flex; align-items: center; background: #141416; border: 1px solid var(--stroke); border-radius: 99px; padding: 4px 4px 4px 16px; transition: border-color 0.2s, box-shadow 0.2s; width: 300px; }
.search:focus-within { border-color: #333; box-shadow: 0 0 0 2px rgba(255,255,255,0.05); }
.search-input { background: transparent; border: none; color: var(--text); height: 36px; width: 100%; font-size: 14px; }
.search-input:focus { outline: none; }
.search-btn { height: 36px; padding: 0 16px; border-radius: 99px; border: none; background: #222; color: var(--text); cursor: pointer; font-size: 13px; font-weight: 600; transition: background 0.2s; }
.search-btn:hover { background: #333; }

.profile { position: relative; margin-left: 8px; }
.avatar-btn { height: 40px; display: inline-flex; align-items: center; gap: 10px; background: transparent; border: 1px solid transparent; color: var(--text); border-radius: 99px; padding: 0 6px 0 0; cursor: pointer; transition: background 0.2s; }
.avatar-btn:hover { background: rgba(255,255,255,0.05); }
.avatar { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: var(--bg-elev); border: 1px solid var(--stroke); font-size: 16px; }
.profile-menu { position: absolute; right: 0; top: calc(100% + 12px); width: 200px; background: #18181b; border: 1px solid var(--stroke); border-radius: 12px; box-shadow: var(--shadow-lg); padding: 6px; display: grid; gap: 2px; transform-origin: top right; transform: scale(0.95); opacity: 0; visibility: hidden; transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1); z-index: 60; }
.profile-menu.is-open { transform: scale(1); opacity: 1; visibility: visible; }
.profile-menu a { padding: 10px 12px; border-radius: 8px; font-size: 14px; }
.profile-menu a:hover { background: #27272a; }

.hero { position: relative; padding: 100px 0 80px; background: radial-gradient(circle at 50% 0%, #1a0505 0%, var(--bg) 70%); }
.hero-title { font-size: clamp(36px, 5vw, 64px); line-height: 1.1; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 24px; }
.highlight { background: linear-gradient(to right, var(--accent-2), #f43f5e); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }

.tiles-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; margin-top: 48px; }
.tile { background: rgba(255,255,255,0.02); border: 1px solid var(--stroke); border-radius: var(--radius); padding: 24px; text-align: center; transition: transform 0.3s, border-color 0.3s; }
.tile:hover { transform: translateY(-5px); border-color: #333; }
.tile-accent { background: linear-gradient(180deg, rgba(225, 29, 72, 0.1), transparent); border-color: rgba(225, 29, 72, 0.2); }
.tile-icon { font-size: 32px; margin-bottom: 12px; display: block; }
.tile-title { margin: 0; font-size: 28px; font-weight: 700; color: #fff; }
.tile-sub { color: var(--accent-2); font-weight: 600; margin: 4px 0 12px; font-size: 14px; text-transform: uppercase; letter-spacing: 0.5px; }
.tile-desc { color: var(--muted); margin: 0; font-size: 14px; line-height: 1.6; }

.route-hero { position: relative; padding: 220px 0 60px; background-image: url('../img/istanbul-hero.jpg'); background-position: center; background-size: cover; background-repeat: no-repeat; border-bottom: 1px solid var(--stroke); overflow: hidden; }
.route-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(11,11,12,0.3), var(--bg)); z-index: 1; pointer-events: none; }
.route-hero-content { position: relative; z-index: 2; }
.route-title { text-align: center; font-size: clamp(24px, 4vw, 48px); font-weight: 800; margin-bottom: 90px; text-shadow: 0 4px 20px rgba(0,0,0,0.8); }
.route-sub { text-align: center; color: #ccc; font-weight: 600; letter-spacing: 2px; margin-bottom: 40px; text-transform: uppercase; font-size: 12px; opacity: 0.8; }

.chip-row { display: flex; gap: 20px; overflow-x: auto; padding: 20px 4px 40px; margin: 0 60px; scroll-snap-type: x mandatory; scrollbar-width: none; mask-image: linear-gradient(to right, transparent, black 20px, black calc(100% - 20px), transparent); -webkit-mask-image: linear-gradient(to right, transparent, black 20px, black calc(100% - 20px), transparent); }
.chip-row::-webkit-scrollbar { display: none; }
.chip-row.is-dragging { cursor: grabbing; user-select: none; scroll-snap-type: none; }

.chip-card { flex: 0 0 180px; height: 260px; border-radius: 16px; position: relative; overflow: hidden; border: 1px solid rgba(255,255,255,0.1); box-shadow: 0 10px 30px rgba(0,0,0,0.5); transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s; cursor: pointer; scroll-snap-align: center; }
.chip-card:hover { transform: translateY(-10px) scale(1.02); box-shadow: 0 20px 40px rgba(0,0,0,0.6); z-index: 10; border-color: rgba(255,255,255,0.3); }
.chip-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.chip-card:hover .chip-img { transform: scale(1.1); }
.chip-card span { position: absolute; bottom: 0; left: 0; right: 0; padding: 20px 14px; background: linear-gradient(to top, rgba(0,0,0,0.9), transparent); color: #fff; font-weight: 700; font-size: 15px; z-index: 2; }

.scroll-btn { position: absolute; top: 55%; transform: translateY(-50%); z-index: 10; width: 50px; height: 50px; border-radius: 50%; background: rgba(22, 22, 24, 0.65); border: 1px solid rgba(255, 255, 255, 0.15); color: #fff; display: grid; place-items: center; cursor: pointer; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); opacity: 0; font-size: 24px; box-shadow: 0 8px 24px rgba(0,0,0,0.4); }
.scroll-btn:hover:not(:disabled) { background: var(--accent); border-color: var(--accent); color: #fff; transform: translateY(-50%) scale(1.15); box-shadow: 0 15px 35px rgba(185, 28, 28, 0.5); }
.scroll-btn:disabled { opacity: 0; pointer-events: none; }
.route-hero:hover .scroll-btn { opacity: 1; }
.scroll-btn.left { left: 0; }
.scroll-btn.right { right: 0; }

.section-title { font-size: 32px; font-weight: 700; margin-bottom: 12px; }
.section-desc { color: var(--muted); max-width: 600px; margin-bottom: 32px; }

.map-embed { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--stroke); aspect-ratio: 21/9; background: #1a1a1d; }
.map-embed iframe { width: 100%; height: 100%; border: 0; display: block; filter: grayscale(100%) invert(92%) hue-rotate(180deg); }

.gallery { display: flex; gap: 16px; overflow-x: auto; padding-bottom: 16px; }
.shot { flex: 0 0 300px; border-radius: 12px; overflow: hidden; border: 1px solid var(--stroke); }
.shot img { width: 100%; height: 200px; object-fit: cover; transition: transform 0.4s; }
.shot:hover img { transform: scale(1.05); }

.faq { padding: 80px 0; background: #0e0e10; }
.accordion-item { background: #121214; border: 1px solid var(--stroke); border-radius: 12px; overflow: hidden; margin-bottom: 12px; transition: border-color 0.2s; }
.accordion-item.is-open { border-color: var(--stroke); background: #161618; }
.accordion-btn { width: 100%; padding: 20px; text-align: left; background: transparent; border: none; color: var(--text); font-weight: 600; display: flex; justify-content: space-between; cursor: pointer; }
.accordion-panel { max-height: 0; overflow: hidden; transition: max-height 0.3s cubic-bezier(0, 1, 0, 1); color: var(--muted); font-size: 15px; line-height: 1.6; }
.accordion-panel p { margin: 0 20px 20px; }
.chev { transition: transform 0.3s; }
.accordion-item.is-open .chev { transform: rotate(180deg); color: var(--accent-2); }

.auth { min-height: calc(100vh - var(--header-height)); display: grid; place-items: center; padding: 40px 20px; background: radial-gradient(circle at 50% 50%, #1a0505 0%, var(--bg) 100%); }
.auth-card { width: 100%; max-width: 400px; background: #121214; padding: 32px; border-radius: 20px; border: 1px solid var(--stroke); box-shadow: var(--shadow-lg); }
.input { width: 100%; background: #0b0b0c; border: 1px solid var(--stroke); color: #fff; height: 48px; padding: 0 16px; border-radius: 10px; transition: all 0.2s; }
.input:focus { border-color: var(--accent-2); outline: none; box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.15); }
.btn-primary { width: 100%; height: 48px; background: var(--accent); color: white; border: none; border-radius: 10px; font-weight: 600; cursor: pointer; transition: transform 0.1s, filter 0.2s; }
.btn-primary:hover { filter: brightness(1.1); }
.btn-primary:active { transform: scale(0.98); }

.site-footer { border-top: 1px solid var(--stroke); padding-top: 60px; background: #050505; color: #888; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-title { color: #fff; margin-bottom: 20px; font-size: 16px; }
.footer-links a:hover { color: var(--accent-2); }
.footer-bottom { border-top: 1px solid #1a1a1d; padding: 24px 0; text-align: center; }

.contact-section { position: relative; padding: 120px 0; background: var(--bg); overflow: hidden; border-top: 1px solid var(--stroke); }
.contact-bg-glow { position: absolute; top: 50%; right: 0; width: 600px; height: 600px; background: radial-gradient(circle, rgba(185, 28, 28, 0.15) 0%, transparent 70%); transform: translateY(-50%); pointer-events: none; z-index: 0; }
.contact-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; position: relative; z-index: 1; align-items: center; }
.contact-badge { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 2px; color: var(--accent-2); margin-bottom: 20px; text-transform: uppercase; }
.contact-title { font-size: 48px; font-weight: 800; line-height: 1.1; margin-bottom: 24px; background: linear-gradient(to right, #fff, #888); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.contact-desc { color: var(--muted); font-size: 18px; line-height: 1.6; margin-bottom: 48px; max-width: 90%; }
.contact-details { display: flex; flex-direction: column; gap: 32px; margin-bottom: 48px; }
.contact-item { display: flex; align-items: flex-start; gap: 16px; }
.icon-box { width: 48px; height: 48px; background: rgba(255,255,255,0.03); border: 1px solid var(--stroke); border-radius: 12px; display: grid; place-items: center; font-size: 20px; }
.detail-title { font-size: 14px; color: var(--muted); margin-bottom: 4px; text-transform: uppercase; letter-spacing: 0.5px; }
.detail-link, .detail-text { font-size: 18px; font-weight: 500; color: var(--text); line-height: 1.4; }
.detail-link:hover { color: var(--accent-2); }
.social-links { display: flex; gap: 16px; }
.social-btn { padding: 10px 20px; border: 1px solid var(--stroke); border-radius: 50px; font-size: 14px; font-weight: 600; transition: all 0.3s; }
.social-btn:hover { background: #fff; color: #000; border-color: #fff; }
.contact-form-container { background: rgba(22, 22, 24, 0.6); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); padding: 40px; border-radius: 24px; border: 1px solid var(--stroke); box-shadow: var(--shadow-lg); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { margin-bottom: 24px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 8px; }
.form-group input, .form-group select, .form-group textarea { width: 100%; background: rgba(0,0,0,0.3); border: 1px solid var(--stroke); border-radius: 12px; padding: 14px 16px; color: #fff; font-family: inherit; font-size: 15px; transition: all 0.2s; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(185, 28, 28, 0.1); background: rgba(0,0,0,0.5); }
.submit-btn { width: 100%; padding: 16px; background: var(--accent); color: white; border: none; border-radius: 12px; font-size: 16px; font-weight: 700; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 10px; transition: all 0.2s; }
.submit-btn:hover { background: var(--accent-2); transform: translateY(-2px); }

.ai-section { padding: 80px 0; background: linear-gradient(180deg, #0b0b0c 0%, #161618 100%); border-top: 1px solid rgba(255,255,255,0.05); position: relative; overflow: hidden; }
.ai-container { background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 24px; padding: 40px; max-width: 900px; margin: 0 auto; position: relative; z-index: 2; backdrop-filter: blur(10px); box-shadow: 0 20px 50px rgba(0,0,0,0.3); }
.ai-glow { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 600px; height: 600px; background: radial-gradient(circle, rgba(124, 58, 237, 0.15) 0%, transparent 70%); z-index: 1; pointer-events: none; }
        .ai-header { text-align: center; margin-bottom: 40px; }
.ai-badge { background: linear-gradient(90deg, #7c3aed, #db2777); color: white; padding: 6px 12px; border-radius: 50px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 15px; display: inline-block; }
        .ai-title { font-size: 32px; font-weight: 800; margin-bottom: 10px; color: #fff; }
        .ai-desc { color: #aaa; font-size: 16px; }
.ai-form { display: grid; grid-template-columns: 1fr 1fr auto; gap: 20px; align-items: end; }
.ai-input-group label { display: block; color: #ccc; font-size: 14px; margin-bottom: 8px; font-weight: 500; }
.ai-select { width: 100%; background: #000; border: 1px solid #333; color: #fff; padding: 16px; border-radius: 12px; font-size: 16px; appearance: none; cursor: pointer; transition: 0.3s; }
        .ai-select:focus { border-color: #7c3aed; outline: none; box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.2); }
.ai-btn { background: linear-gradient(90deg, #7c3aed, #db2777); color: white; border: none; padding: 16px 32px; border-radius: 12px; font-weight: 700; font-size: 16px; cursor: pointer; transition: 0.3s; display: flex; align-items: center; gap: 8px; white-space: nowrap; }
        .ai-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 20px rgba(219, 39, 119, 0.3); }
        .ai-btn:disabled { opacity: 0.7; cursor: not-allowed; transform: none; }
.ai-result { margin-top: 40px; background: rgba(0,0,0,0.4); border-radius: 16px; padding: 24px; display: none; grid-template-columns: 100px 1fr; gap: 24px; align-items: center; border: 1px solid rgba(124, 58, 237, 0.3); animation: fadeIn 0.5s ease-out; }
.ai-poster { width: 100px; height: 150px; object-fit: cover; border-radius: 8px; box-shadow: 0 5px 15px rgba(0,0,0,0.5); }
        .ai-suggestion-text { font-size: 18px; color: #fff; margin-bottom: 8px; font-weight: 600; }
        .ai-reason { color: #aaa; font-size: 14px; margin-bottom: 16px; line-height: 1.5; }
.ai-action-btn { background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); color: #fff; padding: 10px 20px; border-radius: 8px; font-size: 14px; font-weight: 600; cursor: pointer; transition: 0.2s; display: inline-flex; align-items: center; gap: 6px; }
        .ai-action-btn:hover { background: #fff; color: #000; }

.chat-widget { position: fixed; bottom: 30px; right: 30px; z-index: 1000; display: flex; flex-direction: column; align-items: flex-end; }
.chat-toggle { background: linear-gradient(135deg, #7c3aed, #db2777); color: white; border: none; width: 60px; height: 60px; border-radius: 50%; font-size: 24px; cursor: pointer; box-shadow: 0 4px 15px rgba(0,0,0,0.3); transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); display: flex; align-items: center; justify-content: center; }
        .chat-toggle:hover { transform: scale(1.1); }
.chat-window { background: rgba(20, 20, 22, 0.95); backdrop-filter: blur(15px); border: 1px solid rgba(255,255,255,0.1); width: 350px; height: 500px; border-radius: 20px; margin-bottom: 20px; display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 10px 40px rgba(0,0,0,0.5); transform-origin: bottom right; transition: all 0.3s ease; opacity: 0; transform: scale(0.9); pointer-events: none; position: absolute; bottom: 70px; right: 0; }
.chat-window.open { opacity: 1; transform: scale(1); pointer-events: all; }
.chat-header { background: linear-gradient(90deg, #7c3aed, #db2777); padding: 15px; color: white; font-weight: 700; display: flex; justify-content: space-between; align-items: center; }
.chat-body { flex: 1; padding: 15px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; }
.chat-message { max-width: 80%; padding: 10px 14px; border-radius: 12px; font-size: 14px; line-height: 1.4; }
.chat-message.bot { background: rgba(255,255,255,0.1); color: #ddd; align-self: flex-start; border-bottom-left-radius: 2px; }
.chat-message.user { background: #7c3aed; color: white; align-self: flex-end; border-bottom-right-radius: 2px; }
.chat-footer { padding: 15px; border-top: 1px solid rgba(255,255,255,0.1); display: flex; gap: 10px; }
.chat-input { flex: 1; background: rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.2); border-radius: 20px; padding: 10px 15px; color: white; font-family: inherit; }
        .chat-input:focus { outline: none; border-color: #7c3aed; }
.chat-send { background: transparent; border: none; color: #7c3aed; cursor: pointer; font-weight: 700; }

.fav-btn { position: absolute; top: 10px; left: 10px; z-index: 10; background: rgba(0, 0, 0, 0.6); border: 1px solid rgba(255, 255, 255, 0.2); color: #ccc; width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.2s; backdrop-filter: blur(4px); }
.fav-btn:hover { transform: scale(1.1); background: rgba(0, 0, 0, 0.8); color: white; }
.fav-btn.active { background: rgba(229, 9, 20, 0.9); color: white; border-color: #e50914; }
        .fav-btn svg { width: 18px; height: 18px; fill: currentColor; }

.hero-search-wrapper { position: relative; max-width: 500px; margin: 30px auto 40px; z-index: 20; transition: max-width 0.4s cubic-bezier(0.25, 0.8, 0.25, 1); }
.hero-search-wrapper:focus-within { max-width: 700px; }
.hero-search-input { width: 100%; height: 64px; background: rgba(25, 25, 28, 0.8); backdrop-filter: blur(16px); border: 1px solid rgba(255,255,255,0.15); border-radius: 32px; padding: 0 30px 0 60px; font-size: 18px; color: white; transition: all 0.3s ease; box-shadow: 0 10px 30px rgba(0,0,0,0.3); }
[data-theme="light"] .hero-search-input { background: rgba(255, 255, 255, 0.9); border-color: #ddd; color: #333; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.hero-search-input:focus { background: rgba(30, 30, 35, 0.95); border-color: #e50914; outline: none; box-shadow: 0 15px 40px rgba(229, 9, 20, 0.15); }
[data-theme="light"] .hero-search-input:focus { background: #fff; border-color: #e50914; }
.search-icon-large { position: absolute; left: 24px; top: 50%; transform: translateY(-50%); color: rgba(255,255,255,0.5); pointer-events: none; transition: color 0.3s; }
        [data-theme="light"] .search-icon-large { color: #888; }
.hero-search-input:focus + .search-icon-large, .hero-search-wrapper:focus-within .search-icon-large { color: #e50914; }
.hero-search-results { position: absolute; top: 75px; left: 0; right: 0; background: #18181b; border: 1px solid rgba(255,255,255,0.1); border-radius: 16px; overflow: hidden; display: none; box-shadow: 0 20px 50px rgba(0,0,0,0.5); max-height: 400px; overflow-y: auto; z-index: 100; }
[data-theme="light"] .hero-search-results { background: #fff; border-color: #eee; box-shadow: 0 20px 50px rgba(0,0,0,0.15); }
.search-result-item { padding: 15px 20px; display: flex; align-items: center; gap: 15px; border-bottom: 1px solid rgba(255,255,255,0.05); cursor: pointer; transition: 0.2s; }
        [data-theme="light"] .search-result-item { border-bottom-color: #eee; }
        .search-result-item:last-child { border-bottom: none; }
        .search-result-item:hover { background: rgba(255,255,255,0.05); }
        [data-theme="light"] .search-result-item:hover { background: #f8f9fa; }
.search-thumb { width: 40px; height: 60px; object-fit: cover; border-radius: 4px; }
        .search-info h4 { margin: 0; font-size: 16px; color: white; }
        [data-theme="light"] .search-info h4 { color: #333; }
        .search-info p { margin: 4px 0 0; font-size: 13px; color: #888; }

.hamburger-btn { display: none; background: linear-gradient(135deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.02) 100%); border: 1px solid rgba(255,255,255,0.12); border-radius: 12px; width: 48px; height: 48px; cursor: pointer; z-index: 200; padding: 0; align-items: center; justify-content: center; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); position: relative; overflow: hidden; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 4px 15px rgba(0,0,0,0.2); }
.hamburger-btn::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at center, rgba(229, 9, 20, 0.15) 0%, transparent 70%); opacity: 0; transition: opacity 0.3s ease; }
.hamburger-btn:hover { background: linear-gradient(135deg, rgba(255,255,255,0.12) 0%, rgba(255,255,255,0.05) 100%); border-color: rgba(255,255,255,0.25); transform: scale(1.05); box-shadow: 0 6px 20px rgba(0,0,0,0.3); }
.hamburger-btn:hover::before { opacity: 1; }
.hamburger-btn:active { transform: scale(0.95); }
.hamburger-box { width: 22px; height: 16px; display: flex; flex-direction: column; justify-content: space-between; position: relative; }
.hamburger-line { display: block; width: 100%; height: 2px; background: linear-gradient(90deg, #fff 0%, rgba(255,255,255,0.8) 100%); border-radius: 2px; transition: all 0.3s cubic-bezier(0.68, -0.6, 0.32, 1.6); transform-origin: center; }
.hamburger-line:nth-child(1) { width: 100%; }
.hamburger-line:nth-child(2) { width: 70%; margin-left: auto; }
.hamburger-line:nth-child(3) { width: 85%; }
.hamburger-btn:hover .hamburger-line:nth-child(1) { width: 85%; }
.hamburger-btn:hover .hamburger-line:nth-child(2) { width: 100%; }
.hamburger-btn:hover .hamburger-line:nth-child(3) { width: 70%; }
.hamburger-btn.active { position: fixed; top: 24px; right: 24px; background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%); border-color: var(--accent); box-shadow: 0 6px 25px rgba(229, 9, 20, 0.4); z-index: 250; }
.hamburger-btn.active .hamburger-line { background: #fff; }
.hamburger-btn.active .hamburger-line:nth-child(1) { width: 100%; transform: translateY(7px) rotate(45deg); }
.hamburger-btn.active .hamburger-line:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger-btn.active .hamburger-line:nth-child(3) { width: 100%; transform: translateY(-7px) rotate(-45deg); }

.mobile-nav-panel { position: fixed; top: 0; right: -100%; width: 300px; height: 100vh; background: linear-gradient(180deg, rgba(18, 18, 20, 0.98) 0%, rgba(11, 11, 12, 0.99) 100%); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); z-index: 199; padding: 100px 24px 40px; transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1); box-shadow: -20px 0 60px rgba(0,0,0,0.8); display: flex; flex-direction: column; gap: 12px; border-left: 1px solid rgba(255,255,255,0.08); overflow-y: auto; }
.mobile-nav-panel::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 200px; background: radial-gradient(ellipse at top right, rgba(229, 9, 20, 0.15) 0%, transparent 70%); pointer-events: none; }
.mobile-nav-panel.open { right: 0; }
.mobile-nav-panel.open .mobile-link { opacity: 1; transform: translateX(0); }
.mobile-nav-header { margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid rgba(255,255,255,0.08); position: relative; }
.mobile-nav-brand { font-size: 24px; font-weight: 800; letter-spacing: -0.5px; }
.mobile-nav-brand .brand-accent { color: var(--accent); }
.mobile-nav-tagline { font-size: 12px; color: #666; margin-top: 4px; letter-spacing: 1px; text-transform: uppercase; }
.mobile-link { display: flex; align-items: center; padding: 16px 18px; background: linear-gradient(135deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.01) 100%); border: 1px solid rgba(255,255,255,0.06); border-radius: 14px; color: #e0e0e0; text-decoration: none; font-weight: 600; font-size: 15px; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); position: relative; overflow: hidden; opacity: 0; transform: translateX(30px); }
.mobile-link:nth-child(2) { transition-delay: 0.05s; }
.mobile-link:nth-child(3) { transition-delay: 0.1s; }
.mobile-link:nth-child(4) { transition-delay: 0.15s; }
.mobile-link:nth-child(5) { transition-delay: 0.2s; }
.mobile-link:nth-child(6) { transition-delay: 0.25s; }
.mobile-link:nth-child(7) { transition-delay: 0.3s; }
.mobile-link:nth-child(8) { transition-delay: 0.35s; }
.mobile-link::before { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(229, 9, 20, 0.2) 0%, rgba(225, 29, 72, 0.1) 100%); opacity: 0; transition: opacity 0.3s ease; }
.mobile-link::after { content: ''; position: absolute; right: 18px; top: 50%; transform: translateY(-50%) translateX(-5px); width: 6px; height: 6px; border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: translateY(-50%) rotate(45deg); opacity: 0; transition: all 0.3s ease; }
.mobile-link:hover, .mobile-link:active { background: linear-gradient(135deg, rgba(229, 9, 20, 0.15) 0%, rgba(225, 29, 72, 0.08) 100%); border-color: rgba(229, 9, 20, 0.4); color: #fff; transform: translateX(4px); box-shadow: 0 4px 20px rgba(229, 9, 20, 0.15); }
.mobile-link:hover::before { opacity: 1; }
.mobile-link:hover::after { opacity: 0.7; transform: translateY(-50%) translateX(0) rotate(45deg); }
.mobile-link-icon { display: none; }
.mobile-link-text { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.mobile-link-title { font-size: 15px; font-weight: 600; }
.mobile-link-subtitle { font-size: 11px; color: #666; font-weight: 400; }
.mobile-nav-footer { margin-top: auto; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.08); }
.mobile-nav-footer p { font-size: 11px; color: #555; text-align: center; }
.mobile-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.75); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); z-index: 198; opacity: 0; visibility: hidden; transition: 0.3s ease; }
.mobile-overlay.active { opacity: 1; visibility: visible; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 1024px) {
  .container { padding-inline: 20px; }
  .site-header { width: calc(100% - 24px); margin: 12px auto 0; border-radius: 20px; }
  .header-inner { gap: 12px; }
  .search { width: 250px; }
  .nav-list a { padding: 8px 10px; font-size: 13px; }
  .route-title { font-size: clamp(20px, 3.5vw, 40px); margin-bottom: 60px; }
  .chip-row { margin: 0 40px; }
  .chip-card { flex: 0 0 160px; height: 230px; }
  .tiles-grid { gap: 20px; }
  .footer-grid { grid-template-columns: 1.2fr 1fr; gap: 30px; }
}

@media (max-width: 968px) {
  .contact-wrapper { grid-template-columns: 1fr; gap: 60px; }
  .contact-title { font-size: 36px; }
  .contact-bg-glow { width: 100%; opacity: 0.5; }
}

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr; gap: 30px; text-align: center; }
  .footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 20px; }
  .footer-brand { text-align: center; }
}

@media (max-width: 768px) {
  :root { --header-height: 64px; }
  .container { padding-inline: 16px; }
  .site-header { width: calc(100% - 16px); margin: 8px auto 0; border-radius: 16px; height: var(--header-height); top: 8px; }
  .header-inner { grid-template-columns: 1fr auto auto; gap: 8px; }
  .brand { font-size: 18px; }
  .desktop-nav { display: none !important; }
  .search { display: none; }
  .nav-toggle { display: flex; margin-left: auto; }
  .profile { margin-left: 0 !important; }
  .avatar-label { display: none; }
  .hamburger-btn { display: flex !important; }
  .hamburger-btn.active { top: 20px; right: 20px; }
  .route-hero { padding: 160px 0 40px; }
  .route-title { font-size: clamp(18px, 5vw, 28px); margin-bottom: 40px; padding: 0 10px; line-height: 1.3; }
  .chip-row { margin: 0; padding: 15px 16px 30px; gap: 12px; mask-image: none; -webkit-mask-image: none; }
  .chip-card { flex: 0 0 140px; height: 200px; border-radius: 12px; }
  .chip-card span { padding: 15px 10px; font-size: 13px; }
  .scroll-btn { display: none; }
  .hero { padding: 60px 0 50px; }
  .hero-title { font-size: clamp(28px, 7vw, 36px); margin-bottom: 20px; }
  .tiles-grid { grid-template-columns: 1fr; gap: 16px; margin-top: 32px; }
  .tile { padding: 20px; }
  .tile-title { font-size: 24px; }
  .tile-sub { font-size: 12px; }
  .tile-desc { font-size: 13px; }
  .faq { padding: 50px 0; }
  .section-title { font-size: 26px; margin-bottom: 30px !important; }
  .accordion-btn { padding: 16px; font-size: 14px; }
  .accordion-panel { font-size: 14px; }
  .accordion-panel p { margin: 0 16px 16px; }
  .site-footer { padding-top: 40px; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; text-align: center; }
  .footer-brand p { font-size: 13px; }
  .footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 16px; }
  .footer-bottom { padding: 20px 0; }
  .copyright { font-size: 12px; }
  .map-embed { aspect-ratio: 16/9; }
  .hero-search-wrapper { max-width: 100%; margin: 20px 16px 30px; }
  .hero-search-wrapper:focus-within { max-width: 100%; margin-left: 16px; margin-right: 16px; }
  .hero-search-input { height: 56px; font-size: 16px; padding: 0 20px 0 50px; }
  .search-icon-large { left: 18px; }
  .hero-search-results { top: 65px; max-height: 300px; border-radius: 12px; }
  .search-result-item { padding: 12px 16px; gap: 12px; }
  .search-thumb { width: 35px; height: 50px; }
  .search-info h4 { font-size: 14px; }
  .search-info p { font-size: 12px; }
  .ai-form { grid-template-columns: 1fr; }
  .ai-result { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .chat-window { width: 90vw; height: 60vh; right: -20px; }
}

@media (max-width: 600px) {
  .form-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .container { padding-inline: 12px; }
  .site-header { width: calc(100% - 12px); margin: 6px auto 0; border-radius: 14px; height: 60px; }
  .brand { font-size: 16px; }
  .route-hero { padding: 140px 0 30px; }
  .route-title { font-size: clamp(16px, 5vw, 24px); margin-bottom: 30px; }
  .chip-row { gap: 10px; padding: 10px 12px 25px; }
  .chip-card { flex: 0 0 120px; height: 170px; border-radius: 10px; }
  .chip-card span { padding: 12px 8px; font-size: 11px; font-weight: 600; }
  .hero { padding: 40px 0; }
  .hero-title { font-size: clamp(24px, 6vw, 32px); }
  .tiles-grid { gap: 12px; margin-top: 24px; }
  .tile { padding: 16px; border-radius: 12px; }
  .tile-title { font-size: 20px; }
  .tile-desc { font-size: 12px; }
  .faq { padding: 40px 0; }
  .section-title { font-size: 22px; }
  .accordion-item { border-radius: 10px; margin-bottom: 10px; }
  .accordion-btn { padding: 14px; font-size: 13px; }
  .accordion-panel p { margin: 0 14px 14px; font-size: 13px; }
  .footer-grid { gap: 24px; }
  .footer-brand p { font-size: 12px; line-height: 1.5; }
  .footer-links { gap: 6px 12px; font-size: 13px; }
  .mobile-nav-panel { width: 280px; padding: 85px 18px 30px; }
  .mobile-nav-header { margin-bottom: 16px; padding-bottom: 16px; }
  .mobile-nav-brand { font-size: 20px; }
  .mobile-nav-tagline { font-size: 10px; }
  .mobile-link { padding: 14px 16px; }
  .mobile-link-title { font-size: 14px; }
  .mobile-link-subtitle { font-size: 10px; }
  .mobile-nav-footer { padding-top: 20px; }
  .mobile-nav-footer p { font-size: 10px; }
  .avatar-btn { height: 36px; padding: 0 4px 0 0; }
  .avatar { width: 28px; height: 28px; font-size: 14px; }
  .profile-menu { width: 180px; right: -10px; }
  .hamburger-btn { width: 44px; height: 44px; border-radius: 10px; }
  .hamburger-btn.active { top: 18px; right: 18px; }
  .hamburger-box { width: 20px; height: 14px; }
  .hamburger-btn.active .hamburger-line:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .hamburger-btn.active .hamburger-line:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
}

@media (max-width: 360px) {
  .brand { font-size: 14px; }
  .chip-card { flex: 0 0 100px; height: 150px; }
  .chip-card span { font-size: 10px; padding: 10px 6px; }
  .hero-title { font-size: 22px; }
  .tile-title { font-size: 18px; }
  .section-title { font-size: 20px; }
  .hamburger-btn { width: 40px; height: 40px; border-radius: 8px; }
  .hamburger-btn.active { top: 14px; right: 14px; }
  .hamburger-box { width: 18px; height: 12px; }
  .hamburger-btn.active .hamburger-line:nth-child(1) { transform: translateY(5px) rotate(45deg); }
  .hamburger-btn.active .hamburger-line:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }
  .mobile-nav-panel { width: 260px; padding: 80px 14px 24px; }
  .mobile-link { padding: 12px 14px; }
  .mobile-link-title { font-size: 13px; }
  .mobile-link-subtitle { font-size: 9px; }
}

@media (max-width: 768px) and (orientation: landscape) {
  .route-hero { padding: 120px 0 30px; }
  .chip-card { flex: 0 0 130px; height: 180px; }
  .hero { padding: 40px 0; }
  .tiles-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}

@media (hover: none) and (pointer: coarse) {
  .chip-card:hover { transform: none; }
  .tile:hover { transform: none; }
  .chip-card:active { transform: scale(0.98); }
  .tile:active { transform: scale(0.98); }
}
