#map {
    height: 80vh !important;
    max-height: 80vh !important;
}

.mapboxgl-ctrl-geocoder, .mapboxgl-ctrl-geocoder .suggestions,
      mapbox-event-finder .mapbox-event-finder-search-container, mapbox-event-finder .mapbox-event-finder-geolocation-button,
      .mapbox-ctrl-group,
      .mapboxgl-ctrl-group button {
          border-radius: 0 !important;
      }
      .mapbox-ctrl-group,
      .mapboxgl-ctrl-geocoder,
      .mapbox-event-finder-geolocation-button {
          border: 1px solid black;
      }
      
      .mapboxgl-popup-content {
          border: none;
          border-radius: 0 !important;
          width: 450px;
          max-width: 100%;
          height: auto !important;
          max-height: 500px !important;
          overflow-y: auto !important;
          overflow-x: visible !important;
          padding: 0 !important;
      }
      .mapboxgl-popup-content .event-content {
          padding: 0 20px 20px;
      }
      
      .mapboxgl-popup {
          max-height: 500px !important;
      }
      
      .dtl-popup {
          max-height: 450px !important;
          overflow-y: auto !important;
          padding: 0 !important;
          box-sizing: border-box !important;
          perspective: 1000px;
      }
      
      /* Flip animation styles */
      .popup-flipper {
          position: relative;
          width: 100%;
          transition: transform 0.6s, height 0.6s ease;
          transform-style: preserve-3d;
      }
      
      .popup-flipper.flipped {
          transform: rotateY(180deg);
      }
      
      .popup-front, .popup-back {
          width: 100%;
          backface-visibility: hidden;
          position: relative;
          transform: rotateX(0);
      }
      
      .popup-back {
          transform: rotateY(180deg);
          position: absolute;
          top: 0;
          left: 0;
      }
      
      /* RSVP form styles */
      .rsvp-form {
          padding: 20px;
          font-family: 'Inter', sans-serif;
      }
      
      .rsvp-form h3 {
          margin: 0 0 16px 0;
          font-size: 18px;
          font-weight: bold;
          color: #1F1F1F;
      }
      
      .form-group {
          margin-bottom: 16px;
      }
      
      .form-group label {/*
          display: block;
          margin-bottom: 4px;
          font-size: 14px;
          font-weight: 600;
          color: #1F1F1F;*/
      }
      
      
      .form-actions {
          display: flex;
          align-items: center;
          gap: 12px;
          margin-top: 20px;
      }
      
      .form-actions .btn-submit.action-btn {
          /*
          flex: 1;
          background: #FF4122;
          color: white;
          border: none;
          padding: 12px 20px;
          border-radius: 4px;
          font-weight: bold;
          font-size: 14px;
          cursor: pointer;
          font-family: 'Inter', sans-serif;
         */
          flex: 1;
          margin-top: 0;
      }
      
      .btn-back {
          background: transparent;
          /* 
          color: #FF4122;
          border: 2px solid #FF4122;
          padding: 10px 16px;
          border-radius: 4px;
         */
          font-weight: bold;
          font-size: 14px;
          cursor: pointer;
          font-family: 'Inter', sans-serif;
      }
      
      .btn-submit:hover {
         /* background: #E6391E;*/
      }
      
      .btn-back:hover {/*
          background: #FF4122;
          color: white;*/
      }
      .dtl-popup {

      }
      .dtl-popup .event-info {
          padding: 20px;
          background: #ff4122;
          color: white;
      }

        .dtl-popup h2 {
            margin: 0;
            font-weight: 800;
            font-size: 1.6rem;
            line-height: 110%;
            letter-spacing: 0.09em;
            text-transform: uppercase;

        }
        
        .dtl-popup .meta {
            display: flex;
            align-items: center;
            margin: 0 0 6px 0;
            font-weight: 600;
            font-size: .85rem;
            line-height: 130%;
            letter-spacing: 0.06em;
            text-transform: uppercase;            
        }
        .dtl-popup .meta:last-child {
            margin-bottom: 0;
        }
        
        .dtl-popup .meta .icon {
            margin-right: 8px;
            opacity: 0.8;
        }
        .dtl-popup .meta.event-description {
            margin: 12px 0 16px;
            color: var(--color-gray-500);
            font-size: 0.875rem;
            line-height: 1.4;
            text-transform: initial;
            font-weight: normal;
            font-family: 'Inter', sans-serif;
        }

        .dtl-popup .meta.location span {
            font-weight: 300;
            line-height: 1.4;
            margin-top: 10px;
        }
        .dtl-popup .meta.location span:not(:last-child) {
        }
        
        .dtl-popup .action-btn {
            display: block;
            background: #80ffb3;
            color: rgb(29 29 29);
            padding: 12px 24px;
            text-decoration: none;
            border-radius: 0;
            font-weight: bold;
            margin-top: 10px;
            transition: all 0.2s;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1rem;
            letter-spacing: 0.06em;
        }
        
        .dtl-popup .action-btn:hover {
            filter: brightness(105%);
        }

        .dtl-popup .external-site-disclaimer {
            line-height: 120%;
            display: block;
            font-size: .75rem;
            color: rgb(126 126 126);
            text-align: center;
            max-width: 65%;
            margin: 10px auto 0;
        }

        .action-btn.signup-btn,
        .action-btn.organize-btn {
            display: grid;
            background: #c9c9c94a;
            color: #383838d4;
            padding: 5px 12px;
            text-decoration: none;
            border-radius: 0;
            font-weight: bold;
            text-align: center;
            font-size: 14px;
            font-family: 'Inter', sans-serif;
            letter-spacing: 0.05em;
            flex: 1;            
        }

        /* Mobile popup overrides */
        @media (max-width: 767px) {
            .mapboxgl-popup,
            .mapbox-event-finder .mapboxgl-popup {
                position: fixed !important;
                top: 50% !important;
                left: 5% !important;
                right: 5% !important;
                bottom: auto !important;
                width: auto !important;
                height: auto !important;
                max-width: none !important;
                max-height: 85vh !important;
                z-index: 10000 !important;
                transform: translateY(-50%) !important;
                margin: 0 !important;
                padding: 0 !important;
            }

            /* Higher specificity override for the component's max-width rule */
            mapbox-event-finder .mapbox-event-finder .mapboxgl-popup {
                max-width: none !important;
            }

            .mapboxgl-popup-content {
                width: 100% !important;
                height: auto !important;
                max-width: none !important;
                max-height: none !important;
                margin: 0 !important;
                border-radius: 0 !important;
                box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3) !important;
            }

            /* Ensure popup content doesn't have fixed width on mobile */
            .mapbox-event-finder .mapboxgl-popup-content {
                width: 100% !important;
                box-sizing: border-box !important;
            }

            .mapboxgl-popup-close-button {
                position: absolute !important;
                top: 16px !important;
                right: 16px !important;
                width: 40px !important;
                height: 40px !important;
                background: rgba(0, 0, 0, 0.8) !important;
                color: white !important;
                border: none !important;
                border-radius: 50% !important;
                font-size: 24px !important;
                font-weight: bold !important;
                cursor: pointer !important;
                z-index: 10001 !important;
                display: flex !important;
                align-items: center !important;
                justify-content: center !important;
                box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
            }

            .mapboxgl-popup-close-button:hover {
                background: rgba(0, 0, 0, 0.9) !important;
                transform: scale(1.1) !important;
            }

            /* Hide the popup tip/arrow on mobile */
            .mapboxgl-popup-tip {
                display: none !important;
            }

            /* Mobile-specific popup layout */
            .dtl-popup {
                max-height: 85vh !important;
                height: auto !important;
                overflow-y: auto !important;
                padding: 0 !important;
            }

            /* External site disclaimer */
            .dtl-popup .external-site-disclaimer {
                flex-shrink: 0 !important;
                margin-bottom: 20px !important;
            }

            /* RSVP form adjustments */
            .rsvp-form {
                height: 100% !important;
                display: flex !important;
                flex-direction: column !important;
                padding: 20px !important;
            }

            .rsvp-form form {
                flex: 1 !important;
                display: flex !important;
                flex-direction: column !important;
            }

            .rsvp-form .form-actions {
                margin-top: auto !important;
                flex-shrink: 0 !important;
            }
        }

.meta.cohost {
    margin-block: -5px 15px;
    margin-inline: auto -5px;
}
.meta.cohost span {
    padding: 0 0 5px;
    font-size: .7rem;
}

@media screen and (max-width: 800px) {
    .privacy-element .input-radio-group {
        margin-block: -8px -32px !important;
    }
}

.mapboxgl-ctrl-bottom-right .mapboxgl-ctrl-group {
    background: #80ffb3;
    scale: 1.2
}
.mapboxgl-ctrl-bottom-right .mapboxgl-ctrl-group button+button {
    border-color: #1f1f1f;
}

.mapboxgl-ctrl-bottom-right .mapboxgl-ctrl-group {
    background: #80ffb3;
    scale: 1.2
}
.mapboxgl-ctrl-bottom-right .mapboxgl-ctrl-group button+button {
    border-color: #1f1f1f;
}

.mapbox-event-finder-search-container {
    background: white;
    padding: 30px 15px 15px;
    border: 1px solid black;
}
.mapboxgl-ctrl-geocoder::before {
    content: var(--geocoder-label, "Post/zip code or address");
    position: absolute;
    top: -23px;
    left: -2px;
    text-transform: uppercase;
    font-weight: bold;
    font-size: .8em;
    color: #ff4122;
}
.mapboxgl-ctrl-geocoder {
    box-shadow: none !important;
    border: 2px solid #ff4122;
}
.mapboxgl-ctrl-geocoder svg {
    display: none;
}
.mapboxgl-ctrl-geocoder .mapboxgl-ctrl-geocoder--input {
    padding-left: 15px;
}
.mapboxgl-ctrl-geocoder .mapboxgl-ctrl-geocoder--input::placeholder {
    color: white;
}
