/* ===== BASE ===== */
html, body {
  font-family: "Segoe UI", Arial, sans-serif !important;
  margin: 0 !important;
  padding: 0 !important;
  height: 100% !important;
  overflow: hidden !important;
  background: #3a3a3a !important;
}

a {
  text-decoration: none;
}

/* ===== HEADER ===== */
header.header {
  height: 70px;
  background: linear-gradient(to right, #ffffff, #3a3a3a);
  color: #fff;
  display: flex;
  align-items: center;
  padding: 0 12px;
  position: relative;
  z-index: 100;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
  flex-shrink: 0;
}

.header-logo {
  display: flex;
  align-items: center;
}

.header-logo img {
  height: 70px;
  width: auto;
}

/* ===== FOOTER ===== */
.footer {
  height: 32px;
  background: #3a3a3a;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 0 12px;
  position: relative;
  z-index: 100;
  box-shadow: 0 -1px 4px rgba(0, 0, 0, 0.3);
  flex-shrink: 0;
  font-size: 12px;
}

.footer .coord-form {
  display: flex;
  align-items: center;
  gap: 4px;
}

.footer .coord-form input[type="text"] {
  width: 70px;
  padding: 3px 6px;
  border: 1px solid #666;
  border-radius: 3px;
  background: #2a2a2a;
  color: #fff;
  font-size: 12px;
}

.footer .coord-form input[type="text"]::placeholder {
  color: #999;
}

.footer .coord-form select {
  padding: 3px 4px;
  border: 1px solid #666;
  border-radius: 3px;
  background: #2a2a2a;
  color: #fff;
  font-size: 12px;
}

.footer-sep {
  width: 1px;
  height: 18px;
  background: #666;
}

.footer-btn {
  padding: 3px 10px;
  border: 1px solid #888;
  border-radius: 3px;
  background: transparent;
  color: #fff;
  font-size: 12px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s;
}

.footer-btn:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* KML panel (pops up above footer) */
.kml-panel {
  position: absolute;
  bottom: 32px;
  right: 12px;
  background: #3a3a3a;
  padding: 8px 12px;
  border-radius: 6px 6px 0 0;
  box-shadow: 0 -3px 8px rgba(0, 0, 0, 0.4);
  z-index: 99;
  display: none;
  align-items: center;
  gap: 8px;
}

.kml-panel form {
  display: flex;
  align-items: center;
  gap: 8px;
}

.kml-panel input[type="file"] {
  color: #fff;
  font-size: 12px;
}

/* ===== LAYOUT ===== */
#main {
  position: absolute !important;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

#center {
  flex: 1;
  display: flex;
  min-height: 0;
  overflow: hidden;
}

#map {
  width: 40%;
  position: relative;
  overflow: hidden;
}

#map, #v360 {
  flex: 1 1 auto;
  height: auto !important;
}


#v360 {
  width: 60%;
  position: relative;
  background-color: #d3d3d3;
  background: repeating-linear-gradient(
    45deg,
    #d3d3d3,
    #d3d3d3 10px,
    #c0c0c0 10px,
    #c0c0c0 20px
  );
}

/* ===== PANNELLUM OVERRIDES ===== */
.pnlm-panorama-info {
  background-color: rgba(58, 58, 58, 0.85) !important;
}

.pnlm-grab {
  cursor: crosshair !important;
}

.pnlm-grabbing {
  cursor: move !important;
}

/* ===== HOTSPOT ARROWS ===== */
/* Pannellum hotspot navigation buttons */
.arrow-up {
  width: 44px;
  height: 44px;
  background: rgba(107, 15, 142, 0.75);
  border: 2px solid #FFD700;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.arrow-up:before {
  content: '';
  display: block;
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-bottom: 14px solid #FFD700;
}
.arrow-up:hover {
  background: rgba(107, 15, 142, 0.95);
}


/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .header-logo img {
    height: 26px;
  }

  .footer .coord-form input[type="text"] {
    width: 50px;
  }

  #center {
    flex-direction: column;
  }

  #map {
    width: 100%;
    height: 50%;
  }

  #v360 {
    width: 100%;
    height: 50%;
  }
}
