/* ===================== Base ===================== */
html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; }

/* ===================== Header ===================== */
#site-header {
  background: transparent;
}
#site-header.scrolled {
  background: rgba(15, 23, 32, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.2);
}
.header-brand, .header-links a { color: #fff; }
.header-links a { color: rgba(255,255,255,0.85); }

/* Mobile nav menu */
#mobile-menu { max-height: calc(100vh - 64px); overflow-y: auto; }
.mobile-menu-link { transition: background 0.15s; }
.mobile-menu-link:active { background: rgba(255,255,255,0.08); }

/* Hide scrollbar for horizontally scrollable elements (gallery tabs on mobile) */
.no-scrollbar { scrollbar-width: none; -ms-overflow-style: none; }
.no-scrollbar::-webkit-scrollbar { display: none; }

/* ===================== Form inputs ===================== */
.form-input {
  width: 100%;
  border: 1.5px solid #e5e0d6;
  border-radius: 0.75rem;
  padding: 0.7rem 1rem;
  font-size: 0.9rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: #fff;
  color: #0f1720;
}
.form-input:focus {
  outline: none;
  border-color: #c39a3e;
  box-shadow: 0 0 0 3px rgba(195,154,62,0.15);
}
.form-input.input-error {
  border-color: #dc2626;
}
.field-error {
  color: #dc2626;
  font-size: 0.78rem;
  margin-top: 0.3rem;
  min-height: 1rem;
}

/* ===================== Gallery ===================== */
.gallery-tab {
  border-color: #e5e0d6;
  color: #4b5563;
}
.gallery-tab.active {
  background: #0f1720;
  color: #fff;
  border-color: #0f1720;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 0.9rem;
  cursor: pointer;
  aspect-ratio: 4/3;
  background: #eee;
}
.gallery-item img, .gallery-item video {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery-item:hover img, .gallery-item:hover video { transform: scale(1.08); }
.gallery-item .overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.6), transparent 50%);
  display: flex; align-items: flex-end; padding: 0.8rem;
  opacity: 0; transition: opacity 0.3s;
}
.gallery-item:hover .overlay { opacity: 1; }
.gallery-item .play-badge {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 3rem; height: 3rem; border-radius: 50%;
  background: rgba(255,255,255,0.9); color: #0f1720;
  display: flex; align-items: center; justify-content: center; font-size: 1.1rem;
}

/* ===================== Room cards ===================== */
.room-card {
  border-radius: 1.1rem;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 4px 24px rgba(15,23,32,0.06);
  transition: transform 0.3s, box-shadow 0.3s;
}
.room-card:hover { transform: translateY(-6px); box-shadow: 0 12px 32px rgba(15,23,32,0.12); }

/* ===================== Vehicle cards ===================== */
.vehicle-card {
  border-radius: 1rem;
  border: 1.5px solid #ece6d8;
  overflow: hidden;
  transition: box-shadow 0.3s, transform 0.3s;
}
.vehicle-card:hover { box-shadow: 0 10px 28px rgba(15,23,32,0.1); transform: translateY(-4px); }

.vehicle-option {
  border-color: #e5e0d6;
}
.vehicle-option.selected {
  border-color: #c39a3e;
  background: #fbf7ee;
}

/* ===================== Booking stepper ===================== */
.step-circle {
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.6);
  border: 2px solid rgba(255,255,255,0.2);
}
.step-item.active .step-circle {
  background: #c39a3e;
  color: #fff;
  border-color: #c39a3e;
}
.step-item.done .step-circle {
  background: #2ea36b;
  border-color: #2ea36b;
  color: #fff;
}
.step-item span { color: rgba(255,255,255,0.6); }
.step-item.active span { color: #fff; font-weight: 600; }

/* ===================== Admin ===================== */
.admin-sidebar-link {
  transition: background 0.2s;
}
.admin-sidebar-link.active {
  background: #c39a3e;
  color: #fff;
}
.status-badge {
  display: inline-block;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  border: 1px solid;
}

@keyframes fadeIn { from { opacity: 0; transform: translateY(8px);} to { opacity: 1; transform: translateY(0);} }
.fade-in { animation: fadeIn 0.35s ease; }

/* ===================== Floating contact buttons ===================== */
.floating-contact-btn {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.floating-contact-btn:hover { transform: scale(1.08); }
.zalo-btn { background: #0068ff; }
.call-btn {
  background: #16a34a;
  animation: callPulse 2.2s infinite;
}
@keyframes callPulse {
  0% { box-shadow: 0 0 0 0 rgba(22,163,74,0.55); }
  70% { box-shadow: 0 0 0 14px rgba(22,163,74,0); }
  100% { box-shadow: 0 0 0 0 rgba(22,163,74,0); }
}
@media (max-width: 480px) {
  .floating-contact-btn { width: 3rem; height: 3rem; }
  .floating-contact-btn img { width: 1.75rem; height: 1.75rem; }
}

/* Scrollbar */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: #d4c9a8; border-radius: 4px; }
::-webkit-scrollbar-track { background: #f5f2ea; }
