/* ===========================
   ActiveGo — Mobile safe CSS
   цель: читабельно, влезает, ничего не теряется
   =========================== */

* {
  box-sizing: border-box;
}

html, body {
  overflow-x: hidden;
}

/* ---------- CONTAINER ---------- */
.container {
  width: 100%;
  max-width: 100%;
  padding: 12px;
  margin: 0 auto;
}

/* ---------- HEADER ---------- */
#header,
.header {
  position: sticky;
  top: 0;
  z-index: 100;
}

#header * {
  max-width: 100%;
}

/* ---------- TEXT ---------- */
h1 { font-size: 20px; }
h2 { font-size: 18px; }
h3 { font-size: 16px; }

p, span, div, label {
  font-size: 14px;
  line-height: 1.4;
  word-break: break-word;
}

/* ---------- BUTTONS ---------- */
button,
.btn,
input[type="submit"] {
  width: 100%;
  min-height: 44px;
  font-size: 15px;
}

/* ---------- FORMS ---------- */
form {
  width: 100%;
}

input,
select,
textarea {
  width: 100%;
  font-size: 15px;
}

/* ---------- SEARCH ---------- */
.search-box,
.search-input-wrapper {
  width: 100%;
}

.search-input-wrapper input {
  width: 100%;
}

/* ---------- CARDS / SERVICES ---------- */
.card,
.service-card,
.catalog-item {
  width: 100%;
  margin-bottom: 12px;
}

.card img,
.service-card img {
  width: 100%;
  height: auto;
}

/* ---------- GRID → COLUMN ---------- */
.grid,
.grid-2,
.grid-3,
.grid-4,
.flex,
.flex-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ---------- DASHBOARD ---------- */
.dashboard,
.dashboard-grid,
.dashboard-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ---------- BOOKINGS / LISTS ---------- */
.booking-item,
.booking-card,
.list-item {
  width: 100%;
}

/* ---------- TABLES (safe scroll) ---------- */
table {
  width: 100%;
  display: block;
  overflow-x: auto;
  border-collapse: collapse;
}

thead, tbody, tr {
  width: 100%;
}

th, td {
  padding: 8px;
  font-size: 13px;
  white-space: nowrap;
}

/* ---------- ACTION GROUPS ---------- */
.actions,
.button-group,
.form-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ---------- IMAGES ---------- */
img {
  max-width: 100%;
  height: auto;
}

/* ---------- MODALS ---------- */
.modal,
.popup {
  width: 95%;
  max-width: 95%;
  margin: auto;
}

/* ---------- FOOTER / MISC ---------- */
footer {
  padding: 16px 12px;
}

/* ---------- ADMIN PAGES (минимально) ---------- */
.admin-layout,
.admin-content {
  padding: 12px;
}

/* ===========================
   MOBILE — CLEAN CARD IMAGES
   баланс как у GetYourGuide
   =========================== */

@media (max-width: 768px) {

  /* контейнер картинки */
  .service-card img,
  .catalog-item img,
  .card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    object-position: center;
    border-radius: 12px 12px 0 0;
    display: block;
    background: #eee;
  }
  
}

/* =========================
   MOBILE HEADER + BURGER
========================= */

/* header — всегда нормальная строка */
.header {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}

/* ---------- BURGER ---------- */
.burger-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 40px;
  height: 40px;

  font-size: 22px;
  background: none;
  border: none;
  cursor: pointer;

  position: relative;
  z-index: 300;
}

/* =========================
   MOBILE NAV (OFF-CANVAS)
========================= */

@media (max-width: 768px) {

  /* NAV — скрыт по умолчанию */
  .header .nav {
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;

  background: #fff;
  padding: 20px 16px;

  display: flex;
  flex-direction: column;
  gap: 14px;

  transform: translateY(-120%);
  opacity: 0;
  pointer-events: none;

  transition: transform 0.25s ease, opacity 0.2s ease;
  z-index: 200;
}

.header .nav.is-open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

  /* ---------- MOBILE VISIBILITY RULES ---------- */

   /* бургер — виден */
  .burger-btn {
    display: inline-flex;
  }

    /* ---------- CART (mobile) ---------- */
  .cart-link {
    font-size: 22px; /* иконка корзины крупнее */
  }

  .cart-link .cart-text {
    display: none; /* слово "Корзина" скрываем */
  }

  /* mobile header spacing */
.cart-link {
  margin-left: auto; /* ← ВОТ ЭТО КЛЮЧ */
}

}
/* ===== BOOKING TOTAL (mobile safe) ===== */

.booking-summary {
  margin: 12px 0;
  text-align: center;
}

.booking-summary:empty {
  display: none;
}

.booking-total {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.2;
}








