* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
}

body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, sans-serif;
  background: url('../images/background/sups.webp') center center / cover no-repeat fixed;
  color: #0a2b3e;
  padding: 2rem 1rem;
}
.media-stage {
  margin-top: 80px;
}
/* ========== LOGO ========== */
.logo {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 1000;
  transition: all 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}
.logo:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 0 12px rgba(255,215,0,0.5));
}
.logo img {
  width: 50px;
  height: auto;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.4));
  transition: all 0.3s ease;
}
.container {
  max-width: 1400px;
  margin: 0 auto;

  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

/* chia 2 bên PC */
.media-stage {
  width: 55%;
}

.booking-card {
  width: 45%;
}

/* gallery media */
.media-stage {
  position: relative;
  background: #0a1c2a;
  border-radius: 2rem;
  overflow: hidden;
  box-shadow: 0 20px 35px -12px rgba(0,0,0,0.3);
  margin-bottom: 2rem;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}

.media-slider {
  overflow: hidden;
  border-radius: 2rem;
}

.media-slide {
  display: flex;
  transition: transform 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}

.media-item {
  flex: 0 0 100%;
  position: relative;
  aspect-ratio: 16 / 9;
  background: #0f2a38;
}
/* PC */
@media (min-width: 769px) {
  .media-item {
    aspect-ratio: 4 / 3;
  }
  .booking-card {
    margin-top: 80px;
  }
}

.media-item img, .media-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.fullscreen-btn {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(8px);
  border: none;
  color: white;
  font-size: 1.4rem;
  padding: 0.4rem 0.9rem;
  border-radius: 40px;
  cursor: pointer;
  transition: 0.2s;
  font-weight: bold;
  touch-action: manipulation;
  min-height: 44px;
  min-width: 44px;
}

.fullscreen-btn:active {
  transform: scale(0.95);
}

.gallery-controls {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  padding: 0 1rem;
  pointer-events: none;
}

.gallery-controls button {
  pointer-events: auto;
  background: rgba(0,0,0,0.5);
  border: none;
  color: white;
  font-size: 2rem;
  width: 48px;
  height: 48px;
  border-radius: 60px;
  cursor: pointer;
  transition: 0.2s;
  touch-action: manipulation;
  min-height: 44px;
  min-width: 44px;
}

.gallery-controls button:active {
  transform: scale(0.95);
  background: rgba(0,0,0,0.7);
}

.gallery-dots {
  position: absolute;
  bottom: 1rem;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 5;
}

.gallery-dot {
  width: 8px;
  height: 8px;
  background: rgba(255,255,255,0.5);
  border-radius: 10px;
  cursor: pointer;
  transition: 0.2s;
  touch-action: manipulation;
  min-width: 8px;
}

.gallery-dot.active {
  width: 28px;
  background: #ffd966;
}

.media-type-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  padding: 0.3rem 1rem;
  border-radius: 40px;
  font-size: 0.8rem;
  color: white;
  z-index: 5;
  pointer-events: none;
}

/* fullscreen viewer */
.fullscreen-viewer {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: black;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  visibility: hidden;
  opacity: 0;
  transition: 0.2s;
}
.fullscreen-viewer.active {
  visibility: visible;
  opacity: 1;
}
.fullscreen-viewer img, .fullscreen-viewer video {
  max-width: 90vw;
  max-height: 90vh;
}
.close-fs {
  position: absolute;
  top: 20px; right: 30px;
  font-size: 2rem;
  color: white;
  background: none;
  border: none;
  cursor: pointer;
  touch-action: manipulation;
  min-width: 44px;
  min-height: 44px;
}

/* booking card + step wizard */
.booking-card {
  background: white;
  border-radius: 2rem;
  box-shadow: 0 20px 35px -10px rgba(0,0,0,0.1);
  overflow: hidden;
  padding: 1.8rem 2rem 2rem;
}

.step-indicators {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  border-bottom: 2px solid #e2e8f0;
  padding-bottom: 0.75rem;
  flex-wrap: wrap;
}

.step-tab {
  font-weight: 600;
  padding: 0.5rem 1.2rem;
  border-radius: 40px;
  background: #f1f5f9;
  color: #2c5f7a;
  cursor: pointer;
  transition: 0.2s;
  touch-action: manipulation;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.step-tab:active {
  transform: scale(0.97);
}

.step-tab.active-step {
  background: #0f3b4f;
  color: white;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.step-content {
  display: none;
  animation: fade 0.25s ease;
}
.step-content.active-step-content {
  display: block;
}

@keyframes fade {
  from { opacity: 0; transform: translateY(6px);}
  to { opacity: 1; transform: translateY(0);}
}

.form-row {
  margin-bottom: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
}
.form-group {
  flex: 1 1 220px;
}
label {
  font-weight: 600;
  display: block;
  margin-bottom: 0.5rem;
  color: #1f5068;
}
input, select, textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid #cbd5e1;
  border-radius: 1rem;
  font-size: 16px;
  background: white;
  -webkit-appearance: none;
  appearance: none;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: #0f3b4f;
  box-shadow: 0 0 0 3px rgba(15, 59, 79, 0.1);
}

.tour-type-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.tour-option {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 2rem;
  padding: 0.6rem 1.5rem;
  cursor: pointer;
  transition: all 0.2s;
  touch-action: manipulation;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.tour-option:active {
  transform: scale(0.97);
}
.tour-option.selected {
  background: #0a2b3e;
  border-color: #0a2b3e;
  color: white;
}

.price-preview {
  background: #eef2ff;
  border-radius: 1.5rem;
  padding: 1rem 1.5rem;
  margin: 1rem 0 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 1rem;
  font-weight: 700;
  font-size: 1.4rem;
}
.price-label {
  font-size: 0.9rem;
  color: #2c5f7a;
}
.total-price {
  font-size: 2rem;
  color: #0f3b4f;
}

.checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 0.5rem;
}

.checkbox-group label {
  font-weight: normal;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #f1f5f9;
  padding: 0.6rem 1.2rem;
  border-radius: 40px;
  cursor: pointer;
  touch-action: manipulation;
  min-height: 44px;
  transition: all 0.2s ease;
  user-select: none;
  -webkit-user-select: none;
}

.checkbox-group label:active {
  transform: scale(0.96);
  background: #e2e8f0;
}

/* Custom checkbox style cho iOS */
.checkbox-group input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin: 0;
  padding: 0;
  -webkit-appearance: none;
  appearance: none;
  background: white;
  border: 2px solid #cbd5e1;
  border-radius: 6px;
  position: relative;
  cursor: pointer;
  flex-shrink: 0;
}

.checkbox-group input[type="checkbox"]:checked {
  background: #0f3b4f;
  border-color: #0f3b4f;
}

.checkbox-group input[type="checkbox"]:checked::after {
  content: '✓';
  position: absolute;
  color: white;
  font-size: 13px;
  font-weight: bold;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* Hover chỉ hoạt động trên thiết bị có hover */
@media (hover: hover) {
  .checkbox-group label:hover {
    background: #e2e8f0;
  }
  .tour-option:hover {
    background: #e2e8f0;
  }
}

.step-buttons {
  display: flex;
  justify-content: space-between;
  margin-top: 2rem;
  gap: 1rem;
}
.btn {
  padding: 0.8rem 2rem;
  border-radius: 3rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: 0.2s;
  touch-action: manipulation;
  min-height: 48px;
  min-width: 120px;
  font-size: 1rem;
}
.btn:active {
  transform: scale(0.97);
}
.btn-primary {
  background: #0f3b4f;
  color: white;
}
.btn-primary:active {
  background: #1f6e8c;
}
.btn-secondary {
  background: #e2e8f0;
}
.btn-secondary:active {
  background: #cbd5e1;
}
.loading {
  opacity: 0.6;
  pointer-events: none;
}

/* Country selector */
.country-selector {
  position: relative;
}
.country-selector-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #f1f5f9;
  padding: 0.6rem 1rem;
  border-radius: 3rem;
  cursor: pointer;
  touch-action: manipulation;
  min-height: 44px;
}
.country-selector-btn:active {
  transform: scale(0.97);
}
#countryDropdown {
  display: none;
  position: absolute;
  top: 50px;
  left: 0;
  background: white;
  border-radius: 1rem;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
  width: 280px;
  z-index: 100;
  padding: 0.5rem;
}
#countrySearch {
  font-size: 16px;
  margin-bottom: 8px;
  padding: 0.6rem;
}
.country-item {
  padding: 0.6rem;
  cursor: pointer;
  display: flex;
  gap: 8px;
  align-items: center;
  border-radius: 0.5rem;
  transition: 0.2s;
  touch-action: manipulation;
}
.country-item:active {
  background: #f1f5f9;
  transform: scale(0.98);
}

@media (max-width: 720px) {
  .logo img { width: 60px; }
  .logo { top: 28px; left: 32px; }
  .booking-card {
    padding: 1.2rem;
  }
  .container {
    flex-direction: column;
  }

  .media-stage,
  .booking-card {
    width: 100%;
  }
  .step-buttons {
    flex-direction: column;
  }
  .btn {
    width: 100%;
  }
  .price-preview {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

/* Fix cho input date trên iOS */
input[type="date"] {
  min-height: 44px;
}

/* Fix cho select trên iOS */
select {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="%230a2b3e" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="6 9 12 15 18 9"></polyline></svg>');
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}