/* ==========================================================================
   MyFly theme — main stylesheet
   ========================================================================== */

/* ---------- fonts (self-hosted, Noto Sans Georgian, OFL) ---------- */
@font-face { font-family: "MF Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/noto-sans-georgian-georgian-400-normal.woff2) format("woff2"); unicode-range: U+0589, U+10A0-10FF, U+1C90-1CBA, U+1CBD-1CBF, U+205A, U+2D00-2D2F, U+2E31; }
@font-face { font-family: "MF Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/noto-sans-georgian-georgian-600-normal.woff2) format("woff2"); unicode-range: U+0589, U+10A0-10FF, U+1C90-1CBA, U+1CBD-1CBF, U+205A, U+2D00-2D2F, U+2E31; }
@font-face { font-family: "MF Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url(../fonts/noto-sans-georgian-georgian-700-normal.woff2) format("woff2"); unicode-range: U+0589, U+10A0-10FF, U+1C90-1CBA, U+1CBD-1CBF, U+205A, U+2D00-2D2F, U+2E31; }
@font-face { font-family: "MF Sans"; font-style: normal; font-weight: 800; font-display: swap; src: url(../fonts/noto-sans-georgian-georgian-800-normal.woff2) format("woff2"); unicode-range: U+0589, U+10A0-10FF, U+1C90-1CBA, U+1CBD-1CBF, U+205A, U+2D00-2D2F, U+2E31; }
@font-face { font-family: "MF Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/noto-sans-georgian-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+20BE, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "MF Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/noto-sans-georgian-latin-600-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+20BE, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "MF Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url(../fonts/noto-sans-georgian-latin-700-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+20BE, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "MF Sans"; font-style: normal; font-weight: 800; font-display: swap; src: url(../fonts/noto-sans-georgian-latin-800-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+20BE, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ---------- tokens ---------- */
:root {
	--mf-primary: #6a1b9a;
	--mf-primary-2: #8e2bc4;
	--mf-dark: #3b0a57;
	--mf-deep: #1e1530;
	--mf-accent: #e91e78;
	--mf-accent-text: #b0125b;
	--mf-green: #1f8a5b;
	--mf-text: #1e1530;
	--mf-muted: #5e5470;
	--mf-line: #e9e2f0;
	--mf-bg: #f7f5fa;
	--mf-tint: #efe6f8;
	--mf-card: #ffffff;
	--mf-radius: 16px;
	--mf-radius-sm: 10px;
	--mf-shadow: 0 10px 30px rgba(59, 10, 87, .10);
	--mf-font: "MF Sans", "Noto Sans Georgian", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--mf-wrap: 1200px;
	--mf-header-h: 72px;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--mf-header-h) + 12px); }
body { margin: 0; font-family: var(--mf-font); font-size: 16px; line-height: 1.6; color: var(--mf-text); background: var(--mf-bg); -webkit-font-smoothing: antialiased; }
img, svg, video { max-width: 100%; height: auto; }
a { color: var(--mf-primary); text-underline-offset: 3px; }
a:hover { color: var(--mf-dark); }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 3px solid var(--mf-accent); outline-offset: 2px; border-radius: 4px; }
.mf-i { flex: none; vertical-align: middle; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.mf-skip { position: absolute; left: 12px; top: -60px; z-index: 1000; background: #fff; color: var(--mf-text); padding: 10px 16px; border-radius: 8px; font-weight: 700; }
.mf-skip:focus { top: 12px; }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

.mf-wrap { width: 100%; max-width: var(--mf-wrap); margin: 0 auto; padding: 0 20px; }
.mf-narrow { max-width: 780px; margin-left: auto; margin-right: auto; }
.mf-section { padding-top: 56px; padding-bottom: 8px; }
.mf-section-tint { background: var(--mf-tint); padding-bottom: 56px; margin-top: 56px; }
.mf-muted { color: var(--mf-muted); font-size: 14px; }
.mf-admin-hint { margin-top: 24px; padding: 14px 18px; border: 2px dashed #c9a8e0; border-radius: 12px; color: var(--mf-muted); font-size: 14px; background: #fff; }

/* headings */
.mf-h1 { margin: 0 0 10px; font-size: clamp(28px, 4vw, 44px); line-height: 1.2; font-weight: 800; }
.mf-h2 { margin: 0; font-size: clamp(24px, 3vw, 32px); line-height: 1.25; font-weight: 800; }
.mf-h3 { margin: 0; font-size: 22px; line-height: 1.3; font-weight: 800; }
.mf-lead { margin: 6px 0 0; color: var(--mf-muted); font-size: 16px; }
.mf-sec-head { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: flex-end; justify-content: space-between; margin-bottom: 24px; }
.mf-more { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.mf-more:hover .mf-i { transform: translateX(3px); }
.mf-more .mf-i { transition: transform .2s; }

/* buttons */
.mf-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border: 0; border-radius: var(--mf-radius-sm); background: var(--mf-accent); color: #fff !important; font-weight: 700; font-size: 16px; text-decoration: none; cursor: pointer; transition: filter .15s, transform .15s; }
.mf-btn:hover { filter: brightness(.92); }
.mf-btn:active { transform: translateY(1px); }
.mf-btn-sm { min-height: 42px; padding: 0 16px; font-size: 15px; }
.mf-btn-light { background: #fff; color: var(--mf-primary) !important; }
.mf-icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; border-radius: 12px; background: transparent; color: inherit; cursor: pointer; }
.mf-icon-btn:hover { background: var(--mf-tint); }

/* cards */
.mf-card { background: var(--mf-card); border: 1px solid var(--mf-line); border-radius: var(--mf-radius); }

/* ---------- topbar & header ---------- */
.mf-topbar { background: var(--mf-dark); color: #f3e8fa; font-size: 13px; }
.mf-topbar-in { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; justify-content: space-between; min-height: 40px; }
.mf-topbar a { color: #f3e8fa; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.mf-topbar a:hover { color: #fff; }
.mf-topbar-contacts { display: flex; flex-wrap: wrap; gap: 18px; }
.mf-topbar-cta { font-weight: 700; color: #fff !important; }

.mf-header { position: sticky; top: 0; z-index: 100; background: rgba(255, 255, 255, .94); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--mf-line); transition: box-shadow .2s; }
.admin-bar .mf-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .mf-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .mf-header { top: 0; } }
.mf-header.is-scrolled { box-shadow: 0 6px 20px rgba(30, 21, 48, .08); }
.mf-header-in { display: flex; align-items: center; gap: 16px; min-height: var(--mf-header-h); }
.mf-logo { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--mf-primary) !important; font-weight: 800; font-size: 24px; letter-spacing: .5px; }
.mf-logo .mf-i { color: var(--mf-accent); }
.custom-logo-link img { max-height: 48px; width: auto; display: block; }
.mf-burger { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; border: 0; background: transparent; color: var(--mf-text); border-radius: 12px; cursor: pointer; }

.mf-nav { margin-left: auto; }
.mf-menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.mf-menu > li { position: relative; }
.mf-menu a { display: block; padding: 10px 12px; border-radius: 10px; color: var(--mf-text); font-weight: 600; font-size: 15px; text-decoration: none; }
.mf-menu a:hover, .mf-menu .current-menu-item > a, .mf-menu .current-menu-ancestor > a { color: var(--mf-primary); background: var(--mf-tint); }
.mf-menu .sub-menu { list-style: none; position: absolute; top: 100%; left: 0; min-width: 240px; margin: 0; padding: 8px; background: #fff; border: 1px solid var(--mf-line); border-radius: 14px; box-shadow: var(--mf-shadow); opacity: 0; visibility: hidden; transform: translateY(6px); transition: .15s; z-index: 10; }
.mf-menu li:hover > .sub-menu, .mf-menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.mf-menu .menu-item-has-children > a::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-3px); }

.mf-header-tools { display: flex; align-items: center; gap: 10px; }
.mf-langs { list-style: none; display: flex; gap: 2px; margin: 0; padding: 0; }
.mf-langs a { display: block; padding: 6px 9px; border-radius: 8px; text-decoration: none; font-size: 13px; font-weight: 700; color: var(--mf-muted); }
.mf-langs a:hover { color: var(--mf-primary); }
.mf-langs .is-current a { color: var(--mf-primary); background: var(--mf-tint); }
.mf-langs-drawer { flex-wrap: wrap; gap: 6px; }
.mf-langs-drawer a { padding: 8px 14px; border: 1px solid var(--mf-line); border-radius: 999px; font-size: 15px; }
.mf-langs-footer a { color: #cfc6db; }
.mf-langs-footer .is-current a { background: rgba(255, 255, 255, .1); color: #fff; }
.mf-header.is-static { position: relative; }

@media (max-width: 1024px) {
	.mf-nav, .mf-langs-header { display: none; }
	.mf-burger { display: inline-flex; }
	.mf-header-in { gap: 8px; }
	.mf-header-tools { margin-left: auto; }
}
@media (max-width: 560px) {
	.mf-topbar { display: none; }
	.mf-header-cta span { display: none; }
	.mf-header-cta { width: 44px; padding: 0; }
	.mf-logo { font-size: 20px; }
}

/* drawer */
.mf-drawer { position: fixed; inset: 0; z-index: 200; }
.mf-drawer[hidden] { display: none; }
.mf-drawer-backdrop { position: absolute; inset: 0; background: rgba(30, 21, 48, .5); animation: mf-fade .2s; }
.mf-drawer-panel { position: absolute; top: 0; left: 0; bottom: 0; width: min(360px, 88vw); background: #fff; padding: 16px 18px 28px; overflow-y: auto; display: flex; flex-direction: column; gap: 16px; animation: mf-slide .25s ease-out; }
.mf-drawer-head { display: flex; align-items: center; justify-content: space-between; }
.mf-drawer-menu, .mf-drawer-lang { list-style: none; margin: 0; padding: 0; }
.mf-drawer-menu a { display: block; padding: 14px 6px; border-bottom: 1px solid var(--mf-line); color: var(--mf-text); font-weight: 700; text-decoration: none; font-size: 17px; }
.mf-drawer-menu .sub-menu { list-style: none; padding: 0 0 0 14px; }
.mf-drawer-menu .sub-menu a { font-weight: 500; font-size: 16px; }
.mf-drawer-lang { display: flex; gap: 6px; flex-wrap: wrap; }
.mf-drawer-lang a { display: block; padding: 8px 12px; border: 1px solid var(--mf-line); border-radius: 999px; text-decoration: none; font-weight: 600; }
.mf-drawer-contacts { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }
.mf-drawer-contacts a { display: inline-flex; align-items: center; gap: 10px; color: var(--mf-text); text-decoration: none; font-weight: 600; }
@keyframes mf-fade { from { opacity: 0; } }
@keyframes mf-slide { from { transform: translateX(-100%); } }
body.mf-lock { overflow: hidden; }

/* ---------- hero & search ---------- */
.mf-hero { position: relative; overflow: hidden; background: var(--mf-dark); color: #fff; padding: 56px 0 64px; isolation: isolate; }
.mf-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(rgba(255, 255, 255, .09) 1.2px, transparent 1.2px); background-size: 18px 18px; mask-image: linear-gradient(100deg, transparent 20%, #000 75%); -webkit-mask-image: linear-gradient(100deg, transparent 20%, #000 75%); }
.mf-hero-art { position: absolute; z-index: -1; right: -40px; top: 0; width: min(720px, 70%); height: auto; color: #fff; pointer-events: none; }
.mf-hero-route { fill: none; stroke: rgba(255, 255, 255, .45); stroke-width: 2; stroke-dasharray: 6 8; animation: mf-dash 30s linear infinite; }
.mf-hero-route-2 { stroke: rgba(233, 30, 120, .55); }
.mf-hero-city { fill: var(--mf-accent); stroke: #fff; stroke-width: 2; }
.mf-hero-city-sm { fill: #fff; }
.mf-hero-plane { color: #fff; }
@keyframes mf-dash { to { stroke-dashoffset: -400; } }
@media (max-width: 720px) {
	.mf-hero { padding: 26px 0 32px; }
	.mf-hero-in { gap: 16px; }
	.mf-hero-title { font-size: 27px; margin-bottom: 8px; }
	.mf-hero-text { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
	.mf-trust { gap: 6px 16px; font-size: 13px; }
	.mf-hero-art { width: 120%; right: -30%; top: auto; bottom: -40px; opacity: .35; }
	.mf-hero-text { font-size: 16px; }
}

.mf-hero-in { display: flex; flex-direction: column; gap: 24px; }
.mf-hero-copy { max-width: 760px; }
.mf-hero-title { margin: 0 0 12px; font-size: clamp(30px, 4.6vw, 48px); line-height: 1.15; font-weight: 800; color: #fff; }
.mf-hero-text { margin: 0; font-size: 18px; color: #e4d3f0; max-width: 640px; }

.mf-search-box { position: relative; }
.mf-search-tabs { display: flex; gap: 6px; margin-bottom: 14px; overflow-x: auto; scrollbar-width: none; }
.mf-search-tabs::-webkit-scrollbar { display: none; }
.mf-search-tab { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 1px solid rgba(255, 255, 255, .22); border-radius: 999px; background: rgba(255, 255, 255, .08); color: #fff; font-weight: 700; font-size: 15px; cursor: pointer; white-space: nowrap; transition: background .15s; }
.mf-search-tab:hover { background: rgba(255, 255, 255, .16); }
.mf-search-tab[aria-selected="true"] { background: #fff; color: var(--mf-primary); border-color: #fff; }
.mf-search-panel[hidden] { display: none; }

/* White Label search (its inner styles are adjusted from main.js inside the widget's shadow DOM) */
.mf-wl-search { min-height: 112px; }
.mf-wl-skeleton { display: grid; grid-template-columns: 2fr 2fr 1.2fr 1fr; gap: 10px; padding-top: 34px; }
.mf-wl-skeleton span { height: 62px; border-radius: 12px; background: linear-gradient(90deg, rgba(255,255,255,.85) 25%, #fff 50%, rgba(255,255,255,.85) 75%); background-size: 200% 100%; animation: mf-shimmer 1.4s infinite; }
.mf-wl-skeleton span:last-child { background: var(--mf-accent); opacity: .85; }
.mf-wl-search.is-ready .mf-wl-skeleton { display: none; }
@keyframes mf-shimmer { to { background-position: -200% 0; } }
@media (max-width: 720px) { .mf-wl-skeleton { grid-template-columns: 1fr; } .mf-wl-skeleton span:nth-child(n+3) { display: none; } }

.mf-search-partner { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; padding: 20px; background: #fff; color: var(--mf-text); border-radius: 18px; box-shadow: 0 20px 50px rgba(0, 0, 0, .25); }
.mf-search-partner p { margin: 0; flex: 1 1 280px; color: var(--mf-muted); }
.mf-search-partner-ic { display: inline-flex; width: 56px; height: 56px; align-items: center; justify-content: center; border-radius: 14px; background: var(--mf-tint); color: var(--mf-primary); }

.mf-trust { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 26px; font-size: 14px; color: #e4d3f0; }
.mf-trust li { display: inline-flex; align-items: center; gap: 6px; }
.mf-trust .mf-i { color: #6be0a6; }

.mf-results { background: var(--mf-bg); }
.mf-results #tpwl-tickets:not(:empty) { padding: 28px 0 8px; }

/* ---------- route map ---------- */
.mf-map { position: relative; background: #fff; border: 1px solid var(--mf-line); border-radius: 20px; padding: 16px; overflow: hidden; }
.mf-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.mf-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border: 1px solid var(--mf-line); border-radius: 999px; background: #fff; color: var(--mf-text); font-weight: 700; font-size: 14px; cursor: pointer; }
.mf-chip[aria-pressed="true"] { background: var(--mf-deep); border-color: var(--mf-deep); color: #fff; }
.mf-chip-dot { width: 10px; height: 10px; border-radius: 50%; }
.mf-map-svg { display: block; width: 100%; max-width: none; height: auto; }
.mf-map-dot { fill: #e3d6ee; }
.mf-arc { stroke-width: 2.2; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; opacity: .75; transition: opacity .2s, stroke-width .2s; }
.mf-map.is-visible .mf-arc { animation: mf-draw 1.4s ease-out forwards; }
@keyframes mf-draw { to { stroke-dashoffset: 0; } }
.mf-arc.is-dim { opacity: .08; }
.mf-arc.is-hot { opacity: 1; stroke-width: 3.5; }
.mf-city { cursor: pointer; }
.mf-city-hit { fill: transparent; }
.mf-city-dot { fill: #fff; stroke: var(--mf-deep); stroke-width: 2.2; transition: r .2s; }
.mf-city-label { font-size: 15px; font-weight: 700; fill: var(--mf-text); paint-order: stroke; stroke: #fff; stroke-width: 4px; stroke-linejoin: round; }
.mf-city-price { fill: var(--mf-green); font-weight: 800; font-size: 13px; }
.mf-city:hover .mf-city-dot, .mf-city:focus .mf-city-dot, .mf-city.is-hot .mf-city-dot { fill: var(--mf-accent); stroke: var(--mf-accent); }
.mf-city.is-dim { opacity: .25; }
.mf-city:focus { outline: none; }
.mf-city:focus-visible .mf-city-label { fill: var(--mf-accent); text-decoration: underline; }
.mf-origin-label { font-size: 13px; font-weight: 800; fill: var(--mf-dark); letter-spacing: .5px; paint-order: stroke; stroke: #fff; stroke-width: 4px; }
.mf-pulse { transform-box: fill-box; transform-origin: center; animation: mf-pulse 2.4s ease-out infinite; }
@keyframes mf-pulse { 0% { transform: scale(.4); opacity: 1; } 100% { transform: scale(1.8); opacity: 0; } }
@media (max-width: 720px) {
	.mf-map { padding: 10px; margin: 0 -10px; border-radius: 14px; }
	.mf-map-svg { min-width: 640px; }
	.mf-map-scroll { overflow-x: auto; }
	.mf-city-label { font-size: 18px; }
}

/* ---------- calendar + alerts ---------- */
.mf-split { display: flex; flex-wrap: wrap; gap: 24px; align-items: stretch; }
.mf-split-main { flex: 999 1 560px; min-width: 0; padding: 26px; }
.mf-card-head { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: baseline; justify-content: space-between; margin-bottom: 12px; }
.mf-alert-card { flex: 1 1 300px; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; background: var(--mf-primary); color: #fff; border-radius: var(--mf-radius); padding: 28px; position: relative; overflow: hidden; }
.mf-alert-card .mf-h3 { color: #fff; }
.mf-alert-card p { margin: 0; color: #f0e2f8; }
.mf-alert-card .mf-btn { white-space: nowrap; }
.mf-alert-card .mf-admin-hint { color: var(--mf-muted); }
.mf-alert-ic { display: inline-flex; width: 52px; height: 52px; align-items: center; justify-content: center; border-radius: 14px; background: rgba(255, 255, 255, .14); animation: mf-ring 4s ease-in-out infinite; }
@keyframes mf-ring { 0%, 86%, 100% { transform: rotate(0); } 89% { transform: rotate(12deg); } 92% { transform: rotate(-10deg); } 95% { transform: rotate(6deg); } }

/* ---------- services ---------- */
.mf-services { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.mf-service { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 22px; background: #fff; border: 1px solid var(--mf-line); border-radius: var(--mf-radius); text-decoration: none; color: var(--mf-text) !important; transition: transform .2s, box-shadow .2s, border-color .2s; }
.mf-service strong { font-size: 18px; }
.mf-service > span:not(.mf-service-ic):not(.mf-service-go) { color: var(--mf-muted); font-size: 14px; line-height: 1.5; }
.mf-service-ic { display: inline-flex; width: 52px; height: 52px; align-items: center; justify-content: center; border-radius: 14px; background: var(--mf-tint); color: var(--mf-primary); margin-bottom: 4px; transition: background .2s, color .2s; }
.mf-service-go { position: absolute; top: 22px; right: 20px; color: var(--mf-accent-text); opacity: 0; transform: translateX(-6px); transition: .2s; }
.mf-service:hover { transform: translateY(-3px); box-shadow: var(--mf-shadow); border-color: #d9c6ea; }
.mf-service:hover .mf-service-ic { background: var(--mf-primary); color: #fff; }
.mf-service:hover .mf-service-go { opacity: 1; transform: none; }

/* ---------- ideas ---------- */
.mf-ideas { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.mf-idea { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 18px; min-height: 160px; padding: 24px; border-radius: var(--mf-radius); text-decoration: none; color: var(--mf-text) !important; overflow: hidden; transition: transform .2s; }
.mf-idea:hover { transform: translateY(-3px); }
.mf-idea strong { font-size: 22px; line-height: 1.25; max-width: 80%; }
.mf-idea span { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--mf-muted); }
.mf-idea-pink { background: #ffe4f1; }
.mf-idea-green { background: #e2f3ea; }
.mf-idea-violet { background: #ece1f7; }
.mf-idea-sand { background: #fff0db; }
.mf-idea-art { position: absolute; right: 12px; top: 14px; width: 96px; fill: none; stroke: currentColor; stroke-width: 2; stroke-dasharray: 4 5; opacity: .35; }
.mf-idea-art circle { fill: currentColor; stroke: none; }

/* ---------- posts ---------- */
.mf-posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.mf-post { display: flex; flex-direction: column; overflow: hidden; transition: box-shadow .2s, transform .2s; }
.mf-post:hover { box-shadow: var(--mf-shadow); transform: translateY(-2px); }
.mf-post-img { display: block; aspect-ratio: 16 / 10; background: var(--mf-tint); overflow: hidden; }
.mf-post-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.mf-post:hover .mf-post-img img { transform: scale(1.04); }
.mf-post-ph { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; color: #c9a8e0; }
.mf-post-body { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px 20px; }
.mf-post-cat { align-self: flex-start; font-size: 12px; font-weight: 700; color: var(--mf-accent-text); text-decoration: none; text-transform: uppercase; letter-spacing: .4px; }
.mf-post-cat-light { color: #ffc3de; }
.mf-post-title { margin: 0; font-size: 18px; line-height: 1.4; font-weight: 700; }
.mf-post-title a { color: var(--mf-text); text-decoration: none; }
.mf-post-title a:hover { color: var(--mf-primary); }
.mf-post-date { font-size: 13px; color: var(--mf-muted); }

/* ---------- inner pages ---------- */
.mf-page-hero { background: var(--mf-dark); color: #fff; padding: 32px 0 36px; }
.mf-page-hero .mf-h1 { color: #fff; }
.mf-page-hero .mf-lead, .mf-page-hero .mf-post-date { color: #e4d3f0; }
.mf-crumbs { font-size: 13px; margin-bottom: 12px; color: #e4d3f0; }
.mf-crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.mf-crumbs li + li::before { content: "/"; margin-right: 6px; opacity: .6; }
.mf-crumbs a { color: #e4d3f0; }
.mf-single-img { margin: 0 0 28px; border-radius: var(--mf-radius); overflow: hidden; }
.mf-single-img img { display: block; width: 100%; }
.mf-prose { font-size: 17px; line-height: 1.75; }
.mf-prose h2 { font-size: 26px; line-height: 1.3; margin: 1.6em 0 .6em; }
.mf-prose h3 { font-size: 21px; margin: 1.4em 0 .5em; }
.mf-prose img { border-radius: 12px; }
.mf-prose blockquote { margin: 1.5em 0; padding: 4px 20px; border-left: 4px solid var(--mf-accent); color: var(--mf-muted); }
.mf-prose table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; }
.mf-prose th, .mf-prose td { border: 1px solid var(--mf-line); padding: 10px; text-align: left; }
.mf-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.mf-tags a { padding: 6px 12px; border-radius: 999px; background: var(--mf-tint); text-decoration: none; font-size: 14px; font-weight: 600; }
.mf-pagination { margin: 36px 0 12px; }
.mf-pagination .nav-links { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.mf-pagination .page-numbers { display: inline-flex; min-width: 44px; height: 44px; align-items: center; justify-content: center; padding: 0 12px; border-radius: 12px; background: #fff; border: 1px solid var(--mf-line); text-decoration: none; font-weight: 700; color: var(--mf-text); }
.mf-pagination .page-numbers.current { background: var(--mf-primary); color: #fff; border-color: var(--mf-primary); }
.mf-empty-state { text-align: center; padding: 40px 0; }
.mf-searchform { display: flex; gap: 8px; max-width: 520px; margin: 0 auto; }
.mf-searchform input { flex: 1; min-height: 48px; padding: 0 16px; border: 1px solid var(--mf-line); border-radius: 12px; background: #fff; }

/* 404 */
.mf-404 { text-align: center; padding: 56px 0 24px; }
.mf-404-art { width: min(420px, 90%); color: var(--mf-primary); }
.mf-404-art text { font-size: 84px; font-weight: 800; fill: var(--mf-tint); stroke: var(--mf-primary); stroke-width: 1.5; }
.mf-404-path { stroke: #c9a8e0; stroke-width: 2; stroke-dasharray: 6 8; }

/* ---------- footer ---------- */
.mf-footer { background: var(--mf-deep); color: #cfc6db; margin-top: 72px; }
.mf-footer a { color: #cfc6db; text-decoration: none; }
.mf-footer a:hover { color: #fff; }
.mf-footer-grid { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 36px; padding-top: 56px; padding-bottom: 36px; }
.mf-footer-brand .mf-logo { color: #fff !important; }
.mf-footer-brand p { font-size: 14px; line-height: 1.6; max-width: 420px; }
.mf-footer-title { margin: 0 0 14px; font-size: 15px; color: #fff; font-weight: 700; }
.mf-footer-menu { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.mf-social { display: flex; gap: 8px; }
.mf-social a { display: inline-flex; width: 42px; height: 42px; align-items: center; justify-content: center; border-radius: 12px; background: rgba(255, 255, 255, .08); }
.mf-social a:hover { background: var(--mf-accent); }
.mf-footer-bottom { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 18px; padding-bottom: 22px; font-size: 13px; }
@media (max-width: 900px) { .mf-footer-grid { grid-template-columns: 1fr 1fr; } .mf-footer-brand { grid-column: 1 / -1; } }

/* ---------- mobile bottom nav ---------- */
.mf-bottom-nav { display: none; }
@media (max-width: 760px) {
	.mf-bottom-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 150; display: grid; grid-template-columns: repeat(4, 1fr); background: rgba(255, 255, 255, .97); backdrop-filter: blur(10px); border-top: 1px solid var(--mf-line); padding-bottom: env(safe-area-inset-bottom); }
	.mf-bottom-nav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 60px; font-size: 12px; font-weight: 700; color: var(--mf-muted); text-decoration: none; }
	.mf-bottom-nav a.is-active, .mf-bottom-nav a:hover { color: var(--mf-primary); }
	body.has-bottom-nav { padding-bottom: calc(60px + env(safe-area-inset-bottom)); }
}

/* ---------- MyFly Routes plugin: align colours with the theme ---------- */
.mfr { --mfr-primary: var(--mf-primary); --mfr-dark: var(--mf-dark); --mfr-accent: var(--mf-accent); --mfr-accent-text: var(--mf-accent-text); --mfr-good: var(--mf-green); --mfr-text: var(--mf-text); --mfr-muted: var(--mf-muted); --mfr-line: var(--mf-line); --mfr-bg: var(--mf-bg); font-family: var(--mf-font); }
.single-mf_route .mf-main > .mfr > .mfr-hero, .post-type-archive-mf_route .mfr-hero { margin-top: 0; }

/* ---------- Elementor ---------- */
.elementor-widget-container .mf-section.mf-wrap { padding-left: 0; padding-right: 0; }
.elementor-widget-container > .mf-section { padding-top: 0; }

/* ---------- back to top ---------- */
.mf-top { position: fixed; right: 18px; bottom: 22px; z-index: 140; display: inline-flex; width: 48px; height: 48px; align-items: center; justify-content: center; border-radius: 14px; background: var(--mf-primary); color: #fff !important; box-shadow: var(--mf-shadow); transition: opacity .2s, transform .2s; }
.mf-top .mf-i { transform: rotate(-90deg); }
.mf-top[hidden] { display: none; }
body.has-bottom-nav .mf-top { bottom: calc(76px + env(safe-area-inset-bottom)); }
@media (min-width: 761px) { body.has-bottom-nav .mf-top { bottom: 22px; } }

/* ---------- cookie notice ---------- */
.mf-cookie { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 300; max-width: 560px; display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; padding: 16px 18px; background: var(--mf-deep); color: #fff; border-radius: 16px; box-shadow: 0 20px 50px rgba(0, 0, 0, .3); }
.mf-cookie[hidden] { display: none; }
.mf-cookie p { margin: 0; flex: 1 1 260px; font-size: 14px; }
.mf-cookie a { color: #ffc3de; }
.mf-cookie-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.mf-btn-ghost { background: transparent; border: 1px solid rgba(255, 255, 255, .35); }
body.has-bottom-nav .mf-cookie { bottom: calc(76px + env(safe-area-inset-bottom)); }
@media (min-width: 761px) { body.has-bottom-nav .mf-cookie { bottom: 16px; } }

/* animations off (panel toggle) */
.mf-no-anim .mf-hero-plane, .mf-no-anim .mf-404-plane { display: none; }
.mf-no-anim .mf-hero-route, .mf-no-anim .mf-pulse, .mf-no-anim .mf-alert-ic { animation: none; }
.mf-no-anim .mf-arc { stroke-dashoffset: 0; animation: none !important; }
