/* Aquatic Habitat Viewer — map shell styles */

html,
body {
  height: 100%;
  margin: 0;
}

calcite-shell {
  /* Brand blue, close to the old WAB loading-page color (#508dca) */
  --calcite-color-brand: #2f6fae;
  --calcite-color-brand-hover: #275d93;
  --calcite-color-brand-press: #1f4b78;
}

/* Header: black bar, logo + title on the left */
.app-header {
  --calcite-navigation-background-color: #000;
  --calcite-navigation-border-color: #000;
}

.app-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  height: 100%;
  padding-inline: 0.75rem;
}

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

.app-logo {
  display: block;
  height: 40px;
  width: auto;
  max-width: 180px;
}

.app-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.app-title {
  color: #fff;
  font-size: 1.125rem;
  font-weight: 600;
}

.app-subtitle {
  color: #c9c9c9;
  font-size: 0.8125rem;
}

/* Header search */
.header-search {
  display: flex;
  align-items: center;
  padding-inline: 0.5rem;
}

.header-search arcgis-search {
  width: 340px;
}

/* Map area */
.map-wrap {
  position: relative;
  width: 100%;
  height: 100%;
}

#ahv-map {
  width: 100%;
  height: 100%;
}

/* Side panel content */
.panel-pad {
  padding: 0.75rem;
}

/* Previous / next extent buttons — styled to sit with the zoom/home/locate stack */
.map-buttons {
  display: flex;
  flex-direction: column;
  background: var(--calcite-color-foreground-1);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Cursor coordinates */
.coords {
  min-width: 11rem;
  padding: 2px 8px;
  font: 12px/1.4 var(--calcite-font-family, sans-serif);
  color: var(--calcite-color-text-2);
  background: var(--calcite-color-foreground-1);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Overview map */
.overview {
  position: absolute;
  right: 15px;
  bottom: 30px;
  /* clears the attribution bar */
  width: 220px;
  height: 150px;
  background: var(--calcite-color-foreground-1);
  border: 1px solid var(--calcite-color-border-1);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
  z-index: 1;
}

.overview arcgis-map {
  width: 100%;
  height: 100%;
}

.overview-toggle {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
}

.overview.collapsed {
  width: 32px;
  height: 32px;
}

.overview.collapsed arcgis-map {
  visibility: hidden;
}

/* Load error */
.map-error {
  position: absolute;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  max-width: 36rem;
  z-index: 3;
}

/* Small screens */
@media (max-width: 700px) {
  .header-search arcgis-search {
    width: 180px;
  }

  .app-logo {
    height: 32px;
  }

  .app-subtitle {
    display: none;
  }

  .overview,
  .coords {
    display: none;
  }
}