/* ==========================================================================
   Thai Smiles Trip — Agency Brand Layer
   Single source for tokens, shared UI, and page styles (no Blade <style>)
   ========================================================================== */

@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Playfair+Display:wght@500;600;700&display=swap");

:root {
  /* Thai Smiles Trip logo palette */
  --agency-logo-start: #5b245e;
  --agency-logo-end: #2e2a60;
  --agency-bg-gradient: linear-gradient(90deg, var(--agency-logo-start) 0%, var(--agency-logo-end) 100%);

  --agency-primary: #5b245e;
  --agency-primary-hover: #472048;
  --agency-primary-light: #f3eef5;
  --agency-primary-muted: #c9b3cb;
  --agency-footer-bg: #2e2a60;
  --agency-text: #1a1a2e;
  --agency-text-muted: #6b7280;
  --agency-border: #e5e7eb;
  --agency-surface: #ffffff;
  --agency-surface-soft: #f5f5f7;
  --agency-radius: 12px;
  --agency-radius-sm: 8px;
  --agency-radius-pill: 999px;
  --agency-font-ui: "Manrope", sans-serif;
  --agency-font-display: "Playfair Display", Georgia, serif;
  --agency-shadow: 0 8px 24px rgba(91, 36, 94, 0.1);
  --agency-shadow-card: 0 12px 32px rgba(0, 0, 0, 0.12);

  /* Override Travila tokens for agency */
  --bs-brand-primary: #5b245e;
  --bs-brand-secondary: #5b245e;
  --bs-button-bg: #5b245e;
  --bs-background-1: #f3eef5;
  --bs-background-body: transparent;
  --bs-brand-2: #2e2a60;
}

body {
  font-family: var(--agency-font-ui);
  color: var(--agency-text);
  background-color: var(--agency-logo-start);
  background-image: var(--agency-bg-gradient);
  background-attachment: fixed;
  background-repeat: no-repeat;
  background-size: cover;
  min-height: 100vh;
}

/* Content panels stay light for readability on logo gradient */
.background-body,
.box-section.background-body,
.section-box.background-body,
main.main > .box-section,
main.main > .section-box {
  background-color: rgba(255, 255, 255, 0.96) !important;
  background-image: none !important;
}

.is-hidden {
  display: none;
}

.is-inline {
  display: inline !important;
}

.agency-btn-compact {
  font-size: 0.9rem !important;
}

.border-accent {
  border-left: 3px solid var(--accent, var(--agency-primary)) !important;
}

.border-accent--soft {
  border-left-width: 4px !important;
  background: rgba(255, 255, 255, 0.6);
}

/* --------------------------------------------------------------------------
   Shared buttons
   -------------------------------------------------------------------------- */
.agency-btn-primary,
.btn.agency-btn-primary,
.btn.btn-black,
.btn.btn-black-lg,
.btn.btn-black-sm,
.btn.btn-book,
button.btn-primary,
.btn-primary {
  background-color: var(--agency-primary) !important;
  border-color: var(--agency-primary) !important;
  color: #fff !important;
  border-radius: var(--agency-radius-sm);
  font-weight: 600;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.agency-btn-primary:hover,
.btn.agency-btn-primary:hover,
.btn.btn-black:hover,
.btn.btn-black-lg:hover,
.btn.btn-black-sm:hover,
.btn.btn-book:hover,
.btn-primary:hover {
  background-color: var(--agency-primary-hover) !important;
  border-color: var(--agency-primary-hover) !important;
  color: #fff !important;
}

.agency-btn-ghost,
.btn.agency-btn-ghost {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.55);
  color: #fff !important;
  border-radius: var(--agency-radius-sm);
  font-weight: 600;
  backdrop-filter: blur(4px);
}

.agency-btn-ghost:hover,
.btn.agency-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.35);
  color: #fff !important;
}

.agency-btn-outline,
.btn.agency-btn-outline {
  background: transparent;
  border: 1px solid var(--agency-primary);
  color: var(--agency-primary) !important;
  border-radius: var(--agency-radius-sm);
  font-weight: 600;
}

.agency-btn-outline:hover,
.btn.agency-btn-outline:hover {
  background: var(--agency-primary-light);
  color: var(--agency-primary-hover) !important;
}

.btn.btn-default.btn-signin {
  background: var(--agency-primary-light);
  color: var(--agency-primary);
  border: 1px solid var(--agency-primary-muted);
  border-radius: var(--agency-radius-pill);
  font-weight: 600;
}

.btn.btn-default.btn-signin:hover {
  background: var(--agency-primary);
  color: #fff;
  border-color: var(--agency-primary);
}

.form-control:focus,
.form-select:focus,
.select2-container--default .select2-selection--single:focus {
  border-color: var(--agency-primary) !important;
  box-shadow: 0 0 0 0.2rem rgba(72, 30, 120, 0.15) !important;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
/* Smooth sticky header — prevent flicker/lag from repeated fadeInDown animation */
.header.sticky-bar {
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.header.sticky-bar.stick {
  animation: none !important;
  -webkit-animation: none !important;
  transition: padding 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
}

.header.sticky-bar .container-fluid.background-body {
  background: var(--agency-bg-gradient) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.header .main-header {
  padding-top: 10px;
  padding-bottom: 10px;
  align-items: center;
  gap: 16px;
}

.header .header-logo .logo {
  max-height: 44px;
  width: auto;
}

.header .main-header .header-right {
  width: auto;
  min-width: 0;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-shrink: 0;
}

.header .header-right > * {
  margin-right: 0 !important;
  margin-top: 0 !important;
}

.header .main-menu > li {
  padding: 0 2px;
}

.header .main-menu > li > a {
  font-weight: 600;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.92) !important;
  position: relative;
  padding: 16px 14px;
}

.header .main-menu li a:hover,
.header .main-menu li a.active,
.header .main-menu > li > a.active,
.header .main-menu > li.active > a,
.header .main-menu > li > a:hover {
  color: #ffe566 !important;
}

.header .main-menu > li > a.active::after,
.header .main-menu > li > a:hover::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 10px;
  height: 2px;
  background: #ffe566;
  border-radius: 2px;
}

.header .btn.btn-default.btn-signin {
  padding: 8px 16px;
  font-size: 13px;
  line-height: 1.3;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--agency-radius-pill);
  font-weight: 600;
  box-shadow: none;
}

.header .btn.btn-default.btn-signin:hover {
  background: #fff;
  color: var(--agency-primary);
  border-color: #fff;
  box-shadow: none;
}

.header .box-dropdown-cart {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: 50%;
  position: relative;
}

.header .box-dropdown-cart .icon-cart {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.header .box-dropdown-cart .icon-cart i {
  font-size: 18px;
  color: #fff;
}

.header .agency-avatar {
  width: 40px !important;
  height: 40px !important;
  min-width: 40px !important;
  max-width: 40px !important;
  min-height: 40px !important;
  max-height: 40px !important;
  flex: 0 0 40px !important;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: #ffe566;
  color: var(--agency-primary) !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
  line-height: 1;
  text-decoration: none;
  overflow: hidden;
  box-sizing: border-box;
  padding: 0;
  border: 2px solid rgba(255, 255, 255, 0.55);
}

.header .agency-avatar:hover {
  background: #fff;
  color: var(--agency-primary) !important;
}

.header .burger-icon-2 {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.14);
}

.header .burger-icon-2 img {
  width: 18px;
  height: 18px;
  filter: brightness(0) invert(1);
}

.header .agency-notification-badge,
.header .notification-count {
  background: var(--agency-primary) !important;
  border: 0;
  top: 2px;
  right: 2px;
}

.header .agency-btn-logout {
  background: var(--agency-surface-soft) !important;
  border: 1px solid var(--agency-border) !important;
  color: var(--agency-text) !important;
}

.header .agency-btn-logout:hover {
  background: var(--agency-primary-light) !important;
  border-color: var(--agency-primary-muted) !important;
  color: var(--agency-primary) !important;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer.agency-footer {
  background: var(--agency-bg-gradient);
  color: rgba(255, 255, 255, 0.88);
  padding-top: 56px;
  padding-bottom: 24px;
}

.footer.agency-footer .footer-brand-logo {
  display: inline-block;
  margin-bottom: 16px;
  text-decoration: none;
}
.footer.agency-footer .footer-brand-logo__img {
  display: block;
  max-height: 56px;
  width: auto;
  max-width: 240px;
  height: auto;
  border-radius: 8px;
}

.footer.agency-footer .footer-brand-name {
  font-family: var(--agency-font-display);
  font-size: 22px;
  color: #fff;
  margin-bottom: 12px;
}

.footer.agency-footer .footer-mission {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.92);
  max-width: 320px;
}

.footer.agency-footer h6 {
  color: #fff;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.footer.agency-footer .menu-footer li {
  margin-bottom: 10px;
}

.footer.agency-footer .menu-footer a {
  color: rgba(255, 255, 255, 0.92);
  font-size: 14px;
  text-decoration: none;
}

.footer.agency-footer .menu-footer a:hover {
  color: #ffe566;
}

.footer.agency-footer .footer-contact p,
.footer.agency-footer .footer-contact a {
  color: rgba(255, 255, 255, 0.92);
  font-size: 14px;
  margin-bottom: 8px;
}

.footer.agency-footer .footer-contact a:hover {
  color: #ffe566;
}

.footer.agency-footer .footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  margin-top: 40px;
  padding-top: 20px;
}

.footer.agency-footer .footer-bottom p,
.footer.agency-footer .menu-bottom-footer a {
  color: rgba(255, 255, 255, 0.92);
  font-size: 13px;
}

.footer.agency-footer .footer-credit a {
  color: #ffe566;
  text-decoration: none;
  font-weight: 600;
}

.footer.agency-footer .footer-credit a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer.agency-footer .footer-credit__heart {
  color: #ff6b8a;
  margin: 0 2px;
  font-size: 0.85em;
  vertical-align: -1px;
}

.bg-footer {
  display: none;
}

/* --------------------------------------------------------------------------
   Login
   -------------------------------------------------------------------------- */
.agency-login {
  min-height: 100vh;
  background: var(--agency-bg-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.agency-login-card {
  width: 100%;
  max-width: 420px;
  background: var(--agency-surface);
  border-radius: 16px;
  box-shadow: var(--agency-shadow);
  padding: 40px 36px;
}

.agency-login-card .logo {
  max-height: 48px;
  margin-bottom: 24px;
}

.agency-login-card .card-title {
  font-family: var(--agency-font-display);
  font-size: 28px;
  color: var(--agency-text);
  margin-bottom: 8px;
}

.agency-login-card .agency-login-sub {
  color: var(--agency-text-muted);
  margin-bottom: 28px;
}

.agency-login-card .btn-login {
  width: 100%;
  padding: 12px 20px;
  border-radius: var(--agency-radius-sm);
  background: var(--agency-primary);
  border: 0;
  color: #fff;
  font-weight: 700;
}

.agency-login-card .btn-login:hover {
  background: var(--agency-primary-hover);
}

/* --------------------------------------------------------------------------
   Shared primitives
   -------------------------------------------------------------------------- */
.agency-hero {
  padding: 40px 0 28px;
}

.agency-hero-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--agency-text-muted);
  margin-bottom: 10px;
}

.agency-hero-title {
  font-family: var(--agency-font-display);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  color: var(--agency-text);
  line-height: 1.2;
  margin-bottom: 12px;
}

.agency-hero-sub {
  font-size: 15px;
  color: var(--agency-text-muted);
  max-width: 560px;
  line-height: 1.6;
  margin: 0;
}

.agency-view-toggle {
  display: inline-flex;
  background: var(--agency-surface-soft);
  border-radius: var(--agency-radius-pill);
  padding: 4px;
  gap: 2px;
}

.agency-view-toggle .display-type {
  border: 0;
  background: transparent;
  border-radius: var(--agency-radius-pill);
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--agency-text-muted);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.agency-view-toggle .display-type.active {
  background: #e8e8ec;
  color: var(--agency-text);
}

.agency-view-toggle .display-type svg {
  width: 16px;
  height: 16px;
}

.agency-search-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--agency-text-muted);
  margin-bottom: 8px;
}

.agency-search-input {
  width: 100%;
  border: 1px solid var(--agency-border);
  border-radius: var(--agency-radius);
  padding: 14px 18px;
  font-size: 15px;
  background: var(--agency-surface);
  color: var(--agency-text);
}

.agency-search-input:focus {
  outline: none;
  border-color: var(--agency-primary);
  box-shadow: 0 0 0 3px rgba(72, 30, 120, 0.12);
}

.agency-filter-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px 24px;
  flex-wrap: wrap;
  margin: 28px 0 20px;
}

.agency-filter-main {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1 1 280px;
  min-width: 0;
}

.agency-activity-filter {
  display: none;
}

.agency-filter-chip--action {
  border: 1px solid var(--agency-border);
  background: #fff;
}

.agency-filter-chip--action i {
  font-size: 12px;
  opacity: 0.7;
}

.agency-filter-chip--action.is-active {
  background: var(--agency-primary);
  border-color: var(--agency-primary);
}

.agency-selected-activities {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 12px;
  margin: -4px 0 24px;
  padding: 12px 14px;
  background: var(--agency-primary-light);
  border-radius: var(--agency-radius);
}

.agency-selected-activities.is-hidden {
  display: none;
}

.agency-selected-activities .agency-filter-label {
  margin-right: 4px;
}

.agency-selected-chip i {
  font-size: 11px;
  margin-left: 2px;
  opacity: 0.85;
}

.agency-clear-activities {
  border: 0;
  background: transparent;
  color: var(--agency-primary);
  font-size: 13px;
  font-weight: 700;
  margin-left: auto;
  cursor: pointer;
  padding: 0;
}

.agency-activity-modal {
  border: 0;
  border-radius: 16px;
  overflow: hidden;
}

.agency-activity-modal .modal-header {
  border-bottom: 1px solid var(--agency-border);
  padding: 20px 24px;
  align-items: flex-start;
}

.agency-activity-modal .modal-title {
  font-family: var(--agency-font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--agency-text);
  margin-bottom: 4px;
}

.agency-activity-modal__sub {
  font-size: 13px;
  color: var(--agency-text-muted);
}

.agency-activity-modal .modal-body {
  padding: 20px 24px;
  max-height: 60vh;
  overflow-y: auto;
}

.agency-activity-modal .modal-footer {
  border-top: 1px solid var(--agency-border);
  padding: 16px 24px;
  gap: 10px;
}

.agency-activity-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

@media (min-width: 768px) {
  .agency-activity-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.agency-activity-option {
  display: block;
  margin: 0;
  cursor: pointer;
}

.agency-activity-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.agency-activity-option__body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 52px;
  padding: 12px 14px;
  border: 1px solid var(--agency-border);
  border-radius: 12px;
  background: #fff;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.agency-activity-option__name {
  font-size: 13px;
  font-weight: 600;
  color: var(--agency-text);
  line-height: 1.35;
}

.agency-activity-option__count {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 700;
  color: var(--agency-text-muted);
  background: var(--agency-surface-soft);
  border-radius: var(--agency-radius-pill);
  padding: 3px 8px;
}

.agency-activity-option:hover .agency-activity-option__body,
.agency-activity-option.is-selected .agency-activity-option__body {
  border-color: var(--agency-primary);
  background: var(--agency-primary-light);
  box-shadow: 0 0 0 1px rgba(72, 30, 120, 0.12);
}

.agency-activity-option.is-selected .agency-activity-option__count {
  background: var(--agency-primary);
  color: #fff;
}

.agency-activity-option.is-empty {
  cursor: not-allowed;
  opacity: 0.45;
}

.agency-activity-option.is-empty:hover .agency-activity-option__body {
  border-color: var(--agency-border);
  background: #fff;
  box-shadow: none;
}

.agency-filter-chips {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 12px;
}

.agency-filter-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--agency-text-muted);
  margin: 0;
  line-height: 1.2;
}

.agency-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: var(--agency-surface-soft);
  color: var(--agency-text);
  border-radius: var(--agency-radius-pill);
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  max-width: 100%;
  line-height: 1.3;
}

.agency-filter-chip__name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 180px;
}

.agency-filter-chip__count {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 700;
  color: var(--agency-text-muted);
  background: rgba(0, 0, 0, 0.06);
  border-radius: var(--agency-radius-pill);
  padding: 2px 7px;
  min-width: 1.5em;
  text-align: center;
}

.agency-filter-chip:hover {
  background: #e8e4ef;
}

.agency-filter-chip.is-active {
  background: var(--agency-primary);
  color: #fff;
}

.agency-filter-chip.is-active .agency-filter-chip__count {
  color: #fff;
  background: rgba(255, 255, 255, 0.22);
}

.agency-sort {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  flex: 0 0 auto;
  padding-bottom: 2px;
}

.agency-sort select {
  border: 1px solid var(--agency-border);
  background-color: var(--agency-surface);
  border-radius: var(--agency-radius-pill);
  padding: 8px 36px 8px 14px;
  font-size: 13px;
  font-weight: 700;
  color: var(--agency-text);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%231a1a2e' d='M1.4 1.4L6 6l4.6-4.6L12 2.8 6 8.8 0 2.8z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  min-height: 38px;
}

.agency-sort select:focus {
  outline: none;
  border-color: var(--agency-primary);
  box-shadow: 0 0 0 3px rgba(72, 30, 120, 0.12);
}

@media (max-width: 767px) {
  .agency-filter-row {
    align-items: stretch;
  }
  .agency-sort {
    width: 100%;
  }
  .agency-sort select {
    width: 100%;
  }
  .agency-filter-chip__name {
    max-width: 140px;
  }
}

/* Activity cards */
.agency-activity-card {
  position: relative;
  display: block;
  height: 340px;
  border-radius: var(--agency-radius);
  overflow: hidden;
  box-shadow: var(--agency-shadow-card);
  text-decoration: none;
  color: #fff !important;
  margin-bottom: 24px;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.agency-activity-card:hover,
.agency-activity-card:focus,
.agency-activity-card:active,
.agency-activity-card:hover *,
.agency-activity-card:focus * {
  color: #fff !important;
  text-decoration: none !important;
}

.agency-activity-card img.agency-activity-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.agency-activity-card:hover {
  box-shadow: 0 16px 36px rgba(26, 26, 46, 0.18);
  transform: translateY(-3px);
}

.agency-activity-card:hover img.agency-activity-card__img {
  transform: scale(1.04);
}

.agency-activity-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.08) 25%, rgba(0, 0, 0, 0.78) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  transition: background 0.3s ease;
}

.agency-activity-card:hover .agency-activity-card__overlay {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.12) 20%, rgba(20, 12, 32, 0.82) 100%);
}

.agency-activity-card__badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: #e8dff5;
  color: var(--agency-primary) !important;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 6px;
}

.agency-activity-card:hover .agency-activity-card__badge {
  color: var(--agency-primary) !important;
}

.agency-activity-card__location {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 8px;
  opacity: 0.95;
  color: #fff !important;
}

.agency-activity-card__title {
  font-family: var(--agency-font-ui);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 12px;
  color: #fff !important;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.agency-activity-card__price-label {
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.85;
  margin-bottom: 2px;
  color: #fff !important;
}

.agency-activity-card__price {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 14px;
  color: #fff !important;
}

.agency-activity-card__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: var(--agency-radius-sm);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  width: fit-content;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.agency-activity-card__cta--primary {
  background: var(--agency-primary);
  color: #fff !important;
  border: 1px solid transparent;
}

.agency-activity-card__cta--ghost {
  background: rgba(255, 255, 255, 0.18);
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.agency-activity-card:hover .agency-activity-card__cta--primary {
  background: #fff;
  color: var(--agency-primary) !important;
}

.agency-activity-card:hover .agency-activity-card__cta--ghost {
  background: #fff;
  color: var(--agency-primary) !important;
  border-color: #fff;
}

/* List view variant */
.box-list-tours.list-tours .agency-activity-card {
  height: 220px;
}

.agency-load-more-wrap {
  text-align: center;
  margin: 16px 0 32px;
}

.agency-load-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--agency-primary);
  color: #fff;
  border: 0;
  border-radius: var(--agency-radius-sm);
  padding: 14px 28px;
  font-weight: 700;
  font-size: 15px;
}

.agency-load-more:hover {
  background: var(--agency-primary-hover);
  color: #fff;
}

.agency-load-more:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.agency-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  margin-bottom: 48px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--agency-text-muted);
}

.agency-pagination button {
  background: none;
  border: 0;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--agency-text);
  cursor: pointer;
}

.agency-pagination button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.agency-empty {
  text-align: center;
  padding: 48px 16px;
  color: var(--agency-text-muted);
}

/* --------------------------------------------------------------------------
   Dashboard
   -------------------------------------------------------------------------- */
.agency-dashboard .agency-kpi-card {
  border: 0;
  border-radius: 16px;
  box-shadow: var(--agency-shadow);
  text-align: center;
  padding: 28px 16px 20px;
  position: relative;
  height: 100%;
  background: var(--agency-primary-light);
  border-top: 4px solid var(--agency-primary);
}

.agency-dashboard .agency-kpi-card--violet {
  background: rgba(72, 30, 120, 0.08);
  border-top-color: var(--agency-primary);
}

.agency-dashboard .agency-kpi-card--plum {
  background: rgba(55, 22, 92, 0.08);
  border-top-color: #6b3fa0;
}

.agency-dashboard .agency-kpi-card--lilac {
  background: rgba(196, 176, 219, 0.35);
  border-top-color: #9b7bb8;
}

.agency-dashboard .agency-kpi-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--agency-primary);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-top: -44px;
  margin-bottom: 12px;
}

.agency-dashboard #bookingChart {
  position: relative;
}

.agency-dashboard #chartStatsTooltip {
  display: none;
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 10;
  background: rgba(26, 26, 46, 0.92);
  color: #fff;
  padding: 16px 20px;
  border-radius: 8px;
  min-width: 180px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  font-size: 15px;
}

.agency-dashboard .agency-stat-tile {
  background: var(--agency-primary);
  color: #fff;
  border: 0;
  border-radius: 12px;
  box-shadow: var(--agency-shadow);
  text-align: center;
  height: 100%;
}
.agency-dashboard .agency-stat-tile--mid {
  background: #6b3fa0;
}
.agency-dashboard .agency-stat-tile--soft {
  background: #9b7bb8;
}
.agency-dashboard .agency-stat-tile--dark {
  background: #37165c;
}
.agency-dashboard #periodSelect {
  min-width: 140px;
  border-color: var(--agency-primary);
}
.agency-dashboard .agency-chart-stat-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}
.agency-dashboard .agency-chart-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.agency-dashboard .agency-chart-tip {
  min-width: 170px;
  padding: 8px 12px;
}
.agency-dashboard .agency-chart-tip-title {
  font-weight: 600;
  margin-bottom: 6px;
  color: #fff;
}

.hotel-place-search-dropdown {
  z-index: 1050;
  max-height: 220px;
  overflow-y: auto;
}
.hotel-place-search-dropdown .list-group-item:hover {
  background-color: var(--agency-primary-light);
}
.hotel-place-search-dropdown .hotel-place-main-text {
  display: block;
  font-weight: 600;
  color: var(--agency-text);
  line-height: 1.3;
}
.hotel-place-search-dropdown .hotel-place-secondary-text {
  display: block;
  font-size: 0.8rem;
  color: var(--agency-text-muted);
  line-height: 1.3;
  margin-top: 2px;
}

.agency-map-iframe {
  border: 0;
  width: 100%;
  height: 650px;
}

/* --------------------------------------------------------------------------
   Sightseeing details — packages
   -------------------------------------------------------------------------- */
#packageDetailModal ul {
  list-style: disc;
}

.btn-gallery {
  padding: 4px 12px;
  font-size: 13px;
  line-height: 20px;
  color: #fff !important;
  font-family: var(--agency-font-ui);
  font-weight: 700 !important;
  background-color: var(--agency-primary);
  border-radius: 50px;
  border: 0;
}

.btn.btn-gallery:hover {
  color: var(--agency-primary) !important;
  background-color: var(--agency-primary-light);
}

.slider-main-image {
  width: 100%;
  height: 409px;
  object-fit: cover;
  border-top-left-radius: 15px;
  border-bottom-left-radius: 15px;
}

.box-list-tours.list-tours .card-journey-small .card-info {
  padding-top: 20px;
}

.box-list-tours.list-tours .card-journey-small .package-details {
  max-height: 80px;
  overflow-y: auto;
}

.box-list-tours .card-journey-small .card-image,
.box-grid-tours .card-journey-small .card-image {
  height: 190px;
}

#bookingModalLabel {
  max-width: 80%;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

#package .select-package-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--agency-text);
  margin-bottom: 24px;
}

@media (max-width: 991.98px) {
  .box-content-tour-detail {
    padding-bottom: 96px;
  }

  .sightseeing-booking-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    margin: 0;
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -6px 28px rgba(0, 0, 0, 0.12);
    padding: 0.85rem 1rem;
    transition: transform 0.25s ease, opacity 0.25s ease;
  }

  .sightseeing-booking-cta > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  .sightseeing-booking-cta .item-line-booking {
    flex: 1;
    margin-bottom: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }

  .sightseeing-booking-cta .box-button-book {
    margin-top: 0 !important;
    flex-shrink: 0;
  }

  .sightseeing-booking-cta .btn-book {
    white-space: nowrap;
  }

  .sightseeing-booking-cta.is-packages-visible {
    transform: translateY(110%);
    opacity: 0;
    pointer-events: none;
  }
}

.package-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--agency-border);
  margin-bottom: 28px;
}

.package-type-tabs {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

.package-type-tabs .package-type-btn {
  border: 0;
  background: transparent;
  border-radius: 0;
  padding: 0 0 14px;
  font-size: 15px;
  font-weight: 600;
  color: var(--agency-text-muted);
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
}

.package-type-tabs .package-type-btn.active {
  color: var(--agency-primary);
  border-bottom-color: var(--agency-primary);
  background: transparent;
}

.package-search-wrap {
  position: relative;
  min-width: 320px;
  max-width: 380px;
  flex: 0 0 auto;
}

.package-search-wrap .fa-search {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  pointer-events: none;
}

.package-search-wrap #search {
  width: 100%;
  border: 0;
  border-bottom: 1px solid #d1d5db;
  border-radius: 0;
  padding: 6px 6px 8px 24px;
  font-size: 14px;
  background: transparent;
}

.package-search-wrap #search:focus {
  outline: none;
  border-bottom-color: var(--agency-primary);
  box-shadow: none;
}

.package-count-text {
  font-size: 14px;
  color: var(--agency-text-muted);
  margin-bottom: 20px;
}

.sightseeing-package-card {
  border: 1px solid var(--agency-border);
  border-radius: 16px;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  max-width: none;
  margin-bottom: 0;
  background: var(--agency-surface);
  box-shadow: 0 4px 16px rgba(26, 26, 46, 0.06);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.sightseeing-package-card:hover {
  box-shadow: 0 12px 32px rgba(91, 36, 94, 0.12);
  transform: translateY(-2px);
}

.sightseeing-package-card .card-image {
  height: 180px;
  border-radius: 0;
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
}

.box-list-tours .sightseeing-package-card .card-image,
.box-grid-tours .sightseeing-package-card .card-image {
  height: 180px;
}

.sightseeing-package-card .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.sightseeing-package-card:hover .card-image img {
  transform: scale(1.04);
}

.sightseeing-package-card .card-info {
  padding: 14px 16px 0;
  margin-top: 0;
  border-radius: 0;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0;
}

.sightseeing-package-card .card-duration-tour {
  margin-bottom: 6px;
}

.sightseeing-package-card .package-location-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.sightseeing-package-card .package-location {
  font-size: 13px;
  font-weight: 600;
  color: var(--agency-primary);
  line-height: 1.3;
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.sightseeing-package-card .package-location i {
  color: var(--agency-primary);
  font-size: 12px;
}

.sightseeing-package-card .package-booking-countdown {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  padding: 6px 10px;
  background: #FEF2F2;
  border-top: 1px solid #FECACA;
  border-bottom: 1px solid #FECACA;
  color: #e40d0d;
  font-size: 11px;
  line-height: 1.3;
}

.sightseeing-package-card .package-booking-countdown[hidden] {
  display: none !important;
}

.sightseeing-package-card .package-booking-countdown .countdown-message {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.sightseeing-package-card .package-booking-countdown .countdown-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #DC2626;
  flex-shrink: 0;
}

.sightseeing-package-card .package-booking-countdown .countdown-label {
  font-weight: 500;
  color: #DC2626;
  min-width: 0;
}

.sightseeing-package-card .package-booking-countdown .countdown-timer-group {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  padding: 2px 8px;
  border-radius: 6px;
  background: #FDE8E8;
  border: 1px solid #FECACA;
  white-space: nowrap;
}

.sightseeing-package-card .package-booking-countdown i {
  color: #ed1414;
  font-size: 11px;
}

.sightseeing-package-card .package-booking-countdown .countdown-time {
  font-weight: 700;
  color: #bb0c0c;
  font-variant-numeric: tabular-nums;
}

.sightseeing-package-card .package-booking-countdown.is-expired .countdown-timer-group,
.sightseeing-package-card .package-booking-countdown .countdown-timer-group:has(.countdown-time[hidden]),
.sightseeing-package-card .package-booking-countdown .countdown-time[hidden],
.sightseeing-package-card .package-booking-countdown i.fa-clock[hidden] {
  display: none;
}

.sightseeing-package-card .card-title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 0;
  padding-bottom: 12px;
  border-bottom: 1px solid #eef0f3;
}

.sightseeing-package-card .card-title a {
  color: var(--agency-text);
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sightseeing-package-card .card-title a:hover {
  color: var(--agency-primary);
}

.sightseeing-package-card .package-details {
  flex: 1;
  margin-bottom: 0;
  padding: 12px 0 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sightseeing-package-card .package-inclusions-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sightseeing-package-card .package-inclusions-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.sightseeing-package-card .top-inclusions-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #9ca3af;
}

.sightseeing-package-card .included-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: var(--agency-radius-pill);
  background: #e8f8ee;
  color: #15803d;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
}

.sightseeing-package-card .package-inclusions-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.sightseeing-package-card .package-inclusions-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  line-height: 1.35;
  color: var(--agency-text);
  font-weight: 500;
}

.sightseeing-package-card .package-inclusions-list li i {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-top: 1px;
  border-radius: 50%;
  background: #22c55e;
  color: #fff;
  font-size: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.sightseeing-package-card .view-more-inclusions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--agency-primary);
  text-decoration: none;
  margin-top: 2px;
}

.sightseeing-package-card .view-more-inclusions i {
  font-size: 10px;
}

.sightseeing-package-card .view-more-inclusions:hover {
  color: var(--agency-primary-hover);
  text-decoration: underline;
}

.sightseeing-package-card .package-card-footer {
  border-top: 1px solid #eef0f3;
  background: #f8f9fb;
  padding: 12px 16px;
  margin: auto -16px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.sightseeing-package-card .package-price-block {
  min-width: 0;
  flex: 1;
}

.sightseeing-package-card .package-price-starting {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: var(--agency-text-muted);
  line-height: 1.2;
  margin-bottom: 3px;
}

.sightseeing-package-card .package-price-values {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 12px;
}

.sightseeing-package-card .package-price-inline {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  white-space: nowrap;
}

.sightseeing-package-card .package-price-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--agency-text);
  line-height: 1.2;
}

.sightseeing-package-card .package-price-amount {
  color: var(--agency-text);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
}

.sightseeing-package-card .package-price-strike {
  font-size: 11px;
  color: #9ca3af;
  text-decoration: line-through;
}

.sightseeing-package-card .btn-book-package {
  flex-shrink: 0;
  background: var(--agency-primary);
  border: 1px solid var(--agency-primary);
  color: #fff;
  border-radius: var(--agency-radius-pill);
  font-weight: 700;
  font-size: 13px;
  padding: 10px 20px;
  line-height: 1.2;
  white-space: nowrap;
}

.sightseeing-package-card .btn-book-package:hover {
  background: var(--agency-primary-hover);
  border-color: var(--agency-primary-hover);
  color: #fff;
}

.card-journey-small .card-image .package-card-badges {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 12;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  pointer-events: none;
  max-width: calc(100% - 110px);
}

.card-journey-small .card-image .package-card-badges .label {
  position: static;
  top: auto;
  left: auto;
  bottom: auto;
}

.card-journey-small .card-image .label.package-type-badge {
  color: #fff;
  background: rgba(40, 44, 52, 0.88);
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  padding: 7px 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  pointer-events: none;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

.card-journey-small .card-image .label.package-code-badge {
  color: #fff;
  background: var(--agency-primary);
  font-size: 11px;
  font-weight: 700;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  line-height: 1;
  padding: 7px 10px;
  letter-spacing: 0.04em;
  pointer-events: none;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

.sightseeing-package-card .btn-gallery {
  width: auto;
  height: auto;
  min-height: 30px;
  padding: 6px 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 8px;
  background: rgba(40, 44, 52, 0.78);
  border: none;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

.sightseeing-package-card .btn-gallery i {
  font-size: 12px;
}

.sightseeing-package-card .btn-gallery:hover {
  background: rgba(40, 44, 52, 0.92);
  color: #fff !important;
}

@media (max-width: 767px) {
  .package-filter-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .package-search-wrap {
    max-width: 100%;
    width: 100%;
  }
  .package-type-tabs {
    gap: 16px;
  }
}

#packageDetailModal {
  z-index: 1065;
}

#packageDetailModal .modal-dialog {
  max-width: 900px;
}

body.package-detail-modal-open .modal-backdrop.package-detail-backdrop {
  z-index: 1060;
  background-color: rgba(15, 23, 42, 0.72);
  opacity: 1;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

#packageDetailModal .modal-header {
  flex-direction: column;
  align-items: stretch;
  border-bottom: 0;
  padding-bottom: 0;
}

#packageDetailModal .package-detail-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

#packageDetailModal .package-detail-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--agency-text);
  margin: 0;
  line-height: 1.3;
}

#packageDetailModal .package-detail-tabs {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: nowrap;
  overflow-x: auto;
  border-bottom: 1px solid var(--agency-border);
  scrollbar-width: none;
}

#packageDetailModal .package-detail-tabs::-webkit-scrollbar {
  display: none;
}

#packageDetailModal .package-detail-tab {
  border: 0;
  background: transparent;
  border-radius: 0;
  padding: 0 0 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--agency-text-muted);
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
  white-space: nowrap;
  flex-shrink: 0;
}

#packageDetailModal .package-detail-tab.active {
  color: var(--agency-primary);
  border-bottom-color: var(--agency-primary);
}

#packageDetailModal .package-detail-body {
  max-height: 65vh;
  overflow-y: auto;
  padding-top: 20px;
  position: relative;
}

#packageDetailModal .package-detail-gallery {
  position: relative;
  margin: -20px -1rem 20px;
  background: #0f172a;
  overflow: hidden;
}

#packageDetailModal .package-detail-gallery-viewport {
  width: 100%;
  overflow: hidden;
}

#packageDetailModal .package-detail-gallery-track {
  display: flex;
  width: 100%;
  transition: transform 0.35s ease;
  will-change: transform;
}

#packageDetailModal .package-detail-gallery-slide {
  flex: 0 0 100%;
  width: 100%;
  min-width: 100%;
  position: relative;
  height: min(42vh, 360px);
  background: #0f172a;
}

#packageDetailModal .package-detail-gallery-slide a {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
}

#packageDetailModal .package-detail-gallery-slide img,
#packageDetailModal .package-detail-gallery-slide video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

#packageDetailModal .package-detail-gallery-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

#packageDetailModal .package-detail-gallery-play i {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  padding-left: 3px;
}

#packageDetailModal .package-detail-gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--agency-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
  cursor: pointer;
}

#packageDetailModal .package-detail-gallery-nav:hover {
  background: #fff;
  color: var(--agency-primary);
}

#packageDetailModal .package-detail-gallery-prev {
  left: 12px;
}

#packageDetailModal .package-detail-gallery-next {
  right: 12px;
}

#packageDetailModal .package-detail-gallery-dots {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 6px;
}

#packageDetailModal .package-detail-gallery-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
}

#packageDetailModal .package-detail-gallery-dot.active {
  background: #fff;
  width: 18px;
  border-radius: 999px;
}

#packageDetailModal .package-detail-gallery-counter {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  background: rgba(15, 23, 42, 0.7);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  padding: 6px 10px;
  border-radius: 999px;
}

#packageDetailModal .package-detail-section {
  margin-bottom: 28px;
  scroll-margin-top: 12px;
}

#packageDetailModal .package-detail-section h6 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 12px;
}

#packageDetailModal .package-detail-section.inclusions h6 {
  color: #16a34a;
}

#packageDetailModal .package-detail-section.exclusions h6 {
  color: #dc2626;
}

#packageDetailModal .package-detail-section ul {
  margin: 0;
  padding-left: 18px;
}

#packageDetailModal .package-detail-section ul li {
  color: #4b5563;
  font-size: 14px;
  margin-bottom: 6px;
}

#packageDetailModal .package-detail-html {
  color: #4b5563;
  font-size: 14px;
  line-height: 1.6;
}

#packageDetailModal .package-detail-itinerary {
  display: flex;
  flex-direction: column;
  gap: 0;
}

#packageDetailModal .package-detail-itinerary-item {
  display: grid;
  grid-template-columns: 72px 28px 1fr;
  column-gap: 12px;
  position: relative;
  padding-bottom: 28px;
}

#packageDetailModal .package-detail-itinerary-item:last-child {
  padding-bottom: 0;
}

#packageDetailModal .package-detail-itinerary-time {
  font-size: 13px;
  font-weight: 600;
  color: #6b7280;
  text-align: right;
  line-height: 1.3;
  padding-top: 2px;
}

#packageDetailModal .package-detail-itinerary-marker {
  position: relative;
  display: flex;
  justify-content: center;
}

#packageDetailModal .package-detail-itinerary-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--agency-primary, #2563eb);
  margin-top: 0;
  flex-shrink: 0;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 0 0 3px #fff;
}

#packageDetailModal .package-detail-itinerary-dot i {
  font-size: 13px;
  line-height: 1;
  /* transform: translate(1px, -1px) rotate(0deg); */
}

#packageDetailModal .package-detail-itinerary-item:not(:last-child) .package-detail-itinerary-marker::after {
  content: "";
  position: absolute;
  top: 28px;
  bottom: -28px;
  left: 50%;
  width: 0;
  border-left: 2px dashed #d1d5db;
  transform: translateX(-50%);
}

#packageDetailModal .package-detail-itinerary-title {
  font-size: 18px;
  font-weight: 700;
  color: #1e3a5f;
  margin: 0 0 10px;
  line-height: 1;
}

#packageDetailModal .package-detail-itinerary-desc {
  margin-bottom: 12px;
}

#packageDetailModal .package-detail-itinerary-desc p {
  margin-bottom: 10px;
}

#packageDetailModal .package-detail-itinerary-desc p:last-child {
  margin-bottom: 0;
}

#packageDetailModal .package-detail-itinerary-image {
  margin-top: 4px;
}

#packageDetailModal .package-detail-itinerary-image img {
  width: 60%;
  max-height: 220px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

@media (max-width: 575.98px) {
  #packageDetailModal .package-detail-itinerary-item {
    grid-template-columns: 56px 28px 1fr;
    column-gap: 8px;
  }

  #packageDetailModal .package-detail-itinerary-time {
    font-size: 11px;
  }

  #packageDetailModal .package-detail-itinerary-title {
    font-size: 16px;
  }
  
  #packageDetailModal .package-detail-itinerary-image img {
    width: 100%;
  }
}

/* --------------------------------------------------------------------------
   Taxi
   -------------------------------------------------------------------------- */
.agency-taxi-page .sidebar {
  height: auto;
  overflow-y: visible;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.taxi-card {
  border: 2px solid #e9ecef;
  border-radius: 12px;
  transition: all 0.3s;
  cursor: pointer;
  margin-bottom: 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.taxi-card:hover,
.taxi-card.active {
  border-color: var(--agency-primary);
  background: var(--agency-primary-light);
  box-shadow: 0 4px 16px rgba(72, 30, 120, 0.1);
}

.taxi-image {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 10px 10px 0 0;
}

.booking-form {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 6px 32px rgba(0, 0, 0, 0.08);
  padding: 2rem 1.5rem;
}

.price-tag {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--agency-primary);
}

.feature-badge {
  background: var(--agency-primary);
  color: #fff;
  padding: 4px 10px;
  border-radius: 15px;
  font-size: 0.85rem;
  margin-right: 0.5rem;
}

.addon-taxi-list img {
  width: 100%;
  border-radius: 6px;
}

.addon-taxi-list p {
  font-size: 0.8rem;
  margin-bottom: 0.5rem;
}

.addon-taxi-list .remove_addon_taxi,
.addon-taxi-list .add_addon_same_taxi {
  border-radius: 5px;
  font-size: 0.85rem;
}

.addon-taxi-list .card {
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  margin-bottom: 0.5rem;
}

.addon-taxi-list .card-body {
  padding: 0.7rem;
}

.badge.bg-danger {
  font-size: 0.8rem;
  padding: 0.3em 0.7em;
}

.taxi-count-badge {
  font-size: 0.8rem;
  padding: 0.3em 0.7em;
  background: var(--agency-primary) !important;
  color: #fff !important;
}

.category-group {
  overflow: auto;
  text-align: center;
}

#route_type_group .category-group {
  text-align: left;
}

.category-group::-webkit-scrollbar {
  display: none;
}

#termsConditionModal .modal-body {
  max-height: 60vh;
  overflow-y: auto;
}

:not(#route_type_group) > .category-group .btn-group {
  border: 1px solid #e9ecef;
  background: var(--agency-surface-soft);
  box-shadow: 0 4px 16px rgba(72, 30, 120, 0.08);
  padding: 5px;
  border-radius: 50px;
}

#route_type_group .category-group .btn-group {
  border: 1px solid #e9ecef;
}

.btn-group .btn {
  border-radius: 50px !important;
  font-weight: 600;
  margin: 0 2px;
  transition: background 0.2s, color 0.2s;
}

#route_type_group .btn-group .btn.left {
  border-radius: 8px 0 0 8px !important;
}

#route_type_group .btn-group .btn.right {
  border-radius: 0 8px 8px 0 !important;
}

.btn-check:checked + .btn-outline-dark {
  background: var(--agency-primary) !important;
  border-color: var(--agency-primary) !important;
  color: #fff !important;
}

@media (max-width: 991.98px) {
  .agency-taxi-page .sidebar {
    height: auto;
    margin-bottom: 2rem;
  }
  .booking-form {
    padding: 1.2rem 0.7rem;
  }
}

@media (max-width: 767.98px) {
  .agency-taxi-page .sidebar {
    border-radius: var(--agency-radius);
    box-shadow: none;
  }
  .booking-form {
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
  }
  .taxi-card {
    margin-bottom: 0.7rem;
  }
  .price-tag {
    font-size: 1.2rem;
  }
}

@media (max-width: 575.98px) {
  .agency-taxi-page .sidebar,
  .booking-form {
    padding: 0.7rem !important;
  }
  .booking-title {
    font-size: 1.2rem;
  }
}

/* --------------------------------------------------------------------------
   Booking history / wallet / profile
   -------------------------------------------------------------------------- */
.agency-table-filters .btn,
.booking-history-filters .btn {
  border-radius: var(--agency-radius-pill);
}

.agency-table-filters .btn-dark,
.booking-history-filters .btn-dark,
.btn.btn-dark {
  background: var(--agency-primary);
  border-color: var(--agency-primary);
}

.h-min-content {
  height: min-content !important;
}

.btn.btn-outline-dark {
  border-color: var(--agency-primary) !important;
  color: var(--agency-primary) !important;
}

.btn.btn-outline-dark:hover {
  background: var(--agency-primary) !important;
  border-color: var(--agency-primary) !important;
  color: var(--bs-warning) !important;
}

.agency-profile-upload {
  border: 2px dashed var(--agency-border);
  border-radius: var(--agency-radius);
  padding: 24px;
  text-align: center;
  background: var(--agency-surface-soft);
}

.agency-wallet .btn-success.rounded-pill {
  background: var(--agency-primary);
  border-color: var(--agency-primary);
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
  background: var(--agency-primary) !important;
  border-color: var(--agency-primary) !important;
  color: #fff !important;
}

/* Contact */
.agency-contact-map {
  border: 0;
  width: 100%;
  min-height: 320px;
  border-radius: var(--agency-radius);
}

.agency-contact-form-wrap {
  max-width: 640px;
}

/* Order success / failure chrome */
.order-result-page .btn-home,
.order-result-page .btn-primary {
  background: var(--agency-primary);
  border-color: var(--agency-primary);
}

/* Hotel place search scripts helper */
.hotel-place-search-dropdown {
  z-index: 1050;
}

/* --------------------------------------------------------------------------
   Profile
   -------------------------------------------------------------------------- */
.profile-section {
  border: 1px solid var(--agency-border);
  border-radius: var(--agency-radius-sm);
  padding: 24px;
  margin-bottom: 24px;
  background: #fff;
}
.profile-section h5 { margin-bottom: 20px; }
.current-file-preview { margin-bottom: 0; }
.current-file-preview img { max-height: 80px; border-radius: 6px; }
.current-file-preview a { word-break: break-all; }
.document-field { margin-bottom: 28px; height: 100%; }
.document-field__preview {
  min-height: 110px;
  padding: 12px 14px;
  margin-bottom: 16px;
  border: 1px dashed #d9d9d9;
  border-radius: 8px;
  background: #fafafa;
}
.document-field__preview--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
  font-size: 13px;
}
.document-field__preview p { margin-bottom: 8px; }
.document-field .form-group { margin-bottom: 0; }
.document-field .form-group label { margin-bottom: 8px; }
.iti { width: 100%; }

/* --------------------------------------------------------------------------
   Wallet / Booking history shared
   -------------------------------------------------------------------------- */
.dataTables_wrapper .dt-buttons .btn {
  margin-left: 5px;
  padding: 6px 12px;
  font-size: 14px;
}
.dataTables_wrapper { overflow-x: auto; }
.form-group label { font-weight: 600; }
.custom-filter-row {
  display: flex;
  justify-content: flex-start;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 1.25rem;
  padding: 16px 18px;
  background: var(--agency-surface-soft);
  border: 1px solid var(--agency-border);
  border-radius: var(--agency-radius);
}
.custom-filter-left {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: flex-end;
  width: 100%;
}
.custom-filter-left .form-group {
  margin-bottom: 0;
}
.custom-filter-left .form-group label {
  margin-bottom: 6px;
  font-size: 13px;
  color: var(--agency-text);
}
.custom-filter-left .form-control,
.custom-filter-left .select2-container .select2-selection--single {
  min-width: 160px;
  background-color: var(--agency-surface);
}
.custom-filter-right { display: flex; align-items: flex-end; gap: 8px; }
.agency-filter-search {
  min-width: 220px;
  flex: 1 1 220px;
  max-width: 320px;
}
.agency-filter-search .agency-search-input {
  min-width: 100%;
}
.custom-filter-left .reset-filters,
.custom-filter-left .agency-btn-outline.reset-filters {
  margin-bottom: 2px;
  white-space: nowrap;
}
.booking-history a:not(.btn),
.agency-wallet a:not(.btn) {
  color: var(--agency-primary);
  font-weight: 600;
}
.booking-history a:not(.btn):hover,
.agency-wallet a:not(.btn):hover {
  color: var(--agency-primary-hover);
}
.booking-history .table thead th,
.agency-wallet .table thead th {
  background: var(--agency-primary) !important;
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
  font-size: 13px;
  white-space: nowrap;
  vertical-align: middle;
}
.booking-history .table tbody td,
.agency-wallet .table tbody td {
  font-size: 13px;
  vertical-align: middle;
}
.booking-history .table-bordered,
.agency-wallet .table-bordered {
  border-color: var(--agency-border);
}
.booking-history table.dataTable tbody td:first-child,
.booking-history table.dataTable thead th:first-child {
  position: sticky;
  left: 0;
  z-index: 2;
  background: var(--agency-surface);
  box-shadow: 2px 0 4px rgba(0, 0, 0, 0.04);
}
.booking-history table.dataTable tbody td:last-child,
.booking-history table.dataTable thead th:last-child {
  position: sticky;
  right: 0;
  z-index: 2;
  background: var(--agency-surface);
  box-shadow: -2px 0 4px rgba(0, 0, 0, 0.04);
}
.booking-history table.dataTable thead th:first-child,
.booking-history table.dataTable thead th:last-child {
  background: var(--agency-primary) !important;
  z-index: 3;
}
.booking-history .booking-action-cell .btn {
  font-size: 12px;
  padding: 4px 10px;
  margin: 2px 0;
}
.booking-history .booking-action-cell .btn-danger {
  background: transparent;
  border-color: #dc3545;
  color: #dc3545;
}
.booking-history .booking-action-cell .btn-danger:hover {
  background: #dc3545;
  color: #fff;
}
.dataTables_wrapper .dataTables_filter {
  float: right;
  text-align: right;
}
.bank-heading {
  width: 120px;
  display: inline-block;
  font-weight: 600;
}
.booking-history .btn-secondary { padding: 8px 18px !important; }
.taxi-item {
  background: #f5f5f5;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 15px;
}
.taxi-item .taxi-info { flex: 1; }
.taxi-item .taxi-name {
  font-weight: 600;
  color: #333;
  margin-bottom: 5px;
}
.taxi-item .taxi-price { color: #666; }
.taxi-item .taxi-price .amount {
  font-weight: bold;
  color: #333;
}
.quantity-selector {
  display: flex;
  align-items: center;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid #ddd;
}
.quantity-selector button {
  border: none;
  padding: 8px 15px;
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
}
.quantity-selector .btn-minus,
.quantity-selector .btn-plus {
  background: var(--agency-primary);
  color: white;
}
.quantity-selector .btn-minus:hover,
.quantity-selector .btn-plus:hover {
  background: var(--agency-primary-hover);
}
.quantity-selector .quantity-display {
  background: white;
  padding: 8px 20px;
  min-width: 60px;
  text-align: center;
  font-weight: 600;
  color: #333;
}
.modify-taxi-section { display: none; }
.modify-taxi-section.active { display: block; }
.col-min-80 { min-width: 80px; }
.col-min-100 { min-width: 100px; }
.col-min-120 { min-width: 120px; }
.col-min-140 { min-width: 140px; }

/* --------------------------------------------------------------------------
   Order success
   -------------------------------------------------------------------------- */
.agency-order-success {
  padding-top: 24px;
  padding-bottom: 56px;
}

/* .agency-order-success-intro {
  max-width: 420px;
} */

.agency-order-success-mark {
  width: 88px;
  height: 88px;
  margin: 20px auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--agency-primary-light);
  color: var(--agency-primary);
  border: 6px solid rgba(91, 36, 94, 0.12);
  box-shadow: 0 0 0 10px rgba(91, 36, 94, 0.05);
  animation: agencyOrderSuccessIn 0.55s ease-out both;
}

.agency-order-success-mark i {
  font-size: 2rem;
  animation: agencyOrderCheckIn 0.4s ease-out 0.35s both;
}

.agency-order-success-intro .agency-hero-eyebrow {
  color: var(--agency-primary);
  margin-bottom: 8px;
}

.agency-order-success-title {
  font-family: var(--agency-font-display);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  color: var(--agency-primary);
  margin: 0 0 14px;
  line-height: 1.15;
}

.agency-order-success-sub {
  /* max-width: 400px; */
  margin: 0;
  font-size: 15px;
  color: var(--agency-text-muted);
  line-height: 1.6;
}

.agency-order-success-actions {
  display: flex;
  /* flex-direction: column; */
  gap: 12px;
  margin-top: 28px;
  /* max-width: 360px; */
}

.agency-order-success-btn {
  width: 100%;
  padding: 14px 20px;
  font-size: 15px;
  font-weight: 700;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.agency-order-success-support {
  margin-top: 28px;
  /* max-width: 360px; */
  padding: 24px;
  background: var(--agency-surface, #fff);
  border: 1px solid var(--agency-border);
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(26, 26, 46, 0.04);
}

.agency-order-success-support__title {
  font-family: var(--agency-font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--agency-primary);
  margin: 0 0 8px;
}

.agency-order-success-support__text {
  font-size: 14px;
  color: var(--agency-text-muted);
  margin: 0 0 16px;
  line-height: 1.5;
}

.agency-order-success-whatsapp {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--agency-text) !important;
  background: #fff;
  border: 1px solid var(--agency-border);
  border-radius: 12px;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.agency-order-success-whatsapp:hover {
  background: var(--agency-surface-soft);
  border-color: var(--agency-primary-muted);
  color: var(--agency-text) !important;
}

.agency-order-success-whatsapp .fa-whatsapp {
  color: #25d366;
  font-size: 1.15rem;
}

.agency-order-success-card {
  background: var(--agency-surface, #fff);
  border: 1px solid var(--agency-border);
  border-radius: 16px;
  padding: 28px 30px 30px;
  box-shadow: 0 8px 28px rgba(26, 26, 46, 0.08);
}

.agency-order-success-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  /* margin-bottom: 8px; */
}

.agency-order-success-card__title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--agency-font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--agency-primary);
  margin: 0;
}

.agency-order-success-card__title i {
  color: var(--agency-primary);
  font-size: 16px;
}

.agency-order-success-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--agency-radius-pill);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.agency-order-success-status__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.agency-order-success-status.is-pending {
  background: #fff6e8;
  color: #c47a12;
  border: 1px solid #f0d2a0;
}

.agency-order-success-status.is-paid {
  background: var(--agency-primary-light);
  color: var(--agency-primary);
  border: 1px solid var(--agency-primary-muted);
}

.agency-order-success-status.is-alert {
  background: #fdebec;
  color: #c0392b;
  border: 1px solid #f0c2c2;
}

.agency-order-success-meta__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  font-size: 14px;
}

.agency-order-success-meta__row--total {
  border-bottom: 0;
  padding-bottom: 8px;
}

.agency-order-success-meta__label {
  color: var(--agency-text-muted);
  font-weight: 500;
  flex-shrink: 0;
}

.agency-order-success-meta__optional {
  font-style: italic;
  font-weight: 400;
  font-size: 12px;
  color: #9ca3af;
}

.agency-order-success-meta__value {
  color: var(--agency-text);
  font-weight: 600;
  text-align: right;
  word-break: break-word;
}

.agency-order-success-meta__value--strong {
  color: var(--agency-primary);
  font-weight: 700;
}

.agency-order-success-order-id {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.agency-order-success-badge {
  display: inline-block;
  background: var(--agency-primary);
  color: #fff;
  padding: 6px 14px;
  border-radius: var(--agency-radius-pill);
  font-size: 0.875rem;
  font-weight: 700;
}

.agency-order-success-copy {
  width: 32px;
  height: 32px;
  border: 0;
  background: transparent;
  color: var(--agency-text-muted);
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.agency-order-success-copy:hover,
.agency-order-success-copy.is-copied {
  color: var(--agency-primary);
  background: var(--agency-primary-light);
}

.agency-order-success-pill-muted {
  display: inline-block;
  padding: 6px 12px;
  border-radius: var(--agency-radius-pill);
  background: #eef0f3;
  color: #8b93a0;
  font-size: 12px;
  font-weight: 600;
}

.agency-order-success-total {
  font-size: 22px;
  font-weight: 800;
  color: var(--agency-primary);
  line-height: 1.2;
}

.agency-order-success-reminder {
  margin-top: 12px;
  padding: 16px 18px;
  background: #fff8ec;
  border: 1px solid #f0d2a0;
  border-radius: 12px;
}

.agency-order-success-reminder__head {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #c47a12;
  margin-bottom: 6px;
  font-size: 14px;
}

.agency-order-success-reminder__text {
  margin: 0;
  font-size: 13px;
  color: #9a6b2f;
  line-height: 1.55;
}

.agency-order-success-voucher-wrap {
  margin-top: 16px;
  padding-top: 8px;
}

.agency-order-success-voucher {
  padding: 10px 16px;
  font-size: 13px;
  border-radius: var(--agency-radius-sm);
}

@media (max-width: 991px) {
  .agency-order-success-intro,
  .agency-order-success-actions,
  .agency-order-success-support {
    max-width: none;
  }

  .agency-order-success-mark {
    margin-left: auto;
    margin-right: auto;
  }

  .agency-order-success-intro {
    text-align: center;
  }

  .agency-order-success-sub {
    margin-left: auto;
    margin-right: auto;
  }

  .agency-order-success-card {
    padding: 22px 20px 26px;
  }
}

@keyframes agencyOrderSuccessIn {
  0% { opacity: 0; transform: scale(0.7); }
  100% { opacity: 1; transform: scale(1); }
}

@keyframes agencyOrderCheckIn {
  0% { opacity: 0; transform: scale(0); }
  100% { opacity: 1; transform: scale(1); }
}

/* --------------------------------------------------------------------------
   Order failure (legacy layout — keep until failure page is restyled)
   -------------------------------------------------------------------------- */
.failure-animation { animation: shakeIn 1s ease-out; }
.failure-circle {
  width: 120px;
  height: 120px;
  background: linear-gradient(135deg, #dc3545, #c82333);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  box-shadow: 0 10px 30px rgba(220, 53, 69, 0.3);
  animation: pulseRed 2s infinite;
}
.failure-circle i {
  color: white;
  font-size: 3rem;
  animation: crossmark 0.5s ease-out 0.5s both;
}
.order-details-card,
.next-steps-card,
.error-details-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background: white;
  border-radius: 12px;
  border: 1px solid #e9ecef;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}
.order-details-card:hover,
.next-steps-card:hover,
.error-details-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}
.order-info-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: #f8f9fa;
  border-radius: 8px;
  border-left: 4px solid var(--agency-primary);
  transition: all 0.3s ease;
}
.order-result-failure .order-info-item { border-left-color: #dc3545; }
.order-info-item:hover {
  background: #e9ecef;
  transform: translateX(5px);
}
.order-id-badge-failure {
  background: linear-gradient(135deg, #dc3545, #c82333);
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
}
.step-item, .error-item { transition: all 0.3s ease; }
.step-item:hover, .error-item:hover { transform: translateX(5px); }
.step-icon, .error-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
.head-booking-form-failure {
  background: linear-gradient(135deg, #dc3545, #c82333);
}
.support-card {
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  border: 1px solid #dee2e6;
}
@keyframes shakeIn {
  0% { opacity: 0; transform: scale(0.3) rotate(0deg); }
  25% { opacity: 1; transform: scale(1.05) rotate(-5deg); }
  50% { transform: scale(0.95) rotate(5deg); }
  75% { transform: scale(1.02) rotate(-2deg); }
  100% { opacity: 1; transform: scale(1) rotate(0deg); }
}
@keyframes pulseRed {
  0%, 100% { box-shadow: 0 10px 30px rgba(220, 53, 69, 0.3); }
  50% { box-shadow: 0 10px 30px rgba(220, 53, 69, 0.6); }
}
@keyframes crossmark {
  0% { opacity: 0; transform: scale(0) rotate(45deg); }
  100% { opacity: 1; transform: scale(1) rotate(0deg); }
}

/* Contact */
.box-text-location.agency-contact-location { max-width: 100%; }
.box-contact-form .btn-book { background: var(--agency-primary); border-color: var(--agency-primary); }

/* Notifications */
.agency-notifications .btn-outline-success:hover,
.agency-notifications .btn-outline-danger:hover {
  color: #fff;
}

/* Contact polish */
.box-location-shop {
  padding-top: 48px !important;
  padding-bottom: 32px !important;
  background-image: none !important;
  background-color: var(--agency-surface) !important;
}
.box-location-shop .agency-hero-eyebrow {
  margin-bottom: 8px;
}
.card-contact a:hover,
.card-contact .title:hover,
.banner-contact a:hover {
  color: var(--agency-primary) !important;
}
.btn.btn-brand-secondary,
.btn-brand-secondary {
  background-color: var(--agency-primary) !important;
  border-color: var(--agency-primary) !important;
  color: #fff !important;
}
.btn.btn-brand-secondary:hover,
.btn-brand-secondary:hover {
  background-color: var(--agency-primary-hover) !important;
  border-color: var(--agency-primary-hover) !important;
  color: #fff !important;
}

/* Taxi page polish */
.agency-taxi-page {
  padding: 24px 15px 40px;
}
.agency-taxi-page .agency-hero {
  padding-top: 8px;
  padding-bottom: 24px;
}
.agency-taxi-page .agency-hero-eyebrow {
  color: var(--agency-text-muted);
}
.agency-taxi-page .agency-hero-title {
  color: var(--agency-text);
}
.agency-taxi-page .agency-hero-sub {
  color: var(--agency-text-muted);
}
.agency-taxi-layout {
  align-items: stretch;
}
.agency-taxi-sidebar.sidebar,
.agency-taxi-page .agency-taxi-sidebar {
  background: var(--agency-surface-soft);
  border: 1px solid var(--agency-border);
  border-radius: var(--agency-radius);
  height: 100% !important;
  min-height: 0;
  max-height: none;
  overflow: visible;
  margin-bottom: 0;
}
.agency-taxi-form-col {
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.agency-taxi-page .booking-form {
  background: var(--agency-surface);
  border: 1px solid var(--agency-border);
  border-radius: var(--agency-radius);
  box-shadow: var(--agency-shadow);
  color: var(--agency-text);
  flex: 1;
  height: 100%;
}
.agency-taxi-page .booking-title {
  font-family: var(--agency-font-display);
  font-size: 28px;
  font-weight: 700;
  text-align: left !important;
  color: var(--agency-text);
  margin-bottom: 24px !important;
}
.agency-taxi-page .form-label,
.agency-taxi-page .form-check-label {
  color: var(--agency-text);
}
.agency-taxi-page .taxi-type-options {
  gap: 0.75rem 1.25rem;
}

/* Person / quantity steppers */
.btn-counter.minus,
.btn-counter.plus,
.btn-taxi-counter.minus,
.btn-taxi-counter.plus,
.btn-sightseeing-counter.minus,
.btn-sightseeing-counter.plus {
  background-color: var(--agency-primary) !important;
  border-color: var(--agency-primary) !important;
  color: #fff !important;
}
.btn-counter.minus:hover,
.btn-counter.plus:hover,
.btn-taxi-counter.minus:hover,
.btn-taxi-counter.plus:hover,
.btn-sightseeing-counter.minus:hover,
.btn-sightseeing-counter.plus:hover {
  background-color: var(--agency-primary-hover) !important;
  border-color: var(--agency-primary-hover) !important;
  color: #fff !important;
}
.btn-counter + input.form-control,
.input-group .btn-counter + input {
  color: var(--agency-text);
  font-weight: 600;
  text-align: center;
}

/* Mobile drawer (agency sidebar) */
.agency-sidebar-drawer.sidebar-canvas-wrapper .sidebar-canvas-container .sidebar-canvas-content {
  padding: 20px 22px 28px;
}
.agency-sidebar-drawer .sidebar-canvas-head {
  padding: 16px 20px;
  border-bottom: 1px solid var(--agency-border);
}
.agency-sidebar-drawer .close-canvas {
  border-radius: 10px;
  background: var(--agency-surface-soft) !important;
  border: 1px solid var(--agency-border);
  line-height: 40px;
  height: 40px;
  width: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.agency-sidebar-drawer .close-canvas img {
  width: 14px;
  height: 14px;
  filter: none;
  opacity: 0.7;
}
.agency-sidebar-drawer .close-canvas:hover {
  background: var(--agency-primary-light) !important;
  border-color: var(--agency-primary-muted);
}
.agency-sidebar-drawer .close-canvas:hover img {
  opacity: 1;
}
.agency-sidebar-drawer .sidebar-canvas-logo .logo {
  max-height: 40px;
  width: auto;
}

.agency-sidebar-drawer .agency-drawer-profile.box-author-profile {
  flex-direction: row;
  align-items: center;
  gap: 0;
  margin-bottom: 28px;
  padding: 14px 16px;
  background: var(--agency-surface);
  border: 1px solid var(--agency-border);
  border-radius: var(--agency-radius);
}
.agency-sidebar-drawer .agency-drawer-profile__main {
  display: flex;
  align-items: center;
  color: inherit;
  flex: 1;
  min-width: 0;
}
.agency-sidebar-drawer .agency-drawer-profile .card-author {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}
.agency-sidebar-drawer .agency-drawer-profile .card-image {
  width: 46px;
  height: 46px;
  min-width: 46px;
  overflow: hidden;
  border-radius: 12px;
  border: 2px solid var(--agency-primary-light);
  flex-shrink: 0;
}
.agency-sidebar-drawer .agency-drawer-profile .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.agency-sidebar-drawer .agency-drawer-profile .card-info {
  flex: 1;
  min-width: 0;
}
.agency-sidebar-drawer .agency-drawer-profile__name {
  margin: 0 0 2px;
  font-size: 15px;
  font-weight: 700;
  color: var(--agency-text);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.agency-sidebar-drawer .agency-drawer-profile__location {
  margin: 0;
  font-size: 12px;
  color: var(--agency-text-muted);
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.agency-sidebar-drawer .agency-drawer-profile__actions {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: 12px;
  flex-shrink: 0;
}
.agency-sidebar-drawer .agency-drawer-profile__actions .btn {
  width: 38px;
  height: 38px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-size: 14px;
}
.agency-sidebar-drawer .agency-drawer-profile__actions .agency-btn-logout {
  background: var(--agency-surface-soft) !important;
  border: 1px solid var(--agency-border) !important;
  color: var(--agency-text-muted) !important;
}
.agency-sidebar-drawer .agency-drawer-profile__actions .agency-btn-logout:hover {
  background: #fce4ec !important;
  border-color: #f8bbd0 !important;
  color: #c62828 !important;
}

.agency-sidebar-drawer .agency-drawer-section {
  margin-bottom: 28px;
}
.agency-sidebar-drawer .title-menulinks,
.agency-sidebar-drawer .title-quicklinks,
.agency-sidebar-drawer .title-contactus {
  background: none !important;
  padding: 0 !important;
  margin: 0 0 12px !important;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--agency-text);
}

.agency-sidebar-drawer .agency-drawer-nav .mobile-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--agency-border);
  border-radius: var(--agency-radius-sm);
  overflow: hidden;
  background: var(--agency-surface);
}
.agency-sidebar-drawer .agency-drawer-nav .mobile-menu > li {
  border-bottom: 1px solid var(--agency-border);
}
.agency-sidebar-drawer .agency-drawer-nav .mobile-menu > li:last-child {
  border-bottom: none;
}
.agency-sidebar-drawer .agency-drawer-nav .mobile-menu a {
  display: block;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--agency-text) !important;
  text-decoration: none;
}
.agency-sidebar-drawer .agency-drawer-nav .mobile-menu a:hover,
.agency-sidebar-drawer .agency-drawer-nav .mobile-menu a.active {
  background: var(--agency-primary-light);
  color: var(--agency-primary) !important;
}

.agency-sidebar-drawer .agency-drawer-quicklinks {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin: 0;
  padding: 0;
}
.agency-sidebar-drawer .agency-drawer-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--agency-border);
  border-radius: var(--agency-radius-sm);
  background: var(--agency-surface);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}
.agency-sidebar-drawer .agency-drawer-link:hover {
  border-color: var(--agency-primary-muted);
  box-shadow: var(--agency-shadow);
  color: inherit;
}
.agency-sidebar-drawer .agency-drawer-link__icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--agency-primary);
  color: #fff;
  font-size: 18px;
  line-height: 1;
}
.agency-sidebar-drawer .agency-drawer-link__icon i {
  display: block;
}
.agency-sidebar-drawer .agency-drawer-link__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.agency-sidebar-drawer .agency-drawer-link__title {
  font-size: 15px;
  font-weight: 700;
  color: var(--agency-text);
  line-height: 1.3;
}
.agency-sidebar-drawer .agency-drawer-link__meta {
  font-size: 13px;
  color: var(--agency-text);
  opacity: 0.78;
  line-height: 1.35;
}

.agency-sidebar-drawer .agency-drawer-contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.agency-sidebar-drawer .agency-drawer-contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--agency-text);
}
.agency-sidebar-drawer .agency-drawer-contact-list i {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--agency-primary);
  color: #fff;
  font-size: 10px;
}
.agency-sidebar-drawer .agency-drawer-contact-list a {
  color: var(--agency-primary);
  font-weight: 600;
  text-decoration: none;
  word-break: break-word;
}
.agency-sidebar-drawer .agency-drawer-contact-list a:hover {
  color: var(--agency-primary-hover);
}

.agency-sidebar-drawer .sidebar-canvas-footer {
  margin-top: 8px;
  padding-top: 20px;
  border-top: 1px solid var(--agency-border);
  font-size: 12px;
  color: var(--agency-text);
  text-align: center;
  line-height: 1.5;
}
.agency-sidebar-drawer .sidebar-canvas-footer .footer-credit {
  color: var(--agency-text);
  opacity: 0.85;
}
.agency-sidebar-drawer .sidebar-canvas-footer .footer-credit a {
  color: var(--agency-primary);
  font-weight: 600;
  text-decoration: none;
}
.agency-sidebar-drawer .sidebar-canvas-footer .footer-credit__heart {
  color: #ff6b8a;
  font-size: 0.85em;
}

@media (min-width: 400px) {
  .agency-sidebar-drawer .agency-drawer-quicklinks {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .agency-sidebar-drawer .agency-drawer-link {
    flex-direction: column;
    align-items: flex-start;
    min-height: 120px;
    padding: 14px;
  }
  .agency-sidebar-drawer .agency-drawer-link__body {
    width: 100%;
  }
}

/* Legacy drawer overrides (if old markup remains elsewhere) */
.sidebar-canvas-wrapper .card-author .card-image {
  overflow: hidden;
  border-radius: 50%;
  flex-shrink: 0;
}
.sidebar-canvas-wrapper .card-author .card-image img {
  object-fit: cover;
  object-position: center;
}
.sidebar-canvas-wrapper .title-menulinks,
.sidebar-canvas-wrapper .title-quicklinks,
.sidebar-canvas-wrapper .title-contactus {
  background: none !important;
  padding-left: 0 !important;
}
.sidebar-canvas-wrapper .box-list-quicklinks.agency-drawer-quicklinks {
  display: grid !important;
  grid-template-columns: 1fr !important;
  margin: 0 !important;
  gap: 10px;
}
.sidebar-canvas-wrapper .box-list-quicklinks .item-quicklinks {
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

@media (max-width: 991.98px) {
  .agency-taxi-sidebar.sidebar,
  .agency-taxi-page .agency-taxi-sidebar {
    height: auto !important;
  }
}

/* Footer polish */
.footer.agency-footer .box-socials-footer {
  margin-top: 16px;
}
.footer.agency-footer .menu-footer {
  padding-left: 0;
}

/* scrollUp button (brand color) */
#scrollUp {
  background: var(--agency-primary) !important;
  border: none !important;
}
#scrollUp:hover {
  background: var(--agency-primary-hover) !important;
}
#scrollUp svg {
  fill: #fff !important;
}

/* --------------------------------------------------------------------------
   Travel preloader
   -------------------------------------------------------------------------- */
/* .preloader.agency-preloader,
#preloader-active .agency-preloader {
  background: var(--agency-bg-gradient);
} */

.agency-preloader__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.agency-preloader__orbit {
  position: relative;
  width: 96px;
  height: 96px;
}

.agency-preloader__ring {
  position: absolute;
  inset: 8px;
  border: 2px dashed var(--agency-primary);
  border-radius: 50%;
  animation: agency-preloader-spin 8s linear infinite;
}

.agency-preloader__pin {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 28px;
  height: 28px;
  margin: -18px 0 0 -14px;
  color: var(--agency-primary);
  animation: agency-preloader-pulse 1.6s ease-in-out infinite;
}

.agency-preloader__pin svg {
  width: 100%;
  height: 100%;
  display: block;
}

.agency-preloader__plane {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 22px;
  height: 22px;
  margin: -11px 0 0 -11px;
  color: var(--agency-primary);
  animation: agency-preloader-fly 2.4s linear infinite;
}

.agency-preloader__plane svg {
  width: 100%;
  height: 100%;
  display: block;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.25));
}

.agency-preloader__text {
  margin: 0;
  font-family: var(--agency-font-ui);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--agency-footer-bg);
}

/* ── Booking Summary Cards ── */
.booking-summary-cards {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
@media (max-width: 1199px) {
  .booking-summary-cards { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 991px) {
  .booking-summary-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 575px) {
  .booking-summary-cards { grid-template-columns: 1fr; }
}
.summary-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  border-radius: var(--agency-radius, 12px);
  background: var(--agency-surface, #fff);
  border: 1px solid var(--agency-border, #e8e8e8);
  transition: box-shadow 0.2s;
}
.summary-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.07);
}
.summary-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #fff;
  flex-shrink: 0;
}
.summary-card--wallet .summary-card__icon { background: #4caf50; }
.summary-card--credit .summary-card__icon { background: #2196f3; }
.summary-card--unsettled .summary-card__icon { background: #ff9800; }
.summary-card--count .summary-card__icon { background: #f44336; }
.summary-card--total .summary-card__icon { background: var(--agency-primary, #5b245e); }
.summary-card--payable-credit {
  background: #e8f5e9;
  border-color: #a5d6a7;
}
.summary-card--payable-credit .summary-card__icon { background: #4caf50; }
.summary-card--payable-due {
  background: #ffebee;
  border-color: #ef9a9a;
}
.summary-card--payable-due .summary-card__icon { background: #f44336; }
.summary-card__body {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.summary-card__label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--agency-text-muted, #888);
  line-height: 1.3;
}
.summary-card__value {
  font-size: 20px;
  font-weight: 700;
  color: var(--agency-text, #1a1a2e);
  line-height: 1.3;
}
.summary-card__subtext {
  font-size: 12px;
  font-weight: 500;
  color: var(--agency-text-muted, #888);
  line-height: 1.3;
  margin-top: 2px;
}

/* Download CSV button in filter row */
.custom-filter-row .download-csv {
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Agency checkout
   -------------------------------------------------------------------------- */
.agency-checkout {
  padding-bottom: 48px;
}

.agency-checkout-header {
  margin-bottom: 36px;
}

.agency-checkout-title {
  font-family: var(--agency-font-display);
  font-size: clamp(26px, 4vw, 34px);
  font-weight: 700;
  color: var(--agency-text);
  margin: 8px 0 12px;
}

.agency-checkout-sub {
  max-width: 520px;
  margin: 0 auto;
  font-size: 15px;
  color: var(--agency-text-muted);
  line-height: 1.5;
}

.agency-checkout-card {
  background: var(--agency-surface, #fff);
  border: 1px solid var(--agency-border);
  border-radius: 16px;
  padding: 28px 28px 32px;
  box-shadow: 0 4px 24px rgba(26, 26, 46, 0.06);
}

.agency-checkout-card__title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
  color: var(--agency-text);
  /* margin: 0 0 8px; */
}

.agency-checkout-card__title i {
  color: var(--agency-primary);
  font-size: 18px;
}

.agency-checkout-card__hint {
  font-size: 13px;
  color: var(--agency-text-muted);
  margin-bottom: 24px;
}

.agency-checkout-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--agency-text);
  margin-bottom: 8px;
}

.agency-checkout-input.form-control {
  border: 1px solid var(--agency-border);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 14px;
  min-height: 46px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.agency-checkout-input.form-control:focus {
  border-color: var(--agency-primary);
  box-shadow: 0 0 0 3px rgba(72, 30, 120, 0.12);
}

.agency-checkout-phone .iti {
  width: 100%;
}

.agency-checkout-phone .iti__flag-container {
  border-radius: 10px 0 0 10px;
}

.agency-checkout-summary-wrap {
  position: sticky;
  top: 96px;
  min-width: 0;
}

.agency-checkout-summary {
  min-width: 0;
}

.agency-checkout-trip {
  padding: 16px;
  margin-bottom: 16px;
  background: var(--agency-surface-soft);
  border-radius: 12px;
  border: 1px solid var(--agency-border);
}

.agency-checkout-trip__name {
  font-size: 16px;
  font-weight: 700;
  color: var(--agency-text);
  margin: 0 0 12px;
  line-height: 1.4;
}

.agency-checkout-meta__row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  font-size: 13px;
}

.agency-checkout-meta__row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.agency-checkout-meta__label {
  color: var(--agency-text-muted);
  font-weight: 500;
  flex-shrink: 0;
}

.agency-checkout-meta__value {
  color: var(--agency-text);
  font-weight: 600;
  text-align: right;
}

.agency-checkout-rates {
  margin-bottom: 8px;
}

.agency-checkout-rate-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--agency-border);
  font-size: 14px;
}

.agency-checkout-rate-row__key {
  color: var(--agency-text-muted);
}

.agency-checkout-rate-row__value {
  font-weight: 600;
  color: var(--agency-text);
}

.agency-checkout-rate-heading {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--agency-text-muted);
  margin: 16px 0 4px;
}

.agency-checkout-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  margin-bottom: 8px;
  border-top: 2px solid var(--agency-border);
}

.agency-checkout-total__label {
  font-size: 15px;
  font-weight: 700;
  color: var(--agency-text);
}

.agency-checkout-total__value {
  font-size: 22px;
  font-weight: 800;
  color: var(--agency-primary);
}

.agency-checkout-terms {
  margin: 16px 0 20px;
  width: 100%;
}

.agency-checkout .agency-checkout-terms__label {
  display: flex !important;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  max-width: 100%;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--agency-text-muted);
  cursor: pointer;
  margin: 0 !important;
}

.agency-checkout .agency-checkout-terms__input {
  float: none !important;
  width: 18px !important;
  height: 18px !important;
  min-width: 18px;
  max-width: 18px;
  margin: 2px 0 0 !important;
  padding: 0 !important;
  flex: 0 0 18px;
  accent-color: var(--agency-primary);
  cursor: pointer;
}

.agency-checkout-terms__text {
  flex: 1;
  min-width: 0;
  display: block;
}

.agency-checkout-terms a {
  color: var(--agency-primary);
  font-weight: 600;
}

.agency-checkout-wallet-error {
  font-size: 13px;
  margin: 12px 0 0;
}

.agency-checkout-wallet-error.is-hidden {
  display: none;
}

.agency-checkout-submit {
  padding: 14px 20px;
  font-size: 15px;
  font-weight: 700;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.agency-checkout-submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

@media (max-width: 991px) {
  .agency-checkout-summary-wrap {
    position: static;
  }
  .agency-checkout-card {
    padding: 22px 20px 26px;
  }
}

@keyframes agency-preloader-spin {
  to { transform: rotate(360deg); }
}

@keyframes agency-preloader-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.08); opacity: 0.85; }
}

@keyframes agency-preloader-fly {
  from { transform: rotate(0deg) translateX(40px) rotate(90deg); }
  to { transform: rotate(360deg) translateX(40px) rotate(90deg); }
}
