/* Post-migration additions on top of the original theme CSS.
   Kept deliberately tiny: the wiro theme owns the design. */
:focus-visible { outline: 2px solid #b8860b; outline-offset: 2px; }
.wpcf7-response-output { display: none; margin-top: 10px; font-weight: 600; }
input[name="website"] { position: absolute !important; left: -9999px !important; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* --- About page typography (presentation only; text untouched) ---------
   The theme leaves .about-info__text almost unstyled: headings hug the
   paragraphs, the measure runs the full viewport. Scoped to the about
   template (EN /en/about/ and RU /ru/o-nas/ share it). */
.page-template-template-about .about-info__text {
  max-width: 820px;
  font-size: 17px;
  line-height: 1.7;
  color: #2c3e50;
}
.page-template-template-about .about-info__text h2 {
  color: #172e49;
  font-size: 1.55rem;
  line-height: 1.3;
  margin: 1.7em 0 0.6em;
}
.page-template-template-about .about-info__text h2:first-child {
  margin-top: 0.4em;
}
.page-template-template-about .about-info__text p {
  margin: 0 0 1.05em;
}
.page-template-template-about .about-info__text strong {
  color: #172e49;
}
.page-template-template-about .about-info__text ul {
  margin: 0.4em 0 1.3em;
  padding-left: 1.4em;
}
.page-template-template-about .about-info__text li {
  margin: 0.45em 0;
  padding-left: 0.2em;
}
.page-template-template-about .about-info__text li::marker {
  color: #b8860b;
}
.page-template-template-about .about-page-head {
  margin-bottom: 1.6em;
}
.page-template-template-about .about-info__text ul {
  list-style: disc;
}

/* --- Home SEO text block (.custom__ed): same rhythm treatment as About --- */
.custom__ed {
  max-width: 860px;
  font-size: 17px;
  line-height: 1.7;
  color: #2c3e50;
}
.custom__ed h2 {
  color: #172e49;
  font-size: 1.5rem;
  line-height: 1.3;
  margin: 1.7em 0 0.6em;
}
.custom__ed h3 {
  color: #172e49;
  font-size: 1.2rem;
  margin: 1.4em 0 0.45em;
}
.custom__ed p { margin: 0 0 1.05em; }
.custom__ed strong { color: #172e49; }
.custom__ed ul { list-style: disc; margin: 0.4em 0 1.3em; padding-left: 1.4em; }
.custom__ed li { margin: 0.45em 0; }
.custom__ed li::marker { color: #b8860b; }
.custom__ed a { color: #1e6091; }

/* Requisites cards (.hz-p4-nap): long emails must wrap inside the card */
.hz-p4-grid li { min-width: 0; }
.hz-p4-grid li, .hz-p4-grid a {
  overflow-wrap: anywhere;
  word-break: break-word;
}


/* --- Wide tables on mobile: compact booking-style listing.
   Roles are set at build: title | price | spec | note. --- */
@media (max-width: 820px) {
  table.hz-stack-table,
  table.hz-stack-table tbody { display: block; width: 100%; }
  table.hz-stack-table tr.hz-th-row { display: none !important; }
  table.hz-stack-table tr {
    display: grid !important;
    grid-template-columns: 1fr auto;
    gap: 1px 12px;
    padding: 12px 2px !important;
    border: 0 !important;
    border-bottom: 1px solid #e6ebf1 !important;
    background: transparent !important;
  }
  table.hz-stack-table tr:last-child { border-bottom: 0 !important; }
  table.hz-stack-table td, table.hz-stack-table tr > th {
    display: block;
    padding: 1px 0 !important;
    border: 0 !important;
    text-align: left !important;
    line-height: 1.45;
    background: transparent !important;
  }
  table.hz-stack-table [data-role="title"] {
    grid-column: 1; grid-row: 1;
    font-weight: 700; font-size: 16px; color: #172e49;
  }
  table.hz-stack-table [data-role="price"] {
    grid-column: 2; grid-row: 1;
    font-weight: 700; font-size: 15px; color: #172e49;
    text-align: right !important; align-self: start; max-width: 60vw;
  }
  table.hz-stack-table [data-role="spec"],
  table.hz-stack-table [data-role="note"] {
    grid-column: 1 / -1;
    font-size: 13.5px; color: #5b6b7b;
  }
  table.hz-stack-table [data-role="spec"] {
    display: flex !important;
    flex-wrap: wrap;
    gap: 0 6px;
    align-items: baseline;
  }
  table.hz-stack-table [data-role="spec"] > * { margin: 0; }
  table.hz-stack-table [data-role="spec"]::before {
    content: attr(data-label) ": ";
    font-weight: 600; color: #44546a;
  }
  table.hz-stack-table [data-role="note"] { margin-top: 2px; }
}

/* Mobile: bare-URL link texts and long strings wrap instead of overflowing */
@media (max-width: 820px) {
  main a, main p, main li, main td {
    overflow-wrap: anywhere;
  }
}

/* --- New lead form (hzf), 1:1 with the owner's mockup --- */
.hzf-card {
  background: #fff; border-radius: 22px; padding: 28px 30px;
  box-shadow: 0 14px 40px rgba(10, 30, 50, 0.20); box-sizing: border-box;
}
.hzf-card-hero { position: absolute; right: 4%; top: 50%; transform: translateY(-50%); width: 470px; z-index: 6; }
/* Mobile hero: the theme pins a fixed-height hero with absolute children, so a
   static card paints under the bg image and spills out of the section. Let the
   hero grow, put its text block back into flow and float the card above it. */
@media (max-width: 1100px) {
  main .wrapper:has(.hzf-card-hero) { height: auto; }
  main .wrapper:has(.hzf-card-hero) .wrapper_body_main { position: relative; inset: auto; }
  main .wrapper:has(.hzf-card-hero) .wrapper_img_background { height: 100%; }
  .hzf-card-hero { position: relative; z-index: 6; transform: none; right: auto; top: auto; width: auto; margin: 6px 16px 28px; }
}
/* Stacked (mobile) yacht/destination layout: the thumbnail swiper drops its
   pagination bullets below itself — give the card room so they don't overlap. */
@media (max-width: 991px) {
  .hzf-card-side { margin-top: 34px; }
}
.hzf-card-side { width: 100%; }
.hzf-title { margin: 0 0 6px; font-size: 27px; font-weight: 800; color: #172e49; letter-spacing: .01em; }
.hzf-ctx { margin: 0 0 6px; font-size: 14px; font-weight: 600; color: #277e9c; }
.hzf-sub { font-size: 14.5px; color: #6b7987; margin: 2px 0 16px; line-height: 1.55; }
.hzf-lab { display: block; font-weight: 700; font-size: 14.5px; color: #172e49; margin: 14px 0 8px; }
.hzf-field { position: relative; }
.hzf-field .hzf-ic { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); pointer-events: none; }
.hzf-date, .hzf-phone {
  width: 100%; padding: 13px 14px 13px 41px; border: 1.5px solid #dde4ec; border-radius: 12px;
  font: inherit; font-size: 15px; background: #fff; color: #172e49; box-sizing: border-box;
}
.hzf-date::placeholder, .hzf-phone::placeholder { color: #9aa7b5; }
.hzf-date:focus, .hzf-phone:focus { outline: none; border-color: #2478e0; box-shadow: 0 0 0 3px rgba(36,120,224,.13); }
.hzf-chips { display: flex; gap: 8px; }
.hzf-chip {
  flex: 1; padding: 9px 2px; border: 1.5px solid #dde4ec; border-radius: 999px; background: #fff;
  font: inherit; font-size: 13.5px; font-weight: 600; color: #172e49; cursor: pointer; white-space: nowrap;
}
.hzf-chip.hzf-on { background: #172e49; color: #fff; border-color: #172e49; }
.hzf-chan { display: flex; gap: 8px; margin: 14px 0 8px; }
.hzf-chan-opt {
  flex: 1; text-align: center; padding: 9px 10px; border: 1.5px solid #dde4ec; border-radius: 12px;
  font-size: 14px; font-weight: 700; color: #6b7987; cursor: pointer; position: relative;
}
.hzf-chan-opt input { position: absolute; opacity: 0; }
.hzf-chan-active { background: #eef6ff; border-color: #2478e0; color: #172e49; }
.hzf-hp { position: absolute !important; left: -9999px !important; }
.hzf-btn {
  width: 100%; margin-top: 16px; padding: 15px 18px; border: 0; border-radius: 13px;
  background: #2478e0; color: #fff; font: inherit; font-size: 16.5px; font-weight: 700; cursor: pointer;
}
.hzf-btn:hover { background: #1e66c2; }
.hzf-badges { display: flex; gap: 10px; justify-content: space-between; margin-top: 18px; padding-top: 16px; border-top: 1px solid #e9eef4; }
.hzf-badge { display: flex; align-items: flex-start; gap: 8px; }
.hzf-badge b { font-size: 12.5px; font-weight: 700; color: #2a3b4d; line-height: 1.3; }
.hzf-badge svg { flex: 0 0 auto; margin-top: 1px; }
.hzf-note { font-size: 13px; color: #8a97a6; text-align: center; margin: 14px 0 2px; }
.hzf-wa { display: block; text-align: center; font-size: 14px; font-weight: 700; color: #2478e0; margin-top: 4px; text-decoration: none; }
.hzf-status { font-weight: 600; margin: 10px 0 0; }
.hzf-status.ok { color: #2d6a4f; } .hzf-status.err { color: #c53030; }
/* Mobile: bare-URL link texts and long strings wrap instead of overflowing */
@media (max-width: 820px) {
  main a, main p, main li, main td {
    overflow-wrap: anywhere;
  }
}

/* --- New lead form (hzf) --- */
.hzf { display: block; }
.hzf-sub { font-size: 14px; color: #5b6b7b; margin: 4px 0 14px; line-height: 1.5; }
.hzf-lab { display: block; font-weight: 600; font-size: 14px; color: #172e49; margin: 12px 0 6px; }
.hzf-date, .hzf-phone {
  width: 100%; padding: 12px 14px; border: 1px solid #d7dee6; border-radius: 10px;
  font: inherit; font-size: 15px; background: #fff; color: #172e49;
}
.hzf-date:focus, .hzf-phone:focus { outline: none; border-color: #277e9c; box-shadow: 0 0 0 3px rgba(39,126,156,.15); }
.hzf-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.hzf-chip {
  padding: 8px 14px; border: 1px solid #d7dee6; border-radius: 999px; background: #fff;
  font: inherit; font-size: 14px; color: #172e49; cursor: pointer;
}
.hzf-chip.hzf-on { background: #172e49; color: #fff; border-color: #172e49; }
.hzf-chan { display: flex; gap: 8px; margin: 12px 0 6px; }
.hzf-chan-opt {
  flex: 1; text-align: center; padding: 8px 10px; border: 1px solid #d7dee6; border-radius: 10px;
  font-size: 14px; font-weight: 600; color: #5b6b7b; cursor: pointer;
}
.hzf-chan-opt input { position: absolute; opacity: 0; }
.hzf-chan-active { background: #eef6f9; border-color: #277e9c; color: #172e49; }
.hzf-hp { position: absolute !important; left: -9999px !important; }
.hzf-btn {
  width: 100%; margin-top: 14px; padding: 14px 18px; border: 0; border-radius: 10px;
  background: #1f6fb0; color: #fff; font: inherit; font-size: 16px; font-weight: 700; cursor: pointer;
}
.hzf-btn:hover { background: #277e9c; }
.hzf-note { font-size: 13px; color: #7a8896; text-align: center; margin: 10px 0 2px; }
.hzf-wa { display: block; text-align: center; font-size: 14px; font-weight: 600; color: #1f6fb0; margin-top: 6px; text-decoration: none; }
.hzf-status { font-weight: 600; margin: 10px 0 0; }
.hzf-status.ok { color: #2d6a4f; } .hzf-status.err { color: #c53030; }
.hzf-badges { display: flex; gap: 14px; justify-content: space-between; margin-top: 16px; padding-top: 14px; border-top: 1px solid #e6ebf1; }
.hzf-badges span { font-size: 12.5px; font-weight: 600; color: #44546a; line-height: 1.35; }

/* hzf card chrome (self-contained; no theme classes) */
.hzf-card {
  background: #fff;
  border-radius: 16px;
  padding: 22px 24px;
  box-shadow: 0 10px 32px rgba(10, 30, 50, 0.18);
  box-sizing: border-box;
}
.hzf-card-hero {
  position: absolute;
  right: 4%;
  top: 50%;
  transform: translateY(-50%);
  width: 420px;
  z-index: 6;
}
@media (max-width: 1100px) {
  .hzf-card-hero {
    position: relative;
    z-index: 6;
    transform: none;
    right: auto;
    top: auto;
    width: auto;
    margin: 6px 16px 28px;
  }
}
.hzf-card-side { width: 100%; }
.hzf-title { margin: 0 0 4px; font-size: 22px; font-weight: 800; color: #172e49; letter-spacing: .01em; }
.hzf-ctx { margin: 0 0 8px; font-size: 14px; font-weight: 600; color: #277e9c; }


/* specificity fixes over theme input styles */
.hzf-field input.hzf-date, .hzf-field input.hzf-phone {
  padding: 13px 14px 13px 41px !important;
}
.hzf-chips { flex-wrap: nowrap; gap: 6px; }
.hzf-chip { font-size: 12.5px; padding: 9px 0; min-width: 0; }

/* --- custom calendar popover (hzc) --- */
.hzc {
  position: absolute; top: calc(100% + 6px); left: 0; z-index: 40;
  background: #fff; border: 1px solid #e3eaf2; border-radius: 14px;
  box-shadow: 0 14px 36px rgba(10, 30, 50, 0.18); padding: 12px; width: 296px;
}
.hzc-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.hzc-head b { font-size: 15px; color: #172e49; }
.hzc-nav {
  width: 32px; height: 32px; border: 1px solid #e3eaf2; border-radius: 9px; background: #fff;
  font-size: 18px; color: #172e49; cursor: pointer; line-height: 1;
}
.hzc-nav:disabled { opacity: .3; cursor: default; }
.hzc-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.hzc-dow { text-align: center; font-size: 11.5px; font-weight: 700; color: #9aa7b5; padding: 4px 0; }
.hzc-day {
  border: 0; background: none; padding: 7px 0; border-radius: 9px;
  font: inherit; font-size: 13.5px; color: #172e49; cursor: pointer;
}
.hzc-day:hover { background: #eef6ff; }
.hzc-day:disabled { color: #c4cdd6; cursor: default; background: none; }
.hzc-today { box-shadow: inset 0 0 0 1.5px #2478e0; }
.hzc-day:active, .hzc-day:focus { background: #2478e0; color: #fff; }

/* --- Full-width content zone below gallery+form (hz-below) --- */
.hz-below { margin: 6px 0 34px; }
.hz-below .card-page-info { max-width: none; }
/* spec chips grid */
.hz-below .card-page-item-list.hz-specs {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(215px, 1fr));
  gap: 10px;
  width: 100%;
}
.hz-below .card-page-item-list-wrapper { display: block !important; }
.hz-below .info {
  background: #f6f9fc;
  border: 1px solid #e5edf4;
  border-radius: 12px;
  padding: 12px 16px;
}
.hz-below .info__title { display: block; font-size: 12.5px; font-weight: 600; color: #7c8b9a; text-transform: uppercase; letter-spacing: .04em; }
.hz-below .info__text { font-size: 17px; font-weight: 700; color: #172e49; }
/* section headings */
.hz-below .card-page-item__title, .hz-below h2 {
  display: block;
  padding-bottom: 8px;
  border-bottom: 2px solid #e7eef5;
  margin: 30px 0 16px;
}
/* price tables full width */
.hz-below table { width: 100%; }
.hz-below tr:first-child td, .hz-below th { background: #eef4f9; font-weight: 700; color: #172e49; }
/* readable prose measure inside full width */
.hz-below p { max-width: 960px; font-size: 16.5px; line-height: 1.75; }
/* includes / excludes */
.hz-below .hz-inc ul, .hz-below .hz-exc ul { list-style: none; padding-left: 0; }
.hz-below .hz-inc li, .hz-below .hz-exc li { position: relative; padding-left: 28px; margin: 7px 0; max-width: 960px; }
.hz-below .hz-inc li::before { content: "✓"; position: absolute; left: 0; top: 0; font-weight: 800; color: #2d8a58; }
.hz-below .hz-exc li::before { content: "✕"; position: absolute; left: 0; top: 0; font-weight: 800; color: #c05353; }
@media (min-width: 900px) { .hz-below .hz-inc ul { column-count: 2; column-gap: 44px; } }
/* youtube button */
.hz-ytbtn {
  display: inline-flex; align-items: center; gap: 10px;
  background: #fff; border: 1.5px solid #e5edf4; border-radius: 12px;
  padding: 9px 16px; text-decoration: none; font-weight: 700; color: #172e49;
  margin: 4px 0 10px;
}
.hz-ytbtn img { width: 34px; height: auto; }

/* yacht pages: centered title */
.single-yacht .hz-below h1 { text-align: center; }

/* --- Mobile hero form: collapsed behind a toggle button (owner request) --- */
.hzf-toggle { display: none; }
.hzf-hero-wrap { display: contents; }
@media (max-width: 1100px) {
  .hzf-hero-wrap { display: block; position: relative; z-index: 6; margin: 10px 16px 26px; }
  .hzf-card-hero { position: relative; z-index: 6; transform: none; right: auto; top: auto; width: auto; margin: 12px 0 0; }
  .hzf-toggle {
    display: flex; width: 100%; align-items: center; justify-content: center; gap: 10px;
    padding: 16px 18px; border: 0; border-radius: 14px; background: #fff; color: #172e49;
    font: inherit; font-size: 16.5px; font-weight: 800; letter-spacing: .01em; cursor: pointer;
    box-shadow: 0 10px 32px rgba(10, 30, 50, 0.18);
  }
  .hzf-toggle svg { transition: transform .25s ease; color: #1f6fb0; }
  .hzf-hero-wrap.hzf-open .hzf-toggle svg { transform: rotate(180deg); }
  .hzf-collapsible .hzf-card-hero { display: none; }
  .hzf-collapsible.hzf-open .hzf-card-hero { display: block; }
}
