/* Gurgen Tour — mobile app design (820px and below) */
:root {
  --mapp-teal: #008080;
  --mapp-teal-dark: #006666;
  --mapp-bg: #f5f7f8;
  --mapp-surface: #ffffff;
  --mapp-text: #1a2b2b;
  --mapp-muted: #6b7c7c;
  --mapp-border: #e2eaea;
}

@media (max-width: 820px) {
  body.mobile-app-home-active .site-topbar,
  body.mobile-app-home-active .site-header-main,
  body.mobile-app-home-active .site-footer {
    display: none !important;
  }

  body.mobile-app-home-active .desktop-home {
    display: none !important;
  }

  body.mobile-app-home-active .flash-wrap {
    margin: 0;
  }
}

@media (min-width: 821px) {
  .mobile-app-shell,
  .mobile-app-splash {
    display: none !important;
  }
}

/* Splash overlay */
.mobile-app-splash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #0a3d62 center/cover no-repeat;
  color: #fff;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.mobile-app-splash.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.mobile-app-splash__overlay {
  position: absolute;
  inset: 0;
  background: rgba(8, 28, 48, 0.22);
  pointer-events: none;
}

.mobile-app-splash__center {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
}

.mobile-app-splash__logo {
  width: 118px;
  height: 118px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.12);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  position: relative;
}

.mobile-app-splash__logo-g {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: linear-gradient(145deg, #1a8fd4, #0a6fb8);
  display: grid;
  place-items: center;
  font-size: 44px;
  font-weight: 900;
  color: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.mobile-app-splash__brand {
  margin: 0;
  font-size: clamp(1.6rem, 7vw, 2.1rem);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}

.mobile-app-splash__divider {
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(180px, 70vw);
  margin: 14px auto 12px;
}

.mobile-app-splash__divider span {
  flex: 1;
  height: 2px;
  background: rgba(90, 170, 230, 0.85);
}

.mobile-app-splash__divider i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f39c12;
  font-style: normal;
}

.mobile-app-splash__subtitle,
.mobile-app-splash__tagline {
  margin: 0;
  font-size: 15px;
  opacity: 0.95;
}

.mobile-app-splash__tagline {
  margin-top: 8px;
  font-weight: 600;
}

.mobile-app-splash__bottom {
  position: relative;
  z-index: 1;
  padding: 0 48px calc(24px + env(safe-area-inset-bottom, 0px));
  text-align: center;
}

.mobile-app-splash__loading {
  margin: 0 0 10px;
  font-size: 13px;
  opacity: 0.88;
}

.mobile-app-splash__bar {
  height: 8px;
  border-radius: 4px;
  background: rgba(10, 40, 70, 0.75);
  overflow: hidden;
}

.mobile-app-splash__bar span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 4px;
  background: #4db8ff;
  transition: width 0.2s ease;
}

/* Mobile home shell */
.mobile-app-shell {
  background: var(--mapp-bg);
  min-height: 100vh;
  padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
}

.mapp-header {
  display: grid;
  grid-template-columns: 40px 1fr 40px;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--mapp-surface);
  border-bottom: 1px solid var(--mapp-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.mapp-header__brand {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.mapp-header__brand--center {
  grid-column: 2;
  justify-content: center;
  text-decoration: none;
  color: inherit;
}

.mapp-header__menu {
  grid-column: 1;
}

.mapp-header__mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #e6f5f5;
  color: var(--mapp-teal);
  display: grid;
  place-items: center;
  font-size: 14px;
}

.mapp-header__name {
  font-size: 11px;
  font-weight: 800;
  color: var(--mapp-teal);
  letter-spacing: 0.04em;
}

.mapp-header__region {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  max-width: 130px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--mapp-bg);
  font-size: 12px;
  font-weight: 600;
  color: var(--mapp-text);
  border: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mapp-header__actions {
  display: flex;
  gap: 4px;
}

.mapp-header__icon {
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  color: var(--mapp-text);
  font-size: 18px;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.mapp-header__icon:last-child {
  grid-column: 3;
  justify-self: end;
}

.mapp-hero {
  padding: 12px 16px 0;
}

.mapp-hero__track {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.mapp-hero__track::-webkit-scrollbar {
  display: none;
}

.mapp-hero__slide {
  flex: 0 0 calc(100% - 8px);
  scroll-snap-align: start;
  position: relative;
  min-height: 190px;
  border-radius: 20px;
  overflow: hidden;
}

.mapp-hero__slide img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  display: block;
}

.mapp-hero__copy {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 18px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.05), rgba(0, 40, 40, 0.55));
  color: #fff;
}

.mapp-hero__copy h2 {
  margin: 0 0 6px;
  font-size: 16px;
  line-height: 1.35;
}

.mapp-hero__copy p {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  opacity: 0.92;
}

.mapp-hero__dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 10px 0 14px;
}

.mapp-hero__dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #c5d5d5;
  border: 0;
  padding: 0;
}

.mapp-hero__dot.is-active {
  width: 18px;
  background: var(--mapp-teal);
}

.home-visitor-stats {
  margin: 0 16px 80px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--mapp-surface);
  border: 1px solid var(--mapp-border);
}

.home-ent-preview {
  margin: 0 16px 10px;
}

.home-ent-preview__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.home-ent-preview__head h2 {
  margin: 0;
  font-size: 14px;
  font-weight: 800;
  color: var(--mapp-text);
}

.home-ent-preview__head a {
  font-size: 12px;
  font-weight: 600;
  color: var(--mapp-teal);
  text-decoration: none;
}

.home-ent-preview__track {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 2px;
}

.home-ent-preview__track::-webkit-scrollbar {
  display: none;
}

.home-ent-preview__card {
  flex: 0 0 150px;
  scroll-snap-align: start;
  display: grid;
  text-decoration: none;
  color: inherit;
  background: var(--mapp-surface);
  border: 1px solid var(--mapp-border);
  border-radius: 12px;
  overflow: hidden;
}

.home-ent-preview__img {
  height: 72px;
  overflow: hidden;
}

.home-ent-preview__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.home-ent-preview__body {
  padding: 7px 8px 8px;
  display: grid;
  gap: 2px;
}

.home-ent-preview__body span {
  font-size: 9px;
  font-weight: 700;
  color: #0a8fbd;
}

.home-ent-preview__body strong {
  font-size: 11px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.home-ent-preview__body small {
  font-size: 9px;
  color: var(--mapp-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.home-visitor-stats__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 10px;
}

.home-visitor-stats__item {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
}

.home-visitor-stats__item strong {
  font-size: 15px;
  font-weight: 800;
  color: var(--mapp-teal);
}

.home-visitor-stats__item span {
  font-size: 11px;
  color: var(--mapp-muted);
  font-weight: 600;
}

.home-visitor-stats__sep {
  color: #c5d5d5;
}

.mapp-search {
  margin: 0 16px 16px;
  padding: 16px;
  background: var(--mapp-surface);
  border: 1px solid var(--mapp-border);
  border-radius: 20px;
}

.mapp-search__row {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.mapp-search__input-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 12px;
  border-radius: 12px;
  background: var(--mapp-bg);
}

.mapp-search__input-wrap input {
  flex: 1;
  border: 0;
  background: transparent;
  font-size: 14px;
  outline: none;
}

.mapp-search__filter {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: var(--mapp-teal);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
}

.mapp-search__filters {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

.mapp-search__chip {
  padding: 8px;
  border-radius: 12px;
  background: var(--mapp-bg);
  text-align: center;
}

.mapp-search__chip small {
  display: block;
  font-size: 10px;
  color: var(--mapp-muted);
}

.mapp-search__chip strong {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: var(--mapp-text);
}

.mapp-search__submit {
  display: inline-flex;
  margin-left: auto;
  padding: 10px 22px;
  border: 0;
  border-radius: 999px;
  background: var(--mapp-teal);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
}

.mapp-cats {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 0 16px 16px;
  scrollbar-width: none;
}

.mapp-cats::-webkit-scrollbar {
  display: none;
}

.mapp-cat {
  flex: 0 0 72px;
  text-align: center;
  text-decoration: none;
  color: inherit;
}

.mapp-cat__circle {
  width: 54px;
  height: 54px;
  margin: 0 auto 6px;
  border-radius: 50%;
  border: 1px solid var(--mapp-border);
  background: var(--mapp-surface);
  display: grid;
  place-items: center;
  font-size: 22px;
}

.mapp-cat span {
  display: block;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.25;
}

.mapp-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px 12px;
}

.mapp-section-head h2 {
  margin: 0;
  font-size: 17px;
  color: var(--mapp-text);
}

.mapp-section-head a {
  font-size: 13px;
  font-weight: 600;
  color: var(--mapp-teal);
  text-decoration: none;
}

.mapp-cards {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 0 16px 16px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.mapp-cards::-webkit-scrollbar {
  display: none;
}

.mapp-card {
  flex: 0 0 168px;
  scroll-snap-align: start;
  background: var(--mapp-surface);
  border: 1px solid var(--mapp-border);
  border-radius: 16px;
  padding: 8px;
  text-decoration: none;
  color: inherit;
}

.mapp-card__img {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 8px;
}

.mapp-card__img img,
.mapp-card__img .gt-media-placeholder {
  width: 100%;
  height: 110px;
  object-fit: cover;
  display: block;
}

.mapp-card__badge {
  position: absolute;
  left: 8px;
  bottom: 8px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  background: var(--mapp-teal);
}

.mapp-card__badge--resort { background: #22a06b; }
.mapp-card__badge--homestay { background: #2f7dd1; }
.mapp-card__badge--driver { background: #e67e22; }

.mapp-card h3 {
  margin: 0 0 4px;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mapp-card__meta {
  font-size: 11px;
  color: var(--mapp-muted);
}

.mapp-card__price {
  margin-top: 4px;
  font-size: 13px;
  font-weight: 700;
  color: var(--mapp-teal);
}

.mapp-banners {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 0 16px 16px;
}

.mapp-banner {
  position: relative;
  min-height: 130px;
  padding: 12px;
  border-radius: 16px;
  text-decoration: none;
  color: var(--mapp-text);
}

.mapp-banner--green { background: #e8f8f0; }
.mapp-banner--purple { background: #f0ebff; }

.mapp-banner strong {
  display: block;
  font-size: 13px;
  margin-bottom: 4px;
}

.mapp-banner small {
  display: block;
  font-size: 10px;
  line-height: 1.4;
  color: var(--mapp-muted);
  padding-right: 28px;
}

.mapp-banner__arrow {
  position: absolute;
  right: 8px;
  bottom: 8px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 14px;
}

.mapp-banner--green .mapp-banner__arrow { background: var(--mapp-teal); }
.mapp-banner--purple .mapp-banner__arrow { background: #7c5cbf; }

.mapp-places {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 0 16px 20px;
  scrollbar-width: none;
}

.mapp-places::-webkit-scrollbar {
  display: none;
}

.mapp-place {
  flex: 0 0 88px;
  text-align: center;
  text-decoration: none;
  color: inherit;
}

.mapp-place img,
.mapp-place .gt-media-placeholder {
  width: 80px;
  height: 80px;
  border-radius: 16px;
  object-fit: cover;
  margin-bottom: 6px;
}

.mapp-place span {
  display: block;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.25;
}

/* Bottom nav — app design */
@media (max-width: 820px) {
  .mobile-bottom-nav {
    align-items: flex-end;
    padding-top: 8px;
    border-top-color: var(--mapp-border);
  }

  .mobile-bottom-nav__item {
    font-size: 10px;
    color: var(--mapp-muted);
  }

  .mobile-bottom-nav__item.is-active {
    color: var(--mapp-teal);
  }

  .mobile-bottom-nav__item--add {
    margin-top: -22px;
  }

  .mobile-bottom-nav__fab {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--mapp-teal);
    color: #fff;
    display: grid;
    place-items: center;
    box-shadow: 0 4px 12px rgba(0, 128, 128, 0.35);
    margin-bottom: 2px;
  }

  .mobile-bottom-nav__fab svg {
    width: 28px;
    height: 28px;
  }
}
