/* Kierunki czarterowe: sekcja kafelków, strony /czarter-jachtow, nagłówek /czartery. Po site.css, content.css i charter.css. */
/* Sekcja wg Figmy „Czarter jachtu” → „Destynacje” (6261:18790, 1440 px): 120 px od góry i od dołu, kontener 1200 px,
   nagłówek, 40 px odstępu, kafelki jak na /czarter-jachtow (dest-list, dest-tile), 40 px, przycisk 276×48. */
.destinations { --dest-line: #e8e9ee; padding: 120px 0; background: var(--white); }
.destinations .section-head { max-width: 768px; margin-bottom: 40px; }
.destinations--collapsed .dest-list__item--more { display: none; }
.dest-more { margin: 40px 0 0; text-align: center; }
.dest-more .btn { min-width: 276px; height: 48px; gap: 8px; }
.dest-more__btn--open svg { transform: rotate(-90deg); }
.no-js .dest-more, html:not(.js) .dest-more { display: none; }

/* Strona kierunku /czarter-jachtow/{kierunek} */
.dest-page__intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-7); align-items: center; padding: var(--space-6) 0 var(--space-8); }
.dest-page__intro h1 { margin: 0 0 var(--space-4); font-size: var(--fs-h2); font-weight: 500; line-height: 1.1; }
.dest-page__lead { font-size: var(--fs-body-2); line-height: 1.6; }
.dest-page__facts { margin: 0 0 var(--space-4); padding: var(--space-3) var(--space-4); border-radius: var(--radius-md); background: var(--primary-100); font-size: var(--fs-body-3); line-height: 1.6; }
.dest-page__photo { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-lg); }
.dest-page__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.dest-page__section { padding: 0 0 var(--space-8); }
.dest-page__section > h2 { margin: 0 0 var(--space-3); font-size: var(--fs-h3); font-weight: 500; }
.dest-page__section > p { max-width: 760px; }
.dest-regions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4); margin: var(--space-4) 0 0; padding: 0; list-style: none; }
.dest-region { padding: var(--space-4); border: 1px solid var(--gray-150); border-radius: var(--radius-md); background: var(--white); }
.dest-region h3 { display: flex; justify-content: space-between; gap: var(--space-2); margin: 0 0 var(--space-2); font-size: var(--fs-body-1); font-weight: 600; }
.dest-region h3 a { color: inherit; text-decoration: none; }
.dest-region h3 a:hover { text-decoration: underline; }
.dest-region h3 span { flex: none; color: var(--gray-500); font-size: var(--fs-body-3); font-weight: 600; }
.dest-region ul { margin: 0; padding: 0; list-style: none; font-size: var(--fs-body-3); line-height: 1.8; }
.dest-region li { display: flex; justify-content: space-between; gap: var(--space-2); }
.dest-region li a { color: var(--navy-600); }
.dest-region li span { color: var(--gray-500); white-space: nowrap; }
.dest-faq { max-width: 860px; margin: var(--space-4) 0 0; }
.dest-faq details { border-bottom: 1px solid var(--gray-150); }
.dest-faq summary { padding: var(--space-3) 0; color: var(--navy-600); font-size: var(--fs-body-1); font-weight: 600; cursor: pointer; }
.dest-faq details p { margin: 0 0 var(--space-3); line-height: 1.6; }

/* /czartery bez filtrów: zdjęcie z tytułem, wyszukiwarka na dolnej krawędzi zdjęcia */
.charter-hero.hero { min-height: 480px; padding-bottom: 120px; }
.charter-hero .hero__frame { bottom: 96px; }
.charter-hero .hero__photo { object-position: 50% 84%; }
.charter-hero + .charter-listing .search-bar { position: relative; z-index: 3; margin-top: -64px; }
/* Niski ekran: pasek wyszukiwarki pod zdjęciem cały widoczny bez przewijania (Wojtek 20.10.2026). */
@media (min-width: 768px) {
    /* Zdjęcie do dolnej krawędzi okna (jak główna, rejsy, szkolenia), pasek wyszukiwarki leży na nim 32 px nad krawędzią. */
    /* Pasek 64 px nad dolną krawędzią okna i ramka schowana dołem pod paskiem, jak na głównej, rejsach i szkoleniach (Wojtek 21.10.2026). */
    .charter-hero.hero { min-height: max(500px, calc(100svh - var(--nav-h, 80px))); justify-content: center; padding: 64px var(--hb-side) 162px; }
    .charter-hero .hero__frame { inset: 64px calc(var(--hb-side) + 24px) 113px; }
    .charter-hero .hero__photo { object-position: 50% 92%; }
    .charter-hero + .charter-listing .search-bar { margin-top: -210px; }
}
/* Figma „Czarter jachtu”: tytuł 72 px od 142 px od lewej, trzeci wiersz to odręczny napis 404×89 */
.charter-hero__title { max-width: none; margin-left: 86px; line-height: .92; }
.charter-hero__napis { display: block; width: fit-content; margin: 6px 0 0 -2px; line-height: 0; }
.charter-hero__napis img { display: block; width: 401px; max-width: 100%; height: auto; }
.charter-hero + .charter-listing .search-bar__head { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (max-width: 1199px) {
    .dest-regions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .charter-hero__title { margin-left: 40px; font-size: 56px; }
    .charter-hero__napis img { width: 314px; }
}

/* Telefon: jeden rząd wszystkich kierunków przesuwany palcem, bez strzałek i autoprzewijania */
@media (max-width: 767px) {
    /* Strona kierunku (bez ramki mobile w Figmie): 24 px od krawędzi, tytuł 32 px, przyciski na całą szerokość,
       sekcje co 80 px, pytania jak akordeon z filtrów czarterów (strzałka po prawej, wiersz min. 64 px). */
    .dest-page { padding-left: 24px; padding-right: 24px; }
    .dest-page__intro { grid-template-columns: minmax(0, 1fr); gap: 24px; padding: 8px 0 80px; }
    .dest-page__intro h1 { margin-bottom: 16px; font-size: 32px; line-height: 1.15; }
    .dest-page__lead { margin-bottom: 24px; font-size: var(--fs-body-2); line-height: 1.5; }
    .dest-page__facts { margin-bottom: 24px; padding: 16px; }
    .dest-page__photo { order: -1; aspect-ratio: 327 / 230; border-radius: var(--radius-lg); }
    .dest-page__actions { flex-direction: column; gap: 12px; }
    .dest-page__actions .btn { width: 100%; height: 48px; }
    .dest-page__section { padding-bottom: 80px; }
    .dest-page__section > h2 { margin-bottom: 16px; font-size: 32px; line-height: 1.1; }
    .dest-page__section .results { gap: 24px; margin-top: 24px; }
    .dest-page__section .center .btn { width: 100%; height: 48px; }
    .dest-regions { grid-template-columns: minmax(0, 1fr); gap: 16px; margin-top: 24px; }
    .dest-region { padding: 16px; }
    .dest-region h3 { align-items: center; min-height: 44px; margin: 0; }
    .dest-region li { align-items: center; min-height: 44px; }
    .dest-region li + li { border-top: 1px solid var(--gray-50); }
    .dest-faq { margin-top: 24px; border-top: 1px solid var(--gray-150); }
    .dest-faq summary { position: relative; display: flex; align-items: center; min-height: 64px; padding: 16px 40px 16px 0; font-size: var(--fs-h5); font-weight: 500; line-height: 1.3; list-style: none; }
    .dest-faq summary::-webkit-details-marker { display: none; }
    .dest-faq summary::after { content: ""; position: absolute; top: 50%; right: 0; width: 24px; height: 24px; margin-top: -12px; background: url("../img/ikona-rozwin.svg") center / 24px no-repeat; transition: transform .15s; }
    .dest-faq details[open] summary::after { transform: rotate(180deg); }
    .dest-faq details p { margin: -4px 0 24px; font-size: var(--fs-body-3); line-height: 1.5; color: var(--gray-500); }
    .charter-hero.hero { min-height: 380px; padding-bottom: 150px; }
    .charter-hero .hero__photo { object-position: 24% 50%; }
    .charter-hero .hero__frame { height: auto; bottom: 64px; }
    .charter-hero__title { margin: 0 auto; font-size: 40px; text-align: center; }
    .charter-hero__napis { margin: 4px auto 0; }
    .charter-hero__napis img { width: 226px; }
    .charter-hero + .charter-listing .search-bar { margin-top: -40px; }
    /* Figma „Czarter jachtu mobile”: wyszukiwarka na całą szerokość, biała z zaokrągleniem u góry, wiersze co ok. 75 px bez kresek;
       zaraz pod nią pasek „Gwarancja Najniższej Ceny”. */
    .charter-hero + .charter-listing { padding-bottom: 0; }
    .charter-hero + .charter-listing .charter-top, .charter-hero + .charter-listing .search-bar { margin-bottom: 0; padding-bottom: 0; }
    .charter-hero + .charter-listing .csearch { margin: 0 calc(-1 * var(--gutter)); padding: 12px 24px 24px; border-radius: 40px 40px 0 0; box-shadow: none; }
    .charter-hero + .charter-listing .csearch__field { padding: 12px 0; }
    .charter-hero + .charter-listing .csearch__field + .csearch__field { border-top: 0; }
    .charter-hero + .charter-listing .csearch__submit { margin: 16px 16px 0; width: auto; }
}

/* /czarter-jachtow wg Figmy „Destynacje” (eksport-2210/destynacje, 1440 px): nagłówek z wyszukiwarką, 1 duży + poziome kafelki, FAQ */
.dest-hub { --dest-line: #e8e9ee; /* Figma: obramowanie kafelków */ padding-bottom: 240px; }
.dest-hub__head { margin-bottom: 120px; padding: 40px 0 16px; border-radius: 0 0 var(--radius-lg) var(--radius-lg); background: var(--white); box-shadow: 0 2px 6px rgba(31, 41, 103, .04); text-align: center; }
.dest-hub__title { margin: var(--space-3) 0 var(--space-5); font-size: var(--fs-h1); line-height: 1; }
.dest-hub__search { display: inline-flex; align-items: center; gap: var(--space-2); margin: 0; }
.dest-hub__search label { color: var(--navy-600); font-size: var(--fs-body-3); font-weight: 700; }
.dest-hub__field { position: relative; display: block; width: 228px; }
.dest-hub__field .input { width: 100%; height: 48px; padding: 0 48px 0 16px; border-radius: var(--radius-full); font-size: var(--fs-body-3); }
.dest-hub__field .input::-webkit-search-cancel-button { display: none; }
.dest-hub__field button { position: absolute; top: 4px; right: 4px; display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: var(--radius-full); background: none; color: var(--gray-500); cursor: pointer; }
.dest-hub__field button:hover { color: var(--navy-600); }

.dest-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 340px; gap: var(--space-5); max-width: 1200px; margin: 0 auto; padding: 0; list-style: none; }
.dest-list__item { display: flex; min-width: 0; }
.dest-list__item[hidden], .dest-faq-hub__item[hidden], .dest-faq-hub__more [hidden] { display: none; }
.dest-list__item--big { grid-row: span 2; }
.dest-tile { display: grid; grid-template-columns: 324px minmax(0, 1fr); width: 100%; color: inherit; text-decoration: none; }
.dest-tile:focus-visible { outline: 3px solid var(--primary-700); outline-offset: 4px; border-radius: var(--radius-lg); }
.dest-tile__photo { width: 100%; height: 100%; min-height: 0; object-fit: cover; border-radius: var(--radius-lg); background: linear-gradient(135deg, var(--primary-200), var(--primary-700)); transition: filter .2s; }
.dest-tile:hover .dest-tile__photo { filter: brightness(1.06); }
.dest-tile__body { display: flex; flex-direction: column; justify-content: center; min-width: 0; padding: var(--space-4) var(--space-5); border: 1px solid var(--dest-line); border-radius: var(--radius-lg); background: var(--white); transition: box-shadow .2s; }
.dest-tile:hover .dest-tile__body { box-shadow: 0 12px 30px rgba(31, 41, 103, .08); }
.dest-tile__name { display: flex; align-items: center; gap: var(--space-3); margin: 0 0 18px; color: var(--navy-600); font-size: var(--fs-h4); font-weight: 500; line-height: 1.2; }
.dest-tile__flag { flex: none; width: 20px; height: 15px; object-fit: cover; }
.dest-tile__text { color: var(--gray-500); font-size: var(--fs-small); line-height: 17px; }
.dest-tile__more { display: inline-flex; align-items: center; gap: var(--space-2); margin-top: var(--space-3); color: var(--primary-700); font-size: var(--fs-body-3); font-weight: 700; line-height: 1.4; }
.dest-tile:hover .dest-tile__more { text-decoration: underline; }
.dest-tile--big { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; }
.dest-tile--big .dest-tile__body { padding: 40px; }
.dest-tile--big .dest-tile__name { margin-bottom: 20px; font-size: var(--fs-h3); line-height: 1; }
.dest-tile--big .dest-tile__flag { width: 32px; height: 24px; }
.dest-tile--big .dest-tile__text { font-size: var(--fs-body-3); line-height: 20px; }
.dest-hub__empty { max-width: 1200px; margin: 0 auto; padding: var(--space-5); border: 1px solid var(--dest-line); border-radius: var(--radius-lg); text-align: center; }

.dest-faq-hub { padding-bottom: 120px; }
.dest-faq-hub .container { max-width: calc(1080px + 2 * var(--gutter)); }
.dest-faq-hub__title { margin: 0 0 var(--space-6); font-size: var(--fs-h1); line-height: 1; text-align: center; }
.dest-faq-hub__items { border-top: 1px solid var(--gray-50); }
.dest-faq-hub__item { border-bottom: 1px solid var(--gray-50); }
.dest-faq-hub__item summary { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); min-height: 79px; padding: var(--space-3) 0; color: var(--navy-600); font-size: var(--fs-body-1); font-weight: 500; line-height: 1.3; list-style: none; cursor: pointer; }
.dest-faq-hub__item summary::-webkit-details-marker { display: none; }
.dest-faq-hub__icon { display: grid; flex: none; place-items: center; width: 32px; height: 32px; border-radius: var(--radius-full); background: var(--primary-100); color: var(--primary-700); transition: transform .2s; }
.dest-faq-hub__item[open] .dest-faq-hub__icon { transform: rotate(180deg); }
.dest-faq-hub__item[open] summary { min-height: 0; padding-bottom: var(--space-4); padding-top: var(--space-4); }
.dest-faq-hub__item p { margin: -4px 0 var(--space-4); color: var(--gray-500); font-size: var(--fs-body-3); line-height: 1.6; }
.dest-faq-hub__more { margin: var(--space-6) 0 0; text-align: center; }

@media (max-width: 1199px) {
    .dest-list { grid-auto-rows: auto; }
    .dest-list__item--big { grid-column: 1 / -1; grid-row: auto; }
    .dest-tile { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; }
    .dest-tile__photo { height: auto; aspect-ratio: 4 / 3; }
    .dest-tile--big .dest-tile__photo { aspect-ratio: 16 / 9; }
}

/* Telefon: kafelki jeden pod drugim (lista kierunków to treść strony, nie sekcja z rzędem przesuwanym palcem).
   Bez ramki mobile w Figmie: jak Blog mobile i karty rejsów/jachtów na telefonie – 24 px od krawędzi, nagłówek 40/40,
   karta: zdjęcie 200 px na całą szerokość, pod nim biała część z nazwą 24 px, opisem 14 px (3 linie) i „Sprawdź”; FAQ jak na blogu. */
@media (max-width: 767px) {
    .dest-hub { padding-bottom: 80px; }
    .dest-hub__head { margin-bottom: 40px; padding: 40px 0 24px; }
    .dest-hub__head .container { padding-left: 24px; padding-right: 24px; }
    .dest-hub__title { margin: 16px 0 32px; font-size: 40px; line-height: 40px; }
    .dest-hub__title .hero__kicker { margin-bottom: 16px; line-height: 1.3; }
    .dest-hub__title br { display: none; }
    .dest-hub__search { display: flex; width: 100%; }
    .dest-hub__search label { flex: none; }
    .dest-hub__field { flex: 1; width: auto; }
    .dest-hub__field button { top: 2px; right: 2px; width: 44px; height: 44px; }
    .dest-hub > .container { padding-left: 24px; padding-right: 24px; }
    .dest-list { grid-template-columns: minmax(0, 1fr); gap: 24px; }
    .dest-tile, .dest-tile--big { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--dest-line); border-radius: var(--radius-lg); background: var(--white); }
    .dest-tile__photo, .dest-tile--big .dest-tile__photo { flex: none; width: 100%; height: 200px; aspect-ratio: auto; border-radius: 0; }
    .dest-tile--big .dest-tile__photo { height: 230px; }
    .dest-tile__body, .dest-tile--big .dest-tile__body { flex: 1; justify-content: flex-start; padding: 24px 16px; border: 0; border-radius: 0; }
    .dest-tile:hover .dest-tile__body { box-shadow: none; }
    .dest-tile__name, .dest-tile--big .dest-tile__name { gap: 12px; margin: 0 0 8px; font-size: 24px; font-weight: 600; line-height: 1.2; }
    .dest-tile__flag, .dest-tile--big .dest-tile__flag { width: 24px; height: 18px; }
    .dest-tile__text, .dest-tile--big .dest-tile__text { display: -webkit-box; overflow: hidden; font-size: var(--fs-body-3); line-height: 1.4; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; }
    .dest-tile__more { margin-top: 16px; }
    .dest-tile--big .dest-tile__text { display: block; -webkit-line-clamp: unset; line-clamp: none; }
    .dest-hub__empty { padding: 24px 16px; }
    .dest-faq-hub { padding: 0 0 80px; }
    .dest-faq-hub .container { padding-left: 24px; padding-right: 24px; }
    .dest-faq-hub__title { margin-bottom: 40px; font-size: 40px; line-height: 40px; }
    .dest-faq-hub__item summary, .dest-faq-hub__item[open] summary { min-height: 0; padding: 24px 0; font-size: var(--fs-h5); line-height: 1.2; }
    .dest-faq-hub__item p { margin: -8px 0 24px; }
    .dest-faq-hub__more { margin-top: 40px; }
}

/* Sekcja „Wybierz spośród N kierunków” na telefonie: kafelki jak wyżej, w jednym rzędzie przesuwanym palcem (decyzja 19.10.2026). */
@media (max-width: 767px) {
    .destinations { padding: 80px 0; }
    .destinations .dest-list { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 var(--gutter); margin: 0 calc(-1 * var(--gutter)); padding: 4px var(--gutter) 12px; scrollbar-width: none; }
    .destinations .dest-list::-webkit-scrollbar { display: none; }
    .destinations .dest-list__item, .destinations--collapsed .dest-list__item--more { display: flex; flex: 0 0 80%; scroll-snap-align: start; }
    .destinations .dest-tile--big .dest-tile__photo { height: 200px; }
    .destinations .dest-tile--big .dest-tile__text { display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; }
    .destinations .dest-more { display: none; }
}
