/*
Theme Name: RideToResort
Template: vv-transfer-base
Description: Визия на ridetoresort.com: ски и морски курорти.
Version: 1.0.0
Text Domain: ridetoresort
*/

:root {
	--rr-ink: var(--wp--preset--color--ink);
	--rr-muted: var(--wp--preset--color--muted);
	--rr-line: var(--wp--preset--color--line);
	--rr-yellow: var(--wp--preset--color--cta);
	--rr-sea: var(--wp--preset--color--sea);
	--rr-piste: var(--wp--preset--color--focus);
}

/* Хедър */
.rr-header { background: var(--wp--preset--color--base); border-bottom: 1px solid var(--rr-line); position: sticky; top: 0; z-index: 40; }
.rr-header .wp-block-site-title { font-family: var(--wp--preset--font-family--display); font-weight: 700; font-size: 1.65rem; line-height: 1; letter-spacing: -.01em; }
.rr-header .wp-block-site-title a { color: var(--rr-ink); text-decoration: none; }
.rr-header .wp-block-site-title a::before {
	content: ""; display: inline-block; width: 1.15em; height: .7em; margin-right: .35em; vertical-align: -.02em;
	background: var(--rr-ink);
	clip-path: polygon(0 100%, 32% 22%, 48% 60%, 70% 0, 100% 100%);
}
.rr-header .wp-block-navigation { font-weight: 600; font-size: 1rem; }
.rr-header .wp-block-navigation a { color: var(--rr-ink); text-decoration: none; }
.rr-header .wp-block-navigation a:hover { text-decoration: underline; text-underline-offset: .25em; }
.rr-header .wp-block-button__link { font-size: 1.05rem; padding: .55rem 1rem; }
@media (max-width: 600px) { .rr-header .rr-header-cta { display: none; } }

/* Начален екран */
.rr-hero { position: relative; padding-bottom: clamp(5.5rem, 10vw, 8rem) !important; }
.rr-hero::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: clamp(56px, 9vw, 110px); pointer-events: none;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' x2='1'%3E%3Cstop offset='0' stop-color='%23102A43'/%3E%3Cstop offset='.48' stop-color='%23102A43'/%3E%3Cstop offset='.62' stop-color='%230E8C83'/%3E%3Cstop offset='1' stop-color='%230E8C83'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M0 112 L70 78 L105 92 L160 26 L198 62 L232 44 L300 98 L352 58 L392 82 L450 70 L520 96 L600 92 C630 92 645 80 675 80 C705 80 720 92 750 92 C780 92 795 80 825 80 C855 80 870 92 900 92 C930 92 945 80 975 80 C1005 80 1020 92 1050 92 C1080 92 1095 80 1125 80 C1155 80 1170 92 1200 92' fill='none' stroke='url(%23g)' stroke-width='2.5' vector-effect='non-scaling-stroke' stroke-linejoin='round'/%3E%3C/svg%3E") bottom center / 100% 100% no-repeat;
}
.rr-hero h1 { max-width: 13ch; margin-top: 0; }
.rr-hero .rr-lead { font-size: clamp(1.1rem, 1.6vw, 1.25rem); color: var(--rr-muted); max-width: 34rem; }
.rr-airports { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: 1.25rem 0 0; }
.rr-airports li {
	border: 1.5px solid var(--rr-ink); border-radius: 999px; padding: .2rem .75rem;
	font-family: var(--wp--preset--font-family--display); font-weight: 600; font-size: 1.05rem; line-height: 1.4;
}
.rr-book-col .vvt { max-width: none; }
.rr-book-col .vvt-card { box-shadow: 0 1px 0 var(--rr-line), 0 18px 40px -18px rgba(16, 42, 67, .35); border-color: var(--rr-line); }

/* Цветовете на формата за резервация */
.vvt {
	--vvt-accent: #102A43;
	--vvt-accent-ink: #ffffff;
	--vvt-ink: #102A43;
	--vvt-muted: #4A6177;
	--vvt-line: #D5DEE6;
	--vvt-soft: #EEF3F7;
	--vvt-radius: 10px;
	font-family: var(--wp--preset--font-family--body);
}

/* Табло на курортите */
.rr-board-wrap h2 { margin-bottom: .35rem; }
.rr-board-note { color: var(--rr-muted); font-size: .95rem; margin-top: 0; }
.rr-season { font-family: var(--wp--preset--font-family--display); font-weight: 700; font-size: 1.6rem; margin: 2.25rem 0 .5rem; display: flex; align-items: center; gap: .6rem; }
.rr-season::before { content: ""; width: 1.6rem; height: 1rem; background: currentColor; }
.rr-season.is-winter { color: var(--rr-ink); }
.rr-season.is-winter::before { clip-path: polygon(0 100%, 32% 22%, 48% 60%, 70% 0, 100% 100%); }
.rr-season.is-summer { color: var(--rr-sea); }
.rr-season.is-summer::before { clip-path: polygon(0 55%, 12% 35%, 25% 30%, 38% 40%, 50% 55%, 62% 70%, 75% 75%, 88% 65%, 100% 45%, 100% 100%, 0 100%); }

.wp-block-table.rr-board { margin: 0; overflow-x: auto; }
.rr-board table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; background: var(--wp--preset--color--surface); }
.rr-board thead th {
	text-align: left; font-weight: 600; font-size: .9rem; color: var(--rr-muted);
	border-bottom: 2px solid var(--rr-ink); padding: .6rem .8rem;
}
.rr-board td { padding: .85rem .8rem; border-bottom: 1px solid var(--rr-line); vertical-align: middle; }
.rr-board tbody tr td:first-child {
	font-family: var(--wp--preset--font-family--display); font-weight: 700; font-size: 1.45rem; line-height: 1;
	border-left: 6px solid var(--rr-ink);
}
.rr-board.is-summer tbody tr td:first-child { border-left-color: var(--rr-sea); }
.rr-board td:last-child { text-align: right; white-space: nowrap; }
.rr-board td:last-child a {
	display: inline-block; padding: .4rem .8rem; border-radius: 8px; text-decoration: none; font-weight: 600;
	border: 1.5px solid var(--rr-ink); color: var(--rr-ink);
}
.rr-board td:last-child a:hover { background: var(--rr-yellow); border-color: var(--rr-yellow); }

@media (max-width: 700px) {
	.rr-board thead { position: absolute; left: -9999px; }
	.rr-board table, .rr-board tbody, .rr-board tr, .rr-board td { display: block; }
	.rr-board tr { border-left: 6px solid var(--rr-ink); background: var(--wp--preset--color--surface); margin-bottom: .75rem; padding: .75rem .9rem; }
	.rr-board.is-summer tr { border-left-color: var(--rr-sea); }
	.rr-board tbody tr td:first-child { border-left: 0; padding: 0 0 .4rem; }
	.rr-board td { border: 0; padding: .15rem 0; }
	.rr-board td:nth-child(2)::before { content: "From: "; color: var(--rr-muted); }
	.rr-board td:nth-child(3)::before { content: "Distance: "; color: var(--rr-muted); }
	.rr-board td:nth-child(4)::before { content: "Drive: "; color: var(--rr-muted); }
	.rr-board td:nth-child(5)::before { content: "Car from: "; color: var(--rr-muted); }
	.rr-board td:last-child { text-align: left; padding-top: .6rem; }
}

/* Как работи */
.rr-how { background: var(--wp--preset--color--ink); color: #fff; }
.rr-how h2, .rr-how h3 { color: #fff; }
.rr-how ol.vv-steps { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 2rem; }
.rr-how ol.vv-steps > li { padding: 3.2rem 0 0; }
.rr-how ol.vv-steps > li::before { background: var(--rr-yellow); color: var(--rr-ink); font-family: var(--wp--preset--font-family--display); font-size: 1.3rem; }
.rr-how ol.vv-steps strong { font-family: var(--wp--preset--font-family--display); font-size: 1.4rem; display: block; margin-bottom: .3rem; line-height: 1.1; }
.rr-how a { color: var(--rr-yellow); }

/* Какво може да добавите */
.rr-extras { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 0; list-style: none; padding: 0; border-top: 2px solid var(--rr-ink); }
.rr-extras li { padding: 1rem 1rem 1.1rem 0; border-bottom: 1px solid var(--rr-line); }
.rr-extras strong { display: block; font-family: var(--wp--preset--font-family--display); font-size: 1.35rem; line-height: 1.15; }

.vv-quick { border-left-color: var(--rr-yellow); background: var(--wp--preset--color--surface); }

/* Подножие */
.rr-footer { background: var(--wp--preset--color--ink); color: #c9d6e2; }
.rr-footer a { color: #fff; }
.rr-footer .wp-block-site-title { font-family: var(--wp--preset--font-family--display); font-size: 1.6rem; font-weight: 700; }
.rr-footer .wp-block-site-title a { color: #fff; text-decoration: none; }
.rr-footer .vv-missing { color: #5c4400; }

/* Fixes after first review */
.rr-hero h1 { max-width: 16ch; font-size: clamp(2.4rem, 5.4vw, 4.1rem); }
.rr-board th, .rr-board td { border-top: 0; border-left: 0; border-right: 0; }
.rr-board tbody tr td:first-child { border-left: 6px solid var(--rr-ink); }
.rr-board.is-summer tbody tr td:first-child { border-left-color: var(--rr-sea); }
.rr-how h2 { margin-bottom: 2.25rem; }
.rr-book-col .vvt-counters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.vvt-counter-label { white-space: nowrap; }
.vv-faq.alignwide > * { max-width: 48rem; }
@media (max-width: 700px) {
  .rr-board tbody tr td:first-child { border-left: 0; }
  .rr-board tr { border: 1px solid var(--rr-line); border-left: 6px solid var(--rr-ink); }
  .rr-board.is-summer tr { border-left-color: var(--rr-sea); }
}
@media (max-width: 420px) {
  .rr-book-col .vvt-counters { grid-template-columns: 1fr; }
}


.rr-quick-wrap { margin-top: var(--wp--preset--spacing--50); }
.rr-quick-wrap .vv-quick { max-width: 46rem; }
