/* mobile.css — только то, что меняется на узких экранах. Подключается после desktop.css.
   Планшет и узкий ноутбук: окно до 1000 px. Телефон: окно до 760 px
   (на телефоне действуют оба блока, правила блока «Phone» важнее). */

/* Tablet */
@media (max-width: 1000px) {
  /* Headings */
  h1 { font-size: 36px; }
  h2 { font-size: 24px; }
  .hero h1 { font-size: 46px; }
  .tour-page__head h1 { font-size: 32px; }
  .status-card__head h1 { font-size: 28px; }

  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--bg); cursor: pointer; order: 2; }
  .menu-toggle__bars, .menu-toggle__bars::before, .menu-toggle__bars::after { display: block; width: 18px; height: 2px; background: var(--black); border-radius: 2px; position: relative; }
  .menu-toggle__bars::before, .menu-toggle__bars::after { content: ""; position: absolute; left: 0; }
  .menu-toggle__bars::before { top: -6px; }
  .menu-toggle__bars::after { top: 6px; }
  .lang-switch { order: 1; margin-left: auto; }
  .site-header__inner { gap: 10px; flex-wrap: wrap; }
  .site-menu { display: none; order: 3; flex: 1 1 100%; flex-direction: column; align-items: stretch; gap: 0; padding: 4px 0 14px; }
  .site-menu.is-open { display: flex; }
  .main-nav { flex-direction: column; gap: 0; margin: 0; }
  .main-nav a { padding: 12px 4px; border-radius: 0; border-top: 1px solid var(--line-soft); font-size: 16px; }
  .cur-switch + .lang-switch { margin-left: 0; }
  .tour-page__side { position: static; }
  .hero__inner { padding: 56px 32px 24px; }
  .hero__search { padding: 8px 20px 24px; }
}

/* Phone */
@media (max-width: 760px) {
.tour-card__foot .btn {font-size:15px;}
.search__input {
    font: 500 16px / 1.3 var(--font);
}
.dp__day {height:44px;}
.site-header__inner {min-height:64px;}

  /* Headings */
  h1 { font-size: 30px; }
  h2 { font-size: 22px; }
  .hero h1 { font-size: 28px; }
  .hero__place { display: block; } /* home: "Canary Islands" on its own line (front-page.php) */
  .tour-page__head h1 { font-size: 28px; }
  .status-card__head h1 { font-size: 24px; }

  .container { padding: 0 16px; }
.site-footer__bottom {padding-top: 32px;}
.page-head,
.tour-page { padding-top: 20px; }
  .section { padding-top: 28px; padding-bottom: 28px; }
  .section.why { padding-top: 10px; padding-bottom: 0; }
  #excursions { padding-top: 0; }
  .site-header .logo img { height: 31px; }
  .lang-switch__name { display: none; }
  /* The currency pill is not at the right edge: its list spans the header width instead of hanging off the pill */
  .cur-switch { position: static; }
  .cur-switch__list { left: 16px; right: 16px; width: auto; max-width: none; top: 66px; }
  /* Breadcrumbs: only the parent, as a "‹ back" pill (the whole trail stays in the HTML and the structured data) */
  .breadcrumbs li:not(:last-child) { display: none; }
  .breadcrumbs li + li::before { content: none; }
  .breadcrumbs li:last-child a { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px 6px 10px; border-radius: 999px; background: #fff; color: var(--black); font-size: 14px; font-weight: 500; box-shadow: var(--shadow); }
  .breadcrumbs li:last-child a::before { content: "‹"; font-size: 20px; color: var(--muted); }
  .hero .breadcrumbs li:last-child a { background: rgba(21, 18, 58, .35); color: #fff; box-shadow: none; }
  .hero .breadcrumbs li:last-child a::before { color: rgba(255, 255, 255, .8); }
  .hero-wrap { padding: 8px 8px 0; }
  .hero { }
  .hero__inner { padding: 30px 18px 18px; }
  .hero__lead { font-size: 16px;margin-bottom: 8px;}
  .hero__usp li { font-size: 13px; padding: 6px 12px; }
  .hero__search { padding: 4px 8px 8px; }
  .search { gap: 6px; padding: 8px; }
  .search__field, .search__field--what { flex: 1 1 100%; padding: 6px 16px; }
	.search__input {min-height:24px;}
  .search__field:not(.search__field--what) { flex: 1 1 calc(50% - 3px); }
  .search__go { flex: 1 1 100%; min-height: 58px; }
  .search__drop { width: 100%; }
  .dp { width: 100vw; max-height: 92vh; margin: auto 0 0; border-radius: 26px 26px 0 0; }
  .dp__head { padding: 16px 18px 12px; }
  .dp__body { padding: 14px 14px 4px; }
  .dp__nav { top: 12px; }
  .dp__nav--prev { left: 14px; }
  .dp__nav--next { right: 14px; }
  .dp__foot { padding: 12px 14px calc(16px + env(safe-area-inset-bottom)); }
  .dp__foot .btn { flex: 1 1 0; padding-left: 12px; padding-right: 12px; }
  .search__drop--who { width: min(300px, calc(100vw - 32px)); right: 0; left: auto; }
  .cat-grid { display: flex; overflow-x: auto; gap: 12px; margin: 0 -16px; padding: 0 16px 6px; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .cat-grid::-webkit-scrollbar { display: none; }
  .cat-tile { flex: 0 0 66%; aspect-ratio: 4 / 3; scroll-snap-align: start; }
  .tour-grid { grid-template-columns: 1fr; gap: 16px; }
  .map-box { aspect-ratio: 4 / 3; }
  .tour-card__title { font-size: 19px; }
  .price__value { font-size: 19px; }
  .why__grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .why__grid > div { padding: 16px; }
  .why__grid strong { font-size: 16px; }
  .why__grid span:not(.why__ico) { font-size: 14px; }
  .site-footer { border-radius: 26px 26px 0 0; }
  .chips { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px 18px; padding: 2px 16px 8px; scrollbar-width: none; }
  .chip { flex: none; }
  .gallery, .gallery--2, .gallery--3, .gallery--4, .gallery--5 { grid-template-columns: 1fr 1fr; grid-template-rows: 250px 110px; border-radius: 22px; }
  .gallery__item:first-child { grid-column: 1 / -1; grid-row: auto; }
  .gallery__item:nth-child(n+2) { grid-column: auto !important; }
  .gallery__item:nth-child(n+4) { display: none; }
  .gallery--2 { grid-template-rows: 250px; }
  .gallery--2 .gallery__item:nth-child(2) { display: none; }
  .gallery--1 { grid-template-columns: 1fr; grid-template-rows: 260px; }
  .tour-page__layout { padding-top: 16px; gap: 16px; }
  .tour-page__main > section { padding: 20px 18px; border-radius: 22px; }
  .tour-page__side { display: none; }
  body.single-tour { padding-bottom: 92px; }
  .mobile-book-bar { position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 10px 10px 20px; border-radius: var(--radius-15); background: var(--black); color: #fff; border:solid 1px rgba(255, 255, 255, .35); box-shadow: 0 10px 30px rgba(21, 18, 58, .35); }
  .mobile-book-bar strong { font-size: 20px; font-weight: 600; }
  .mobile-book-bar small { display: block; color: #C7C5DA; font-size: 12px; }
	.search__drop .btn, .tour-card__foot .btn {
		min-height: 46px;
	}
  .mobile-book-bar .btn { flex: 0 1 auto; min-height: 54px; font-size: 16px; padding: 10px 18px; border-radius:var(--radius-12)}
  .form-grid { grid-template-columns: 1fr; }
  .table-wrap { overflow: hidden; }
  .price-table { display: block; min-width: 0; font-size: 15px; }
  .price-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .price-table tbody, .price-table tr { display: block; }
  .price-table tbody tr { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; padding: 12px 14px; }
  .price-table tbody tr:first-child { border-top: 0; }
  .price-table tbody th { flex: 0 0 100%; padding: 0; }
  .price-table td { padding: 0; }
  .price-table td.num::before { content: attr(data-label) " "; color: var(--muted); font-weight: 400; font-size: 13px; }
  .price-table .act { margin-left: auto; text-align: right; }
  .mobile-book-bar > div { white-space: nowrap; line-height: 1.1; }
  .status { padding: 18px 12px 0; }
  .status-card { padding: 20px 18px; border-radius: 24px; }
  .status-details { grid-template-columns: 1fr; }
  .ticket__top { padding: 18px; }
  .ticket__cut { margin: 0 18px; }
  .ticket__cut::before { left: -31px; }
  .ticket__cut::after { right: -31px; }
  .ticket__stub { grid-template-columns: 1fr 1fr; margin: 18px 10px 0; }
  .ticket__stub > div:nth-child(3) { grid-column: 1 / -1; border-left: 0; border-top: 1px solid rgba(255, 255, 255, .2); }
  .ticket__actions { padding: 16px 10px 0; }
  .ticket__actions .btn { flex: 1 1 100%; }
  .progress li { font-size: 12px; }

  /* Booking window: step title and a 3-part progress bar on top, a small white bar at the bottom
     (total, people — tap for the breakdown — and the button). The bar steps aside while the keyboard is open. */
  .bk { width: 100vw; height: 100vh; height: 100dvh; border-radius: 0; }
  .bk__frame { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto; }
  .bk__head { display: grid; grid-template-columns: 92px minmax(0, 1fr) 92px; align-items: center; gap: 0; min-height: 0; padding: 8px 8px 0; border-bottom: 0; }
  .bk__back { grid-column: 1; grid-row: 1; justify-self: start; box-shadow: none; }
  .bk__mtitle { display: flex; flex-direction: column; align-items: center; grid-column: 2; grid-row: 1; margin: 0; line-height: 1.25; text-align: center; }
  .bk__mtitle strong { font-size: 17px; font-weight: 600; }
  .bk__mtitle span { color: var(--muted); font-size: 12px; }
  .bk__tools { grid-column: 3; grid-row: 1; justify-content: flex-end; gap: 4px; margin: 0; }
  .bk__tools .icon-btn { box-shadow: none; }
  .bk__steps { grid-column: 1 / -1; grid-row: 2; gap: 6px; padding: 10px 8px 0; }
  .bk__steps li, .bk__steps li:last-child { flex: 1 1 0; }
  .bk__steps li::after { content: none !important; }
  .bk__stepbtn { width: 100%; height: 4px; padding: 0; border-radius: 4px; background: var(--line); }
  .bk__stepbtn.is-active, .bk__stepbtn.is-done { background: var(--orange); }
  .bk__num { display: none; }
  .bk__steplabel { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .bk__body { padding: 18px 16px 24px; }
  .bk__body h3 { font-size: 18px; }
  .bk__steph { flex-direction: column; gap: 8px; }
  .bk__side { padding: 0; border-top: 1px solid var(--line); background: #fff; box-shadow: 0 -8px 24px rgba(21, 18, 58, .08); }
  .bk__sum { display: none; max-height: 55vh; max-height: 55dvh; padding: 16px 16px 6px; border-radius: 0; }
  .bk__side.is-open .bk__sum { display: block; }
  .bk__img { width: 48px; height: 48px; border-radius: 12px; }
  .bk__bar { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "msg msg" "total cta"; align-items: center; gap: 10px 14px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); border: 0; border-radius: 0; }
  .bk__side.is-open .bk__bar { border-top: 1px solid var(--line-soft); }
  .bk__bar::before, .bk__bar::after { content: none; }
  .bk__msg { grid-area: msg; }
  .bk__totalrow { grid-area: total; min-width: 0; }
  .bk__total span { display: none; }
  .bk__total strong { font-size: 22px; }
  .bk__eur { margin: 0; font-size: 12px; text-align: left; white-space: nowrap; }
  .bk:not([data-at="3"]) .bk__bar .bk__eur { display: none; }
  .bk__more { display: inline-flex; align-items: center; gap: 4px; max-width: 100%; padding: 2px 0; border: 0; background: none; color: var(--muted); font: 500 13px var(--font); cursor: pointer; }
  .bk__more span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-decoration: underline dotted; text-underline-offset: 3px; }
  .bk__more svg { flex: none; transition: transform .2s; }
  .bk__side.is-open .bk__more svg { transform: rotate(180deg); }
  .bk__cta { grid-area: cta; width: auto; min-height: 52px; padding: 12px 18px; font-size: 16px; }
  .bk__cta-long { display: none; }
  .bk__cta-short { display: inline; }
  .bk__secure { display: none; }
  .bk.is-kb .bk__side { display: none; }
  .bk__recap { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; padding: 10px 14px; border-radius: 14px; background: var(--cream); font-size: 14px; line-height: 1.4; }
  .bk__recap p { margin: 0; min-width: 0; }
  .bk__recap .link-btn { flex: none; }
  .opt { grid-template-areas: "main main" "meta price" "details details"; padding: 12px 14px; border-radius: 16px; }
  .opt__price { align-self: end; font-size: 14px; }
  .opt__meta { margin-left: 34px; font-size: 13px; }
  .opt__more { font-size: 13px; }
  .opt__details { margin-left: 0; }
  .pax { grid-template-columns: 1fr; gap: 0; }
  .pax-tile { flex-direction: row; align-items: center; padding: 12px 0; border: 0; border-bottom: 1px dashed var(--line); border-radius: 0; }
  .pax__note { grid-column: auto; margin-top: 10px; }
  .calendar__months { grid-template-columns: 1fr; }
  .calendar__day { height: 44px; }
  .bk__hotelrow { grid-template-columns: minmax(0, 1fr); }
}
