@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

/* Global color variables (synced from JS if needed) */
/* :root {
  --venue-color: #ff6666;
  --event-color: #0e92ff;
} */

/* :root {
  --venue-color:  #FF9686;
  --event-color: #6C119C;
} */

:root {
  --venue-color:  #F77B4D;
  --event-color: #007C7C;
}



/* Disable text selection globally */
html, body, #map, .header, .button, .popup-container, .about-panel, .event-panel, .filter-buttons,
* {
  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* Allow selection in form inputs and editable fields */
input, textarea, select, .mapboxgl-ctrl-geocoder--input {
  -webkit-user-select: text;
  -ms-user-select: text;
  user-select: text;
}

/* Loading Spinner */
.loading-spinner {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease;
}

.loader {
  width: fit-content;
  font-weight: bold;
  font-family: monospace;
  font-size: 21px;
  overflow: hidden;
  white-space: nowrap;
}

.loader::before {
  content: "Contemporary Art...";
  color: #0000;
  text-shadow: 0 0 0 #000, 20ch 0 0 #fff, 40ch 0 0 #000;
  background: linear-gradient(90deg, #0000 calc(100%/3), #000 0 calc(2*100%/3), #0000 0) left/400% 100%;
  animation: l23 2s infinite;
}

@keyframes l23 {
  50% { background-position: center; text-shadow: -20ch 0 0 #000, 0 0 0 #fff, 20ch 0 0 #000; }
  100% { background-position: right; text-shadow: -40ch 0 0 #000, -20ch 0 0 #fff, 0 0 0 #000; }
}



/* About Side Panel */
.about-panel {
  position: fixed;
  top: 0;
  left: -500px;
  width: 500px;
  height: 100%;
  background: #fff;
  z-index: 10003;
  box-shadow: 2px 0 12px rgba(0,0,0,0.15);
  transition: left 0.4s ease-in-out;
  overflow-y: auto;
}

.about-panel.active {
  left: 0;
}

.about-content {
  padding: 60px 50px;
  font-family: "Montserrat", sans-serif;
}

.about-close {
  position: absolute;
  top: 30px;
  right: 30px;
  background: transparent;
  color: #000;
  border: none;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  transition: opacity 0.2s;
}

.about-close:hover {
  opacity: 0.6;
}

.about-title {
  font-family: "Montserrat", sans-serif;
  font-size: 25px;
  color: #000000;
  
  margin-bottom: 30px;
  text-transform: uppercase;
}

.about-text {
  font-size: 14px;
  line-height: 1.7;
  color: #333;
}

.about-text p {
  margin-bottom: 20px;
}

.about-contact {
  margin-top: 30px;
  font-weight: 500;
}

.about-contact a {
  color: #878B98 !important;
  text-decoration: none;
  transition: opacity 0.2s;
}

.about-contact a:hover {
  opacity: 0.7;
}

/* Optional mild sharpen/clarity for popup images */
.image-sharpen {
  /* Fallback tweaks for improved perceived sharpness */
  filter: contrast(1.08) saturate(1.06);
}

/* If an SVG filter with id `unsharp-mask` is present in DOM, use it */
.image-sharpen.svg-unsharp {
  filter: url(#unsharp-mask);
}


.mapboxgl-ctrl-attrib-inner{
color: #535353 !important;
}

/* Example for key-based styling */
.feature-detail.key-name .feature-detail-value { font-family: "Montserrat", sans-serif; color: var(--venue-color); }
.feature-detail.key-typology .feature-detail-value, #value-location { 
  font-style:italic;
    font-family: "Montserrat", sans-serif;
  font-size:12px; 
  color: #1F1F1F;
  line-height:110%; 
font-weight:300;
 }
.feature-detail.key-direction .feature-detail-value, #value-geocoded_address,#value-date, #value-hours {
  font-family: "Montserrat", sans-serif;
  margin-top:20px;
  margin-bottom:20px; 
  font-size:11px; 
  color: #1F1F1F;
  line-height:110%; 
font-weight:300;}



.feature-detail-label, #value-label_combined, #value-dateperiod, #value-enddate{
  display:none;
}

.key-link{
 
  padding:2px 10px;
  text-align:center;
  font-size:13px;
  font-family: "Montserrat", sans-serif;
  text-transform: uppercase;
  border:1px solid var(--venue-color);
  border-radius:0px;
}

/* Separate styling for venue links */
.venue-link{
  border:1px solid var(--venue-color);
}

/* Separate styling for event links */
.event-link{
  border:1px solid var(--event-color);
  color: var(--event-color) !important;
}

.event-popup-link{
  color: var(--event-color) !important;
}

.key-link:hover{
  background-color: #ffdada;
 
  cursor:pointer;
 
}

.venue-link:hover{
  background-color: #ffdada;
}

.event-link:hover{
  /* Use a light mix of the event color for hover background */
  background-color: color-mix(in srgb, var(--event-color) 18%, white);
}

#value-venue{
  font-size:13px;
  margin-bottom:0px; 
  font-style: italic;
}

#value-startdate, #value-hours,#value-date_end{
  display: none;
}

#value-ispast{
  display: none;
}

#value-direction{
  font-weight: 300;
  opacity: 1; /* ensure full opacity for address text */
  line-height: 120%;
}

 #value-location{
  margin-top: 1px;
  display: none;
 }

/* Address link styling: keep underline off and full opacity,
   but let .direction-link.* classes control the actual color */
.key-direction #value-direction a {
  text-decoration: none;
}
.key-direction #value-direction a:hover {
  opacity: 1 !important;
}

#value-name, #value-artist{
  font-family: "Montserrat", sans-serif; 
  color:#1F1F1F;
  text-transform: uppercase;
  font-size:12px;
  font-weight:500;
  line-height:100%;
  margin-bottom:5px;
}
.popup-text-section{
  font-family: "Montserrat", sans-serif !important; 
  color:#1F1F1F;
}

#value-artist{
  margin-top:20px;
  font-size:13px;
  margin-bottom:0px;
  font-weight: 600;
  /* Limit to 3 lines with ellipsis */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

#value-title{
  font-size:13px;
  line-height: 110%;
  margin-top:2px;
  margin-bottom:10px;
  /* Limit to 3 lines with ellipsis */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

#value-full_title, #value-pulsegroup, #value-link_image, #value-address{
  display:none
  
}

#value-date{
  margin-bottom:0px;
}

#value-hours{
  margin-top:5px;
}


body {
font-family: "Montserrat", sans-serif;
}


#map {
  font-family: "Montserrat", sans-serif;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
}

#createPanelDescription{
  font-family: "Montserrat", sans-serif;
  font-size:15px !important;
  margin-bottom:20px;
  color:#878B98 !important;
  line-height:1.4;
  display: none;
}

#createEventBtn {
  color: #000;
  background-color: #ffffff8a;
  font-weight: 500;
  opacity: 1;
  border: none;
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: font-weight 0.2s ease;
}

#createEventBtn:hover {
  font-weight: 600;
  opacity: 1;
}

#createEventForm{margin-top:-30px;
  background-color:#F8F8F8;
  padding:30px 10px 10px 20px;
  border-radius:10px;
  width:100% !important;
}
/* Right side event panel - Slide in from left like About panel */
/* Create Event Panel - Consistent with Feature Panel */
.event-panel {
  position: fixed;
  top: 0;
  left: -500px;
  height: 100%;
  width: 500px;
  max-width: 90vw;
  background: #fff;
  z-index: 10002;
  box-shadow: 2px 0 12px rgba(0,0,0,0.15);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  transition: left 0.4s ease-in-out;
}

/* Square-off everything inside the create event modal */
.event-panel,
.event-panel * {
  border-radius: 0 !important;
}

.event-panel.active {
  left: 0;
}
.event-panel .modal-dialog {
  margin: 0;
  height: 100%;
  width:600px;
  overflow-x: hidden;
}
.event-panel .modal-content {
  height: 100%;
  border: none;
  box-shadow: none;
  background: #fff;
  padding: 0;
}
.event-panel .modal-header {
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 1;
  border-bottom: 1px solid #eee;
  padding: 30px 24px 12px 50px;
}
.event-panel .modal-title {
  font-family: "Montserrat", sans-serif;
  font-size: 1.1em;
  color: #878B98;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.event-panel .modal-body {
  padding: 24px 40px 32px 40px;
}
.event-panel label.form-label {
  font-family: "Montserrat", sans-serif;
  font-weight: 400;
  font-size: 12px;
  text-transform: uppercase;
  margin-bottom: 3px;
    color: #242424;
}

/* Intro text block before first input */
.event-panel .mode-intro {
  font-family: "Montserrat", sans-serif;
  font-size: 13px;
  line-height: 1.3;
  color: #3a3a3a;
  background: linear-gradient(to right, #F8F8F8, #f3f3f3);
  padding: 10px 12px;
  border-radius: 12px;
  box-shadow: 1px 1px 6px 0 rgb(0 0 0 / 0.06);
}

/* Expandable sections */
.event-panel .expandable-section {
  font-family: "Montserrat", sans-serif;
  border-radius: 8px;
  overflow: hidden;
}

.event-panel .expandable-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: #f8f8f8;
  cursor: pointer;
  transition: background 0.2s;
  border-radius: 8px;
}

.event-panel .expandable-question:hover {
  background: #eeeeee;
}

.event-panel .question-text {
  font-size: 11px;
  font-weight: 600;
  color: #868A97;
  text-transform: uppercase;
}

.event-panel .expand-arrow {
  font-size: 10px;
  color: #868A97;
  transition: transform 0.3s;
}

.event-panel .expandable-section.expanded .expand-arrow {
  transform: rotate(180deg);
}

.event-panel .expandable-answer {
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.4;
  color: #868A97;
  background: #fafafa;
  border-top: 1px solid #fff;
  border-radius: 8px;
}

.event-panel .expandable-answer p {
  margin: 0;
}


/* Legend styling in the event panel (overrides Bootstrap .small/.fw-bold) */
.event-panel fieldset legend.small.fw-bold {
font-family: "Montserrat", sans-serif  !important;
  font-weight: 400 !important;
  font-size: 12px;
  text-transform: uppercase;
  margin-bottom: 3px;
  color: #242424;

}

.mailS{
  font-size:12px !important;
}

.mapboxgl-ctrl-geocoder--icon-close{
  padding-top:3px !important;
  height: 15px !important;
}

#pinModeLabel {
  color: var(--event-color) !important;
}

.event-panel.venue-mode #pinModeLabel {
  color: var(--venue-color) !important;
}

.event-panel input.form-control,
.event-panel textarea.form-control {
  font-family: "Montserrat", sans-serif;
  font-size: 13px;
  
  border-radius: 7px 0px 0px 7px;
  border: 0px solid #dde1ed;
  margin-bottom: 0px;
  background: linear-gradient(to left, #F8F8F8, #ebebeb);
  transition: color 0.3s;
}

/* Select (dropdown) styling to match inputs */
.event-panel select.form-control {
  font-family: "Montserrat", sans-serif;
  font-size: 13px;
  border-radius: 7px 0px 0px 7px;
  border: 0px solid #dde1ed;
  margin-bottom: 0px;
  background: linear-gradient(to left, #F8F8F8, #ebebeb) !important;
  transition: color 0.3s;
  padding-right: 34px; /* space for custom arrow */
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  position: relative;
  color: var(--venue-color); /* default event mode color */
  text-transform: none;
}

/* Venue mode color override for select */
.event-panel.venue-mode select.form-control {
  color: #878B98;
}

/* Custom arrow using embedded SVG */
.event-panel select.form-control {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23878B98' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 14px 14px;
}

/* Remove blue outline on focus */
.event-panel select.form-control:focus {
  outline: none;
  box-shadow: none;
}

/* Disabled placeholder option styling */
#typology option[disabled][selected] {
  color: #878B98;
}

/* Hover effect similar to buttons (subtle) */
.event-panel select.form-control:hover {
  filter: brightness(0.97);
}

#linkWrapper{
  margin-top: -10px !important;
}
.event-panel input.form-control::placeholder,
.event-panel textarea.form-control::placeholder {
  color: #878B98;
  opacity: 1;
}
/* Venue mode - blue text */
.event-panel.venue-mode input.form-control,
.event-panel.venue-mode textarea.form-control {
  color: #878B98;
}
.event-panel input[type="file"].form-control {
  padding: 6px 0;
}

/* Style the "Choose file" button */
.event-panel input[type="file"]::file-selector-button,
.event-panel input[type="file"]::-webkit-file-upload-button {
  font-family: "Montserrat", sans-serif;
  background: #ffffff;
  color: #414141;
  border: 0px solid #000000;
  border-radius: 8px;
  padding: 3px 16px;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  cursor: pointer !important;
  margin-left: 4px;
  
  transition: opacity 0.2s;
  box-shadow: 1px 1px 10px 2px rgb(0 0 0 / 0.08);
}
.event-panel input[type="file"]::file-selector-button:hover,
.event-panel input[type="file"]::-webkit-file-upload-button:hover {
  opacity: 0.8;
}

.eventImage{
cursor:pointer!important;

}
.event-panel button.btn-primary {
  background: #878B98;
  color: #fff;
  border-radius: 8px;
  font-family: "Montserrat", sans-serif;
  font-size: 13px;
  text-transform: uppercase;
  font-weight: 600;
  
  border: 0px solid #000000;
  padding: 8px 24px;
  margin-top: 10px;
  box-shadow: 1px 1px 10px 2px rgb(0 0 0 / 0.08);
  margin-bottom:20px;
}
.event-panel button.btn-primary:hover {
  background: #656b7c;
}
.event-panel .btn-close {
  position: absolute;
  top: 30px;
  right: 30px;
  background: transparent;
  color: #000;
  border: none;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  transition: opacity 0.2s;
}

.event-panel .btn-close:hover {
  opacity: 0.6;
}



/* Toggle switch for coord method */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 24px;
}
.toggle-switch input { display: none; }
.toggle-switch .slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #dedede;
  transition: 0.2s;
  border-radius: 0px;
}
.toggle-switch .slider:before {
  position: absolute;
  content: "";
  height: 20px; width: 20px;
  left: 2px; top: 2px;
  background-color: #fff;
  transition: 0.2s;
  border-radius: 12%;
}
.toggle-switch input:checked + .slider {
   background-color: #dedede;
}
.toggle-switch input:checked + .slider:before {
  transform: translateX(24px);
}
#coordLabelLeft, #coordLabelRight {
  font-family: "Montserrat", sans-serif;
  color:#9d9d9d;
  font-size: 11px;
  text-transform: uppercase;
}

/* Toggle switch for Event/Venue mode */
.type-toggle-container {
  display: flex;
  justify-content: center;
  margin-top: 40px;;
}

.type-toggle-switch {
  position: relative;
  width: 280px;
  height: 35px;
  background: #eaeaea;
  border-radius: 8px;
  display: flex;
  align-items: center;
  padding: 3px;
}

.type-toggle-switch input[type="radio"] {
  display: none;
}

.type-toggle-label {
  flex: 1;
  text-align: center;
  font-family: "Montserrat", sans-serif;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #666;
  cursor: pointer;
  z-index: 2;
  transition: color 0.3s;
  margin: 0;
  line-height: 38px;
}

.type-toggle-slider {
  position: absolute;
  top: 3px;
  left: 3px;
  width: calc(50% - 3px);
  height: calc(100% - 6px);
  background: var(--venue-color);
  border-radius: 8px;
  transition: transform 0.3s ease, background 0.3s ease;
  z-index: 1;
}

#createTypeEvent:checked ~ .type-toggle-slider {
  transform: translateX(0);

  background: var(--event-color);
}

#createTypeVenue:checked ~ .type-toggle-slider {
  transform: translateX(100%);
  background: var(--venue-color);
}

#createTypeEvent:checked ~ label[for="createTypeEvent"],
#createTypeVenue:checked ~ label[for="createTypeVenue"] {
  color: #fff;
}

/* General reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Full width gradient header */
.header {
  position: fixed;
  width: 100%;
  height: 150px;
  padding: 20px;

  background: linear-gradient(to top, #ff000000 10%, white 35%);

  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  pointer-events: none; /* let map clicks pass through */
}

/* Re-enable interaction for header children */
.header * {
  pointer-events: auto;
}

.filter-buttons {
  position: relative;
  z-index: 10003;
  pointer-events: none; /* let map clicks pass through */
  padding: 0 20px;
}

/* Prevent the second row container from blocking map clicks,
   while keeping the actual dropdowns interactive */
.filter-buttons > div {
  pointer-events: none;
}

#typology-filters,
#date-filters {
  pointer-events: auto; /* re-enable interaction for the dropdowns themselves */
}

/* Ensure primary controls remain clickable inside filter-buttons */
.filter-buttons .button,
.filter-buttons .button-container,
.filter-buttons .geocoder-container {
  pointer-events: auto;
}

/* Logo styling */
.logo {

 height:40px ;

margin-bottom:13px;
 

}


/* Button container styling */
.button-container {
  margin-top: 20px;
  display: flex;
  gap: 10px;
}

.button-container.bottom-fixed {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 7%;
  width: fit-content;
  justify-content: center;
  z-index: 10001;
  pointer-events: none;
}

.button-container.bottom-fixed * {
  pointer-events: auto;
}


/* Button styling */
.button {
  text-transform: uppercase;
  font-family: "Montserrat", sans-serif;
  padding: 4px 15px;
  margin-left: 12px;
  background-color: var(--venue-color);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s;
  font-size: 11px;
  font-weight: 400;
  transform: rotate(0deg);
  box-shadow: 1px 1px 10px 2px rgb(0 0 0 / 0.2);
  letter-spacing: 0.1em;
}

.button.active {
  background-color: var(--venue-color);
  color: #fff;
  border: solid 2px var(--venue-color);
  opacity: 1;
}
.button:not(.active) {
  background-color: #fff;
  color: var(--venue-color);
  border: solid 2px var(--venue-color);
  opacity: 0.7;
}

/* Typology filter buttons styling */
.filter-typology.is-active {
  background-color: var(--venue-color);
  color: #fff;
  border: solid 2px var(--venue-color);
  opacity: 1;
}
.filter-typology:not(.is-active) {
  background-color: #fff;
  color: var(--venue-color);
  border: solid 2px var(--venue-color);
  opacity: 0.7;
}

  /* Filter buttons inside dropdowns */
  .filter-typology,
  .filter-date {
    font-weight: 500;
    font-size: 9px !important;
border-radius: 0px;;
  }

/* Date filter buttons styling */
.filter-date.is-active {
  background-color: var(--event-color);
  color: #fff;
  border: solid 2px var(--event-color);
  opacity: 1;
}
.filter-date:not(.is-active) {
  background-color: #fff;
  color: var(--event-color);
  border: solid 2px var(--event-color);
  opacity: 0.7;
}

#date-filters{
  z-index: 999999;
 width:90px;
}

#btn-venues,#btn-events{
   width:120px;
}

#typology-filters, #date-filters {
 z-index: 999999;
   width:132px !important;
   margin-top:-3px;
   
}

#typology-filters{
  margin-left:55px;
}

#date-filters {

margin-right:0px;
  
}

/* Button hover effect */
.button:hover {
opacity:0.8;
 
}

#console {
  font-family: "Montserrat", sans-serif;
  position: fixed;
  bottom: 0px;
  height: 200px;
  background-color: #ffffff;
  left: 2%;
  width: 96%;
  padding: 30px;
  border-radius: 15px 15px 0px 0px;
  border-style: solid;
  border-width: 10px 3px 0px 3px;
}

header {
  font-family: "Montserrat", sans-serif;
}


.title {
  font-size: 35px;
}

.subtitle {
  margin-top: -5px;
  font-size: 10px;

  font-weight: 400;
text-transform: uppercase;
letter-spacing: 0.1em;
  width: fit-content;
  padding: 0px 11px 0px 11px;
}

.mapboxgl-popup-content {
  background-color: #fff;
  border-radius: 0px !important;
  border: none !important;
  padding: 0 !important;
  min-width:190px;
}

.mapboxgl-popup-anchor-top .mapboxgl-popup-tip,
.mapboxgl-popup-anchor-top-left .mapboxgl-popup-tip,
.mapboxgl-popup-anchor-top-right .mapboxgl-popup-tip {
  border-bottom-color: #080a0d00;
}
.mapboxgl-popup-anchor-bottom .mapboxgl-popup-tip,
.mapboxgl-popup-anchor-bottom-left .mapboxgl-popup-tip,
.mapboxgl-popup-anchor-bottom-right .mapboxgl-popup-tip {
  border-top-color: #080a0d00;
}
.mapboxgl-popup-anchor-left .mapboxgl-popup-tip {
  border-right-color: #080a0d00;
}
.mapboxgl-popup-anchor-right .mapboxgl-popup-tip {
  border-left-color: #080a0d00;
}



/* Geocoder inline with buttons */
.geocoder-container {
  position: relative;
  top: auto;
  left: auto;
  transform: none;
  z-index: 1;

  border-radius: 0px;
  scale: 1;
 
}

.mapboxgl-ctrl-geocoder {
  font-size: 10px;
  font-family: "Montserrat", sans-serif;
  text-transform: lowercase;
  border-radius: 0px;
  height: 25px;
padding-right:0px;
width:250px;
}

.mapboxgl-ctrl-geocoder--input {
  text-transform: uppercase;
  font-size: 11px;
 
  text-align: left;
  font-weight: 400;
  letter-spacing: 0.1em;
 margin-top:-5.5px !important;
}

.mapboxgl-ctrl-geocoder--icon{
margin-top:-5px !important;
}

.suggestions {
  text-transform: lowercase;
  font-size: 13px;
  color: #000000 !important;
  text-align: left;
}

/* Override Mapbox geocoder suggestion item colors */
.mapboxgl-ctrl-geocoder--suggestion {
  color: #000000 !important;
  text-align: left;
  padding: 0px 10px 5px 10px !important;
  border-bottom: 1px solid #eee;
  text-transform: capitalize;
 
}

.mapboxgl-ctrl-geocoder--suggestion-title {
  color: #585858 !important;
  font-weight: 500;
  font-size: 12px;
}

.mapboxgl-ctrl-geocoder--suggestion-address {
  color: #7f7f7f !important;
  font-size: 10px;
  margin-top:-3px !important;
}

/* Style the "Powered by Mapbox" label in the geocoder dropdown */
.mapboxgl-ctrl-geocoder--powered-by {
  color: #c0c0c0 !important; /* light gray */
  font-size: 10px !important;
}
.mapboxgl-ctrl-geocoder--powered-by a {
  color: #c0c0c0 !important;
}

/* Limit suggestions height within the Add Event panel and enable scrolling */
.event-panel .mapboxgl-ctrl-geocoder .suggestions {
  max-height: 190px; /* adjust as needed */
  overflow-y: auto;
}

/* Target the geocoder input and remove the focus outline */
.mapboxgl-ctrl-geocoder input[type="text"] {
  outline: none; /* Remove the dotted outline */
  box-shadow: none; /* Remove any potential box shadow outline */
}



/* Container for the entire popup */
.popup-container {
  font-family: "Montserrat", sans-serif;
  width: 190px;
 
  color: #333;
  padding: 0;
}
/* Padding only for text section, not image */
.popup-container .popup-text-section {
  padding: 17px 15px 17px 15px;
}

/* Title styling */
.popup-title {
  margin: 0;
  font-size: 1.2em;
  color: #333;
}

/* General styling for each detail paragraph */
.popup-detail {
  margin: 4px 0;
  font-size: 0.9em;
  color: #666;
}

/* Specific styling for the "About" section */
.popup-about {
  margin: 8px 0;
  font-size: 0.9em;
  color: #333;
}

/* Tags styling */
.popup-tags {
  margin: 4px 0;
  font-size: 0.9em;
  color: #666;
}

/* Link styling */
.popup-link {
  color: #1e90ff;
  text-decoration: none;
  font-size: 0.9em;
}

/* Direction link with hover tooltip */
.direction-link {
  /* Default: dark gray like other text, override global anchor color */
  color: #1F1F1F !important;
  text-decoration: none;
  cursor: pointer;
  position: relative;
  font-size:10px !important;
}

.direction-link:hover {
  opacity:1;
  /* No opacity change - will be overridden by venue/event specific colors */
}

.direction-link::before {
  content: '';
  display: inline;
  opacity: inherit;
}

/* Venue direction link */
.direction-link.venue-direction {
  color: #1F1F1F !important;
}

.direction-link.venue-direction:hover {
  color: var(--venue-color) !important;
}

.direction-link.venue-direction::after {
  content: attr(data-tooltip);
  position: fixed;
  background: var(--venue-color);
  color: white;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 0.9em;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease;
  z-index: 10001;
}

.direction-link.venue-direction:hover::after {
  opacity: 1 !important;
  color: white !important;
  background: var(--venue-color) !important;
}

/* Event direction link */
.direction-link.event-direction {
  color: #1F1F1F !important;
}

.direction-link.event-direction:hover {
  color: var(--event-color) !important;
}

.direction-link.event-direction::after {
  content: attr(data-tooltip);
  position: fixed;
  background: var(--event-color);
  color: white;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 0.9em;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease;
  z-index: 10001;
}

.direction-link.event-direction:hover::after {
  opacity: 1 !important;
  color: white !important;
  background: var(--event-color) !important;
}

/* Separate styling for venue popup links */
.venue-popup-link {
  color: var(--venue-color);
}

/* Separate styling for event popup links */
.event-popup-link {
  color: var(--event-color);
}



#event-console {
  position: fixed;
padding-right:20px;
  left: 0px;
  z-index: 99999999;
  width: 500px;
height: calc(100% - 150px);
  top: 100px;
  background-color: #fff;
  transition: left 1s ;
  left: -50%;
  border: none;
  border-radius: 0px 10px 10px 0px;
  font-size: 11px;
  font-weight: bold;
  box-shadow: 1px 1px 10px 2px rgb(0 0 0 / 0.2);
  
}

#close{
  font-family: "Montserrat", sans-serif;
   text-transform: lowercase;
  cursor:pointer;
  margin-top:25px;
  margin-left:97.5%;
 font-size: 17px;
  font-weight: bold; 
color: #000000;
}

#event{
  margin-top:25px;
 height: calc(100% - 80px);
  font-family: "Montserrat", sans-serif;
   padding:0px 60px 60px 60px;
  overflow-y:scroll;
  overflow-x:hidden;
   text-transform:capitalize;
   color: #000000;
}


.propPopA {
  font-weight: 600;
  font-size: 12px;
  line-height: 15px;

  margin-bottom: 4px;
 text-transform:uppercase;
}

.propPopB {
  margin-bottom: 20px;
  font-weight: 400;
  font-size: 15px;
  line-height: 15px;


}

#p-Artist\ Name > .propPopA { 
display:none;}

#p-Artist\ Name > .propPopB { 

  font-size: 17px;
 line-height: 28px;}

#p-Exhibition\ Title > .propPopA { 
display:none;}

#p-Exhibition\ Title > .propPopB { 
  margin-top:-20px;
font-weight: 800;
  font-size: 25px;
 line-height: 28px;}

#p-Venue > .propPopA { 
display:none;}

#p-Venue > .propPopB { 
  margin-top:5px;
  margin-bottom:10px;
  font-weight: 800;
 color: var(--venue-color);
font-size: 20px;}

#p-City > .propPopA { 
display:none;}

#p-City > .propPopB { 
  margin-top:-2px;
  font-size: 17px;
  color: var(--venue-color);
}

#p-Direction > .propPopA { 
display:none;}

#p-Direction > .propPopB { 
  margin-top:-13px;
  font-size: 13px;
  margin-bottom:30px;
}

a{
  color: var(--venue-color) !important
  
}


#p-About > .propPopB { 
text-transform:math-auto;
line-height:18px;
  font-size: 14px;}

.icon{
  height:30px;
  margin-right:20px;
}

.mapboxgl-popup-close-button{
  margin-right:10px;
  margin-top:10px;
  padding: 0px 2.5px 1.3px 2.5px;
  border-radius: 50%;
  background-color: #ffffffa4;
  border: 1.2px solid #313131;
  color: #313131;
  font-weight: bold;
  line-height: 100%;
  font-size: 15px;
  text-align: center;
  display: none;
}

.mapboxgl-popup-close-button:hover{
  background-color: #e8e8e8;
  }

/* Style the scrollbar track */
::-webkit-scrollbar {
 cursor:grab;
  width: 12px; /* Set width for vertical scrollbar */
}

/* Style the scrollbar thumb (the draggable part) */
::-webkit-scrollbar-thumb {
   cursor:grab;
  background-color: #e5e5e5; /* Gray color */
  border-radius: 9px; /* Rounded corners */
  border: 2px solid #fff; /* Optional: to add a border around the thumb */
}

/* Style when the scrollbar thumb is hovered */
::-webkit-scrollbar-thumb:hover {
  background-color: #dddddd; /* Darker gray when hovered */
}

/* Style the scrollbar track (the area the thumb slides within) */
::-webkit-scrollbar-track {
  background: #ffffff00; /* Light gray */
  border-radius: 4px; /* Rounded corners */
}



.venue-image-blur-container {
  position: relative;
  width: 100%;
  height: 140px;
  overflow: hidden;
}

.venue-image-blur-container img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  margin-bottom: 0;
  filter: blur(0px) !important;
  z-index:8 !important;
  /* You can adjust blur strength here */
}

.venue-image-blue-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: var(--venue-color) !important;
  opacity: 0;
  pointer-events: none;
  /* You can adjust the blue color and transparency here */
}

#feature-name{
 
  z-index:99 !important;
}

#coordsRow { 
  display:none;
}

/* Coordinate display text styling */
.event-panel .text-muted,
.event-panel #addressRow,
.event-panel #coordsRow {
  font-family: "Montserrat", sans-serif;
}

/* Enable pin button */
.event-panel #enablePinBtn {
  font-family: "Montserrat", sans-serif;
}

.event-panel input[type="file"].form-control {
 color: #878B98;
}
.event-panel.venue-mode input[type="file"].form-control {
  color: #878B98;
}

.coords-inner {
  background: linear-gradient(to left, #F8F8F8 0%, #ebebeb 100%);
  border-radius: 8px 0px 0px 8px;
  padding: 12px 10px;
}

#linkWrapper{
  margin-top:-20px;
}


#modeIntroText{
 display: none;
}

#createTypeToggle{
  margin-top:20px;
}

/* Price section styling */
.price-section {
  font-family: "Montserrat", sans-serif;
  background: linear-gradient(to right, #f0f0f0, #fafafa);
  padding: 12px 16px;
  border-radius: 8px;
  text-align: left;
}

.price-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  color: #878B98;
  margin-bottom: 0px;
}

.price-amount {
  font-size: 24px;
  font-weight: 700;
  color: var(--event-color);
  margin-bottom: 8px;
}

.event-panel.venue-mode .price-amount {
  color: var(--venue-color);
}

.price-currency-selector {
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.currency-label {
  font-size: 10px;
  font-weight: 400;
  text-transform: uppercase;
  color: #878B98;
}

.currency-dropdown {
  font-family: "Montserrat", sans-serif;
  font-size: 11px;
  padding: 4px 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: white;
  color: #666;
  cursor: pointer;
  text-transform: uppercase;
}

.currency-dropdown:focus {
  outline: none;
  border-color: #0e92ff;
}

.event-panel.venue-mode .currency-dropdown:focus {
  border-color: #ff6666;
}

.price-visibility-note {
  font-size: 11px;
  font-style: italic;
  color: #8b8b8b;
  line-height: 1.4;
  margin-top: 8px;
}

/* ========================================
   FLATPICKR CALENDAR FONT STYLING
   ======================================== */

.flatpickr-calendar {
  font-family: "Montserrat", sans-serif !important;
}

/* Compact sizing to make calendar slightly smaller without transform */
.flatpickr-months .flatpickr-month {
  height: 28px !important;
}

.flatpickr-current-month .cur-month,
.flatpickr-current-month .numInputWrapper input {
  font-size: 12px !important;
}

/* ========================================
   PAYMENT OVERLAY (BLUR)
   ======================================== */
.payment-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backdrop-filter: blur(6px);
  background: rgba(255, 255, 255, 0.15);
  z-index: 9999; /* above app */
}

.flatpickr-weekday {
  font-size: 11px !important;
}

.flatpickr-day {
  max-width: 32px !important;
  height: 32px !important;
  line-height: 32px !important;
  font-size: 12px !important;
}

.flatpickr-months,
.flatpickr-weekdays,
.flatpickr-days,
.flatpickr-day,
.flatpickr-current-month,
.flatpickr-monthDropdown-months,
.numInputWrapper,
.flatpickr-weekday {
  font-family: "Montserrat", sans-serif !important;
}

/* ========================================
   DESKTOP INLINE LAYOUT (GEOCODER + BUTTONS)
   ======================================== */

@media (min-width: 769px) {
  /* Make geocoder and buttons appear on the same line */
  .filter-buttons > div:nth-child(1) {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 12px !important;
  }

  .geocoder-container {
    flex-shrink: 0;
  }

  /* Keep second row (filter dropdowns) separate */
  .filter-buttons > div:nth-child(2) {
    display: flex !important;
    gap: 12px !important;
  }
}

/* ========================================
   MOBILE RESPONSIVE STYLES
   ======================================== */

@media (max-width: 768px) {
  /* Stack geocoder above buttons on mobile */
  .filter-row {
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
  }

  .filter-row #geocoder-container {
    width: 100% !important;
    display: flex;
    justify-content: center;
  }

  /* Keep the four buttons on a single line on mobile */
  .filter-row-buttons {
    width: 100%;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    justify-content: center !important;
    gap: 8px !important;
  }

  .filter-row-buttons .button {
    margin-top: 8px;
    white-space: nowrap;
  }
  /* Header adjustments */
  .header {
    height: auto;
    padding: 15px 0px !important;
    background: linear-gradient(to top, #ff000000 5%, white 25%);
  }

  .logo {
    height: 40px;
    margin-bottom: 8px;
    margin-top: 30px;
  }

  .subtitle {
    font-size: 9px;
    letter-spacing: 0.08em;
  }

  /* Filter buttons container */
  .filter-buttons {
    margin-top: 12px !important;
    gap: 8px !important;
    padding-left: 10% !important;
    padding-right: 10% !important;
    width: 100% !important;
  }

  .filter-buttons > div:first-child {
    flex-wrap: wrap;
    gap: 8px !important;
  }

  /* Geocoder adjustments */
  .geocoder-container {
    width: 60%;
    order: -1;
  }

  .mapboxgl-ctrl-geocoder {
    width: 100% !important;
    font-size: 9px;
    height: 30px; /* increased touch target height */
  }

  .mapboxgl-ctrl-geocoder--input {
    font-size: 12px;
    height: 30px; /* match container height */
    line-height: 40px; /* vertically center text */
    padding-top: 0 !important;
    padding-bottom: 0 !important;
     margin-top:0 !important;
  }

  /* Vertically center the search icon within taller input */
  .mapboxgl-ctrl-geocoder--icon {
    top: 50% !important;
    transform: translateY(-50%);
    margin-top: 0 !important;
  }

  /* Buttons responsive sizing */
  .button {
    margin-top:20px;
    padding: 6px 12px;
    font-size: 10px;
    margin-left: 0;
    height: 30px;
  }

  #btn-venues,
  #btn-events {
    width: auto;
    flex: 1;
  }

  #btn-filter,
  #btn-about {
    width: auto;
    flex: 1;
  }

  /* Bottom fixed button */
  .button-container.bottom-fixed {
    bottom: 5%;
    padding: 0 10px;
  }

  #createEventBtn {
    font-size: 10px;
    padding: 6px 15px;
  }

  /* Filter dropdowns */
  #typology-filters,
  #date-filters {
    width: 50% !important;
    margin-left: -6% !important;
    margin-right: 0 !important;
    gap: 4px !important;
    pointer-events: none; /* let map interactions pass through the container */
  }



  #typology-filters {
    margin-left: -5% !important;
  }

  /* Filter buttons inside dropdowns */
  .filter-typology,
  .filter-date {
    width: 100px !important;
    height: auto !important;
    padding: 6px 8px !important;
    font-size: 9px !important;
    margin: 0 !important;
    margin-left: 8px !important;
    pointer-events: auto; /* re-enable clicks on the actual buttons */
  }

  .filter-date {
   
    margin-left: -50px !important;
  }

  /* EVENT PANEL - BOTTOM DRAWER STYLE */
  .event-panel {
    position: absolute;
    top: 75vh;
    bottom: auto;
    left: 0;
    right: 0;
    height: auto;
    min-height: 25vh;
    width: 100%;
    max-width: 100vw;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.2);
    transform: translateY(100%);
    transition: transform 0.4s ease-in-out;
    overflow-y: visible;
  }

  .event-panel.active {
    transform: translateY(0);
    left: 0;
  }

  .event-panel .modal-dialog {
    width: 100%;
    height: auto;
  }

  .event-panel .modal-content {
    height: auto;
    display: block;
  }

  .event-panel .modal-header {
    padding: 20px 20px 10px 20px;
  }

  .event-panel .modal-title {
    font-size: 0.95em;
  }

  .event-panel .btn-close {
    top: 20px;
    right: 20px;
    font-size: 24px;
  }

  .event-panel .modal-body {
    padding: 20px 20px 40px 20px;
    overflow-y: visible;
  }

  .event-panel label.form-label {
    font-size: 11px;
  }

  .event-panel input.form-control,
  .event-panel textarea.form-control,
  .event-panel select.form-control {
    font-size: 12px;
  }

  .event-panel .mode-intro {
    font-size: 12px;
    padding: 8px 10px;
  }

  .event-panel .expandable-question {
    padding: 6px 10px;
  }

  .event-panel .question-text {
    font-size: 10px;
  }

  .event-panel .expandable-answer {
    font-size: 12px;
    padding: 8px 10px;
  }

  .event-panel button.btn-primary {
    font-size: 12px;
    padding: 6px 20px;
    width: 100px;
    height: 36px;
  }

  /* ABOUT PANEL - BOTTOM DRAWER STYLE */
  .about-panel {
    position: absolute;
    top: 25vh;
    bottom: auto;
    left: 0;
    right: 0;
    height: auto;
    min-height: 75vh;
    width: 100%;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.2);
    transform: translateY(100%);
    transition: transform 0.4s ease-in-out;
    overflow-y: visible;
  }

  .about-panel.active {
    transform: translateY(0);
    left: 0;
  }

  .about-content {
    padding: 50px 30px 40px 30px;
    height: auto;
  }

  .about-close {
    top: 20px;
    right: 20px;
    font-size: 24px;
  }

  .about-title {
    font-size: 22px;
    margin-bottom: 20px;
  }

  .about-text {
    font-size: 14px;
    line-height: 1.6;
  }

  .about-text p {
    margin-bottom: 15px;
  }

  /* Map popup adjustments */
  .mapboxgl-popup-content {
    min-width: 190px;
  }

  .popup-container {
    width: 190px;
  }

  .popup-container .popup-text-section {
    padding: 15px;
  }

  #value-name,
  #value-artist {
    font-size: 13px;
  }

  #value-artist {
    font-size: 15px;
  }

  #value-venue {
    font-size: 14px;
  
  }


  .key-link {
    font-size: 11px;
    padding: 2px 8px;
  }
}

@media (max-width: 480px) {
  /* Extra small screens */
  .header {
    padding: 10px 8px;
  }

  .logo {
    height: 43px;
  }

  .subtitle {
    margin-top:0px;
    font-size: 10px;
  }

  .button {
    font-size: 9px;
    padding: 2px 8px;
  }

  #createEventBtn {
    font-size: 9px;
    padding: 5px 12px;
  }

  .event-panel .modal-title {
    font-size: 0.85em;
  }

  .event-panel .modal-body {
    padding: 15px;
  }

  .about-content {
    padding: 40px 20px;
  }

  .about-title {
    font-size: 20px;
  }

  .about-text {
    font-size: 13px;
  }

  .mapboxgl-ctrl-geocoder--icon-close{
    padding-top:3px !important;
  margin-top:6px !important;
  height: 13px;
}


  
}

  .feature-detail-value{
  line-height:110%  !important;
  }


  #btn-events,
  #btn-venues,
  #btn-filter,
  #btn-about {
    border: none;
    border-radius: 0;
    border-bottom: 5px solid transparent;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    color: #000;
    font-weight: 500;
    opacity: 1;
    transition: font-weight 0.2s ease, border-color 0.2s ease;
  }

  #btn-events:hover,
  #btn-venues:hover,
  #btn-filter:hover,
  #btn-about:hover {
    font-weight: 600;
    opacity: 1;
    background: transparent;
  }

  #btn-events.active {
    border: none;
    border-bottom: 5px solid var(--event-color);
  }

  #btn-venues.active {
    border: none;
    border-bottom: 5px solid var(--venue-color);
  }

  #btn-filter.active {
    border: none;
    border-bottom: 5px solid #b9b9b9 !important;
    border-top: none !important;
    border-left: none !important;
    border-right: none !important;
  }
  
