/* ===== Láthatóság vezérlés mobilon ===== */
.mobile-only {
  display: block !important;
}

.desktop-only {
  display: none !important;
}

/* ===== Mobil alapok ===== */
:root {
  --m-bg: #ffffff;
  --m-text: #1f2937;
  --m-muted: #6b7280;
  --m-gold: #b9925e;
  --m-card: #ffffff;
  --m-border: #e5e7eb;
  --m-shadow: 0 6px 18px rgba(0, 0, 0, .08);
  --tabbar-h: 64px;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Poppins", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: #fff;
  color: var(--m-text);
}

/* Tartalom alsó padding, hogy a tabbar ne takarjon ki semmit */
.m-page {
  padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px));
  background: var(--m-bg);
}

/* ===== Hero ===== */
.m-hero {
  position: relative;
  min-height: 52vh;
  background: url('images/kishaz1.JPG') center/cover no-repeat;
  background-color: #e6e0d6;
  display: flex;
  align-items: flex-end;
  color: #fff;
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 20px;
  overflow: hidden;
  box-shadow: var(--m-shadow);
  padding-top: env(safe-area-inset-top, 0px);
}

.m-hero__overlay {
  width: 100%;
  padding: 24px;
  background: linear-gradient(to top, rgba(0, 0, 0, .55), rgba(0, 0, 0, .15));
  backdrop-filter: saturate(120%) blur(2px);
}

.m-hero__overlay h1 {
  font-size: 1.9rem;
  margin: 0 0 8px 0;
  line-height: 1.2;
  letter-spacing: .2px;
}

.m-hero__overlay small {
  display: block;
  font-size: 1rem;
  font-weight: 400;
  opacity: .95;
}

/* ===== Szekciók ===== */
.m-section {
  padding: 22px;
}

.m-section h2 {
  margin: 0 0 10px 0;
  font-size: 1.25rem;
}

.m-section p {
  margin: 0;
  color: var(--m-muted);
}

/* ===== Rólunk — kicsi kép jobb felső sarokban, körbefolyó szöveg ===== */
.m-about__box {
  display: flow-root;
  /* float containment */
  background: var(--m-card);
  border: 1px solid var(--m-border);
  border-radius: 18px;
  box-shadow: var(--m-shadow);
  padding: 16px;
}

.m-about__img {
  float: right;
  width: 130px;
  height: 98px;
  /* ~4:3 */
  border-radius: 14px;
  object-fit: cover;
  margin: 0 0 10px 14px;
  /* hely a szövegnek balra */
  shape-outside: inset(0 round 14px);
  display: block;
}

.m-about__text {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--m-text);
}

/* Jelvények – vízszintes sor, görgethető, de keskeny */
.m-about__badges {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  margin-top: 12px;
  padding: 0;
  list-style: none;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.m-about__badges::-webkit-scrollbar {
  display: none;
}

.m-about__badges li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  background: #f5f6f8;
  border: 1px solid var(--m-border);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--m-text);
  white-space: nowrap;
  flex-shrink: 0;
}

/* ===== SZOBÁK – VERTIKÁLIS, LÁTVÁNYOS KÁRTYÁK ===== */
.m-grid-2 {
  display: block;
  padding: 0;
  margin: 0;
}

.m-card {
  position: relative;
  background: var(--m-card);
  border: 1px solid var(--m-border);
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .06);
  overflow: hidden;
  margin: 14px 0;
  isolation: isolate;
}

.m-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 6px;
  background: linear-gradient(180deg, #d9b07a, #b9925e);
  opacity: .9;
  z-index: 1;
}

.m-card__img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  display: block;
}

.m-card:first-child .m-card__img {
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
}

.m-card__title-chip {
  position: absolute;
  left: 16px;
  top: 16px;
  z-index: 2;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(6px);
  border: 1px solid var(--m-border);
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 700;
  font-size: .95rem;
  color: #111;
}

.m-card__body {
  padding: 14px 16px 12px 16px;
}

.m-card__title {
  margin: 0 0 6px 0;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: .2px;
}

.m-card__text {
  margin: 0 0 12px 0;
  color: var(--m-muted);
  line-height: 1.5;
  font-size: .95rem;
}

.m-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0 0 12px 0;
}

.m-card__meta li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid var(--m-border);
  background: #f7f8fa;
  border-radius: 999px;
  font-size: .85rem;
  color: #374151;
}

.m-card .m-btn {
  padding: 11px 14px;
  border-radius: 12px;
  font-weight: 700;
}

.m-card .m-btn--ghost:hover {
  border-color: var(--m-gold);
  color: #111;
}

.m-card:active {
  transform: translateY(1px);
}

/* ===== Ajánljuk – kártyák KÖZÉPRE igazítva + “Megtekintés →” gomb ===== */
.m-rec-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.m-rec-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  width: 100%;
  padding: 16px;
  border: 1px solid var(--m-border);
  background: var(--m-card);
  border-radius: 16px;
  box-shadow: var(--m-shadow);
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}

.m-rec-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .08);
}

.m-rec-card__icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #f8f8f9;
  border: 1px solid var(--m-border);
  font-size: 26px;
}

.m-rec-card h3 {
  margin: 2px 0 2px;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: .2px;
  color: #1f2937;
}

.m-rec-card p {
  margin: 0;
  color: var(--m-muted);
  font-size: .95rem;
  line-height: 1.45;
}

/* elegáns gomb */
.m-rec-card__btn {
  display: inline-block;
  margin-top: 6px;
  padding: 8px 14px;
  font-size: .9rem;
  font-weight: 700;
  color: var(--m-gold);
  border: 1px solid var(--m-gold);
  border-radius: 999px;
  background: #fff;
  transition: background .2s ease, color .2s ease, box-shadow .2s ease;
}

.m-rec-card__btn:hover {
  background: var(--m-gold);
  color: #fff;
  box-shadow: 0 8px 18px rgba(185, 146, 94, .28);
}

/* ===== Link reset – ne legyen “kék link” hatás ===== */
a {
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

a:hover {
  text-decoration: none;
}

/* ===== Gombok (általános) ===== */
.m-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: 12px 16px;
  border-radius: 14px;
  font-weight: 700;
  font-size: .95rem;
  line-height: 1;
  border: 1px solid transparent;
  transition: transform .14s ease, box-shadow .14s ease, background .2s ease, border-color .2s ease, color .2s ease;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .06);
  will-change: transform;
}

.m-btn:active {
  transform: translateY(1px);
}

.m-btn--primary {
  background: linear-gradient(180deg, #d9b07a, #b9925e);
  color: #fff;
  border-color: #b9925e;
  box-shadow: 0 10px 22px rgba(185, 146, 94, .28);
}

.m-btn--primary:hover {
  filter: brightness(1.02);
  box-shadow: 0 12px 26px rgba(185, 146, 94, .35);
}

.m-btn--ghost {
  background: #fff;
  color: #1f2937;
  border-color: var(--m-border);
}

.m-btn--ghost:hover {
  border-color: #c7a473;
  box-shadow: 0 8px 18px rgba(0, 0, 0, .08);
}

/* ===== Modál (kép középre) ===== */
.m-modal[aria-hidden="true"] {
  display: none;
}

.m-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
}

.m-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .45);
  backdrop-filter: blur(2px);
}

.m-modal__dialog {
  position: relative;
  width: min(92vw, 560px);
  background: #fff;
  border: 1px solid var(--m-border);
  border-radius: 18px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .25);
  padding: 14px;
}

.m-modal__img {
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
  margin: 0 auto 12px auto;
  /* KÖZÉPRE */
  object-fit: cover;
}

.m-modal__title {
  margin: 0 0 6px 0;
  font-size: 1.15rem;
  font-weight: 800;
  text-align: center;
}

.m-modal__desc {
  margin: 0;
  color: var(--m-muted);
  line-height: 1.55;
  text-align: center;
}

.m-modal__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--m-border);
  background: #fff;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
}

/* ===== Alsó tabbar ===== */
.m-tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--tabbar-h);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  display: flex !important;
  flex-direction: row !important;
  justify-content: space-around;
  align-items: center;
  background: rgba(255, 255, 255, .92);
  border-top: 1px solid var(--m-border);
  backdrop-filter: blur(6px);
  z-index: 1000;
}

.m-tabbar__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: .8rem;
  color: #374151;
  text-decoration: none;
}

.m-tabbar__item i {
  font-size: 1.15rem;
}

.m-tabbar__item[aria-current="page"] {
  color: var(--m-gold);
}

/* ==== Modal fade-in animáció ==== */
/* Amikor aria-hidden="false", futtassunk egy halvány beúszást az overlayre
   és egy finom "pop" animációt a párbeszédablakra. */

.m-modal[aria-hidden="false"] .m-modal__overlay {
  animation: modalFade .18s ease-out both;
}

.m-modal[aria-hidden="false"] .m-modal__dialog {
  animation: modalPop .22s cubic-bezier(.18, .72, .14, 1) both;
}

/* Overlay halvány beúszás */
@keyframes modalFade {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* Dialógus finom fel/le és skála animáció */
@keyframes modalPop {
  from {
    opacity: 0;
    transform: translateY(8px) scale(.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ===== Biztos ami biztos: a desktopos elemek mobilon ne jelenjenek meg ===== */
.header,
.kezdolap,
.tudnivalok,
.foglalas,
.made {
  display: none !important;
}

/* -------------------------------------------------
   Mobil nyelvváltó – hero fölött, teljes szélességben
-------------------------------------------------- */

/* ===== MOBILE LANGUAGE SLIDE (SIDE) ===== */

.m-mobile-lang-container {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 50;
}

/* toggle button */
.m-mobile-lang-toggle {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: none;
  font-size: 20px;
  background: rgba(15,23,42,.5);
  backdrop-filter: blur(6px);
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* sliding panel */
.m-mobile-lang-box {
  position: absolute;
  top: 0;
  right: 46px;
  width: 0;
  opacity: 0;
  display: flex;
  gap: 6px;
  overflow: hidden;
  transition: .35s ease;
}

.m-mobile-lang-box.open {
  width: 180px;
  opacity: 1;
}

.m-mobile-lang-box button {
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.4);
  padding: 4px 10px;
  background: rgba(15,23,42,.6);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: .8rem;
}

.m-mobile-lang-box button.active-lang {
  background: #fff;
  color: #111;
}