/* layout.css */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  height: 100%;
  height: 100dvh;
  margin: 0;
  padding: 0;
  overflow: hidden;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  font-family: var(--font-family);
  color: var(--text-main);
  background-color: #AE0008;
  -webkit-overflow-scrolling: touch;
}

.page-wrapper {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  height: 100dvh;
  overflow: hidden;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

/* Top Header Bar */
.top-header {
  height: 64px;
  background: #ffffff;
  display: flex;
  align-items: center;
  padding: 0 24px;
  gap: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  z-index: 1005;
  border-bottom: 1px solid #eaeaea;
  flex-shrink: 0;
  position: relative;
}

.header-logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.header-logo-img {
  height: 44px;
  width: auto;
  object-fit: contain;
}

.header-title-text {
  font-size: 1.35rem;
  font-weight: 800;
  color: #c90000;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* App Main Container (Dưới Header) */
.app-container {
  flex: 1;
  position: relative;
  width: 100%;
  height: calc(100vh - 64px);
  overflow: hidden;
  background-color: #AE0008;
}

/* Nền trống đồng xoay tròn dưới bản đồ */
.c-story-backgrounds {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #AE0008;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.c-story-backgrounds__clockwise {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  margin: 0;
  padding: 0;
  animation: rotateBackground 70s linear infinite !important;
  transform-origin: center center;
  will-change: transform;
  display: flex;
  align-items: center;
  justify-content: center;
}

.c-story-backgrounds__clockwise img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  opacity: 0.85;
  display: block;
}

@keyframes rotateBackground {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(-360deg);
  }
}

/* Bản đồ chiếm toàn bộ khung nhìn 100% */
.map-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  background: transparent !important;
}

#map {
  width: 100%;
  height: 100%;
  background: transparent !important;
}

.maplibregl-canvas {
  background: transparent !important;
}
