/* ============================================================
   ELF GARDEN — thin global CSS layer (Design 2026)

   Most styling lives in the layouts themselves (colors, fonts,
   spacing, radius — set natively in module attributes).
   This file only covers the fixed header behavior, hover effects,
   decorative shapes, fireflies and a few typography details.

   Fraunces is self-hosted (fraunces.css in child theme).
   Reference archive: design/assets/elf-garden-global.css
   ============================================================ */

:root {
  /* --elf-teal: #007a7f;
  --elf-teal-deep: #0b3a3d;
  --elf-teal-strong: #00595d;
  --elf-teal-soft: #8fc3c5;
  --elf-teal-mist: #e3f1f1;
  --elf-honey: #c9913d;
  --elf-honey-soft: #e3b86b;
  --elf-firefly: #f4cf6d;
  --elf-ivory: #fcf9f2;
  --elf-linen: #f3eee1;
  --elf-ink: #1f3331;
  --elf-ink-soft: #54706c;
  --elf-header-height: 76px; */
  --radius-arch: 200px;
  --radius-card: 20px;
  --gcid-elf-honey-soft: #e3b86b;
}

/* ---------- 1. General custom styles ---------- */
h2 {
  padding-bottom: 0 !important;
}

.elf-btn svg {
  height: 16px !important;
}

.g-item,
.g-item .et_pb_image_wrap {
  height: 100%;
  width: 100%;
}

.g-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.g-item:hover img {
  transition: transform 0.6s ease;
  transform: scale(1.06);
}

.g-item:hover::after {
  opacity: 1;
}

.g-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 65%, rgba(11, 58, 61, 0.35));
  opacity: 0;
  transition: opacity 0.4s ease;
}

/* ---------- 2. Section fireflies (spans injected by elf-garden-global.js) ---------- */
.elf-firefly {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gcid-elf-firefly);
  box-shadow: 0 0 12px 3px color-mix(in srgb, var(--gcid-elf-firefly) 55%, transparent);
  animation: elf-drift 9s ease-in-out infinite;
  opacity: 0;
  pointer-events: none;
}
@keyframes elf-drift {
  0% {
    opacity: 0;
    transform: translate(0, 0) scale(0.6);
  }
  25% {
    opacity: 0.9;
  }
  50% {
    opacity: 0.4;
    transform: translate(28px, -38px) scale(1);
  }
  75% {
    opacity: 0.85;
  }
  100% {
    opacity: 0;
    transform: translate(-16px, -76px) scale(0.5);
  }
}

/* ---------- 3. Plugin custom styles ---------- */

.gallery-page.gallery .pfg-item-link img.pfg-item-image {
  transition: transform 0.6s ease !important;
}

.gallery-page.gallery .pfg-item-link:hover img.pfg-item-image {
  transform: scale(1.06);
}

.gallery-page.gallery .pfg-item-link:hover::after {
  opacity: 1;
}

.gallery-page.gallery .pfg-item-link::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 65%, rgba(11, 58, 61, 0.35));
  opacity: 0;
  transition: opacity 0.4s ease;
}

/* PFG masonry: fill the Divi column so JS does not measure a 0-width grid. */
.gallery-page .pfg-gallery-wrapper,
.gallery-page .pfg-grid--masonry {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

/* ---------- 4. Language switcher and booking button styles ---------- */

/* language switcher — [elf_lang_switcher] shortcode in header Code module */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border-radius: 100px;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  transition: border-color 0.3s ease;
  flex-shrink: 0;
}
.lang-switch a {
  font-family: "Figtree", system-ui, sans-serif;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.92);
  padding: 6px 11px;
  border-radius: 100px;
  transition:
    background 0.25s ease,
    color 0.25s ease;
}
.lang-switch a:hover {
  color: #fff !important;
}
.lang-switch a.active {
  background: var(--gcid-elf-honey, #c9913d);
  color: var(--gcid-elf-teal-deep, #0b3a3d) !important;
}
.site-header.scrolled .lang-switch,
.site-header.menu-open .lang-switch {
  border-color: rgba(0, 122, 127, 0.35);
}
.site-header.scrolled .lang-switch a,
.site-header.menu-open .lang-switch a {
  color: var(--gcid-elf-teal-deep, #0b3a3d) !important;
}
.site-header.scrolled .lang-switch a:hover,
.site-header.menu-open .lang-switch a:hover {
  color: var(--gcid-elf-teal, #007a7f) !important;
}
.site-header.scrolled .lang-switch a.active,
.site-header.menu-open .lang-switch a.active {
  background: var(--gcid-elf-teal, #007a7f);
  color: #fff !important;
}

/* booking button — [elf_t link="foglalas" class="header-cta"] in a header Code module */
.header-cta {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.7;
  padding: 11px 24px;
  border-radius: 100px;
  text-decoration: none;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.65);
  transition: all 0.3s ease;
  white-space: nowrap;
}
.header-cta:hover {
  background: var(--gcid-elf-teal, #007a7f);
  border-color: var(--gcid-elf-teal, #007a7f);
}
.site-header.scrolled .header-cta {
  color: var(--gcid-elf-teal, #007a7f);
  border-color: var(--gcid-elf-teal, #007a7f);
}
.site-header.scrolled .header-cta:hover {
  background: var(--gcid-elf-teal, #007a7f);
  color: #fff;
}
.site-header.scrolled .header-cta:focus {
  color: white;
}

/* mobile nav — same .header-cta, overrides for the slide-down panel */
.mobile-nav .header-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 18px;
  padding: 15px 32px;
  font-size: 15px;
  color: #fff;
  background: var(--gcid-elf-teal, #007a7f);
  border-color: var(--gcid-elf-teal, #007a7f);
  box-shadow: 0 6px 20px rgba(0, 122, 127, 0.3);
}
.mobile-nav .header-cta:hover {
  background: #00595d;
  border-color: #00595d;
  color: #fff;
  box-shadow: 0 10px 28px rgba(0, 122, 127, 0.45);
  transform: translateY(-2px);
}


/* CF7 garden / custom request form — only inside .booking-form */
.booking-form {
  line-height: 1.7;
  max-width: 100%;
  min-width: 0;
}

.booking-form .wpcf7,
.booking-form .wpcf7-form,
.booking-form .form-row,
.booking-form .form-row > *,
.booking-form .form-input,
.booking-form .form-submit-row {
  max-width: 100%;
  min-width: 0;
}

.booking-form .form-row {
  display: grid;
  gap: 0 14px;
  grid-template-columns: 1fr 1fr;
}

.booking-form .form-label {
  color: var(--gcid-elf-ink-soft, #54706c);
  display: block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  margin: 14px 0 6px;
  text-transform: uppercase;
}

.booking-form .form-input input,
.booking-form .form-input textarea,
.booking-form .form-input select {
  background: #fff;
  border: 1.5px solid color-mix(in srgb, var(--gcid-elf-teal, #007a7f) 18%, transparent);
  border-radius: 12px;
  color: var(--gcid-elf-ink, #1f3331);
  font-family: var(--et_global_body_font, inherit);
  font-size: 15.5px;
  outline: none;
  padding: 12px 16px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  width: 100%;
}

.booking-form .form-input input:focus,
.booking-form .form-input textarea:focus,
.booking-form .form-input select:focus {
  border-color: var(--gcid-elf-teal, #007a7f);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--gcid-elf-teal, #007a7f) 12%, transparent);
}

.booking-form .form-input textarea {
  height: 130px;
  min-height: 130px;
  resize: vertical;
}

.booking-form .form-input select,
.booking-form .wpcf7-select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%23007a7f' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' d='M1 1.5L6 6.5L11 1.5'/%3E%3C/svg%3E");
  background-position: right 16px center;
  background-repeat: no-repeat;
  background-size: 12px 8px;
  cursor: pointer;
  min-height: 47px;
  padding-right: 40px;
}

.booking-form .form-submit-row {
  display: flex;
  flex-direction: column-reverse;
  gap: 14px;
  margin-top: 0;
}

.booking-form .form-submit p {
  align-items: center;
  display: flex;
  margin: 0;
}

.booking-form .form-submit input {
  align-items: center;
  background: var(--gcid-elf-teal, #007a7f);
  border: none;
  border-radius: 100px;
  box-shadow: 0 6px 20px color-mix(in srgb, var(--gcid-elf-teal, #007a7f) 35%, transparent);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font-family: var(--et_global_body_font, inherit);
  font-size: 15px;
  font-weight: 600;
  gap: 10px;
  letter-spacing: 0.03em;
  padding: 15px 32px;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
  width: fit-content;
}

.booking-form .form-submit input:hover {
  background: var(--gcid-elf-teal-strong, #00595d);
  box-shadow: 0 10px 28px color-mix(in srgb, var(--gcid-elf-teal, #007a7f) 45%, transparent);
  transform: translateY(-2px);
}

.booking-form .form-turnstile {
  max-width: 100%;
  min-width: 0;
  overflow: auto;
}

.booking-form .wpcf7 form .wpcf7-response-output {
  border: 2px solid var(--gcid-elf-firefly, #c45c26);
  border-radius: 10px;
  padding: 0.5em 1em;
}

.booking-form .wpcf7 form.invalid .wpcf7-response-output,
.booking-form .wpcf7 form.unaccepted .wpcf7-response-output,
.booking-form .wpcf7 form.payment-required .wpcf7-response-output {
  border-color: var(--gcid-elf-firefly, #c45c26);
}

.booking-form .request-type {
  align-items: center;
  border: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin: 0 0 4px;
  min-width: 0;
  padding: 0;
}

.booking-form .request-type > p {
  margin: 0;
  width: 100%;
}

.booking-form .request-type legend,
.booking-form .request-type .form-label {
  color: var(--gcid-elf-ink-soft, #54706c);
  float: none;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.3;
  margin: 0 0 6px;
  padding: 0;
  text-transform: uppercase;
  width: 100%;
}

.booking-form .request-type .wpcf7-form-control-wrap,
.booking-form .request-type .wpcf7-radio {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0 16px;
  width: 100%;
}

.booking-form .request-type .wpcf7-list-item,
.booking-form .request-type .wpcf7-list-item.first,
.booking-form .request-type .wpcf7-list-item.last {
  align-items: center;
  display: inline-flex;
  margin: 0;
}

.booking-form .request-type label,
.booking-form .request-type .wpcf7-list-item label,
.booking-form .request-type .wpcf7-list-item-label {
  align-items: center;
  color: var(--gcid-elf-ink, #1c2b2a);
  cursor: pointer;
  display: inline-flex;
  font-size: 15px;
  font-weight: 500;
  gap: 8px;
  letter-spacing: 0;
  line-height: 1.2;
  margin: 0;
  padding: 0;
  text-transform: none;
}

.booking-form .request-type input[type="radio"] {
  accent-color: #007a7f;
  align-self: center;
  flex: none;
  height: 16px;
  margin: 0;
  padding: 0;
  position: static;
  vertical-align: middle;
  width: 16px;
}

.booking-form [data-when][hidden] {
  display: none !important;
}

.booking-form .form-hint {
  color: var(--gcid-elf-ink-soft, #54706c);
  font-size: 13px;
  line-height: 1.5;
  margin: 16px 0 0;
}

.booking-form .form-submit-row + .form-hint {
  margin-top: 20px;
}

.booking-form .form-hint.is-error {
  color: #9a3b2f;
}

.booking-form .form-check {
  margin: 16px 0;
}

.booking-form .wpcf7-acceptance {
  margin: 0;
}

.booking-form .wpcf7-acceptance p,
.booking-form .form-check p {
  margin: 0;
}

.booking-form .wpcf7-acceptance .wpcf7-list-item,
.booking-form .form-check .wpcf7-list-item {
  align-items: center;
  display: flex;
  margin: 0;
}

.booking-form .wpcf7-acceptance label,
.booking-form .form-check label {
  align-items: center;
  color: var(--gcid-elf-ink-soft, #54706c);
  cursor: pointer;
  display: flex;
  font-size: 14.5px;
  font-weight: 400;
  gap: 8px;
  letter-spacing: 0;
  line-height: 1.45;
  margin: 0;
  padding: 0;
  text-transform: none;
}

.booking-form .wpcf7-acceptance input[type="checkbox"] {
  accent-color: var(--gcid-elf-teal, #007a7f);
  align-self: center;
  flex: none;
  height: 16px;
  margin: 0;
  padding: 0;
  vertical-align: middle;
  width: 16px;
}

.booking-form .wpcf7-acceptance .wpcf7-list-item-label,
.booking-form .form-check .wpcf7-list-item-label {
  font-size: 14.5px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.45;
  text-transform: none;
}

.booking-form .wpcf7-acceptance .wpcf7-list-item-label a,
.booking-form .form-check a {
  color: #007a7f;
}

@media (max-width: 767px) {
  .booking-form .form-row {
    grid-template-columns: 1fr;
  }
}

/* ---------- Legal pages (ÁSZF, impresszum, adatkezelés, cookie) ----------
   Divi Group already provides the white card (radius, border, shadow, padding).
   Only inner typography / definition lists belong here. */
.legal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  justify-content: center;
  margin: 0 auto 40px;
  max-width: 760px;
}
.legal-nav a {
  background: #fff;
  border: 1px solid rgba(0, 122, 127, 0.2);
  border-radius: 999px;
  color: var(--gcid-elf-teal, #007a7f);
  font-family: Figtree, system-ui, sans-serif;
  font-size: 13.5px;
  font-weight: 500;
  padding: 7px 16px;
  text-decoration: none;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}
.legal-nav a:hover {
  background: var(--gcid-elf-teal-mist, #e3f1f1);
  border-color: var(--gcid-elf-teal, #007a7f);
}
.legal-nav a.active {
  background: var(--gcid-elf-teal, #007a7f);
  border-color: var(--gcid-elf-teal, #007a7f);
  color: #fff;
}
.legal-nav--bottom {
  margin: 48px auto 0;
}

.legal-prose {
  color: var(--gcid-elf-ink, #1f3331);
  font-size: 16px;
  line-height: 1.8;
}
.legal-prose h2 {
  border-bottom: 1px solid rgba(0, 122, 127, 0.15);
  color: var(--gcid-elf-teal-deep, #0b3a3d);
  font-size: clamp(20px, 3vw, 25px);
  margin: 40px 0 14px;
  padding-bottom: 8px;
}
.legal-prose h2:first-of-type {
  margin-top: 8px;
}
.legal-prose h3 {
  color: var(--gcid-elf-teal-strong, #00595d);
  font-size: 18.5px;
  margin: 26px 0 10px;
}
.legal-prose p {
  margin: 0 0 15px;
}
.legal-prose a {
  color: var(--gcid-elf-teal, #007a7f);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.legal-prose a:hover {
  color: var(--gcid-elf-honey, #c9913d);
}
.legal-prose ul,
.legal-prose ol {
  margin: 0 0 16px;
  padding-left: 24px;
}
.legal-prose li {
  margin-bottom: 8px;
}
.legal-prose strong {
  color: var(--gcid-elf-teal-deep, #0b3a3d);
}

.legal-effective {
  color: var(--gcid-elf-ink-soft, #54706c);
  font-size: 13.5px;
  font-style: italic;
  margin-bottom: 8px !important;
}

.legal-dl {
  background: var(--gcid-elf-ivory, #fcf9f2);
  border: 1px solid rgba(0, 122, 127, 0.1);
  border-radius: 14px;
  display: grid;
  gap: 8px 22px;
  grid-template-columns: minmax(150px, 230px) 1fr;
  margin: 0 0 18px;
  padding: 18px 20px;
}
.legal-dl dt {
  color: var(--gcid-elf-teal-deep, #0b3a3d);
  font-weight: 600;
  margin: 0;
}
.legal-dl dd {
  color: var(--gcid-elf-ink, #1f3331);
  margin: 0;
}

.legal-signature {
  color: var(--gcid-elf-teal-deep, #0b3a3d);
  font-family: Fraunces, Georgia, serif;
  font-size: 17px;
  margin-top: 28px !important;
}

@media (max-width: 640px) {
  .legal-dl {
    gap: 2px 0;
    grid-template-columns: 1fr;
  }
  .legal-dl dt {
    margin-top: 8px;
  }
  .legal-dl dt:first-of-type {
    margin-top: 0;
  }
}
