/*
Theme Name: Transferche
Template: vv-transfer-base
Description: Визия на transferche.com: трансфери до и от летищата за пътуващи от България.
Version: 1.0.0
Text Domain: transferche
*/

:root { --tc-ink: var(--wp--preset--color--ink); --tc-muted: var(--wp--preset--color--muted); --tc-line: var(--wp--preset--color--line); --tc-red: var(--wp--preset--color--cta); --tc-leaf: var(--wp--preset--color--leaf); --tc-soft: var(--wp--preset--color--soft); }

/* Хедър */
.tc-header { background: var(--wp--preset--color--base); position: sticky; top: 0; z-index: 40; padding: .75rem 0; border-bottom: 1px solid var(--tc-line); }
.tc-header .wp-block-site-title { font-weight: 700; font-size: 1.5rem; letter-spacing: -.02em; }
.tc-header .wp-block-site-title a { color: var(--tc-ink); text-decoration: none; }
.tc-header .wp-block-site-title a::after { content: ""; display: inline-block; width: .42em; height: .42em; margin-left: .12em; border-radius: 50%; background: var(--tc-red); }
.tc-header .wp-block-navigation a { color: var(--tc-ink); text-decoration: none; font-weight: 500; }
.tc-header .wp-block-navigation a:hover { color: var(--tc-red); }
.tc-header-right { gap: 1.5rem; }
.tc-header .wp-block-button__link { padding: .5rem 1.1rem; }
@media (max-width: 600px) { .tc-header-cta { display: none; } }

/* Начален екран */
.tc-hero { padding-top: var(--wp--preset--spacing--50); padding-bottom: var(--wp--preset--spacing--50); }
.tc-hero h1 { margin-top: .4rem; max-width: 15ch; }
.tc-kicker { display: inline-block; background: var(--tc-soft); color: var(--tc-red); font-weight: 500; border-radius: 999px; padding: .25rem .8rem; font-size: .95rem; margin: 0; }
.tc-lead { font-size: clamp(1.08rem, 1.5vw, 1.2rem); color: var(--tc-muted); max-width: 34rem; }
.tc-points { list-style: none; padding: 0; margin: 1.25rem 0 0; display: grid; gap: .55rem; }
.tc-points li { position: relative; padding-left: 1.9rem; }
.tc-points li::before { content: ""; position: absolute; left: 0; top: .3em; width: 1.15rem; height: 1.15rem; border-radius: 50%; background: var(--tc-leaf); }
.tc-points li::after { content: ""; position: absolute; left: .38rem; top: .5em; width: .35rem; height: .6rem; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.tc-book-col .vvt { max-width: none; }
.tc-book-col .vvt-card { border-radius: 22px; border: 0; box-shadow: 0 0 0 1px var(--tc-line), 0 22px 44px -24px rgba(122, 52, 20, .45); }

.vvt { --vvt-accent: #D9401F; --vvt-accent-ink: #ffffff; --vvt-ink: #23160F; --vvt-muted: #6B5A4E; --vvt-line: #EBD6C1; --vvt-soft: #FFF3E6; --vvt-radius: 14px; font-family: var(--wp--preset--font-family--body); }
.tc-book-col .vvt-counters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.vvt-counter-label { white-space: nowrap; }
@media (max-width: 420px) { .tc-book-col .vvt-counters { grid-template-columns: 1fr; } }

.vv-quick { border-left-color: var(--tc-red); background: var(--wp--preset--color--surface); border-radius: 0 16px 16px 0; }
.tc-quick-wrap { margin-top: var(--wp--preset--spacing--40); }
.tc-quick-wrap .vv-quick { max-width: 46rem; }

/* Маршрути като билетчета */
.tc-tickets { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.tc-tickets li {
	position: relative; background: var(--wp--preset--color--surface); border-radius: 16px; padding: 1.1rem 1.2rem 1rem;
	box-shadow: 0 0 0 1px var(--tc-line);
	-webkit-mask: radial-gradient(circle 10px at 0 62%, transparent 98%, #000) , radial-gradient(circle 10px at 100% 62%, transparent 98%, #000);
	-webkit-mask-composite: source-in; mask-composite: intersect;
}
.tc-tickets .tc-route { display: block; font-weight: 700; font-size: 1.2rem; line-height: 1.25; }
.tc-tickets .tc-meta { display: block; color: var(--tc-muted); font-size: .95rem; margin-top: .2rem; }
.tc-tickets .tc-price { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .75rem; margin-top: 1.1rem; padding-top: .8rem; border-top: 2px dashed var(--tc-line); }
.tc-tickets .tc-price b { font-weight: 500; min-width: 0; overflow-wrap: anywhere; }
.tc-tickets .tc-price a { font-weight: 500; text-decoration: none; color: var(--tc-red); white-space: nowrap; }
.tc-tickets .tc-price a::after { content: " →"; }
.tc-note { color: var(--tc-muted); font-size: .95rem; }

/* Ранен полет */
.tc-early { margin-top: var(--wp--preset--spacing--40); background: var(--tc-ink); color: #F6E9DC; border-radius: 28px; padding: clamp(1.5rem, 4vw, 3rem); }
.tc-early h2 { color: #fff; margin-top: 0; }
.tc-early .tc-clock { width: 72px; height: 72px; border-radius: 50%; border: 3px solid #F6E9DC; position: relative; margin-bottom: 1rem; }
.tc-early .tc-clock::before, .tc-early .tc-clock::after { content: ""; position: absolute; left: 50%; bottom: 50%; width: 3px; background: #F6E9DC; transform-origin: bottom center; border-radius: 2px; }
.tc-early .tc-clock::before { height: 24px; transform: translateX(-50%) rotate(-120deg); }
.tc-early .tc-clock::after { height: 30px; background: var(--tc-red); transform: translateX(-50%) rotate(0deg); }
.tc-early table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.tc-early th, .tc-early td { text-align: left; padding: .6rem .5rem; border: 0; border-bottom: 1px solid rgba(246, 233, 220, .2); }
.tc-early thead th { color: #C9B3A0; font-weight: 400; font-size: .9rem; }
.tc-early td:last-child { color: #fff; font-weight: 500; }

/* Стъпки */
.tc-steps { list-style: none; padding: 0; counter-reset: s; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.tc-steps li { counter-increment: s; background: var(--wp--preset--color--surface); border-radius: 18px; padding: 1.2rem; box-shadow: 0 0 0 1px var(--tc-line); }
.tc-steps li::before { content: counter(s); display: grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--tc-soft); color: var(--tc-red); font-weight: 700; margin-bottom: .7rem; }
.tc-steps strong { display: block; font-size: 1.12rem; margin-bottom: .2rem; }

.vv-faq.alignwide > * { max-width: 48rem; }
.vv-faq summary::after { border-color: var(--tc-red); }

/* Подножие */
.tc-footer { background: var(--wp--preset--color--soft); color: var(--tc-ink); margin-top: var(--wp--preset--spacing--60); }
.tc-footer .wp-block-site-title { font-size: 1.4rem; font-weight: 700; }
.tc-footer .wp-block-site-title a { color: var(--tc-ink); text-decoration: none; }

/* Общи корекции */
.tc-header { padding-left: 16px; padding-right: 16px; }
.tc-header-row { gap: 1rem; }
.wp-site-blocks > main, .wp-site-blocks > .wp-block-template-part + main { margin-block-start: 0; }
.tc-header .wp-block-navigation__responsive-container.is-menu-open { padding: 1.5rem; }
