/*
Theme Name: Perola Child
Template: perola
Version: 1.0.0
Author: SlavSlavich
*/

/* === SEO overlay fixes (AR + sticky header) === */

/* 1) Sticky header: make the SEO menu button clickable on scroll (mobile has no hover) */
.header-state-scrolling .open-list {
    pointer-events: auto !important;
    opacity: 1 !important;
}

/* Sticky header: keep the compact navigation visible without requiring hover. */
.header-state-scrolling::after {
    opacity: 1 !important;
    pointer-events: none !important;
}

.header-state-scrolling a:not(.back-link),
.header-state-scrolling .logo-text {
    opacity: 1 !important;
    pointer-events: auto !important;
}

.header-state-scrolling .logo path {
    fill: #fff !important;
}

/* 2) Keep the close (X) always available even after переход на 2-й экран (список подменю) */
.menu-nav-list { position: fixed; } /* safeguard */
.menu-nav-list > .nav-list-close {
    position: absolute;
    top: 30px;
    right: 30px;
    z-index: 999;
    margin: 0 !important;
    cursor: pointer;
}
@media (max-width: 768px) {
    .menu-nav-list > .nav-list-close {
        top: 20px;
        right: 20px;
    }
}

/* === Parent style.css compatibility ===
 *
 * When Perola Child is active, the parent theme enqueues get_stylesheet_uri(),
 * so Perola (parent) style.css is not loaded. The parent style.css contained
 * a few layout-critical rules (not included in assets/dist/styles.css),
 * especially for the Contacts page hero (template-contacts.php).
 *
 * To keep the parent theme untouched, we replicate those rules here.
 */

.alignleft {
  float: left;
}

.alignright {
  float: right;
}

img.aligncenter,

div.aligncenter {
  display: block;
  margin: 0 auto;
}

img.alignright,

div.alignright {
  margin: 1px 0 2px 10px;
  display: inline;
}

img.alignleft,

div.alignleft {
  margin: 1px 10px 2px 0;
  display: inline;
}

/* Contacts page: keep phone/email centered on the first screen */
.contact-inner {
  position: relative;
}

.contact-inner .hero-title {
  position: absolute;
  left: 50%;
  top: 48%;
  margin: 0;
  transform: translate(-50%, -48%);
}

.contact-inner .connects {
  position: absolute;
  left: 50%;
  top: 62%;
  transform: translate(-50%, -62%);
}

.contact-inner .connects a {
  color: #fff;
  text-decoration: none;
  font-size: 24px;
  margin: 10px 0;
  display: block;
  text-align: center;
}

@media screen and (max-width: 768px) {
  .contact-inner .connects {
    top: 66%;
    transform: translate(-50%, -66%);
    width: 100%;
  }

  .contact-inner .connects a {
    font-size: 18px;
  }
}

.wa-margin {
  margin: 0 20px;
}

.form-line-checkbox .checkbox-view {
  vertical-align: bottom;
}

.checkbox-url a {
  color: #00b8cc;
}

/* City airport list, rendered from airport CPT coordinates. */
.city-airports-section {
  padding-top: 70px;
  padding-bottom: 70px;
}

.city-airports {
  width: 100%;
}

.city-airports-title {
  margin-bottom: 26px;
}

.city-airports-map-wrap {
  position: relative;
  min-height: 420px;
  margin-bottom: 28px;
  border: 1px solid rgba(20, 33, 42, 0.14);
  overflow: hidden;
  background: #eef4f4;
}

.city-airports-map {
  width: 100%;
  height: 420px;
}

.city-airports-map-status {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  margin: 0;
  padding: 24px;
  background: rgba(238, 244, 244, 0.88);
  color: rgba(20, 33, 42, 0.72);
  font-size: 18px;
  line-height: 1.45;
  text-align: center;
}

.city-airports-map-status[hidden] {
  display: none;
}

.city-airports-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.city-airports-item {
  display: flex;
  min-height: 152px;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  padding: 22px;
  border: 1px solid rgba(20, 33, 42, 0.14);
  background: #fff;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.city-airports-item.is-active {
  border-color: rgba(0, 184, 204, 0.55);
  box-shadow: inset 0 0 0 1px rgba(0, 184, 204, 0.18);
}

.city-airports-item-main {
  display: grid;
  gap: 12px;
}

.city-airports-name {
  color: #14212a;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.25;
  text-decoration: none;
}

.city-airports-name:hover,
.city-airports-name:focus-visible {
  color: #00b8cc;
  outline: none;
}

.city-airports-distance {
  display: inline-flex;
  width: fit-content;
  min-height: 34px;
  align-items: center;
  padding: 6px 10px;
  border: 1px solid rgba(0, 184, 204, 0.36);
  color: #14212a;
  font-size: 15px;
  line-height: 1;
}

.city-airports-meta {
  display: grid;
  gap: 6px;
  color: rgba(20, 33, 42, 0.68);
  font-size: 14px;
  line-height: 1.35;
}

.city-airports-codes {
  color: #14212a;
  font-weight: 500;
}

.city-airports-empty {
  max-width: 620px;
  margin: 0;
  color: rgba(20, 33, 42, 0.72);
  font-size: 18px;
  line-height: 1.45;
}

.city-airports-map-marker {
  position: relative;
  transform: translate(-50%, -50%);
  z-index: 1;
}

.city-airports-map-point {
  width: 18px;
  height: 18px;
  padding: 0;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #006b73;
  box-shadow: 0 4px 16px rgba(20, 33, 42, 0.26);
  cursor: pointer;
  transition: background 0.18s ease, transform 0.18s ease;
}

.city-airports-map-marker.is-active {
  z-index: 10000;
}

.city-airports-map-marker.is-active .city-airports-map-point {
  background: #00b8cc;
  outline: none;
  transform: scale(1.22);
}

.city-airports-map-marker.is-covered-by-popup .city-airports-map-point {
  opacity: 0;
  pointer-events: none;
}

.city-airports-popup {
  position: absolute;
  z-index: 10001;
  left: 50%;
  bottom: 30px;
  display: none;
  width: min(260px, 78vw);
  transform: translateX(-50%);
  padding: 16px 18px;
  border: 1px solid rgba(20, 33, 42, 0.14);
  background: #fff;
  box-shadow: 0 12px 36px rgba(20, 33, 42, 0.2);
  color: #14212a;
  font-size: 14px;
  line-height: 1.35;
}

.city-airports-map-marker.is-active .city-airports-popup {
  display: grid;
  gap: 7px;
}

.city-airports-popup-title {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.25;
}

.city-airports-popup-codes {
  font-weight: 500;
}

.city-airports-popup-location,
.city-airports-popup-distance {
  color: rgba(20, 33, 42, 0.68);
}

.city-airports-popup-link {
  width: fit-content;
  margin-top: 4px;
  color: #00b8cc;
  font-weight: 600;
  text-decoration: none;
}

/* Airport detail page override. */
.airport-page {
  padding-top: 72px;
  padding-bottom: 76px;
  color: #14212a;
}

.airport-page-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
  color: rgba(20, 33, 42, 0.62);
  font-size: 14px;
  line-height: 1.4;
}

.airport-page-breadcrumbs a {
  color: inherit;
  text-decoration: none;
}

.airport-page-breadcrumbs a:hover,
.airport-page-breadcrumbs a:focus-visible {
  color: #00b8cc;
  outline: none;
}

.airport-page-title {
  margin-bottom: 20px;
}

.airport-page-title h1 {
  max-width: 860px;
  margin: 8px 0 0;
  font-size: 42px;
  line-height: 1.12;
  letter-spacing: 0;
}

.airport-page-eyebrow {
  color: #00b8cc;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: uppercase;
}

.airport-page-lead {
  max-width: 760px;
  margin: 0 0 34px;
  color: rgba(20, 33, 42, 0.72);
  font-size: 18px;
  line-height: 1.55;
}

.airport-page-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.92fr);
  gap: 22px;
  align-items: stretch;
}

.airport-page-panel {
  border: 1px solid rgba(20, 33, 42, 0.12);
  background: #fff;
}

.airport-page-facts {
  padding: 6px 28px;
}

.airport-page-facts dl {
  margin: 0;
}

.airport-page-facts dl > div {
  display: grid;
  grid-template-columns: minmax(120px, 0.42fr) minmax(0, 1fr);
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(20, 33, 42, 0.1);
}

.airport-page-facts dl > div:last-child {
  border-bottom: 0;
}

.airport-page-facts dt {
  color: rgba(20, 33, 42, 0.58);
  font-size: 14px;
  line-height: 1.4;
}

.airport-page-facts dd {
  margin: 0;
  color: #14212a;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.35;
}

.airport-page-planning {
  display: grid;
  gap: 18px;
  align-content: center;
  padding: 30px;
  background: #14212a;
  color: #fff;
}

.airport-page-planning h2 {
  margin: 0;
  color: #fff;
  font-size: 26px;
  line-height: 1.2;
  letter-spacing: 0;
}

.airport-page-planning p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 16px;
  line-height: 1.55;
}

.airport-page-cta {
  display: inline-flex;
  width: fit-content;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid #00b8cc;
  background: #00b8cc;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

.airport-page-cta:hover,
.airport-page-cta:focus-visible {
  background: #fff;
  color: #14212a;
  outline: none;
}

.airport-page-terminals {
  margin-top: 34px;
}

.airport-page-terminals h2 {
  margin: 0 0 18px;
  font-size: 28px;
  line-height: 1.2;
  letter-spacing: 0;
}

.airport-page-terminals ul {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.airport-page-terminals li {
  display: grid;
  gap: 8px;
  padding: 20px 22px;
  border: 1px solid rgba(20, 33, 42, 0.12);
  background: #fff;
}

/* Airport detail page v2. */
.airport-hero .hero-title-mob {
  display: none;
}

.airport-hero-title {
  display: grid;
  max-width: 900px;
  gap: 18px;
}

.airport-hero-title h1 {
  margin: 0;
  color: #fff;
  letter-spacing: 0;
}

.airport-hero-title p {
  max-width: 700px;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
  line-height: 1.55;
}

.airport-hero-title .airport-page-eyebrow {
  color: #00b8cc;
}

.airport-hero-title .airport-page-cta {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  min-height: 44px;
  height: auto;
  padding: 0 18px;
  font-size: 16px;
  line-height: 1.2;
}

.airport-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.airport-hero-meta span {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  color: #fff;
  font-size: 15px;
  line-height: 1.2;
}

.airport-page-v2 {
  padding-top: 0;
  padding-bottom: 0;
}

.airport-page-v2 .breadcrumbs-section {
  padding-top: 28px;
  padding-bottom: 0;
}

.airport-page-v2 .airport-page-breadcrumbs {
  margin-bottom: 0;
}

.airport-page-intro {
  padding-top: 52px;
  padding-bottom: 38px;
}

.airport-page-subscription {
  margin-top: 0;
}

.airport-page-map-section,
.airport-page-cities-section,
.airport-page-facts-section {
  padding-top: 70px;
  padding-bottom: 70px;
}

.airport-page-section-title {
  margin-bottom: 16px;
}

.airport-page-section-note {
  max-width: 760px;
  margin: 0 0 28px;
  color: rgba(20, 33, 42, 0.72);
  font-size: 18px;
  line-height: 1.5;
}

.airport-page-map-wrap {
  margin-bottom: 28px;
}

.airport-page-map-layout {
  display: grid;
  grid-template-columns: minmax(240px, 0.34fr) minmax(0, 1fr);
  gap: 24px;
  align-items: stretch;
}

.airport-page-current-point {
  display: grid;
  min-height: 176px;
  align-content: space-between;
  gap: 12px;
  padding: 26px;
  border: 1px solid rgba(20, 33, 42, 0.16);
  background: #14212a;
  color: #fff;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.airport-page-current-point.is-active {
  border-color: rgba(0, 184, 204, 0.7);
  box-shadow: inset 0 0 0 1px rgba(0, 184, 204, 0.24);
}

.airport-page-current-point strong {
  color: #fff;
  font-size: 24px;
  line-height: 1.22;
}

.airport-page-current-point span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 15px;
  line-height: 1.35;
}

.airport-page-current-point .airport-page-current-label {
  color: #00b8cc;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
}

.airport-page-nearby-airports {
  display: grid;
  gap: 16px;
}

.airport-page-nearby-airports h3 {
  margin: 0;
  color: #14212a;
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: 0;
}

.airport-page-nearby-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.airport-page-nearby-item {
  min-height: 176px;
}

.airport-page-map-marker.is-main-airport .city-airports-map-point {
  width: 22px;
  height: 22px;
  background: #14212a;
}

.airport-page-map-marker.is-main-airport.is-active .city-airports-map-point {
  background: #00b8cc;
}

.airport-page-city-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.airport-page-city-item {
  display: grid;
  min-height: 118px;
  align-content: space-between;
  gap: 18px;
  padding: 22px;
  border: 1px solid rgba(20, 33, 42, 0.14);
  background: #fff;
}

.airport-page-city-item a {
  color: #14212a;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.25;
  text-decoration: none;
}

.airport-page-city-item a:hover,
.airport-page-city-item a:focus-visible {
  color: #00b8cc;
  outline: none;
}

.airport-page-city-item span {
  display: inline-flex;
  width: fit-content;
  min-height: 34px;
  align-items: center;
  padding: 6px 10px;
  border: 1px solid rgba(0, 184, 204, 0.36);
  color: #14212a;
  font-size: 15px;
  line-height: 1;
}

.airport-page-v2 .airport-page-grid {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.86fr);
}

.airport-page-v2 .airport-page-facts {
  padding: 0 28px 8px;
}

.airport-page-v2 .airport-page-facts h2,
.airport-page-routes h2 {
  margin: 26px 0 4px;
  color: #14212a;
  font-size: 28px;
  line-height: 1.2;
  letter-spacing: 0;
}

.airport-page-routes {
  display: grid;
  gap: 20px;
  align-content: start;
  padding: 30px;
  background: #14212a;
  color: #fff;
}

.airport-page-routes h2 {
  margin: 0;
  color: #fff;
}

.airport-page-routes p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 16px;
  line-height: 1.55;
}

.airport-page-route-list {
  display: grid;
  gap: 14px;
}

.airport-page-route-list div {
  display: grid;
  gap: 5px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.airport-page-route-list strong {
  color: #fff;
  font-size: 17px;
  line-height: 1.3;
}

.airport-page-route-list span {
  color: rgba(255, 255, 255, 0.7);
  font-size: 15px;
  line-height: 1.45;
}

.airport-page-contact {
  margin-top: 0;
}

[dir="rtl"] .airport-page-v2,
[dir="rtl"] .airport-hero {
  direction: rtl;
}

@media screen and (max-width: 1200px) {
  .city-airports-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .airport-page-grid {
    grid-template-columns: 1fr;
  }

  .airport-page-map-layout,
  .airport-page-v2 .airport-page-grid {
    grid-template-columns: 1fr;
  }

  .airport-page-city-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media screen and (max-width: 768px) {
  .city-airports-section {
    padding-top: 46px;
    padding-bottom: 46px;
  }

  .city-airports-map-wrap {
    min-height: 320px;
    margin-bottom: 22px;
  }

  .city-airports-map {
    height: 320px;
  }

  .city-airports-list {
    grid-template-columns: 1fr;
  }

  .city-airports-item {
    min-height: 0;
  }

  .airport-page {
    padding-top: 48px;
    padding-bottom: 52px;
  }

  .airport-page-title h1 {
    font-size: 30px;
  }

  .airport-page-lead {
    margin-bottom: 24px;
    font-size: 16px;
  }

  .airport-page-facts {
    padding: 2px 18px;
  }

  .airport-page-facts dl > div {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 16px 0;
  }

  .airport-page-facts dd {
    font-size: 16px;
  }

  .airport-page-planning {
    padding: 22px;
  }

  .airport-page-planning h2,
  .airport-page-terminals h2 {
    font-size: 24px;
  }

  .airport-hero-title {
    gap: 14px;
  }

  .airport-hero-title p {
    font-size: 16px;
  }

  .airport-hero-meta span {
    min-height: 32px;
    font-size: 14px;
  }

  .airport-page-intro,
  .airport-page-map-section,
  .airport-page-cities-section,
  .airport-page-facts-section {
    padding-top: 46px;
    padding-bottom: 46px;
  }

  .airport-page-section-note {
    margin-bottom: 22px;
    font-size: 16px;
  }

  .airport-page-current-point {
    min-height: 0;
    padding: 22px;
  }

  .airport-page-current-point strong {
    font-size: 21px;
  }

  .airport-page-nearby-list,
  .airport-page-city-list {
    grid-template-columns: 1fr;
  }

  .airport-page-city-item {
    min-height: 0;
  }

  .airport-page-v2 .airport-page-facts {
    padding: 0 18px 2px;
  }

  .airport-page-v2 .airport-page-facts h2,
  .airport-page-routes h2 {
    font-size: 24px;
  }

  .airport-page-routes {
    padding: 22px;
  }
}
/* Flight request modal: full-screen, opaque, and independent from page scroll. */
html.flight-modal-scroll-locked,
body.flight-modal-scroll-locked {
  overflow: hidden !important;
}

body.flight-modal-open .fixed-modal-overlay,
body.flight-modal-open .fixed-modal-overlay.active {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  right: auto !important;
  bottom: auto !important;
  border-radius: 0 !important;
  background: #007180 !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  z-index: 10000 !important;
}

body.flight-modal-open .modal,
body.flight-modal-open .modal.active {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  min-height: 100vh !important;
  background: #007180 !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  z-index: 10001 !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
}

body.flight-modal-open .fixed-modal-close {
  z-index: 10002 !important;
}
body.flight-modal-open .litepicker,
body.flight-modal-open .litepicker-backdrop {
  z-index: 10003 !important;
}
/* Airport pages: keep scrolled content clickable above the pinned/fixed hero. */
.airport-page {
  position: relative;
  z-index: 20;
}
html[dir="rtl"] .page-seo .subscription .new-container {
  direction: rtl;
  flex-direction: row-reverse;
}

html[dir="rtl"] .page-seo .subscription .title {
  margin-right: 0;
  margin-left: 115px;
  text-align: right;
}

html[dir="rtl"] .page-seo .subscription-title,
html[dir="rtl"] .page-seo .form-contact-seo .contact-title,
html[dir="rtl"] .page-seo .text-bloc .def-text {
  text-align: right;
}

html[dir="rtl"] .page-seo .subscription .form {
  direction: rtl;
  justify-content: flex-start;
}

html[dir="rtl"] .page-seo .subscription .input-btn {
  margin-left: 0;
  margin-right: 10px;
}

html[dir="rtl"] .page-seo .subscription .form-input input,
html[dir="rtl"] .page-seo .form-contact-seo input,
html[dir="rtl"] .page-seo .form-contact-seo textarea {
  direction: rtl;
  text-align: right;
}

@media screen and (max-width: 991px) {
  html[dir="rtl"] .page-seo .subscription .title {
    margin-left: 0;
  }
}

@media screen and (max-width: 767px) {
  html[dir="rtl"] .page-seo .subscription .new-container {
    flex-direction: column;
  }

  html[dir="rtl"] .page-seo .subscription .input-btn {
    margin-right: 0;
  }
}

/* SEO forms: keep native checkbox hidden without pushing RTL pages off-screen. */
.form-line-checkbox {
  position: relative;
}

.form-line-checkbox .checkbox-core {
  position: absolute !important;
  left: auto !important;
  right: auto !important;
  width: 1px !important;
  height: 1px !important;
  margin: 0 !important;
  opacity: 0 !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
}

html[dir="rtl"] .page-seo .form-line-checkbox {
  direction: rtl;
  justify-content: flex-start;
}

html[dir="rtl"] .page-seo .form-line-checkbox .checkbox-view {
  flex: 0 0 18px;
  margin-right: 0;
  margin-left: 10px;
}

/* SEO calculator: keep desktop row width stable across translated submit labels. */
@media screen and (min-width: 992px) {
  .page-seo .modal-bloc-seo .modal-core form {
    width: 100%;
  }

  .page-seo .modal-bloc-seo .modal-left {
    flex: 1 1 auto;
  }
}
