.toast-container {
  position: fixed;
  top: 100px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
  max-width: min(380px, calc(100vw - 48px));
}

.toast {
  pointer-events: auto;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 12px;
  background: var(--white);
  border: 1px solid var(--border-gold);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.06);
  transform: translateX(120%);
  opacity: 0;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.35s ease;
  max-width: 100%;
}

.toast.is-visible {
  transform: translateX(0);
  opacity: 1;
}

.toast.is-hiding {
  transform: translateX(40%);
  opacity: 0;
}

.toast__icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 700;
  margin-top: 1px;
}

.toast--success .toast__icon {
  background: #10b981;
  color: #fff;
}

.toast--error .toast__icon {
  background: #ef4444;
  color: #fff;
}

.toast--warning .toast__icon {
  background: #f59e0b;
  color: #fff;
}

.toast--info .toast__icon {
  background: var(--gold);
  color: var(--black);
}

.toast__body {
  flex: 1;
  min-width: 0;
}

.toast__title {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 2px;
  line-height: 1.3;
}

.toast__message {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.45;
}

.toast__close {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 14px;
  color: var(--text-muted);
  opacity: 0.5;
  transition: opacity 0.2s, background 0.2s;
  margin-top: -2px;
  margin-right: -4px;
}

.toast__close:hover {
  opacity: 1;
  background: rgba(0, 0, 0, 0.06);
}

body.dark-mode .toast {
  background: var(--dark-surface-2);
  border-color: rgba(201, 162, 39, 0.2);
}

body.dark-mode .toast__title {
  color: var(--dark-text);
}

body.dark-mode .toast__message {
  color: var(--dark-muted);
}

body.dark-mode .toast__close {
  color: var(--dark-muted);
}

body.dark-mode .toast__close:hover {
  background: rgba(255, 255, 255, 0.1);
}

@media (max-width: 480px) {
  .toast-container {
    right: 12px;
    left: 12px;
    max-width: none;
  }
}

@keyframes pageEnter {
  from { opacity: 0; }
  to { opacity: 1; }
}

main {
  animation: pageEnter 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes formFieldError {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
}

input:user-invalid,
select:user-invalid,
textarea:user-invalid {
  border-color: #ef4444 !important;
  animation: formFieldError 0.4s ease;
}

input:user-valid,
select:user-valid {
  border-color: #10b981 !important;
}

.form-field__error {
  font-size: 12px;
  color: #ef4444;
  margin-top: 4px;
  display: none;
}

.form-field.has-error .form-field__error {
  display: block;
}

.form-field.has-error input,
.form-field.has-error select,
.form-field.has-error textarea {
  border-color: #ef4444;
}

.btn-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(0, 0, 0, 0.2);
  border-top-color: currentColor;
  border-radius: 50%;
  animation: btnSpin 0.6s linear infinite;
}

@keyframes btnSpin {
  to { transform: rotate(360deg); }
}

.btn.is-loading {
  pointer-events: none;
  opacity: 0.85;
}

.tour-hero-skeleton {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 140px 0 60px;
  pointer-events: none;
}

.tour-hero-skeleton__content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 800px;
}

.tour-hero-skeleton__breadcrumb {
  height: 14px;
  width: 220px;
  border-radius: 4px;
  background: rgba(255,255,255,0.15);
  margin-bottom: 20px;
  animation: skeletonPulse 1.8s ease-in-out infinite;
}

.tour-hero-skeleton__title {
  height: 48px;
  width: 70%;
  border-radius: 6px;
  background: rgba(255,255,255,0.12);
  margin-bottom: 16px;
  animation: skeletonPulse 1.8s ease-in-out infinite;
}

.tour-hero-skeleton__desc {
  height: 18px;
  width: 50%;
  border-radius: 4px;
  background: rgba(255,255,255,0.1);
  margin-bottom: 28px;
  animation: skeletonPulse 1.8s ease-in-out infinite 0.1s;
}

.tour-hero-skeleton__price {
  height: 32px;
  width: 160px;
  border-radius: 4px;
  background: rgba(255,255,255,0.12);
  animation: skeletonPulse 1.8s ease-in-out infinite 0.2s;
}

@keyframes skeletonPulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 0.85; }
}

.skeleton-section {
  padding: 60px 0;
}

.skeleton-section__title {
  height: 28px;
  width: 240px;
  border-radius: 4px;
  background: var(--champagne);
  margin-bottom: 24px;
  animation: skeletonPulse 1.8s ease-in-out infinite;
}

body.dark-mode .skeleton-section__title {
  background: var(--dark-surface-2);
}

.skeleton-section__line {
  height: 16px;
  border-radius: 4px;
  background: var(--champagne);
  margin-bottom: 12px;
  animation: skeletonPulse 1.8s ease-in-out infinite;
}

body.dark-mode .skeleton-section__line {
  background: var(--dark-surface-2);
}

.skeleton-section__line:last-child {
  width: 70%;
}

.skeleton-itinerary {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.skeleton-itinerary__item {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 28px;
}

.skeleton-itinerary__badge {
  width: 72px;
  height: 72px;
  border-radius: 12px;
  background: var(--champagne);
  animation: skeletonPulse 1.8s ease-in-out infinite;
}

body.dark-mode .skeleton-itinerary__badge {
  background: var(--dark-surface-2);
}

.skeleton-itinerary__panel {
  height: 100px;
  border-radius: 16px;
  background: var(--champagne);
  animation: skeletonPulse 1.8s ease-in-out infinite 0.1s;
}

body.dark-mode .skeleton-itinerary__panel {
  background: var(--dark-surface-2);
}

@media (max-width: 768px) {
  .skeleton-itinerary__item {
    grid-template-columns: 64px 1fr;
    gap: 16px;
  }
  .skeleton-itinerary__badge {
    width: 56px;
    height: 56px;
  }
}
