:root {
  --content-max: 80rem;
  --page-gutter: clamp(1rem, 4vw, 3rem);
}

html {
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  min-width: 0;
  overflow-wrap: anywhere;
}

.home,
.contact-page {
  overflow: visible;
}

body.menu-open {
  overflow: hidden;
  overscroll-behavior: none;
}

img,
svg,
canvas,
video {
  max-width: 100%;
}

img {
  height: auto;
}

.wrap {
  width: min(calc(100% - (2 * var(--page-gutter))), var(--content-max));
}

p,
li,
dd {
  max-width: 76ch;
}

h1 {
  font-size: clamp(2.35rem, 6vw, 6.25rem);
}

h2 {
  font-size: clamp(1.9rem, 4vw, 4rem);
}

a,
button,
input,
select,
textarea,
summary {
  touch-action: manipulation;
}

button,
.button,
.home-button,
.nav-links a {
  min-height: 44px;
}

:where(a, button, input, select, textarea, summary):focus-visible {
  outline: 3px solid var(--gold, #c8a76b);
  outline-offset: 3px;
}

.nav {
  gap: clamp(1rem, 3vw, 3rem);
}

.nav-links {
  min-width: 0;
  gap: clamp(1rem, 2.4vw, 2rem);
}

.nav-links a {
  display: inline-flex;
  align-items: center;
}

.logo img {
  height: clamp(3.75rem, 6vw, 5.125rem);
}

.button,
.home-button {
  text-align: center;
}

.home-hero {
  min-height: clamp(35rem, 100svh, 60rem);
}

.hero-content h1,
.home-closing h2,
.mission h2,
.section-heading h2 {
  text-wrap: balance;
}

.hero-content > p:not(.home-eyebrow),
.home-lead,
.contact-hero p:not(.eyebrow),
.explore-intro > p {
  max-width: 65ch;
}

.service-card,
.trust-card,
.step,
.why-card,
.testimonial,
.package,
.extra-card,
.value {
  min-width: 0;
}

.service-card,
.trust-card,
.package {
  display: flex;
  flex-direction: column;
}

.service-card p,
.trust-card p,
.package-description {
  flex-grow: 1;
}

.inspiration-item img,
.about-strip img,
.mission-image img,
.cover-image,
.about-intro img {
  object-fit: cover;
}

.field,
.share-field,
.phone-row,
.premium-dropdown,
.select-wrap,
.contact-add-on,
.final-price,
.selected-package {
  min-width: 0;
}

.field input,
.field textarea,
.field select,
.dropdown-trigger,
.premium-select-trigger,
.share-field input,
.share-field textarea {
  max-width: 100%;
  min-height: 48px;
  font-size: max(1rem, 16px);
}

.dropdown-menu,
.premium-select-menu,
.search-results {
  max-width: min(100%, calc(100vw - (2 * var(--page-gutter))));
}

.modal {
  overflow-y: auto;
  overscroll-behavior: contain;
}

.modal-card {
  max-height: calc(100dvh - 2rem);
  overscroll-behavior: contain;
}

.modal-head {
  position: sticky;
  z-index: 2;
  top: calc(-1 * clamp(1.5rem, 4vw, 2.4rem));
  padding-top: clamp(1.5rem, 4vw, 2.4rem);
  background: linear-gradient(180deg, #fff 80%, transparent);
}

.modal-close,
.round-control,
.like-button,
.remove-add-on,
.star-picker button {
  min-width: 44px;
  min-height: 44px;
}

.explore-shell,
.globe-stage,
.destination-panel,
.flat-map,
.flat-map-viewport {
  min-width: 0;
  max-width: 100%;
}

.explore-shell,
.contact-grid,
.package-grid {
  container-type: inline-size;
}

.flat-map-viewport svg {
  display: block;
  max-width: none;
}

.map-topbar {
  min-width: 0;
}

.day-night-toggle {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: .4rem;
  padding: .6rem .75rem;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 12px;
  background: rgba(6, 26, 44, .58);
  color: #edf7fa;
  backdrop-filter: blur(13px);
  cursor: pointer;
  font: 700 .67rem Inter, Inter Fallback, Arial, sans-serif;
}

.day-night-toggle[aria-pressed="true"] {
  border-color: #d5b276;
  color: #f3d28b;
}

.day-night-toggle[aria-pressed="false"] {
  opacity: .62;
  border-style: dashed;
}

.day-night-off .day-night-layer,
.day-night-off .daylight-halo {
  display: none;
}

.flat-selection-outline {
  fill: none;
  stroke: #f3d28b;
  stroke-width: 2.2;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 0 5px rgba(243, 210, 139, .8));
  pointer-events: none;
}

.flat-selection-label {
  pointer-events: none;
  filter: drop-shadow(0 5px 12px rgba(1, 13, 25, .42));
}

.flat-selection-label rect {
  fill: rgba(5, 25, 43, .94);
  stroke: #f3d28b;
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.flat-selection-label text {
  fill: #fff0c8;
  font: 800 12px Inter, Inter Fallback, Arial, sans-serif;
  paint-order: stroke;
  stroke: #09223a;
  stroke-width: 2px;
  dominant-baseline: middle;
}

.search-wrap {
  min-width: 0;
  max-width: 100%;
}

.country-search {
  min-width: 0;
}

.table-shell {
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
}

@media (max-width: 72rem) {
  .service-grid,
  .trust-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .package-grid {
    gap: 1rem;
  }
}

@media (max-width: 56.25rem) {
  .nav {
    height: 82px;
  }

  .logo img {
    height: 3.75rem;
    max-width: 9.25rem;
  }

  .menu-button {
    position: relative;
    z-index: 102;
    display: grid;
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 50%;
    cursor: pointer;
  }

  .nav-links {
    position: fixed;
    z-index: 101;
    inset: 0 0 0 auto;
    display: flex;
    width: min(24rem, 88vw);
    height: 100dvh;
    flex-direction: column;
    align-items: stretch;
    gap: .25rem;
    padding: 6.5rem 1.25rem 2rem;
    overflow-y: auto;
    background: linear-gradient(160deg, #0d2944, #051423);
    box-shadow: -24px 0 60px rgba(0, 0, 0, .32);
    transform: translateX(105%);
    visibility: hidden;
    transition: transform .28s ease, visibility .28s;
  }

  .nav-links.open {
    display: flex;
    transform: translateX(0);
    visibility: visible;
  }

  .nav-links li,
  .nav-links a {
    width: 100%;
  }

  .nav-links a {
    min-height: 52px;
    padding: .75rem 1rem;
    border: 1px solid transparent;
    border-radius: 10px;
  }

  .nav-links a:hover,
  .nav-links .active {
    border-color: rgba(200, 167, 107, .45);
    background: rgba(255, 255, 255, .08);
  }

  body.menu-open::before {
    content: "";
    position: fixed;
    z-index: 100;
    inset: 0;
    background: rgba(3, 15, 27, .62);
    backdrop-filter: blur(3px);
  }

  .site-header.menu-open .menu-button {
    position: fixed;
    top: 1rem;
    right: 1rem;
  }

  /* A fejlec sajat retege (z-index 10) a body::before elhomalyosito hatter (z-index 100) ala kerult:
     a nyitott menu elmosodott es nem volt kattinthato. Nyitott menunel a fejlec kerul legfelulre. */
  .site-header.menu-open {
    z-index: 120;
  }

  .mission,
  .home-map,
  .about-strip,
  .difference-card,
  .contact-grid,
  .explore-shell {
    grid-template-columns: minmax(0, 1fr);
  }

  .service-grid,
  .trust-grid,
  .steps,
  .package-grid,
  .extras-grid,
  .value-grid,
  .about-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .package.featured,
  .package.featured:hover {
    transform: none;
  }

  .package {
    min-height: 0;
  }

  .package ul,
  .package-description {
    min-height: 0;
  }

  .globe-stage {
    min-height: clamp(31rem, 75svh, 38rem);
  }

  .country-ribbon {
    right: 4.75rem;
    left: 1rem;
    justify-content: flex-start;
  }
}

@media (max-width: 48rem) {
  :root {
    --page-gutter: clamp(1rem, 4.5vw, 1.5rem);
  }

  .home-section,
  .dark-section,
  .difference,
  .closing,
  .about-content,
  .about-values {
    padding-block: clamp(3.75rem, 10vw, 5rem);
  }

  .hero-content {
    max-width: 44rem;
    padding: 8rem 0 4.5rem;
  }

  .hero-content h1 {
    font-size: clamp(2.75rem, 10vw, 4.75rem);
  }

  .section-heading,
  .page-head,
  .planner-cta {
    align-items: flex-start;
    flex-direction: column;
  }

  .inspiration-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-hero {
    padding-top: 6.5rem;
  }

  .contact-grid {
    max-width: none;
  }

  .info-panel {
    position: static;
  }

  .explore-page {
    padding-top: 1.5rem;
  }

  .explore-intro {
    gap: 1rem;
  }

  .map-topbar {
    align-items: stretch;
    flex-wrap: wrap;
  }

  .day-night-toggle {
    order: 4;
  }

  .search-wrap {
    order: -1;
    width: 100%;
    max-width: none;
  }

  .view-switch {
    margin-left: auto;
  }

  .country-ribbon {
    right: 4.75rem;
    bottom: 1rem;
    left: 1rem;
    flex-wrap: nowrap;
    justify-content: flex-start;
    padding-bottom: .25rem;
    overflow-x: auto;
    scrollbar-width: thin;
  }

  .planner-cta .button {
    width: 100%;
  }

  .cookie-panel {
    max-height: calc(100dvh - 2rem) !important;
  }
}

@media (max-width: 37.5rem) {
  h1 {
    font-size: clamp(2.2rem, 12vw, 3.35rem);
    letter-spacing: -.045em;
  }

  h2 {
    font-size: clamp(1.8rem, 9vw, 2.65rem);
  }

  .home-hero {
    min-height: max(35rem, 100svh);
  }

  .hero-content {
    padding: 7.5rem 0 3.5rem;
  }

  .hero-content h1 {
    font-size: clamp(2.45rem, 13vw, 3.55rem);
    line-height: 1.02;
  }

  .hero-actions {
    display: grid;
  }

  .hero-actions .home-button,
  .button,
  .submit-button,
  .share-submit {
    width: 100%;
    justify-content: center;
  }

  .service-grid,
  .trust-grid,
  .steps,
  .why-grid,
  .testimonial-grid,
  .package-grid,
  .extras-grid,
  .value-grid,
  .about-stats,
  .field-grid,
  .phone-row,
  .contact-add-on-grid,
  .share-form,
  .quick-stats,
  .reason-grid,
  .facts-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .mission-card {
    position: relative;
    right: auto;
    bottom: auto;
    width: 100%;
    margin-top: -.25rem;
  }

  .mission-image img,
  .about-strip img,
  .about-intro img {
    min-height: 0;
    height: clamp(17rem, 75vw, 23rem);
  }

  .inspiration-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: none;
  }

  .inspiration-item,
  .inspiration-item:first-child {
    grid-column: auto;
    grid-row: auto;
    min-height: 13rem;
  }

  .map-preview-card {
    grid-template-columns: 4.5rem minmax(0, 1fr);
  }

  .map-preview-card img {
    width: 4.5rem;
    height: 4.5rem;
  }

  .globe-stage {
    min-height: clamp(28rem, 140vw, 34rem);
  }

  /* a gomb vaszna a ket soros felso sav alatt kezdodjon, hogy a gomb teteje ne bujjon a kereso ala */
  #travel-globe {
    top: 7rem;
  }

  .map-topbar {
    top: .75rem;
    right: .75rem;
    left: .75rem;
    gap: .5rem;
  }

  .day-night-toggle {
    width: auto;
    flex: 0 0 auto;
    order: 3;
    padding: .55rem .6rem;
    font-size: 0;
    gap: 0;
  }

  .day-night-toggle span {
    font-size: 1.05rem;
  }

  .day-night-toggle .dn-state {
    display: none;
  }

  .map-back,
  .view-switch button {
    min-height: 44px;
  }

  .view-switch {
    flex: 1 1 auto;
    max-width: none;
    margin-left: 0;
  }

  .view-switch button {
    padding-inline: .5rem;
    white-space: normal;
  }

  .country-ribbon {
    right: 4.5rem;
    left: .75rem;
  }

  .destination-panel {
    padding: 1rem;
  }

  .destination-tabs {
    display: flex;
    flex-wrap: nowrap;
    gap: .35rem;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .destination-tabs::-webkit-scrollbar {
    display: none;
  }

  .destination-tab {
    flex: 0 0 auto;
    min-width: 0;
    white-space: nowrap;
  }

  .review-tools {
    align-items: stretch;
    flex-direction: column;
  }

  .premium-select {
    width: 100%;
    min-width: 0;
  }

  .modal {
    align-items: end;
    padding: .5rem;
  }

  .modal-card {
    width: 100%;
    max-height: calc(100dvh - .5rem);
    padding: 1rem;
    border-radius: 20px 20px 0 0;
  }

  .modal-head {
    top: -1rem;
    padding-top: 1rem;
  }

  .upload-zone {
    min-height: 9rem;
  }

  .cookie-category {
    grid-template-columns: minmax(0, 1fr) auto !important;
  }
}

@media (max-width: 22.5rem) {
  :root {
    --page-gutter: .875rem;
  }

  .nav-links {
    width: 92vw;
  }

  .contact-form-card,
  .info-panel,
  .package,
  .destination-panel {
    padding-inline: .875rem;
  }

  .map-back {
    padding-inline: .65rem;
  }
}

@media (min-width: 120rem) {
  body {
    font-size: 1.0625rem;
  }

  .home-hero {
    min-height: min(88svh, 60rem);
  }

  .home-section,
  .dark-section,
  .difference,
  .closing {
    padding-block: clamp(6rem, 7vw, 8.5rem);
  }

  .service-grid,
  .trust-grid,
  .steps {
    max-width: var(--content-max);
    margin-inline: auto;
  }
}

@media (max-height: 43.75rem) and (min-width: 37.5625rem) {
  .home-hero {
    min-height: 35rem;
  }

  .hero-content {
    padding-block: 7rem 3rem;
  }

  .hero-content h1 {
    font-size: clamp(2.8rem, 8vh, 4.5rem);
  }
}

@media (hover: none) {
  .service-card:hover,
  .trust-card:hover,
  .package:hover,
  .home-button:hover,
  .button:hover {
    transform: none;
  }
}

@media (pointer: coarse) {
  .nav-links a,
  .dropdown-option,
  .premium-select-option,
  .destination-tab,
  .ribbon-item {
    min-height: 48px;
  }

  .map-bubble {
    display: none;
  }
}

/* A fiók külön, a fejléc jobb szélén marad nagy kijelzőn. */
@media (min-width: 56.3125rem) {
  .nav-links {
    flex: 1;
    align-items: center;
  }

  .account-nav-item {
    margin-left: auto;
    padding-left: clamp(1rem, 2.5vw, 2.25rem);
    border-left: 1px solid rgba(200, 167, 107, .35);
  }

  .account-nav-item a {
    color: var(--goldlight);
    white-space: nowrap;
  }
}

@media (max-width: 56.25rem) {
  .account-nav-item {
    margin-top: .65rem;
    padding-top: .65rem;
    border-top: 1px solid rgba(200, 167, 107, .35);
  }
}

@media (orientation: landscape) and (max-height: 32rem) {
  .home-hero {
    min-height: 32rem;
  }

  .hero-content {
    padding-block: 6rem 2.5rem;
  }

  .globe-stage {
    min-height: 30rem;
  }
}

@container (max-width: 44rem) {
  .contact-grid .field-grid,
  .contact-grid .phone-row,
  .package-grid,
  .explore-shell .quick-stats,
  .explore-shell .reason-grid,
  .explore-shell .fit-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (min-resolution: 2dppx) {
  .card,
  .package,
  .contact-form-card,
  .destination-panel {
    border-width: .5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
