/* ===== Reset & Base ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  font-size: 14px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: #f5f6fa;
  color: #333;
  min-height: 100vh;
  padding-bottom: 70px;
  max-width: 480px;
  margin: 0 auto;
  position: relative;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

input, select, textarea, button {
  font-family: inherit;
  outline: none;
  border: none;
  background: none;
}

/* ===== Header ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid #f0f0f0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 6px;
}

.logo-icon {
  font-size: 22px;
}

.logo-text {
  font-size: 18px;
  font-weight: 700;
  color: #e84b3a;
  letter-spacing: 1px;
}

.logo-sub {
  font-size: 11px;
  color: #999;
  border-left: 1px solid #eee;
  padding-left: 6px;
}

.header-right {
  width: 34px;
  height: 34px;
  background: #fff5f3;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.page-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: #fff;
  border-bottom: 1px solid #f0f0f0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.back-btn {
  font-size: 20px;
  cursor: pointer;
}

.page-title {
  font-size: 17px;
  font-weight: 600;
  flex: 1;
}

/* ===== Bottom Nav ===== */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  display: flex;
  background: #fff;
  border-top: 1px solid #eee;
  z-index: 1000;
  box-shadow: 0 -2px 12px rgba(0,0,0,0.06);
}

.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 0;
  color: #999;
  transition: color 0.2s;
}

.nav-item.active {
  color: #e84b3a;
}

.nav-icon {
  font-size: 22px;
  line-height: 1;
  margin-bottom: 2px;
}

.nav-label {
  font-size: 11px;
}

/* ===== Footer ===== */
.footer {
  text-align: center;
  padding: 20px 16px 30px;
  color: #aaa;
  font-size: 11px;
  line-height: 2;
  background: #fff;
  margin-top: 10px;
}

.footer a {
  color: #aaa;
}

/* ===== Section Header ===== */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 10px;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 16px;
  font-weight: 600;
}

.title-icon {
  font-size: 18px;
}

.see-all {
  font-size: 13px;
  color: #999;
}

/* ===== Hotel Card ===== */
.hotel-card {
  display: block;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  margin: 0 16px 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

.hotel-img-wrap {
  position: relative;
  height: 180px;
}

.hotel-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
}

.badge-hot { background: #e84b3a; }
.badge-new { background: #07c160; }
.badge-sale { background: #ff9900; }

.hotel-body {
  padding: 12px 14px;
}

.hotel-name {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
  color: #222;
}

.hotel-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  font-size: 12px;
}

.hotel-star {
  font-size: 11px;
}

.hotel-score {
  color: #ff6b35;
  font-weight: 600;
}

.hotel-reviews {
  color: #999;
}

.hotel-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.tag {
  background: #fff5f3;
  color: #e84b3a;
  padding: 2px 7px;
  border-radius: 3px;
  font-size: 11px;
}

.tag-blue {
  background: #f0f7ff;
  color: #2979ff;
}

.hotel-location {
  font-size: 12px;
  color: #999;
  margin-bottom: 10px;
}

.hotel-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.price-label {
  font-size: 11px;
  color: #999;
  margin-right: 4px;
}

.price-main {
  font-size: 22px;
  font-weight: 700;
  color: #e84b3a;
}

.price-unit {
  font-size: 12px;
  color: #999;
}

.btn-book {
  background: linear-gradient(135deg, #e84b3a, #ff7961);
  color: #fff;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
}

/* ===== Form Styles ===== */
.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 13px;
  color: #666;
  margin-bottom: 6px;
  font-weight: 500;
}

.form-label .required {
  color: #e84b3a;
  margin-left: 2px;
}

.form-input {
  width: 100%;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  padding: 11px 14px;
  font-size: 14px;
  color: #333;
  background: #fafafa;
  transition: border-color 0.2s;
}

.form-input:focus {
  border-color: #e84b3a;
  background: #fff;
}

.form-textarea {
  height: 90px;
  resize: none;
}

.form-select {
  width: 100%;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  padding: 11px 14px;
  font-size: 14px;
  color: #333;
  background: #fafafa url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23999' stroke-width='1.5' fill='none'/%3E%3C/svg%3E") no-repeat right 14px center;
  -webkit-appearance: none;
  appearance: none;
}

/* ===== Btn ===== */
.btn-primary {
  display: block;
  width: 100%;
  background: linear-gradient(135deg, #e84b3a, #ff7961);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 14px;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: opacity 0.2s;
  box-shadow: 0 4px 14px rgba(232,75,58,0.3);
}

.btn-primary:active {
  opacity: 0.85;
}

.btn-outline {
  display: block;
  width: 100%;
  background: #fff;
  color: #e84b3a;
  border: 1.5px solid #e84b3a;
  border-radius: 10px;
  padding: 13px;
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
}

/* ===== Alert/Toast ===== */
.toast {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  background: rgba(0,0,0,0.75);
  color: #fff;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  z-index: 9999;
  opacity: 0;
  transition: all 0.25s;
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* ===== Modal ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 500;
  display: none;
}

.modal-overlay.show {
  display: block;
}

.modal-sheet {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  background: #fff;
  border-radius: 20px 20px 0 0;
  padding: 20px 20px 40px;
  z-index: 501;
  display: none;
}

.modal-sheet.show {
  display: block;
}

.modal-title {
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid #f0f0f0;
}

/* ===== Loading ===== */
.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
  color: #999;
  font-size: 13px;
  gap: 8px;
}

.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid #eee;
  border-top-color: #e84b3a;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ===== Stars ===== */
.stars {
  color: #ffc107;
  font-size: 13px;
}
