.project-map-container {
  width: 100%;
  height: 400px;
  background-color: #e5e3df;
  position: relative;
}

.project-map-notice {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f5f5;
  color: #666;
  font-size: 14px;
}

.project-map-notice p {
  margin: 0;
  padding: 20px;
  text-align: center;
}

.project-map-container button {
  border-radius: 0;
}

/* Info Window / Popup Styles */
.project-map-popup {
  display: block;
  position: relative;
  width: 280px;
  min-height: 200px;
  font-size: 14px;
  line-height: 1.5;
  color: #fff;
  text-decoration: none;
  overflow: hidden;
  border-radius: 4px;
  cursor: pointer;
}

.project-map-popup:hover {
  color: #fff;
}

.project-map-popup__image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.project-map-popup__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.3) 0%,
    rgba(0, 0, 0, 0.6) 40%,
    rgba(0, 0, 0, 0.92) 100%
  );
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.project-map-popup__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 200px;
  padding: 15px;
  box-sizing: border-box;
}

.project-map-popup__title {
  margin: 0 0 8px 0;
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.project-map-popup__meta {
  margin: 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
}

.project-map-popup__meta span {
  font-weight: 600;
  color: #fff;
}

.project-map-popup__description {
  margin: 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.project-map-popup__link {
  display: inline-block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s ease;
}

.project-map-popup:hover .project-map-popup__link {
  color: #2ea3f2;
}

.project-map-popup:hover .project-map-popup__overlay {
  opacity: 1;
}

/* Override Google Maps info window styles */
.gm-style-iw-c {
  padding: 0 !important;
  border-radius: 6px !important;
  overflow: visible !important;
  background-color: rgba(0, 0, 0, 0.7) !important;
}

.gm-style-iw-d {
  overflow: hidden !important;
}

.gm-style-iw-tc {
  display: none !important;
}

.gm-style-iw-ch {
  padding: 0 !important;
}

/* Close button positioning */
.gm-style-iw-c button.gm-ui-hover-effect {
  position: absolute !important;
  top: 8px !important;
  right: 8px !important;
  width: 28px !important;
  height: 28px !important;
  opacity: 1 !important;
  transition: background 0.2s ease !important;
  z-index: 2;
  display: flex !important;
  align-items: center;
  justify-content: center;
}

.gm-style-iw-c button.gm-ui-hover-effect span {
  background-color: #fff !important;
  margin: 0 !important;
  transition: background-color 0.2s ease !important;
}

.gm-style-iw-c button.gm-ui-hover-effect:hover span {
  background-color: #2ea3f2 !important;
}

/* =============================================
   Filter Widget Styles
   ============================================= */

.project-map-filters {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.project-map-filters__box {
  background: rgba(0, 0, 0, 0.7);
  border: none;
  border-radius: 8px;
  padding: 20px;
  flex: 1;
  min-width: 200px;
}

.project-map-filters__title {
  margin: 0 0 15px 0;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
}

/* Legend Styles */
.project-map-filters__legend-items {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.project-map-filters__legend-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.project-map-filters__legend-color {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  flex-shrink: 0;
  border: 2px solid #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.project-map-filters__legend-label {
  font-size: 14px;
  color: #fff;
}

/* Filter Dropdown Styles */
.project-map-filters__controls {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.project-map-filters__control {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  min-width: 150px;
}

.project-map-filters__control label {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
}

.project-map-filters__control select {
  padding: 10px 12px;
  font-size: 14px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  background: transparent;
  color: #fff;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.project-map-filters__control select option {
  background: #1a1a1a;
  color: #fff;
}

.project-map-filters__control select:hover {
  border-color: rgba(255, 255, 255, 0.5);
}

.project-map-filters__control select:focus {
  outline: none;
  border-color: #2ea3f2;
}
