/* Header windows: the menu (parts/menu-window.php) and, at the end of this file, the language and currency windows
   (parts/lang-switcher.php, parts/cur-switcher.php), all opened by their header buttons (site.js, [data-window]).
   Phone (up to 760 px): a sheet from the bottom, like the date picker. Larger screens: a window in the middle of the
   screen (owner's choice 2026-11-11), like the date picker too. Grey window, white cards, as the date picker and the booking window.
   Loaded after desktop.css and mobile.css; the menu button's phone and tablet look stays in mobile.css. */

/* The menu button on a computer: after the language pill, the same round grey button as on a phone */
@media (min-width: 1001px) {
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; flex: none; order: 10; margin-left: -14px; border: 0; border-radius: 50%; background: var(--bg); cursor: pointer; transition: background .15s; }
  .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; }
}
@media (hover: hover) { .menu-toggle:hover { background: var(--cream); } }

/* The window */
.mn { position: fixed; inset: 0; width: 820px; max-width: calc(100vw - 32px); max-height: calc(100vh - 32px); margin: auto; padding: 10px; border: 0; border-radius: var(--radius-25); background: var(--bg); color: var(--text); box-shadow: 0 30px 90px rgba(0, 0, 0, .3); overflow: auto; overscroll-behavior: contain; }
.mn:not([open]) { display: none; } /* browsers without <dialog> */
.mn[open] { animation: mn-in .2s ease-out; }
@keyframes mn-in { from { opacity: 0; transform: translateY(-10px) scale(.98); } }
.mn::backdrop { background: rgba(21, 18, 58, .5); backdrop-filter: blur(3px); }
.mn__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 12px 12px 18px; border-radius: var(--radius-20); background: #fff; }
.mn__title { margin: 0; font-size: 21px; }
.mn__title:focus { outline: none; }
.mn__grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 10px; margin-top: 10px; }
.mn__side { display: flex; flex-direction: column; gap: 10px; }
.mn__card { padding: 16px 18px 18px; border-radius: var(--radius-20); background: #fff; }
.mn__card h3 { margin: 0 0 14px; font-size: 12px; font-weight: 600; line-height: 1.3; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }

/* Islands: photo tiles, like the island tiles of the home page; the current island has an orange ring */
.mn-islands { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mn-island { position: relative; display: block; aspect-ratio: 1 / 1; overflow: hidden; border-radius: var(--radius-15); background: var(--black); color: #fff; text-decoration: none; }
.mn-island img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.mn-island::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(21, 18, 58, .82), rgba(21, 18, 58, 0) 62%); }
.mn-island:hover { color: #fff; }
.mn-island:hover img { transform: scale(1.06); }
.mn-island__body { position: absolute; left: 14px; right: 10px; bottom: 12px; z-index: 1; display: flex; flex-direction: column; gap: 2px; }
.mn-island__body b { font-size: 17px; font-weight: 700; line-height: 1.2; }
.mn-island__body small { font-size: 13px; opacity: .85; }
/* The arrow at the top right, as on the home page tiles: the name below has the whole width ("Фуэртевентура") */
.mn-island__arrow { position: absolute; right: 10px; top: 10px; z-index: 1; width: 30px; height: 30px; border-radius: 50%; background: rgba(255, 255, 255, .22); backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; }
.mn-island[aria-current] { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--orange); }

/* Information: rows with an icon */
.mn-rows { display: flex; flex-direction: column; }
.mn-row { display: flex; align-items: center; gap: 14px; padding: 9px 0; border-top: 1px dashed var(--line); color: var(--black); text-decoration: none; font-weight: 500; font-size: 15px; line-height: 1.3; }
.mn-row:first-child { border-top: 0; padding-top: 0; }
.mn-row:last-child { padding-bottom: 0; }
.mn-row__ico { flex: none; width: 38px; height: 38px; border-radius: 50%; background: var(--cream); color: var(--orange); display: flex; align-items: center; justify-content: center; transition: background .15s, color .15s; }
.mn-row__chev { margin-left: auto; color: var(--faint); transition: transform .15s, color .15s; }
.mn-row:hover { color: var(--orange-text); }
.mn-row:hover .mn-row__ico { background: var(--orange); color: #fff; }
.mn-row:hover .mn-row__chev { color: var(--orange); transform: translateX(3px); }

/* Contacts: buttons (WhatsApp green), the phone number and the address under them */
.mn-contacts { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 8px; }
.mn-contact { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 6px 10px; border-radius: var(--radius-15); background: var(--bg); color: var(--black); text-decoration: none; text-align: center; overflow-wrap: anywhere; font-size: 14px; font-weight: 600; line-height: 1.25; transition: background .15s; }
.mn-contact .ico { color: var(--orange); }
.mn-contact--whatsapp { background: var(--green-tint); }
.mn-contact--whatsapp .ico { color: var(--green); }
.mn-contact:hover { background: var(--cream); color: var(--black); }
/* The contacts card reaches the bottom of the islands card (no gap under it, owner's request 2026-11-14):
   the spare height goes between the buttons and the phone and address line, which stays at the bottom of the card */
.mn__card--contacts { flex: 1 1 auto; display: flex; flex-direction: column; }
.mn__note { margin: auto 0 0; padding-top: 12px; font-size: 13px; line-height: 1.5; color: var(--muted); text-align: center; }
.mn__note a { color: var(--muted); text-decoration: none; }
.mn__note a:hover { color: var(--black); }

/* Legal pages, small, under the cards */
.mn__legal { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 18px; padding: 14px 10px 6px; font-size: 13px; }
.mn__legal a { color: var(--muted); text-decoration: none; }
.mn__legal a:hover { color: var(--black); }

/* Phone: a sheet from the bottom, one column; the title and the close button stay on top while it scrolls */
@media (max-width: 760px) {
  .mn { inset: auto 0 0 0; margin: 0; width: 100vw; max-width: none; max-height: 92vh; max-height: 92dvh; border-radius: 26px 26px 0 0; padding: 10px 10px calc(10px + env(safe-area-inset-bottom)); }
  .mn[open] { animation: mn-up .28s cubic-bezier(.2, .8, .2, 1); }
  .mn__head { position: sticky; top: 0; z-index: 2; padding: 10px 10px 10px 16px; box-shadow: 0 -10px 0 var(--bg), 0 6px 14px rgba(21, 18, 58, .06); }
  .mn__grid { grid-template-columns: 1fr; }
  .mn__card { padding: 14px 14px 16px; }
  .mn-island { aspect-ratio: 16 / 11; }
  /* No arrow on a phone: the name has the whole width ("Фуэртевентура" on a 360 px screen) */
  .mn-island__body { left: 12px; right: 8px; bottom: 10px; }
  .mn-island__body b { font-size: clamp(14px, 4.1vw, 16px); }
  .mn-island__arrow { display: none; }
  .mn-row { padding: 8px 0; }
}
@keyframes mn-up { from { transform: translateY(100%); } }

@media (prefers-reduced-motion: reduce) {
  .mn[open] { animation: none; }
}

/* ---- Language and currency windows: the pill in the header, then grey tiles with a round badge (language code or
   currency sign); the current one cream with an orange ring. The window is the menu's (.mn), narrower. ---- */
.lang-switch__btn { display: flex; align-items: center; gap: 6px; padding: 8px 14px; border: 0; border-radius: 999px; background: var(--bg); color: var(--black); font: 500 14px/1.55 var(--font); cursor: pointer; white-space: nowrap; transition: background .15s; }
@media (hover: hover) { .lang-switch__btn:hover { background: var(--cream); } }
.pk { width: 760px; }
.pk__card { margin-top: 10px; padding: 16px; border-radius: var(--radius-20); background: #fff; }
/* "You pay in euros": a cream note above the currencies */
.pk__note { display: flex; align-items: flex-start; gap: 12px; margin: 10px 0 0; padding: 14px 18px; border-radius: var(--radius-20); background: var(--cream); color: var(--black); font-size: 14px; line-height: 1.45; }
.pk__note .ico { flex: none; margin-top: 1px; color: var(--orange); }
.pk-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.pk-grid > li { display: flex; }
.pk-opt, .pk-cur button { flex: 1 1 auto; display: flex; align-items: center; gap: 12px; min-width: 0; min-height: 58px; padding: 8px 12px 8px 9px; border-radius: var(--radius-15); background: var(--bg); color: var(--black); text-decoration: none; font-size: 15px; font-weight: 500; line-height: 1.25; transition: background .15s; }
.pk-opt:hover, .pk-cur button:hover { background: var(--cream); color: var(--black); }
.pk-opt__badge, .pk-cur button::before { flex: none; width: 40px; height: 40px; border-radius: 50%; background: #fff; box-shadow: var(--shadow); display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; letter-spacing: .02em; color: var(--black); }
.pk-opt__badge--sign { font-size: 15px; }
.pk-opt__text { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.pk-opt__text b { font-weight: 700; }
.pk-opt__text small { font-size: 13px; font-weight: 400; color: var(--muted); }
.pk-opt__check { flex: none; margin-left: auto; color: var(--orange); }
.pk-opt[aria-current], .pk-cur [aria-current] { background: var(--cream); box-shadow: inset 0 0 0 2px var(--orange); }
.pk-opt[aria-current] .pk-opt__badge, .pk-cur [aria-current]::before { background: var(--orange); color: #fff; box-shadow: none; }
/* Currencies (parts/cur-switcher.php): one lean <button> each, in the look of the language links above. The badge is
   the sign from data-sign (empty alt text, so a screen reader says "USD US dollar"), the tick a mask of icon('check'). */
.pk-cur button { width: 100%; margin: 0; border: 0; font-family: inherit; text-align: start; cursor: pointer; }
.pk-cur button::before { content: attr(data-sign); content: attr(data-sign) / ""; font-size: 15px; }
/* Signs longer than 2 letters in currencies() (plugin inc/currency.php) take the smaller size of the language codes */
.pk-cur :is([data-sign="CHF"], [data-sign="CA$"], [data-sign="kr."], [data-sign="lei"])::before { font-size: 13px; }
.pk-cur span { min-width: 0; color: var(--muted); font-size: 13px; font-weight: 400; }
.pk-cur b { display: block; margin-bottom: 1px; color: var(--black); font-size: 15px; font-weight: 700; }
.pk-cur [aria-current]::after { content: ""; flex: none; width: 20px; height: 20px; margin-left: auto; background: var(--orange); -webkit-mask: var(--tick) center / contain no-repeat; mask: var(--tick) center / contain no-repeat; }
.pk-cur { --tick: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7'/%3E%3C/svg%3E"); }

@media (max-width: 760px) {
  .pk { width: 100vw; }
  .pk__card { padding: 12px; }
  .pk__note { padding: 12px 14px; font-size: 13px; }
  .pk-grid { grid-template-columns: 1fr 1fr; gap: 6px; }
  .pk-opt, .pk-cur button { min-height: 54px; gap: 10px; padding: 7px 10px 7px 7px; font-size: 14px; }
  .pk-opt__badge, .pk-cur button::before { width: 36px; height: 36px; font-size: 12px; }
  .pk-opt__badge--sign { font-size: 14px; }
  .pk-opt__text small { font-size: 12px; line-height: 1.25; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
  .pk-opt__check, .pk-cur [aria-current]::after { display: none; }
  /* Currencies: a smaller badge, so that "Британский фунт стерлингов" takes two lines on most phones (three at 360 px) */
  .pk-cur button { gap: 8px; padding-right: 8px; }
  .pk-cur button::before { width: 32px; height: 32px; font-size: 13px; }
  .pk-cur :is([data-sign="CHF"], [data-sign="CA$"], [data-sign="kr."], [data-sign="lei"])::before { font-size: 11px; }
  .pk-cur span { font-size: 12px; }
  .pk-cur b { font-size: 14px; }
}
