/* ========================================================================
   MOBIL FOGLALÁS OLDAL – TELJES, TISZTA, VÉGLEGES CSS
   ======================================================================== */

/* ---- Desktop-only dolgok mobilon tűnjenek el ---- */
.desktop-only {
  display: none !important;
}

/* ------------------------------------------------------------------------
   HERO – Foglalás & ajánlatkérés
   ------------------------------------------------------------------------ */
.m-hero--booking {
  position: relative;
  min-height: 52vh;
  background: url('images/gaalhazbejarat.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 6px;
  line-height: 1.2;
}

.m-hero__overlay small {
  display: block;
  font-size: 0.95rem;
  opacity: .96;
}

/* ------------------------------------------------------------------------
   FOGALÁSI KÁRTYA + FORM
   ------------------------------------------------------------------------ */
.m-booking-card {
  max-width: 420px;
  margin: 18px auto 0;
  padding: 16px 16px 14px;
  background: var(--m-card);
  border-radius: 20px;
  border: 1.5px solid rgba(185, 146, 94, .35);
  box-shadow: var(--m-shadow);
}

.m-booking-intro {
  margin: 0 0 10px;
  font-size: .95rem;
  color: var(--m-muted);
}

.m-booking-form {
  margin-top: 4px;
}

.m-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 9px;
}

.m-field label {
  font-size: .85rem;
  font-weight: 600;
  color: #4b5563;
}

.m-field input,
.m-field textarea {
  padding: 9px 10px;
  border-radius: 10px;
  border: 1px solid var(--m-border);
  font-size: .95rem;
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.m-field input:focus,
.m-field textarea:focus {
  border-color: var(--m-gold);
  box-shadow: 0 0 0 2px rgba(185, 146, 94, .14);
  background: #fff;
}

.m-inline {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.m-booking-submit {
  width: 100%;
  margin-top: 6px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
}

.m-made {
  text-align: center;
  margin: 18px 0 80px;
  font-size: .8rem;
  color: #9ca3af;
}

/* ------------------------------------------------------------------------
   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;
  justify-content: space-around;
  align-items: center;
  background: rgba(255, 255, 255, .96);
  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: #6b7280;
}

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

/* ------------------------------------------------------------------------
   ALAP SZEKCIÓK
   ------------------------------------------------------------------------ */
.m-section {
  padding: 16px 16px 24px;
}

.m-section__title {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 10px;
}

/* ========================================================================
   WHY BOOK DIRECTLY WITH US? – MODERN KÁRTYÁK
   ======================================================================== */

.m-section--soft {
  background: #f5f7fb;
  padding: 20px 16px 26px;
}

.m-section--soft .m-section__title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 14px;
  color: #111827;
}

.m-benefit-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.m-benefit-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04);
  font-size: 0.9rem;
  color: #374151;
}

.m-benefit-icon {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #eef2ff;
  font-size: 1.1rem;
}

.m-benefit-item span:last-child {
  line-height: 1.4;
}

/* ========================================================================
   AVAILABLE ACCOMMODATION TYPES – APP-SZERŰ KÁRTYÁK
   ======================================================================== */

.m-section--rooms {
  background: #ffffff;
  padding: 18px 16px 28px;
}

.m-section--rooms .m-section__title {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 10px;
  color: #111827;
}

/* egy-egy vertikális kártya */
.m-booking-room-card {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 7px 18px rgba(15, 23, 42, 0.06);
  margin-bottom: 12px;
  transform: translateY(0);
  transition: transform 0.14s ease, box-shadow 0.14s ease;
}

.m-booking-room-card:active {
  transform: translateY(1px);
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.04);
}

/* kép a kártya tetején */
.m-booking-room-card .m-card__img {
  display: block;
  width: 100%;
  height: 165px;
  object-fit: cover;
}

/* pill a bal felső sarokban */
.m-booking-room-card .m-card__chip {
  position: absolute;
  left: 12px;
  top: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(229, 231, 235, 0.9);
  color: #7a5524;
  backdrop-filter: blur(6px);
}

/* szöveges rész */
.m-booking-room-card .m-card__body {
  padding: 10px 12px 11px;
}

.m-booking-room-card .m-card__title {
  margin: 0 0 4px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #111827;
}

/* limitált leírás – max 3 sor, hogy ne legyen túl magas */
.m-booking-room-card .m-card__text {
  margin: 0;
  font-size: 0.83rem;
  line-height: 1.45;
  color: #4b5563;

  display: -webkit-box;
  -webkit-line-clamp: 3;      /* Safari, Chrome, iOS – kell! */
  line-clamp: 3;              /* Standard property for compatibility */
  -webkit-box-orient: vertical;
  overflow: hidden;

  /* opcionálisan: nem-webkit böngészők kedvéért */
  display: block;
  max-height: calc(1.45rem * 3); /* 3 sor × line-height */
}


/* opcionális gomb a kártya alján */
.m-booking-room-card .m-card__btn {
  display: inline-flex;
  margin-top: 6px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--m-gold);
}

/* ========================================================================
   SZOBAVÁLASZTÓ MEZŐ A FORM-BAN
   ======================================================================== */

.m-field--rooms {
  margin-top: 4px;
  padding: 10px 10px 12px;
  border-radius: 14px;
  background: #f7f9fb;
  border: 1px dashed #c4cbd3;
}

.m-room-picker-open {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--m-border);
  background: #fff;
  font-size: .85rem;
  font-weight: 500;
}

.m-room-summary {
  margin: 6px 0 2px;
  font-size: .9rem;
  color: #4b5563;
}

.m-room-help {
  font-size: .8rem;
  color: #6b7280;
}

/* ========================================================================
   OVERRIDE: MOBIL SZOBAVÁLASZTÓ – MAGAS BOTTOM SHEET
   ======================================================================== */
@media (max-width: 768px) {

  /* overlay + pozicionálás */
  #room-modal-mobile.room-modal.mobile-only {
    position: fixed !important;
    inset: 0 !important;
    z-index: 3000 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: flex-end !important;

    background: rgba(17, 24, 39, 0.45) !important;
    backdrop-filter: blur(5px) !important;

    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transition: opacity 0.25s ease, background 0.25s ease;
  }

  #room-modal-mobile.room-modal.mobile-only.is-visible {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
  }

  #room-modal-mobile .room-modal__overlay {
    position: absolute !important;
    inset: 0 !important;
  }

  /* MAGAS bottom sheet: top + bottom meghatározva, nem sima height */
  #room-modal-mobile .room-modal__dialog {
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    top: 6vh !important;   /* ha még magasabb kell: pl. 4vh */

    width: 100% !important;
    max-width: 480px !important;

    height: auto !important;
    max-height: none !important;

    background: #ffffff !important;
    border-radius: 28px 28px 0 0 !important;
    box-shadow: 0 -14px 40px rgba(15, 23, 42, 0.35) !important;

    transform: translateY(110%) !important;
    transition: transform 0.30s cubic-bezier(0.22, 1, 0.36, 1) !important;

    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;   /* NINCS fel-le scroll a panelen */
  }

  #room-modal-mobile.room-modal.mobile-only.is-visible .room-modal__dialog {
    transform: translateY(0) !important;
  }

  /* kártyák vízszintes scrollban */
  #room-modal-mobile .room-picker-list {
    padding: 4px 16px 10px !important;
    margin: 0 !important;
    flex: 1 1 auto !important;

    display: flex !important;
    flex-direction: row !important;
    gap: 14px !important;

    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-snap-type: x mandatory !important;
    -webkit-overflow-scrolling: touch !important;
  }

  #room-modal-mobile .room-picker-card {
    flex: 0 0 82% !important;
    max-width: 82% !important;
    background: #f9fafb !important;
    border-radius: 18px !important;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.12) !important;
    overflow: hidden !important;
    scroll-snap-align: center !important;
  }

  #room-modal-mobile .room-modal__footer {
    padding: 10px 16px 14px !important;
    display: flex !important;
    justify-content: space-between !important;
    gap: 10px !important;
  }

  #room-modal-mobile .room-modal__cancel,
  #room-modal-mobile .room-modal__apply {
    padding: 9px 16px;
    border-radius: 999px;
    font-size: 0.85rem;
    border: none;
  }

  #room-modal-mobile .room-modal__cancel {
    background: transparent;
    color: #6b7280;
  }

  #room-modal-mobile .room-modal__apply {
    background: #111827;
    color: #ffffff;
  }

  /* háttér ne scrollozzon, ha nyitva van */
  body.room-modal-open {
    height: 100vh !important;
    overflow: hidden !important;
    touch-action: none !important;
  }
}