@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@300;400;500;600;700&family=DM+Serif+Display:ital@0;1&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --teal: #1a6b6b;
  --teal-dark: #134f4f;
  --teal-light: #e8f4f4;
  --teal-mid: #2a8a8a;
  --text: #1a1a1a;
  --muted: #6b7280;
  --border: #e0e0e0;
  --bg: #f4f4f4;
  --white: #ffffff;
  --red: #dc2626;
  --radius: 12px;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.14);
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

.booking-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.booking-header {
  background: white;
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 100;
}
.booking-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  gap: 16px;
}
.header-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}
.header-logo-box {
  width: 38px;
  height: 38px;
  border: 2px solid var(--teal);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--teal);
  line-height: 1.1;
  text-align: center;
  letter-spacing: 0.04em;
}
.header-brand-name { font-weight: 600; font-size: 0.95rem; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.header-pill {
  display: flex; align-items: center; gap: 6px;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 0.82rem;
  color: var(--muted);
  cursor: pointer;
  background: white;
  font-family: 'DM Sans', sans-serif;
  transition: border-color 0.2s;
}
.header-pill:hover { border-color: var(--teal); color: var(--teal); }
.close-link {
  background: none; border: none; cursor: pointer;
  color: var(--muted); padding: 6px;
  transition: color 0.15s;
  display: flex; align-items: center;
}
.close-link:hover { color: var(--text); }

.stepper-bar {
  display: flex;
  align-items: flex-start;
  padding: 0;
  overflow-x: auto;
  scrollbar-width: none;
  border-top: 1px solid var(--border);
}
.stepper-bar::-webkit-scrollbar { display: none; }
.stepper-step {
  flex: 1;
  min-width: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}
.stepper-track {
  width: 100%;
  display: flex;
  align-items: center;
}
.stepper-line {
  flex: 1;
  height: 2px;
  background: var(--border);
  transition: background 0.4s;
}
.stepper-line.done { background: var(--teal); }
.stepper-line.hidden { visibility: hidden; }
.stepper-node {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.72rem; font-weight: 700; color: white;
  flex-shrink: 0;
  transition: background 0.3s;
  position: relative;
  z-index: 1;
}
.stepper-node.active, .stepper-node.done { background: var(--teal); }
.stepper-label {
  font-size: 0.7rem;
  color: var(--muted);
  padding: 6px 0 10px;
  white-space: nowrap;
}
.stepper-label.active { color: var(--teal); font-weight: 600; }

.booking-page {
  flex: 1;
  max-width: 860px;
  margin: 0 auto;
  width: 100%;
  padding: 32px 20px 60px;
}
.page-title {
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 24px;
  color: var(--text);
}

.summary-bar {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 10px;
}
.summary-bar-left { display: flex; gap: 40px; flex-wrap: wrap; gap: 24px; }
.summary-item-label { font-size: 0.78rem; color: var(--muted); margin-bottom: 2px; }
.summary-item-value { font-size: 0.9rem; font-weight: 500; color: var(--text); }
.summary-item-sub { font-size: 0.82rem; color: var(--muted); }
.edit-btn {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 7px 16px;
  background: white;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  cursor: pointer;
  color: var(--text);
  transition: border-color 0.2s;
  flex-shrink: 0;
}
.edit-btn:hover { border-color: var(--teal); color: var(--teal); }

.card {
  background: white;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
  cursor: pointer;
}
.card:hover { border-color: var(--teal); box-shadow: 0 4px 20px rgba(26,107,107,0.1); }
.card.selected { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(26,107,107,0.12); }

.rooms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 20px;
}
.room-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  background: var(--teal-light);
  position: relative;
  overflow: hidden;
}
.room-card-img-wrap { position: relative; overflow: hidden; height: 200px; background: var(--teal-light); }
.room-card-img-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
.img-dots {
  position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 5px;
}
.img-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(255,255,255,0.5);
}
.img-dot.active { background: white; }
.room-card-body { padding: 16px 18px; }
.room-card-name { font-size: 1.05rem; font-weight: 700; margin-bottom: 6px; }
.room-meta { display: flex; align-items: center; gap: 6px; font-size: 0.82rem; color: var(--muted); margin-bottom: 8px; }
.room-desc { font-size: 0.85rem; color: var(--muted); line-height: 1.5; margin-bottom: 12px; }
.room-price-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.room-price { font-size: 1.15rem; font-weight: 700; color: var(--teal); }
.room-price span { font-size: 0.8rem; font-weight: 400; color: var(--muted); }
.select-room-btn {
  background: var(--teal);
  color: white;
  border: none;
  border-radius: 7px;
  padding: 9px 20px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.select-room-btn:hover { background: var(--teal-dark); }
.unavailable-badge {
  display: inline-block;
  background: #fee2e2; color: var(--red);
  font-size: 0.72rem; font-weight: 600;
  padding: 3px 8px; border-radius: 4px;
}

.rates-layout { display: grid; grid-template-columns: 1fr 340px; gap: 24px; align-items: start; }
@media (max-width: 680px) { .rates-layout { grid-template-columns: 1fr; } }

.selected-room-card { background: white; border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 24px; display: flex; gap: 16px; overflow: hidden; }
.selected-room-thumb { width: 130px; height: 110px; flex-shrink: 0; }
.selected-room-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.selected-room-info { padding: 14px 16px; }
.selected-room-name { font-weight: 700; font-size: 1rem; margin-bottom: 4px; }
.selected-room-meta { font-size: 0.82rem; color: var(--muted); margin-bottom: 6px; display: flex; align-items: center; gap: 6px; }
.show-more { color: var(--teal); font-size: 0.82rem; cursor: pointer; background: none; border: none; font-family: 'DM Sans', sans-serif; display: flex; align-items: center; gap: 4px; }

.section-title { font-size: 0.8rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 12px; margin-top: 20px; }

.extra-card { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 1px solid var(--border); border-radius: 10px; margin-bottom: 10px; background: white; }
.extra-icon { width: 52px; height: 48px; border-radius: 8px; background: var(--bg); display: flex; align-items: center; justify-content: center; font-size: 1.3rem; flex-shrink: 0; }
.extra-name { font-weight: 600; font-size: 0.9rem; margin-bottom: 2px; }
.extra-desc { font-size: 0.78rem; color: var(--muted); line-height: 1.4; }
.extra-price { font-weight: 700; font-size: 0.9rem; color: var(--text); }
.extra-per { font-size: 0.75rem; color: var(--muted); }
.add-btn { margin-top: 8px; border: 1px solid var(--teal); color: var(--teal); background: white; padding: 6px 14px; border-radius: 6px; font-family: 'DM Sans', sans-serif; font-size: 0.82rem; font-weight: 600; cursor: pointer; transition: all 0.2s; }
.add-btn:hover, .add-btn.added { background: var(--teal); color: white; }

.belegung-box { background: white; border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; }
.belegung-title { font-weight: 700; font-size: 0.9rem; margin-bottom: 12px; }
.belegung-room { margin-bottom: 14px; }
.belegung-room-label { font-size: 0.78rem; color: var(--muted); margin-bottom: 8px; }
.counter-row { display: flex; gap: 12px; }
.counter-group { flex: 1; }
.counter-group label { font-size: 0.72rem; color: var(--muted); display: block; margin-bottom: 4px; }
.counter { display: flex; align-items: center; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; height: 38px; }
.counter-btn { width: 36px; height: 100%; border: none; background: white; cursor: pointer; font-size: 1rem; color: var(--teal); transition: background 0.15s; }
.counter-btn:hover { background: var(--teal-light); }
.counter-btn:disabled { color: var(--border); cursor: default; }
.counter-val { flex: 1; text-align: center; font-weight: 600; font-size: 0.9rem; user-select: none; }

.rate-section { margin-top: 20px; }
.rate-card { border: 1px solid var(--border); border-radius: 10px; padding: 14px 16px; margin-bottom: 10px; background: white; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.rate-info { flex: 1; }
.rate-name { font-weight: 700; font-size: 0.92rem; margin-bottom: 2px; }
.rate-desc { font-size: 0.78rem; color: var(--muted); }
.rate-price { font-size: 1rem; font-weight: 700; color: var(--text); white-space: nowrap; }
.rate-per { font-size: 0.75rem; color: var(--muted); font-weight: 400; }
.book-btn { background: var(--teal); color: white; border: none; border-radius: 7px; padding: 9px 18px; font-family: 'DM Sans', sans-serif; font-size: 0.85rem; font-weight: 700; cursor: pointer; white-space: nowrap; transition: background 0.2s; }
.book-btn:hover { background: var(--teal-dark); }

.overview-room-item { background: white; border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; display: flex; gap: 16px; margin-bottom: 14px; align-items: flex-start; }
.overview-thumb { width: 100px; height: 80px; border-radius: 8px; overflow: hidden; flex-shrink: 0; }
.overview-thumb img { width: 100%; height: 100%; object-fit: cover; }
.overview-info { flex: 1; }
.overview-room-name { font-weight: 700; font-size: 0.95rem; margin-bottom: 6px; }
.overview-detail { display: flex; align-items: center; gap: 6px; font-size: 0.82rem; color: var(--muted); margin-bottom: 3px; }
.overview-price { font-weight: 700; font-size: 1rem; color: var(--text); white-space: nowrap; }
.add-more-btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 13px; border: 1.5px dashed var(--border); border-radius: var(--radius); background: none; cursor: pointer; font-family: 'DM Sans', sans-serif; font-size: 0.9rem; color: var(--muted); transition: border-color 0.2s, color 0.2s; margin-bottom: 24px; }
.add-more-btn:hover { border-color: var(--teal); color: var(--teal); }

.price-breakdown { background: white; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.price-row { display: flex; justify-content: space-between; padding: 12px 18px; border-bottom: 1px solid var(--border); font-size: 0.88rem; }
.price-row:last-child { border-bottom: none; }
.price-row .label { color: var(--muted); }
.price-row .value { font-weight: 600; }
.price-row.tax .value { color: var(--teal); }
.price-row.tax .sub { font-size: 0.75rem; color: var(--muted); text-align: right; }
.price-row.total { background: var(--teal-light); }
.price-row.total .label { font-weight: 700; font-size: 0.95rem; color: var(--text); }
.price-row.total .value { font-size: 1.1rem; font-weight: 800; color: var(--teal-dark); }

.contact-section { background: white; border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; margin-bottom: 20px; }
.booking-for-tabs { display: flex; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; margin-bottom: 20px; }
.tab-btn { flex: 1; padding: 10px; border: none; background: white; font-family: 'DM Sans', sans-serif; font-size: 0.88rem; cursor: pointer; color: var(--muted); transition: all 0.2s; }
.tab-btn.active { background: var(--teal); color: white; font-weight: 600; }
.contact-section-title { font-weight: 700; font-size: 0.95rem; margin-bottom: 16px; text-align: center; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 520px) { .form-grid { grid-template-columns: 1fr; } }
.form-field { display: flex; flex-direction: column; gap: 5px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-size: 0.78rem; font-weight: 600; color: var(--muted); }
.form-field input, .form-field select, .form-field textarea {
  border: 1.5px solid var(--border); border-radius: 8px; padding: 10px 12px;
  font-family: 'DM Sans', sans-serif; font-size: 0.92rem; color: var(--text);
  background: white; transition: border-color 0.2s; outline: none;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: var(--teal); }
.form-field textarea { resize: vertical; min-height: 80px; }
.phone-row { display: flex; gap: 8px; }
.phone-flag { border: 1.5px solid var(--border); border-radius: 8px; padding: 10px 10px; background: white; font-size: 0.88rem; cursor: pointer; min-width: 70px; }
.phone-flag:focus { outline: none; border-color: var(--teal); }

.payment-section { background: white; border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; margin-bottom: 20px; text-align: center; }
.payment-info { color: var(--muted); font-size: 0.88rem; line-height: 1.6; margin-bottom: 20px; }
.payment-icons { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 6px; }
.payment-icon { background: var(--bg); border: 1px solid var(--border); border-radius: 6px; padding: 6px 12px; font-size: 0.78rem; font-weight: 700; color: var(--muted); }

.primary-btn {
  width: 100%; background: var(--teal); color: white; border: none;
  border-radius: 10px; padding: 15px; font-family: 'DM Sans', sans-serif;
  font-size: 1rem; font-weight: 700; cursor: pointer; margin-top: 20px;
  letter-spacing: 0.02em; transition: background 0.2s, transform 0.15s;
  display: block; text-align: center; text-decoration: none;
}
.primary-btn:hover { background: var(--teal-dark); transform: translateY(-1px); }
.primary-btn:disabled { background: var(--border); cursor: default; transform: none; }

.back-link { display: flex; align-items: center; gap: 6px; background: none; border: none; cursor: pointer; color: var(--muted); font-family: 'DM Sans', sans-serif; font-size: 0.88rem; margin-bottom: 20px; padding: 0; transition: color 0.15s; }
.back-link:hover { color: var(--teal); }

.admin-shell { min-height: 100vh; background: #0f1923; display: flex; flex-direction: column; }
.admin-header { background: #162330; border-bottom: 1px solid #223344; padding: 0 24px; height: 60px; display: flex; align-items: center; justify-content: space-between; }
.admin-header-brand { display: flex; align-items: center; gap: 10px; color: white; font-weight: 700; }
.admin-logo { width: 36px; height: 36px; border: 2px solid var(--teal); border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 0.58rem; font-weight: 700; color: var(--teal); line-height: 1.1; }
.admin-nav { display: flex; gap: 4px; }
.admin-nav-btn { background: none; border: none; color: #8899aa; font-family: 'DM Sans', sans-serif; font-size: 0.88rem; padding: 8px 14px; border-radius: 6px; cursor: pointer; transition: all 0.2s; }
.admin-nav-btn:hover, .admin-nav-btn.active { background: rgba(26,107,107,0.2); color: var(--teal); }
.admin-logout { background: none; border: 1px solid #334455; color: #8899aa; padding: 7px 14px; border-radius: 6px; font-family: 'DM Sans', sans-serif; font-size: 0.82rem; cursor: pointer; transition: all 0.2s; }
.admin-logout:hover { border-color: var(--red); color: var(--red); }

.admin-content { flex: 1; padding: 28px 24px; max-width: 1100px; margin: 0 auto; width: 100%; }
.admin-section-title { color: white; font-size: 1.2rem; font-weight: 700; margin-bottom: 20px; }
.admin-card { background: #162330; border: 1px solid #223344; border-radius: var(--radius); overflow: hidden; margin-bottom: 16px; }
.admin-card-header { padding: 16px 20px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #223344; }
.admin-card-name { color: white; font-weight: 700; font-size: 1rem; }
.admin-badge { font-size: 0.72rem; font-weight: 600; padding: 3px 9px; border-radius: 20px; }
.admin-badge.available { background: rgba(26,107,107,0.2); color: #4dd0d0; }
.admin-badge.unavailable { background: rgba(220,38,38,0.15); color: #f87171; }
.admin-card-body { padding: 16px 20px; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; align-items: end; }
@media (max-width: 600px) { .admin-card-body { grid-template-columns: 1fr 1fr; } }
.admin-field label { font-size: 0.72rem; color: #8899aa; display: block; margin-bottom: 4px; }
.admin-field input, .admin-field select { width: 100%; background: #0f1923; border: 1px solid #334455; color: white; padding: 9px 12px; border-radius: 7px; font-family: 'DM Sans', sans-serif; font-size: 0.88rem; outline: none; transition: border-color 0.2s; }
.admin-field input:focus, .admin-field select:focus { border-color: var(--teal); }
.admin-card-footer { padding: 12px 20px; border-top: 1px solid #223344; display: flex; gap: 8px; justify-content: flex-end; }
.btn-save { background: var(--teal); color: white; border: none; padding: 8px 18px; border-radius: 7px; font-family: 'DM Sans', sans-serif; font-size: 0.85rem; font-weight: 600; cursor: pointer; transition: background 0.2s; }
.btn-save:hover { background: var(--teal-dark); }
.btn-delete { background: none; border: 1px solid #334455; color: #f87171; padding: 8px 16px; border-radius: 7px; font-family: 'DM Sans', sans-serif; font-size: 0.85rem; cursor: pointer; transition: all 0.2s; }
.btn-delete:hover { background: rgba(220,38,38,0.1); border-color: #f87171; }
.btn-add-room { display: flex; align-items: center; gap: 8px; background: rgba(26,107,107,0.15); border: 1.5px dashed var(--teal); color: var(--teal); padding: 12px 20px; border-radius: var(--radius); font-family: 'DM Sans', sans-serif; font-size: 0.9rem; font-weight: 600; cursor: pointer; transition: all 0.2s; width: 100%; justify-content: center; }
.btn-add-room:hover { background: rgba(26,107,107,0.25); }
.toast { position: fixed; bottom: 24px; right: 24px; background: var(--teal); color: white; padding: 12px 20px; border-radius: 8px; font-size: 0.88rem; font-weight: 600; box-shadow: var(--shadow-lg); animation: slideUp 0.3s ease; z-index: 9999; }
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

.login-wrap { min-height: 100vh; background: #0f1923; display: flex; align-items: center; justify-content: center; padding: 20px; }
.login-card { background: #162330; border: 1px solid #223344; border-radius: 16px; padding: 40px; width: 100%; max-width: 380px; }
.login-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 28px; }
.login-title { font-size: 1.3rem; font-weight: 700; color: white; margin-bottom: 6px; }
.login-sub { font-size: 0.85rem; color: #8899aa; margin-bottom: 24px; }
.login-field { margin-bottom: 14px; }
.login-field label { display: block; font-size: 0.78rem; color: #8899aa; margin-bottom: 5px; }
.login-field input { width: 100%; background: #0f1923; border: 1px solid #334455; color: white; padding: 11px 14px; border-radius: 8px; font-family: 'DM Sans', sans-serif; font-size: 0.92rem; outline: none; transition: border-color 0.2s; }
.login-field input:focus { border-color: var(--teal); }
.login-btn { width: 100%; background: var(--teal); color: white; border: none; border-radius: 8px; padding: 13px; font-family: 'DM Sans', sans-serif; font-size: 1rem; font-weight: 700; cursor: pointer; margin-top: 8px; transition: background 0.2s; }
.login-btn:hover { background: var(--teal-dark); }
.login-error { color: #f87171; font-size: 0.82rem; margin-top: 8px; display: none; }

@media (max-width: 540px) {
  .booking-page { padding: 20px 14px 50px; }
  .rooms-grid { grid-template-columns: 1fr; }
  .selected-room-card { flex-direction: column; }
  .selected-room-thumb { width: 100%; height: 140px; }
}
