/* Login bottom sheet */
body.login-modal-open {
  overflow: hidden;
  touch-action: none;
}

body.login-modal-open .login-modal__sheet,
body.login-modal-open .login-modal__inner {
  touch-action: pan-y;
}

.login-modal {
  position: fixed;
  inset: 0;
  z-index: 10050;
  pointer-events: none;
  visibility: hidden;
}

.login-modal.is-open {
  pointer-events: auto;
  visibility: visible;
}

.login-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 40, 44, 0.55);
  opacity: 0;
  transition: opacity 0.35s ease;
  backdrop-filter: blur(4px);
}

.login-modal.is-open .login-modal__backdrop {
  opacity: 1;
}

.login-modal__sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0 auto;
  width: 100%;
  max-width: 100%;
  max-height: 92dvh;
  background: linear-gradient(165deg, #fff 0%, #fff8eb 45%, #fff 100%);
  border-radius: 28px 28px 0 0;
  padding: 0;
  transform: translateY(110%);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 0 -20px 60px rgba(6, 97, 104, 0.25);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.login-modal.is-open .login-modal__sheet {
  transform: translateY(0);
}

.login-modal__inner {
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 0 1.25rem calc(1.5rem + env(safe-area-inset-bottom, 0px));
  max-height: 92dvh;
}

@media (min-width: 768px) {
  .login-modal__sheet {
    left: 50%;
    right: auto;
    bottom: auto;
    top: 50%;
    width: min(560px, calc(100vw - 2rem));
    max-width: 560px;
    max-height: min(90vh, 860px);
    border-radius: 24px;
    transform: translate(-50%, calc(-50% + 48px));
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.35s ease;
  }

  .login-modal.is-open .login-modal__sheet {
    transform: translate(-50%, -50%);
    opacity: 1;
  }

  .login-modal__inner {
    max-height: min(90vh, 860px);
    padding: 0 2rem calc(2rem + env(safe-area-inset-bottom, 0px));
  }

  .login-modal__handle {
    display: none;
  }
}

.login-modal__glow {
  position: absolute;
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(255, 200, 50, 0.35) 0%, transparent 70%);
  pointer-events: none;
}

.login-modal__handle {
  width: 40px;
  height: 4px;
  background: rgba(6, 97, 104, 0.2);
  border-radius: 4px;
  margin: 0.75rem auto 0;
}

.login-modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(6, 97, 104, 0.08);
  color: #066168;
  cursor: pointer;
  z-index: 2;
}

.login-modal__hero {
  text-align: center;
  padding: 1.25rem 0 1.5rem;
}

.login-modal__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #a50000, #d4380d);
  color: #ffc832;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  box-shadow: 0 8px 24px rgba(165, 0, 0, 0.3);
}

.login-modal__title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #066168;
  margin: 0 0 0.35rem;
}

.login-modal__subtitle {
  font-size: 0.9rem;
  color: rgba(6, 97, 104, 0.7);
  margin: 0;
  line-height: 1.5;
}

.login-modal__form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.login-modal__field label,
.login-modal__captcha > label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #066168;
  margin-bottom: 0.35rem;
}

.login-modal__optional {
  font-weight: 400;
  opacity: 0.65;
}

.login-modal__field input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid rgba(6, 97, 104, 0.15);
  border-radius: 12px;
  font-size: 1rem;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.login-modal__field input:focus {
  outline: none;
  border-color: #a50000;
  box-shadow: 0 0 0 3px rgba(165, 0, 0, 0.1);
}

.login-modal__captcha-row {
  display: flex;
  gap: 0.5rem;
}

.login-modal__captcha-row input {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 1.5px solid rgba(6, 97, 104, 0.15);
  border-radius: 12px;
  font-size: 1rem;
}

.login-modal__captcha-refresh {
  width: 44px;
  border: 1.5px solid rgba(6, 97, 104, 0.15);
  border-radius: 12px;
  background: #fff;
  color: #066168;
  cursor: pointer;
}

.login-modal__submit {
  width: 100%;
  justify-content: center;
  margin-top: 0.5rem;
  gap: 0.5rem;
}

.login-modal__divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1rem 0 0.75rem;
  color: rgba(6, 97, 104, 0.55);
  font-size: 0.85rem;
}

.login-modal__divider::before,
.login-modal__divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(6, 97, 104, 0.15);
}

.login-modal__guest-btn {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 999px;
  border: 1.5px solid rgba(6, 97, 104, 0.25);
  background: #fff;
  color: #066168;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.login-modal__guest-btn:hover {
  border-color: rgba(6, 97, 104, 0.45);
  background: rgba(6, 97, 104, 0.04);
}

.login-modal__footer {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-bottom: 0.25rem;
}

.login-modal__fine {
  font-size: 0.75rem;
  color: rgba(6, 97, 104, 0.55);
  text-align: center;
  margin: 0.25rem 0 0;
}

.login-modal__msg {
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  font-size: 0.85rem;
  display: none;
}

.login-modal__msg.is-error {
  display: block;
  background: #fef2f2;
  color: #b91c1c;
}

.login-modal__msg.is-success {
  display: block;
  background: #ecfdf5;
  color: #047857;
}

/* Account menu in header */
.sj-account {
  position: relative;
}

.sj-account__trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  border: 1.5px solid rgba(6, 97, 104, 0.2);
  background: rgba(255, 255, 255, 0.9);
  color: #066168;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.sj-account__trigger i {
  font-size: 0.9rem;
}

.sj-account__menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 200px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(6, 97, 104, 0.18);
  padding: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  z-index: 1000;
}

.sj-account.is-open .sj-account__menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.sj-account__greet {
  padding: 0.5rem 0.75rem;
  font-size: 0.8rem;
  color: rgba(6, 97, 104, 0.7);
  border-bottom: 1px solid rgba(6, 97, 104, 0.08);
  margin-bottom: 0.25rem;
}

.sj-account__greet strong {
  display: block;
  color: #066168;
  font-size: 0.95rem;
}

.sj-account__menu a,
.sj-account__menu button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: none;
  background: none;
  color: #066168;
  font-size: 0.9rem;
  font-weight: 500;
  text-align: left;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
}

.sj-account__menu a:hover,
.sj-account__menu button:hover {
  background: rgba(6, 97, 104, 0.06);
}

.sj-account__menu .is-danger {
  color: #a50000;
}

.sj-header-wishlist {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid rgba(6, 97, 104, 0.2);
  background: rgba(255, 255, 255, 0.9);
  color: #066168;
  text-decoration: none;
  position: relative;
}

@media (min-width: 1024px) {
  .sj-header-wishlist.sj-header-wishlist--visible {
    display: inline-flex;
  }
}

.sj-header-wishlist:hover {
  color: #a50000;
  border-color: rgba(165, 0, 0, 0.3);
}

/* Booking user chip & payment options */
.booking-user-chip {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  background: linear-gradient(135deg, rgba(6, 97, 104, 0.06), rgba(255, 200, 50, 0.08));
  border-radius: 14px;
  margin-bottom: 1rem;
  border: 1px solid rgba(6, 97, 104, 0.1);
}

.booking-user-chip__avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #066168, #0a8a94);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.booking-user-chip__name {
  font-weight: 700;
  color: #066168;
  font-size: 0.95rem;
}

.booking-user-chip__meta {
  font-size: 0.8rem;
  color: rgba(6, 97, 104, 0.65);
}

.booking-payment-options {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.booking-payment-option {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border: 1.5px solid rgba(6, 97, 104, 0.12);
  border-radius: 14px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.booking-payment-option:has(input:checked) {
  border-color: #a50000;
  background: rgba(165, 0, 0, 0.04);
}

.booking-payment-option input {
  margin-top: 0.2rem;
  accent-color: #a50000;
}

.booking-payment-option__title {
  font-weight: 700;
  color: #066168;
  font-size: 0.95rem;
}

.booking-payment-option__desc {
  font-size: 0.8rem;
  color: rgba(6, 97, 104, 0.65);
  margin-top: 0.15rem;
}

.booking-payment-option__amount {
  margin-left: auto;
  font-weight: 700;
  color: #a50000;
  font-size: 0.9rem;
  white-space: nowrap;
}

.mmt-card__wishlist {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1.5px solid rgba(6, 97, 104, 0.15);
  background: #fff;
  color: #066168;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s, color 0.2s, border-color 0.2s, background 0.2s;
}

.mmt-card__title-row {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.mmt-card__title-row .mmt-card__title {
  flex: 1;
  min-width: 0;
  margin-bottom: 0;
}

.mmt-card__wishlist:hover {
  transform: scale(1.08);
}

.mmt-card__wishlist.is-active {
  color: #a50000;
}

.mmt-card__wishlist.is-active i {
  font-weight: 900;
}

/* Account pages */
.account-page {
  padding: 2rem 0 4rem;
}

.account-booking-card {
  background: #fff;
  border-radius: 16px;
  padding: 1.25rem;
  margin-bottom: 1rem;
  box-shadow: 0 4px 24px rgba(6, 97, 104, 0.08);
  border: 1px solid rgba(6, 97, 104, 0.08);
}

.account-booking-card__ref {
  font-size: 0.8rem;
  color: rgba(6, 97, 104, 0.6);
  font-weight: 600;
}

.account-booking-card__title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #066168;
  margin: 0.25rem 0;
}

.account-status {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.account-status--confirmed { background: #ecfdf5; color: #047857; }
.account-status--pending { background: #fff8eb; color: #b45309; }
.account-status--paid { background: #ecfdf5; color: #047857; }
.account-status--partial { background: #eff6ff; color: #1d4ed8; }

.account-empty {
  text-align: center;
  padding: 3rem 1rem;
  color: rgba(6, 97, 104, 0.6);
}

.account-empty i {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.4;
}

/* Mobile bottom nav — 5 items */
@media (max-width: 991.98px) {
  .mobile-bottom-nav__item {
    min-width: 0;
    font-size: 10px;
    gap: 3px;
    padding: 5px 2px;
  }

  .mobile-bottom-nav__item span:not(.mobile-bottom-nav__avatar) {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.2;
  }

  .mobile-bottom-nav__item i {
    font-size: 17px;
  }

  .mobile-bottom-nav__avatar {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: linear-gradient(135deg, #066168, #0a8a94);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
  }

  .mobile-bottom-nav__item.is-active .mobile-bottom-nav__avatar {
    box-shadow: 0 0 0 2px var(--color-citrusyellow, #f5c518);
  }

  button.mobile-bottom-nav__item {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
  }
}

/* Account hub tabs */
.account-hub__tabs {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
  margin-bottom: 1.25rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.account-hub__tabs::-webkit-scrollbar {
  display: none;
}

.account-hub__tab {
  flex: 1 0 auto;
  min-width: max-content;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 1rem;
  border: 1.5px solid rgba(6, 97, 104, 0.12);
  border-radius: 999px;
  background: #fff;
  color: #066168;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  white-space: nowrap;
}

.account-hub__tab i {
  font-size: 0.9rem;
}

.account-hub__tab.is-active {
  background: linear-gradient(135deg, #066168, #0a8a94);
  border-color: transparent;
  color: #fff;
}

.account-hub__tab--logout {
  color: #a50000;
  border-color: rgba(165, 0, 0, 0.2);
}

.account-hub__tab--logout:hover {
  background: rgba(165, 0, 0, 0.06);
}

.account-hub__panel {
  animation: accountPanelIn 0.25s ease;
}

@keyframes accountPanelIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.profile-card__hint {
  font-size: 0.85rem;
  color: rgba(6, 97, 104, 0.6);
  text-align: center;
  margin: 0;
}

@media (max-width: 575px) {
  .account-hub__tab span {
    font-size: 0.78rem;
  }
  .account-hub__tab {
    padding: 0.55rem 0.75rem;
  }
}

/* Profile page */
.profile-card {
  background: #fff;
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: 0 8px 32px rgba(6, 97, 104, 0.1);
  border: 1px solid rgba(6, 97, 104, 0.08);
}

.profile-card__hero {
  text-align: center;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(6, 97, 104, 0.08);
  margin-bottom: 1rem;
}

.profile-card__avatar {
  width: 72px;
  height: 72px;
  margin: 0 auto 0.75rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #066168, #0a8a94);
  color: #fff;
  font-size: 1.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-card__name {
  font-size: 1.35rem;
  font-weight: 700;
  color: #066168;
  margin: 0 0 0.35rem;
}

.profile-card__phone,
.profile-card__email {
  font-size: 0.9rem;
  color: rgba(6, 97, 104, 0.7);
  margin: 0.2rem 0;
}

.profile-card__links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.profile-card__link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: rgba(6, 97, 104, 0.04);
  color: #066168;
  text-decoration: none;
  font-weight: 600;
}

.profile-card__link span {
  flex: 1;
}

.profile-card__link .fa-chevron-right {
  opacity: 0.4;
  font-size: 0.8rem;
}

.profile-card__logout {
  width: 100%;
  padding: 0.75rem;
  border: 1.5px solid rgba(165, 0, 0, 0.2);
  border-radius: 12px;
  background: #fff;
  color: #a50000;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
