body {
  background-color: white;
  margin: 0; padding: 0;

}

/* Hide navigation when embedded */
body.embedded .navbar-places {
  display: none !important;
}

/* Adjust map height when embedded */
body.embedded #mapS {
  height: 100vh !important;
}

/* =====================================================
   COMPREHENSIVE EMBEDDED MODE NAVIGATION HIDING
   ===================================================== */

/* Hide Places logo and brand elements - but NOT the new dropdown elements */
body.embedded .navbar-brand {
  display: none !important;
}

/* Hide specific desktop navigation items by ID, keeping dropdown visible */
body.embedded #navPlacesDesktop,
body.embedded #navEventsDesktop,
body.embedded #navCommunityDesktop,
body.embedded #navProfileDesktop,
body.embedded .DesktopNavItems .vr {
  display: none !important;
}

/* Hide mobile bottom navigation */
body.embedded #mobileNavBottom {
  display: none !important;
}

/* Hide all mobile nav items first */
body.embedded .mobileNavItems {
  display: none !important;
}

/* Show only the mobile dropdown container - target the second one which has the places dropdown */
body.embedded .mobileNavItems:nth-child(2) {
  display: block !important;
}

/* Hide signin buttons specifically in embedded mode */
body.embedded #signInClickTaga,
body.embedded #signInClickTagMobileTop,
body.embedded #signInClickTagMobile {
  display: none !important;
}

/* Hide the entire desktop signin button container in embedded mode */
body.embedded .DesktopNavItems .btn[style*="background-color: #00B9FF"] {
  display: none !important;
}

/* Ensure mobile places dropdown is always visible in embedded mode */
body.embedded #dropdownMenuButtonMobile {
  display: flex !important;
}

/* Ensure full viewport coverage in embedded mode */
body.embedded #mapS,
body.embedded #mapS-mobile {
  height: 100vh !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Make navbar invisible in embedded mode while keeping dropdown functionality */
body.embedded #mapnavbar {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
  height: auto !important;
  overflow: visible !important;
}

/* Position dropdown buttons to appear floating in embedded mode */
body.embedded #dropdownMenuButtonMobile,
body.embedded #dropdownMenuButtonDesktop {
  position: absolute !important;
  top: 10px !important;
  right: 10px !important;
  z-index: 1000 !important;
}

/* MapLibre controls positioning - removed embedded-specific positioning to keep original location */

/* Remove top margin from desktop sidebar content when embedded */
body.embedded .tab-content {
  margin-top: 0px !important;
}

/* Hide watermark in embedded mode */
body.embedded .map-watermark {
  display: none !important;
}

/* Hide FAB buttons (floating action buttons) in embedded mode */
body.embedded .fab-container,
body.embedded #addPlaceIcone,
body.embedded #floatingMapButton,
body.embedded #div_addPlaceIcone {
  display: none !important;
}

/* Fix dropdown visibility in embedded mode */
body.embedded {
  overflow: visible !important;
}

body.embedded html {
  overflow: visible !important;
}

html {
  overflow: hidden;
  overscroll-behavior: none;
}




::-webkit-scrollbar {
  -webkit-appearance: none;
  width: 8px;
  height: 5px;
}

::-webkit-scrollbar-thumb {
  border-radius: 2px;
  background-color: rgba(197, 189, 189, 0.815);
  box-shadow: 0 0 1px rgba(215, 208, 208, 0.356);
}

#touchUpDown:hover {
  cursor: row-resize;
}

#touchUpDown:active {
  cursor: grabbing;
}


 #mapS {
  height:100vh;
  width: 100%;

  position: relative;
  top: 0;
  bottom: 0;

}




.mapSHeightfull {

  height: 100vh !important;
}

/* .deskTopNavBarHeight {

  height: 5vh;

} */



/* easy btn */


#easyBtnFilter,
#easyBtnSocial {

  width: 60px;
  height: 60px;
  border-radius: 50%;
  font-size: 30px;
  margin: 0 auto;
  padding: 0;
  line-height: 60px;
  text-align: center;

}



#easyBtnFilter {
  margin-bottom: 30px;
  margin-left: 30px;
}

#easyBtnSocial {

  margin-left: 30px;
}




/*
#easyBtnFilter:hover, #easyBtnSocial:hover, #easyBtnAddPlace:hover {
    
    background-color: #00B9FF;
    color: white;
 }

.leaflet-control{
    border: none !important;
}

.selectedBtn{

    background-color: #00B9FF !important;
    color: white !important; 
 
}
*/






/*
.menu-container {
    bottom: 0;
    right: 0;
    position: fixed;
  }
  
 
  .menu-toggle-btn {
    height: 56px;
    width: 56px;
    bottom: 0;
    right: 0;
    position: absolute;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #FF008B;
    box-shadow: 3px 3px 2px 1px rgb(0 0 0 / 20%);
    z-index: 2;
    cursor: pointer;
  }
  
  .menu-toggle-btn i {
    font-size: 2rem;
    color: #eeeeee;
    transition: 0.5s;
  }
  
  .menu-toggle-btn.effect i {
    transform: rotate(135deg);
  }


  .image-circle {
    border-radius: 50%;
    box-shadow: #FF008B;
  } 

*/





/* ###### add place css ####### */

.progresses {
  display: flex;
  align-items: center;
}

.line {

  width: 120px;
  height: 2px;
  background: #00B9FF;
}


.steps {

  display: flex;

  align-items: center;
  justify-content: center;


}

.btnActiveStep {

  transform: scale(1.3);
  background-color: #00B9FF !important;
}

.bg-info-add-place {
  background-color: #00B9FF !important;
}

.btn-primary-add-place {

  --bs-btn-color: #fff;
  --bs-btn-bg: #00B9FF;
  --bs-btn-border-color: #00B9FF;
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #00B9FF;
  --bs-btn-hover-border-color: #00B9FF;
  --bs-btn-focus-shadow-rgb: 49, 132, 253;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: #00B9FF;
  --bs-btn-active-border-color: #00B9FF;
  --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
  --bs-btn-disabled-color: #fff;
  --bs-btn-disabled-bg: #00bbff9a;
  --bs-btn-disabled-border-color: #00bbff9a;

  background-color: #00B9FF !important;
  color: white;
}

/* add place css end */



.gutter.gutter-vertical {
  /*  background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAFAQMAAABo7865AAAABlBMVEVHcEzMzMzyAv2sAAAAAXRSTlMAQObYZgAAABBJREFUeF5jOAMEEAIEEFwAn3kMwcB6I2AAAAAASUVORK5CYII=');*/
  cursor: default;
  width: 90vw;
  height: 10px !important;
  position: relative;
  /* padding: 0 !important;
  margin: 0 !important;*/



}


.gutter {
  background-color: transparent;
  background-repeat: no-repeat;
  background-position: 100%;
  position: relative;
  z-index: 999;
  /*border-radius: 15px 15px 0 0;*/
  margin-bottom: -30px;
}


.split {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

.split {
  overflow-y: auto;
  overflow-x: hidden;
}

.card_active:hover {
  cursor: pointer;
  transform: translateY(-2px) scale(1.02);
  transition: all 0.25s ease-in-out;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border-radius: 8px;
}

.card_active_place:hover {
  cursor: pointer;
  transform: translateY(-2px) scale(1.02);
  transition: all 0.25s ease-in-out;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border-radius: 8px;
}

/* Enhanced hover for event cards */
.active_event:hover {
  cursor: pointer;
  transform: translateY(-2px) scale(1.02);
  transition: all 0.25s ease-in-out;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border-radius: 8px;
}

/* Enhanced hover for user list cards */
.card-user-list {
  cursor: pointer;
  transition: all 0.25s ease-in-out;
  position: relative;
}

.card-user-list:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border-radius: 8px;
}

/* Enhanced hover for analytics cards */
.card_active_analytics:hover {
  cursor: pointer;
  transform: translateY(-2px) scale(1.02);
  transition: all 0.25s ease-in-out;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border-radius: 8px;
}

/* Add base transition for smooth effects */
.card_active,
.card_active_place,
.active_event,
.card-user-list,
.card_active_analytics {
  transition: all 0.25s ease-in-out;
}



/* Selected card visual feedback */
.selected-card {
  background-color: rgba(0, 185, 255, 0.1) !important;
  border-left: 4px solid #00B9FF !important;
  transform: translateX(2px);
  transition: all 0.2s ease-in-out;
}

.card_active_place {
  transition: all 0.2s ease-in-out;
}

.follow {
  /* empty class */
}

.notfollow {
  /* empty class */
}

/* Old button hover rule - replaced by FAB styles */

.hoverPointer :hover {
  cursor: pointer;
}

.card-user-list {
  border: none !important;
  --bs-card-spacer-y: 1rem;
  --bs-card-spacer-x: 1rem;
  --bs-card-title-spacer-y: 0rem;
  --bs-card-title-color: ;
  --bs-card-subtitle-color: ;
  --bs-card-border-width: var(--bs-border-width);
  --bs-card-border-color: var(--bs-border-color-translucent);
  --bs-card-border-radius: var(--bs-border-radius);
  --bs-card-box-shadow: ;
  --bs-card-inner-border-radius: calc(var(--bs-border-radius) - (var(--bs-border-width)));
  --bs-card-cap-padding-y: 0.5rem;
  --bs-card-cap-padding-x: 1rem;
  --bs-card-cap-bg: rgba(var(--bs-body-color-rgb), 0.03);
  --bs-card-cap-color: ;
  --bs-card-height: ;
  --bs-card-color: ;
  --bs-card-bg: var(--bs-body-bg);
  --bs-card-img-overlay-padding: 1rem;
  --bs-card-group-margin: 0.75rem;
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: var(--bs-card-height);
  color: var(--bs-body-color);
  word-wrap: break-word;
  background-color: transparent;
  background-clip: border-box;
  border: none;
}

.navbar-places {
  --bs-navbar-padding-y: 0;
  --bs-navbar-color: rgba(var(--bs-emphasis-color-rgb), 0.65);
  --bs-navbar-hover-color: rgba(var(--bs-emphasis-color-rgb), 0.8);
  --bs-navbar-disabled-color: rgba(var(--bs-emphasis-color-rgb), 0.3);
  --bs-navbar-active-color: rgba(var(--bs-emphasis-color-rgb), 1);
  --bs-navbar-brand-padding-y: 0.3125rem;
  --bs-navbar-brand-margin-end: 1rem;
  --bs-navbar-brand-font-size: 1.25rem;
  --bs-navbar-brand-color: rgba(var(--bs-emphasis-color-rgb), 1);
  --bs-navbar-brand-hover-color: rgba(var(--bs-emphasis-color-rgb), 1);
  --bs-navbar-nav-link-padding-x: 0.5rem;
  --bs-navbar-toggler-padding-y: 0.25rem;
  --bs-navbar-toggler-padding-x: 0.75rem;
  --bs-navbar-toggler-font-size: 1.25rem;
  --bs-navbar-toggler-icon-bg: url(data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2833, 37, 41, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e);
  --bs-navbar-toggler-border-color: rgba(var(--bs-emphasis-color-rgb), 0.15);
  --bs-navbar-toggler-border-radius: var(--bs-border-radius);
  --bs-navbar-toggler-focus-width: 0.25rem;
  --bs-navbar-toggler-transition: box-shadow 0.15s ease-in-out;
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: var(--bs-navbar-padding-y) var(--bs-navbar-padding-x);
}


.leaflet-container {
  background: #F8F8F8 !important;
  outline: 0;
}

.svgCicleStyle :hover {
  cursor: pointer;
}



.likeBtn {
  background-color: #00B9FF !important;
  color: white !important;
}



#eventRangeSelecter .active3 {

  color: #fff !important;
  background-color: #00B9FF  !important;

}


/* Community filter buttons - Independent toggle styling to match date range selector */
#div_following_select_btn .btn.followingSelectedBtn,
#div_following_select_btn button.btn.followingSelectedBtn,
#div_following_select_btn .btn.followingSelectedBtn.btn-light,
#div_following_select_btn button.btn.followingSelectedBtn.btn-light {
  color: #fff !important;
  background-color: #00B9FF !important;
  border-color: #00B9FF !important;
}

#div_following_select_btn .btn.followingSelectedBtn:hover,
#div_following_select_btn .btn.followingSelectedBtn:focus,
#div_following_select_btn .btn.followingSelectedBtn:active,
#div_following_select_btn button.btn.followingSelectedBtn:hover,
#div_following_select_btn button.btn.followingSelectedBtn:focus,
#div_following_select_btn button.btn.followingSelectedBtn:active {
  color: #fff !important;
  background-color: #00B9FF !important;
  border-color: #00B9FF !important;
}

/* Ensure all child elements in selected filter buttons are white */
#div_following_select_btn .btn.followingSelectedBtn span,
#div_following_select_btn .btn.followingSelectedBtn span.text-muted,
#div_following_select_btn .btn.followingSelectedBtn .followingSelectedBtn,
#div_following_select_btn button.btn.followingSelectedBtn span,
#div_following_select_btn button.btn.followingSelectedBtn span.text-muted,
#div_following_select_btn button.btn.followingSelectedBtn .followingSelectedBtn {
  color: #fff !important;
}

/* psudo marker*/
.extraMarkerPlace {}

.psudocirclemarkerLable {}

#mapTabDiv .leaflet-tooltip {

  background-color: #caeaf5;
}



/* #mapnavbar {
  --bs-navbar-padding-y: 0 !important;
  background-color: white !important;
  top: 0;
  width: 100vw !important;
  z-index: 999 !important;
}


@media (max-width: 767.98px) {
  #mapnavbar {
    top: auto !important;
    bottom: 0 !important;
  }
} */

/*
.mapnavbarStyleMobile {

  position: absolute !important;
}

.mapnavbarStyleDesktop {

  position: relative !important;
}
*/
.mapnavbarStyleDesktop {

 height: 58px !important;
}

/* Make desktop navbar transparent */
@media (min-width: 768px) {
  .mapnavbarStyleDesktop {
    background-color: transparent !important;
    border: none !important;
  }
  
  .mapnavbarStyleDesktop.bg-body-tertiary {
    background-color: transparent !important;
  }
}

/* Make mobile navbar transparent */
@media (max-width: 767.98px) {
  #mapnavbar {
    background-color: transparent !important;
    border: none !important;
  }
  
  #mapnavbar.bg-body-tertiary {
    background-color: transparent !important;
  }
  
  /* Override any Bootstrap bg-body-tertiary class that might still be applied */
  .navbar.bg-body-tertiary {
    background-color: transparent !important;
  }
}

.btnActiveTagMenu {

  color: #fff !important;
  background-color: #00B9FF !important;
}


.cupertino-pane-wrapper .pane {

  background: #00b9ff !important;
  padding-top: 0px !important;
  border-radius: 0px !important;

}

.cupertino-pane-wrapper .draggable.over .move {
  background: var(--cupertino-pane-move-background, rgba(114, 114, 114, 0.5)) !important;
}


/* tag list css */

#placeTagMainList,.navTabStyle  .nav-link.active {
  font-weight: bold;
  color: var(--bs-secondary-color) !important;
  border-bottom-color: #00B9FF;
  border-width: 3px;
}




#placeTagMainList .nav-link {

  color: var(--bs-secondary-color) !important;

}

/* #### end  */


.hoverEffect.btn:hover {
  background-color: transparent;
}

.hoverPointer :hover {
  cursor: pointer !important;
}

/* hide the defukt arrow to the tab */
#dropdownMenuButtonDesktop .dropdown-toggle::after, 
#dropdownMenuButtonMobile .dropdown-toggle::after,
#dropdownMenuButtonPlace   .dropdown-toggle::after {
  content: '';
  display: none;
}


/* hide the defukt arrow to the tab */
#dropdownMenuButtonExternalProfile .dropdown-toggle::after, 
#dropdownMenuButtonExternalProfile .dropdown-toggle::after,
#dropdownMenuButtonExternalProfile   .dropdown-toggle::after {
  content: '';
  display: none;
}



.nav-link{

  padding: 0;
}


.truncate-2-lines {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;  
  overflow: hidden;
}

.truncate-3-lines {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;  
  overflow: hidden;
}

.truncate-1-lines {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;  
  overflow: hidden;
}

.event-happening-now {
  color: #dc3545 !important;
  font-weight: bold;
}

.event-today {
  color: #dc3545 !important;
}

.event-time {
  color: #666666 !important;
}

#more_dropdown {
  padding: 0.375rem 0.75rem 0.375rem 0.75rem;
  background-color: #f8f9fa; 
}

#more_dropdown:hover {
  background-color: #d3d4d5;
}


#more_dropdown_externalProfile {
  padding: 0.375rem 0.75rem 0.375rem 0.75rem;
  background-color: #f8f9fa; 
}

#more_dropdown_externalProfile:hover {
  background-color: #d3d4d5;
}







/* #collection_button {
  background-color: red !important; 
} */

.btn-light2 {
  --bs-btn-color: #000;
  --bs-btn-bg: #ffffff;
  --bs-btn-border-color: #CFD9DE;
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #00B9FF;
  --bs-btn-hover-border-color: #CFD9DE;
}

.btnActiveTagMenu {
  color: #fff !important;
  background-color: #00B9FF !important;
  border-color: #CFD9DE !important;
}

/* Collection Cards Styles */
#coutomTagholder {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

#coutomTagholderExternalUser {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

.collection-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  background: #ffffff;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: 'Segoe UI', Arial, Helvetica, sans-serif;
  padding: 8px;
  min-height: 64px;
}

.collection-card:hover {
  background-color: #f8f9fa;
  border-color: #00B9FF;
  box-shadow: 0 2px 8px rgba(0, 185, 255, 0.1);
}

.collection-card.btnActiveTagMenu {
  background-color: #00B9FF !important;
  border-color: #00B9FF !important;
  color: white !important;
}

.collection-card.btnActiveTagMenu .collection-card-title,
.collection-card.btnActiveTagMenu .collection-card-count {
  color: white !important;
}

.collection-card-image {
  width: 48px;
  height: 48px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f8f9fa;
  margin-right: 12px;
}

.collection-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.collection-card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.collection-card-title {
  font-weight: 600;
  font-size: 16px;
  color: #000;
  margin-bottom: 2px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.collection-card-count {
  font-size: 12px;
  color: #666;
  line-height: 1.2;
}

/* Mobile Styles */
@media (max-width: 768px) {
  #coutomTagholder,
  #coutomTagholderExternalUser {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
  }
  
  .collection-card {
    padding: 8px;
    min-height: 68px;
  }
  
  .collection-card-image {
    width: 48px;
    height: 48px;
    margin-right: 10px;
  }
  
  .collection-card-title {
    font-size: 17px;
    margin-bottom: 3px;
  }
  
  .collection-card-count {
    font-size: 13px;
  }
}



#panelTab .dropdown-item.active, #panelTab .dropdown-item:active {

   background-color: transparent !important;
}


/* screen control attribute */
@media (max-width: 768px) {
  .brand-logo{
      height: 33px !important;
      max-height: 33px !important;
  }

  #navbar_loader {
    height: 33px !important;
    width: 33px !important;
  }

  #div_addPlaceIcone{
    bottom: 80px !important;
    right: 20px !important; 
   
  }

  .mobile-nav-item.active {
    background: none !important;
    background-color: transparent !important;
    box-shadow: none !important;
  }
}

@media (max-width: 380px) {
  .brand-logo{
    height: 33px !important;
    max-height: 33px !important;
  }

#div_addPlaceIcone{
  bottom:80px !important;
  right:20px !important; 
}

}

@media (max-width: 340px) {
  .brand-logo{
    height: 33px !important;
    max-height: 33px !important;
  }

  #div_addPlaceIcone{
    bottom:80px !important;
    right:20px !important; 
  }
}


/* Place Image Carousel Styles */
#placeImageCarousel {
  position: relative;
}

#placeImageCarousel .carousel-item img {
  height: 250px;
  width: 100%;
  object-fit: cover;
}

#placeImageCarousel:hover #carouselPrevBtn,
#placeImageCarousel:hover #carouselNextBtn {
  opacity: 0.8 !important;
}

#placeImageCarousel #carouselPrevBtn:hover,
#placeImageCarousel #carouselNextBtn:hover {
  opacity: 1 !important;
}

/* Custom carousel indicators (dots) */
#carouselIndicators .carousel-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin: 0 3px;
  border: none;
  background-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

#carouselIndicators .carousel-indicator.active {
  background-color: white;
}

/* Hide arrows for single image */
.single-image #carouselPrevBtn,
.single-image #carouselNextBtn {
  display: none !important;
}

/* Improve carousel controls */
#placeImageCarousel .carousel-control-prev,
#placeImageCarousel .carousel-control-next {
  width: 32px;
  height: 32px;
  top: 50%;
  transform: translateY(-50%);
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

#placeImageCarousel .carousel-control-prev {
  left: 12px;
}

#placeImageCarousel .carousel-control-next {
  right: 12px;
}

#placeImageCarousel .carousel-control-prev-icon,
#placeImageCarousel .carousel-control-next-icon {
  width: 16px;
  height: 16px;
  background-size: 16px 16px;
}

/* Custom icon colors for better visibility */
#placeImageCarousel .carousel-control-prev-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23000'%3e%3cpath d='m3.86 8.753 5.482 4.796c.646.566 1.658.106 1.658-.753V3.204a1 1 0 0 0-1.659-.753l-5.48 4.796a1 1 0 0 0 0 1.506z'/%3e%3c/svg%3e");
}

#placeImageCarousel .carousel-control-next-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23000'%3e%3cpath d='m12.14 8.753-5.482 4.796c-.646.566-1.658.106-1.658-.753V3.204a1 1 0 0 1 1.659-.753l5.48 4.796a1 1 0 0 1 0 1.506z'/%3e%3c/svg%3e");
}

/* coutom date place holder */
.flatpickr-mobile:before {
  content: attr(placeholder);
  color: gray;
}

.flatpickr-mobile:focus[value]:not([value=""]):before {
  display: none;
}

input[type="hidden"][value]:not([value=""]) + .flatpickr-mobile:before {
  display: none;
}


/* scroll management*/
.disable-scroll {
  overflow: hidden !important;
}

.enable-scroll {
  overflow: auto !important;
}


#dd_eventFilter .dropdown-toggle::after {
    display: none !important;
}

/* Category dropdown improvements */
#dd_eventFilter .dropdown-menu {
  min-width: 250px;
}

#dd_eventFilter .dropdown-menu .form-check {
  margin-bottom: 0.25rem !important;
  margin-top: 0.25rem !important;
}

#dd_eventFilter .dropdown-menu .form-check-label {
  font-size: 0.8rem !important; /* 2px smaller than default */
  line-height: 1.2 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  max-width: 200px !important;
  display: inline-block !important;
}

#dd_eventFilter .dropdown-menu .form-check {
  padding-left: 1rem !important;
  padding-right: 1rem !important;
}

/* Ensure proper spacing for category items */
#dd_eventFilter .dropdown-menu li {
  padding: 0 !important;
}

/* Category filter button active styling to match date range picker */
#btn_dd_eventFilter.active {
  color: #fff !important;
  background-color: #00B9FF !important;
  border-color: #00B9FF !important;
}

#btn_dd_eventFilter.active:hover,
#btn_dd_eventFilter.active:focus,
#btn_dd_eventFilter.active:active {
  color: #fff !important;
  background-color: #00B9FF !important;
  border-color: #00B9FF !important;
}

/* Ensure all child elements in active category button are white */
#btn_dd_eventFilter.active span,
#btn_dd_eventFilter.active i {
  color: #fff !important;
}

/* Event filter buttons styling */
#eventRangeSelecter .btn {
  font-size: 0.875rem !important;
  padding: 0.375rem 0.75rem !important;
  font-weight: 500 !important;
  white-space: nowrap !important;
  min-width: fit-content !important;
}

#eventMapButton {
  flex-shrink: 0;
}

/* Panel filter sections - positioning handled by JavaScript based on device detection */
.panel-filter-section {
  /* Base styles - positioning will be set by JavaScript */
  transition: position 0.2s ease;
}

/* Force mobile filter behavior with high specificity */
#eventRangeSelecter.panel-filter-section[style*="position: relative"] {
  position: relative !important;
  z-index: 1 !important;
}

#divFilterInfo .panel-filter-section[style*="position: relative"] {
  position: relative !important; 
  z-index: 1 !important;
}

/* Force desktop filter behavior with high specificity */
#eventRangeSelecter.panel-filter-section[style*="position: sticky"] {
  position: sticky !important;
  top: 0 !important;
  z-index: 10 !important;
  background-color: #fff !important;
}

#divFilterInfo .panel-filter-section[style*="position: sticky"] {
  position: sticky !important;
  top: 0 !important;
  z-index: 10 !important;
  background-color: #fff !important;
}

/* CSS classes to force filter positioning */
.filter-mobile {
  position: relative !important;
  z-index: 1 !important;
}

.filter-desktop {
  position: sticky !important;
  top: 0 !important;
  z-index: 10 !important;
  background-color: #fff !important;
}

/* Ultra-high specificity mobile filter overrides */
#divFilterEvent #eventRangeSelecter.filter-mobile,
#divFilterInfo .filter-mobile,
.cupertino-pane-wrapper #eventRangeSelecter,
.cupertino-pane-wrapper .panel-filter-section {
  position: relative !important;
  top: auto !important;
  bottom: auto !important;
  left: auto !important;
  right: auto !important;
  z-index: 1 !important;
  transform: none !important;
}

/* Force override any Bootstrap or framework positioning classes */
#eventRangeSelecter.position-sticky,
#eventRangeSelecter.position-fixed,
.panel-filter-section.position-sticky,
.panel-filter-section.position-fixed {
  position: relative !important;
}

/* Try to override any cupertino-pane specific styling */
.cupertino-pane-wrapper .filter-mobile,
.pane .filter-mobile {
  position: relative !important;
  top: auto !important;
}

/* Standardized filter button styling across all panels - smaller on desktop to match search field */
.panel-filter-button {
  font-size: 0.875rem !important;
  padding: 0.6rem 0.7rem !important;
  font-weight: 500 !important;
  white-space: nowrap !important;
  min-width: fit-content !important;
}

/* Region selector button: force exact styling and alignment without affecting other buttons */
#regionDropdownPlaces,
#regionDropdownEvents {
  background-color: #ffffff !important;
  color: #6c757d !important;
  border-color: #dee2e6 !important;
  font-family: 'Segoe UI', Arial, Helvetica, sans-serif !important;
  font-weight: 500 !important;
  display: inline-flex !important;
  align-items: center !important;
}

/* Ensure inner elements inherit consistent muted color */
#regionDropdownPlaces i,
#regionDropdownPlaces span,
#regionDropdownEvents i,
#regionDropdownEvents span {
  color: #6c757d !important;
  line-height: 1 !important;
}

/* Ensure long placeholder text truncates with ellipsis in search inputs */
#searchEvent::placeholder,
#searchPlaces::placeholder {
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  overflow: hidden !important;
}

/* Apply standardized styling to event filter buttons - smaller on desktop to match search field */
#eventRangeSelecter .btn {
  font-size: 0.875rem !important;
  padding: 0.375rem 0.75rem !important;
  font-weight: 500 !important;
  white-space: nowrap !important;
  min-width: fit-content !important;
}

/* Apply standardized styling to community filter buttons - smaller on desktop to match search field */
#div_following_select_btn .btn {
  font-size: 0.875rem !important;
  padding: 0.375rem 0.75rem !important;
  font-weight: 500 !important;
  white-space: nowrap !important;
  min-width: fit-content !important;
  margin: 0 0.125rem !important;
}

/* Ensure consistent gap between filter containers and proper alignment */
#eventRangeSelecter {
  gap: 0.5rem !important;
  padding-left: 0.5rem !important;
  padding-right: 0.5rem !important;
}

#div_following_select_btn {
  gap: 0.5rem !important;
  padding-left: 0.5rem !important;
  padding-right: 0.5rem !important;
}

/* Mobile drop shadow for blue ribbons */
@media (max-width: 768px) {
  /* Add distinctive drop shadow to blue ribbons on mobile to indicate content scrolls underneath */
  .container[style*="background-color:#00B9FF"],
  .container[style*="background-color: #00B9FF"] {
    box-shadow: 0 2px 9px rgba(0, 0, 0, 0.15) !important;
    position: relative !important;
    z-index: 5 !important;
  }
  
  /* Add gradient overlay at bottom of blue ribbon to emphasize depth */
  .container[style*="background-color:#00B9FF"]::after,
  .container[style*="background-color: #00B9FF"]::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.075), transparent);
    pointer-events: none;
    z-index: 1;
  }
  
  /* Keep mobile button sizing unchanged - same as desktop now */
  #eventRangeSelecter .btn,
  #div_following_select_btn .btn {
    font-size: 0.875rem !important;
    padding: 0.375rem 0.75rem !important;
  }
  
  /* Ensure proper gap on very small screens */
  #eventRangeSelecter {
    gap: 0.375rem !important;
  }
  
  #div_following_select_btn {
    gap: 0.375rem !important;
  }
}

/* Navigation History Back Button Styles */
#panel-back-btn-container {
  transition: all 0.2s ease-in-out;
}

#panel-back-btn {
  min-width: 40px;
  transition: all 0.2s ease-in-out;
}

#panel-back-btn:hover {
  background: rgba(255,255,255,0.2) !important;
  border-color: rgba(255,255,255,0.5) !important;
  transform: translateX(-2px);
}

/* Blue Ribbon Layout Consistency */
.row[style*="#00B9FF"], .row[style*="#00b9ff"] {
  min-height: 48px;
}

.row[style*="#00B9FF"] .col-content, 
.row[style*="#00b9ff"] .col-content {
  flex: 1;
  min-width: 0; /* Allow content to shrink */
}

.row[style*="#00B9FF"] .col-close, 
.row[style*="#00b9ff"] .col-close {
  flex-shrink: 0;
}

/* Blue Ribbon Layout Consistency */
.row[style*="#00B9FF"], .row[style*="#00b9ff"] {
  min-height: 48px;
}

.row[style*="#00B9FF"] .col-content, 
.row[style*="#00b9ff"] .col-content {
  flex: 1;
  min-width: 0; /* Allow content to shrink */
}

.row[style*="#00B9FF"] .col-close, 
.row[style*="#00b9ff"] .col-close {
  flex-shrink: 0;
}

/* Modern Calendar Styles */
.calendar-grid {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.calendar-unified-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0px;
  background-color: transparent;
}

.calendar-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #f3f4f6;
  position: relative;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s ease;
  min-height: 36px;
  max-height: 40px;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.calendar-header-cell {
  background-color: #f9fafb;
  color: #6b7280;
  font-weight: 600;
  border: 1px solid transparent;
  margin-bottom: 2px;
}

.calendar-day-cell {
  aspect-ratio: 1;
  background-color: white;
  cursor: pointer;
}

.calendar-day-cell:hover {
  background-color: #f3f4f6;
  border-color: #d1d5db;
}

.calendar-day-cell.other-month {
  color: #d1d5db;
  background-color: #f9fafb;
}

.calendar-day-cell.other-month:hover {
  background-color: #f3f4f6;
}

.calendar-day-cell.today {
  background-color: #e0f2fe;
  border-color: #0ea5e9;
  color: #0369a1;
  font-weight: 600;
}

.calendar-day-cell.selected {
  background-color: #3b82f6;
  color: white;
  font-weight: 600;
}

.calendar-day-cell.in-range {
  background-color: #dbeafe;
  color: #1e40af;
}

.calendar-day-cell.range-start,
.calendar-day-cell.range-end {
  background-color: #3b82f6;
  color: white;
  font-weight: 600;
}

/* Event indicator dots */
.calendar-day-cell::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.calendar-day-cell.has-events::after {
  opacity: 1;
}

.calendar-day-cell.one-event::after {
  background-color: #10b981; /* Green */
}

.calendar-day-cell.two-events::after {
  background-color: #f59e0b; /* Amber */
}

.calendar-day-cell.many-events::after {
  background-color: #ef4444; /* Red */
}

/* Legend styles */
.calendar-legend {
  padding: 12px 16px;
  background-color: #f9fafb;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
}

.legend-items {
  flex-wrap: wrap;
}

.legend-item {
  align-items: center;
}

.legend-color {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

.legend-color.one-event {
  background-color: #10b981;
}

.legend-color.two-events {
  background-color: #f59e0b;
}

.legend-color.many-events {
  background-color: #ef4444;
}

/* Calendar header navigation */
.calendar-header .btn {
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.calendar-header .btn:hover {
  background-color: #f3f4f6;
  border-color: #d1d5db;
}

/* Responsive adjustments */
@media (max-width: 576px) {
  .calendar-day-cell {
    min-height: 36px;
    font-size: 0.8rem;
  }
  
  .calendar-header-cell {
    font-size: 0.8rem;
  }
  
  .legend-items {
    gap: 1rem !important;
  }
}

/* Ensure proper spacing in responsive layouts */
@media (max-width: 768px) {
  #panel-back-btn {
    padding: 4px 8px;
    font-size: 11px;
  }
  
  #panel-back-btn-container {
    margin-right: 8px;
  }
}

@media (min-width: 769px) {
  #panel-back-btn-container {
    margin-right: 12px;
  }
  
  /* Desktop calendar alignment is now perfect with unified grid */
  .calendar-cell {
    padding: 0 !important;
    box-sizing: border-box !important;
  }
}

/* Smooth transitions for dynamic content */
.col-content {
  transition: margin-left 0.2s ease-in-out;
}

/* Event details mobile optimization */
@media (max-width: 576px) {
  /* Improve spacing for event details sections on mobile */
  #drawerPannelDragEventInfo .row.d-flex.align-items-center {
    margin-bottom: 0.75rem;
  }
  
  /* Ensure proper text wrapping and spacing */
  #drawerPannelDragEventInfo .d-flex.align-items-center.flex-wrap {
    line-height: 1.4;
    align-items: flex-start !important; /* Allow items to align to top when wrapping */
  }
  
  /* Allow proper word wrapping for all text content */
  #drawerPannelDragEventInfo .d-flex.align-items-center.flex-wrap span,
  #drawerPannelDragEventInfo .d-flex.align-items-center.flex-wrap a {
    word-break: break-word;
    hyphens: auto;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
  
  /* Ensure long text can wrap properly */
  #drawerPannelDragEventInfo #event_organizer_profile,
  #drawerPannelDragEventInfo #event_location_profile,
  #drawerPannelDragEventInfo #event_info_profile {
    max-width: calc(100% - 120px); /* Account for icon and label space */
    display: inline-block;
  }
}

/* Floating Map Button Styles */
#floatingMapButton {
  position: fixed !important;
  bottom: 20px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  z-index: 1000 !important;
  background-color: #00B9FF !important;
  color: white !important;
  border: none !important;
  padding: 10px 20px !important;
  border-radius: 25px !important;
  font-weight: 500 !important;
  box-shadow: 0 4px 12px rgba(0, 185, 255, 0.3) !important;
  transition: all 0.3s ease !important;
  font-size: 14px !important;
  min-width: 80px !important;
}

#floatingMapButton:hover {
  background-color: #0099cc !important;
  transform: translateX(-50%) translateY(-2px) !important;
  box-shadow: 0 6px 16px rgba(0, 185, 255, 0.4) !important;
}

#floatingMapButton:active {
  transform: translateX(-50%) translateY(0px) !important;
  box-shadow: 0 2px 8px rgba(0, 185, 255, 0.3) !important;
}

/* Show floating button only on mobile */
@media (min-width: 769px) {
  #floatingMapButton {
    display: none !important;
  }
}

/* Floating Map Button Styles */
#eventMapButton {
  transition: all 0.3s ease-in-out;
  font-family: 'Segoe UI', Arial, Helvetica, sans-serif;
  white-space: nowrap;
  user-select: none;
}

#eventMapButton:hover {
  background-color: #0099cc !important;
  transform: translateX(-50%) translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 185, 255, 0.4) !important;
}

#eventMapButton:active {
  transform: translateX(-50%) translateY(0px);
}

/* Hide button on desktop */
@media (min-width: 769px) {
  #eventMapButton {
    display: none !important;
  }
}

/* FAB Drawer Styles - Now at the bottom */
.fab-container {
  position: fixed !important;
  bottom: 6% !important; /* Position at the bottom where AI button was */
  right: 20px !important;
  z-index: 999 !important;
  display: flex !important;
  flex-direction: column;
  align-items: center;
}

/* Fallback styles to ensure button visibility */
#addPlaceIcone {
  position: relative !important;
  width: 64px !important; /* 92% of 70px */
  height: 64px !important; /* 92% of 70px */
  background-color: #00B9FF !important;
  border: none !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  z-index: 1001 !important;
  box-shadow: 2px 2px 7px rgba(70, 70, 70, 0.4) !important;
}

.fab-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.3);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.fab-overlay.active {
  opacity: 1;
  visibility: visible;
}

.fab-main-btn {
  width: 64px; /* 92% of 70px */
  height: 64px; /* 92% of 70px */
  border-radius: 50%;
  background-color: #00B9FF !important;
  border: none !important;
  box-shadow: 2px 2px 7px rgba(70, 70, 70, 0.4);
  display: flex !important;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  z-index: 1000;
  position: relative;
}

.fab-main-btn:hover {
  transform: scale(1.1);
  box-shadow: 4px 4px 12px rgba(70, 70, 70, 0.6);
}

.fab-main-btn.active {
  transform: rotate(45deg);
}

.fab-icon {
  font-size: 66px !important; /* 92% of 72px */
  color: white !important;
  transition: transform 0.3s ease;
}

.fab-actions {
  position: absolute;
  bottom: 80px;
  right: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-end;
  transform: translateY(100px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 1002 !important;
}

.fab-actions.active {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.fab-action-btn {
  height: 48px;
  border-radius: 24px;
  background-color: #ffffff;
  border: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding: 8px 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1003 !important;
  white-space: nowrap;
}

.fab-action-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.fab-icon-container {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: #00B9FF;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.fab-action-btn i {
  font-size: 16px;
  color: white;
  transition: all 0.3s ease;
}

.fab-action-btn:hover .fab-icon-container {
  background-color: #0099cc;
  transform: scale(1.1);
}

.fab-text {
  font-size: 16px;
  font-weight: bold;
  color: #495057;
  transition: color 0.3s ease;
  white-space: nowrap;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.fab-action-btn:hover .fab-text {
  color: #212529;
}

.fab-tooltip {
  position: absolute;
  right: 70px;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 14px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  pointer-events: none;
  z-index: 1001;
}

.fab-action-btn:hover .fab-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(-8px);
}

/* Animation delays for staggered effect */
.fab-actions.active .fab-action-btn:nth-child(1) {
  transition-delay: 0.1s;
}

.fab-actions.active .fab-action-btn:nth-child(2) {
  transition-delay: 0.2s;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .fab-container {
    bottom: 80px !important; /* Position at bottom on mobile */
    right: 20px !important;
  }
  
  .fab-tooltip {
    display: none;
  }
}

@media (max-width: 380px) {
  .fab-container {
    bottom: 80px !important; /* Position at bottom */
    right: 20px !important;
  }
}

@media (max-width: 340px) {
  .fab-container {
    bottom: 80px !important; /* Position at bottom */
    right: 20px !important;
  }
}

/* Custom styling for blue ribbon buttons and hexagon profile pictures */

/* === BLUE RIBBON BUTTON STYLING === */

/* Back Button in Blue Ribbon - Modern flat design */
#panel-back-btn {
  background-color: rgba(255, 255, 255, 0.15) !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  border-radius: 8px !important; /* More square-like shape */
  color: white !important;
  width: 40px !important;
  height: 40px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.2s ease !important;
  backdrop-filter: blur(10px) !important;
}

#panel-back-btn:hover {
  background-color: rgba(255, 255, 255, 0.25) !important;
  border-color: rgba(255, 255, 255, 0.5) !important;
  transform: none !important; /* Remove the translateX effect */
}

#panel-back-btn i {
  font-size: 18px !important;
  font-weight: 900 !important; /* Extra bold for thickness */
  stroke-width: 2px !important;
}

/* Close Button in Blue Ribbon - Modern flat design */
.row[style*="#00B9FF"] .col-close a,
.row[style*="#00b9ff"] .col-close a,
.container[style*="#00B9FF"] .col-close a,
.container[style*="#00b9ff"] .col-close a {
  background-color: rgba(255, 255, 255, 0.15) !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  border-radius: 8px !important; /* More square-like shape */
  color: white !important;
  width: 40px !important;
  height: 40px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.2s ease !important;
  backdrop-filter: blur(10px) !important;
  text-decoration: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* Hide desktop close button on mobile and vice versa to prevent duplication */
@media (max-width: 767px) {
  .row[style*="#00B9FF"] .col-close a.d-none.d-md-block,
  .row[style*="#00b9ff"] .col-close a.d-none.d-md-block,
  .container[style*="#00B9FF"] .col-close a.d-none.d-md-block,
  .container[style*="#00b9ff"] .col-close a.d-none.d-md-block {
    display: none !important;
  }
}

@media (min-width: 768px) {
  .row[style*="#00B9FF"] .col-close a.d-md-none,
  .row[style*="#00b9ff"] .col-close a.d-md-none,
  .container[style*="#00B9FF"] .col-close a.d-md-none,
  .container[style*="#00b9ff"] .col-close a.d-md-none {
    display: none !important;
  }
}

/* Ensure only one close button shows at a time */
.row[style*="#00B9FF"] .col-close,
.row[style*="#00b9ff"] .col-close,
.container[style*="#00B9FF"] .col-close,
.container[style*="#00b9ff"] .col-close {
  display: flex !important;
  justify-content: flex-end !important;
  align-items: center !important;
}

.row[style*="#00B9FF"] .col-close a:hover,
.row[style*="#00b9ff"] .col-close a:hover,
.container[style*="#00B9FF"] .col-close a:hover,
.container[style*="#00b9ff"] .col-close a:hover {
  background-color: rgba(255, 255, 255, 0.25) !important;
  border-color: rgba(255, 255, 255, 0.5) !important;
  color: white !important;
}

.row[style*="#00B9FF"] .col-close a i,
.row[style*="#00b9ff"] .col-close a i,
.container[style*="#00B9FF"] .col-close a i,
.container[style*="#00b9ff"] .col-close a i {
  font-size: 18px !important;
  font-weight: 900 !important; /* Extra bold for thickness */
  stroke-width: 2px !important;
}

/* === PROFILE PICTURE STYLING (REVERTED TO CIRCULAR) === */

/* Keep profile pictures circular with original styling */
#profile_img,
#profile_img_navbar,
#profile_img_external,
#previewImageProfile,
img[id*="profile_img"] {
  border-radius: 50% !important;
  border: 3px solid white !important;
  box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.2) !important;
}

/* Navbar profile images circular styling */
.rounded-circle[id*="profile_img"] {
  border-radius: 50% !important;
  border: 2px solid white !important;
  box-shadow: 0px 0px 3px rgba(0, 0, 0, 0.2) !important;
}

/* Profile pictures in different contexts circular styling */
img.rounded-circle[src*="thumbnail"],
img.rounded-circle[alt="PLACES"],
img.rounded-circle[alt="profile image external"] {
  border-radius: 50% !important;
  border: 3px solid white !important;
  box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.2) !important;
}

/* Small profile images circular styling */
img[style*="width: 38px"],
img[style*="width: 40px"],
img[style*="width: 48px"] {
  border-radius: 50% !important;
  border: 2px solid white !important;
  box-shadow: 0px 0px 3px rgba(0, 0, 0, 0.2) !important;
}

/* Profile edit modal circular styling */
#userProfileSetting img.rounded-circle,
#croppieProfile img {
  border-radius: 50% !important;
  border: 3px solid white !important;
  box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.2) !important;
}

/* Event organizer profile images circular styling */
img[id*="event_organizer_pic"],
img[width="40px"][height="40px"].rounded-circle {
  border-radius: 50% !important;
  border: 2px solid white !important;
  box-shadow: 0px 0px 3px rgba(0, 0, 0, 0.2) !important;
}

/* Ensure proper display in different screen sizes */
@media (max-width: 768px) {
  #panel-back-btn {
    width: 36px !important;
    height: 36px !important;
  }
  
  #panel-back-btn i {
    font-size: 16px !important;
    font-weight: 900 !important;
    stroke-width: 2px !important;
  }
  
  .row[style*="#00B9FF"] .col-close a,
  .row[style*="#00b9ff"] .col-close a,
  .container[style*="#00B9FF"] .col-close a,
  .container[style*="#00b9ff"] .col-close a {
    width: 36px !important;
    height: 36px !important;
  }
  
  .row[style*="#00B9FF"] .col-close a i,
  .row[style*="#00b9ff"] .col-close a i,
  .container[style*="#00B9FF"] .col-close a i,
  .container[style*="#00b9ff"] .col-close a i {
    font-size: 16px !important;
    font-weight: 900 !important;
    stroke-width: 2px !important;
  }
}

/* Mobile Bottom Navigation Highlighting Styles */
.mobile-nav-item {
  transition: color 0.2s ease, opacity 0.2s ease;
}

.mobile-nav-item.inactive .nav-icon {
  color: #475569 !important; /* Same color as active for better visibility */
}

.mobile-nav-item.inactive .nav-text {
  color: #475569 !important; /* Same color as active for better visibility */
}

.mobile-nav-item.active .nav-icon {
  color: #475569 !important; /* Dark grayish-blue */
}

.mobile-nav-item.active .nav-text {
  color: #475569 !important; /* Dark grayish-blue */
}

/* Reverted: no special handling for My map; use default Bootstrap icon styles */

/* Default state - all items have same color, only icon style differs */
#mobileNavBottom .mobile-nav-item {
  opacity: 1;
}

/* Active state maintains same opacity */
#mobileNavBottom .mobile-nav-item.active {
  opacity: 1;
}

/* Mobile scrollable containers - add bottom padding to prevent content hiding under navigation */
@media (max-width: 768px) {
  #bottomLeftPlace,
  #bottomLeftEvent,
  #bottomLeftPeople,
  #drawerPannelDragOwnProfile,
  #drawerPannelDragExternal,
  #drawerPannelDragEventInfo {
    padding-bottom: 100px !important; /* Space for mobile navigation */
  }
  
  /* Place detail panel needs more padding due to content at bottom */
  #placeInfoPanelSize {
    padding-bottom: 120px !important; /* Extra space for mobile navigation */
  }
  
  /* Also ensure the child containers have proper spacing */
  #PlaceList,
  #EventList,
  #UserList,
  #placeInfoEventList {
    padding-bottom: 20px !important;
  }
}

/* Desktop Navigation Highlighting Styles */
.desktop-nav-item {
  transition: background-color 0.2s ease, color 0.2s ease;
}

.desktop-nav-item.inactive {
  background-color: #f8f9fa !important; /* Light background */
  border-color: #dee2e6 !important;
}

.desktop-nav-item.inactive .desktop-nav-icon,
.desktop-nav-item.inactive .desktop-nav-text {
  color: #446270 !important; /* Same color as Profile button text */
}

/* Hover effect for inactive desktop navigation items */
.desktop-nav-item.inactive:hover {
  background-color: #d3d4d5 !important; /* Slightly darker gray on hover */
  border-color: #dee2e6 !important;
}

.desktop-nav-item.active {
  background-color: #475569 !important; /* Dark grayish-blue */
  border-color: #475569 !important;
}

.desktop-nav-item.active .desktop-nav-icon,
.desktop-nav-item.active .desktop-nav-text {
  color: white !important; /* White text */
}

/* Active state should not change on hover */
.desktop-nav-item.active:hover {
  background-color: #475569 !important; /* Keep same active color */
  border-color: #475569 !important;
}

/* Default state - all desktop items are inactive */
.desktop-nav-item {
  background-color: #f8f9fa !important;
  border-color: #dee2e6 !important;
}

/* Place Likes Display Styles */
.likes-hover {
  transition: text-decoration 0.2s ease;
}

.likes-hover:hover #placeLikesText {
  text-decoration: underline !important;
}

/* Place likes avatars styling */
#placeLikesAvatars img {
  border-radius: 50%;
  border: 1px solid white;
  z-index: 3;
  position: relative;
  box-shadow: 0px 0px 3px rgba(0, 0, 0, 0.2);
}

/* Event panel blue ribbon time should always be white */
.row[style*="#00B9FF"] .event-time,
.row[style*="#00b9ff"] .event-time,
.container[style*="#00B9FF"] .event-time,
.container[style*="#00b9ff"] .event-time,
.row[style*="#00B9FF"] .event-happening-now,
.row[style*="#00b9ff"] .event-happening-now,
.container[style*="#00B9FF"] .event-happening-now,
.container[style*="#00b9ff"] .event-happening-now,
.row[style*="#00B9FF"] .event-today,
.row[style*="#00b9ff"] .event-today,
.container[style*="#00B9FF"] .event-today,
.container[style*="#00b9ff"] .event-today {
  color: white !important;
}

.compatibility-score-circle {
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
  background: rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.compatibility-score-circle:hover {
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.15));
  transform: scale(1.05);
  transition: transform 0.2s ease, filter 0.2s ease;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .compatibility-score-container {
    bottom: 8px !important;
    right: 8px !important;
  }
  
  .compatibility-score-circle {
    width: 45px !important;
    height: 45px !important;
  }
  
  .compatibility-score-circle svg {
    width: 45px !important;
    height: 45px !important;
  }
  
  .compatibility-score-circle svg circle {
    r: 18 !important;
    cx: 22.5 !important;
    cy: 22.5 !important;
  }
  
  .compatibility-score-circle div div {
    font-size: 10px !important;
  }
}



/* Floating Panel Design for Desktop */
@media (min-width: 769px) {
  /* Make the row containing sidebar and map area position relative */
  #desktopView .row.flex-nowrap {
    position: relative;
  }
  
  /* Remove Bootstrap grid behavior for sidebar container on desktop */
  #desktopView .col-auto.px-0.bg-body-tertiary {
    position: absolute !important;
    left: 10px !important;
    top: 9px !important; /* 48px navbar height + 10px margin */
    bottom: 10px !important;
    width: 500px !important;
    z-index: 1000 !important;
    border-radius: 8px !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15) !important;
    overflow: hidden !important;
  }
  
  /* Make map area take full width when sidebar is floating */
  #desktopView .col.p-0.m-0.position-relative#mapArea {
    width: 100% !important;
    margin-left: 0 !important;
  }
  
  /* Ensure sidebar content fits properly within floating panel */
  #sidebar {
    height: 100% !important;
  }
  
  /* Ensure sidebar-nav takes full height of floating panel */
  #sidebar-nav {
    height: 100% !important;
    border-radius: 8px !important;
    overflow: hidden !important;
  }
  
  /* Ensure tab content takes proper height */

  
  /* Ensure each tab pane takes full available height */
  #sidebar-nav .tab-content .tab-pane {
    height: 100% !important;
  }
  
  /* Add smooth transition for show/hide animations */
  #desktopView .col-auto.px-0.bg-body-tertiary {
    transition: opacity 0.3s ease, transform 0.3s ease !important;
  }
  
  /* Bootstrap's collapse will handle the show/hide of #sidebar automatically */
  /* The floating container will be hidden when #sidebar is collapsed */
}

/* Map Watermark Styles */
.map-watermark {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1500; /* Higher z-index to ensure visibility above all panels */
  pointer-events: auto;
}

.watermark-link {
  display: block;
  padding: 4px 8px;
  border-radius: 4px;
  transition: all 0.2s ease;
  text-decoration: none;
}

.watermark-link:hover {
  text-decoration: none;
}

.watermark-logo {
  height: 28px;
  width: auto;
  display: block;
}

/* Mobile adjustments for watermark */
@media (max-width: 768px) {
  .map-watermark {
    bottom: 80px; /* Higher on mobile to avoid bottom nav */
    left: 70px;
    z-index: 2000; /* Even higher z-index on mobile */
  }
  
  .watermark-logo {
    height: 26px;
  }
  
  .watermark-link {
    padding: 3px 6px;; /* More opaque on mobile */
  }
}

/* Watermark handling in embedded mode is now in the main embedded section above */

/* Ensure watermark is visible in mobile view */
#mobileView .map-watermark {
  z-index: 2000;
}

/* Ensure watermark is visible in mobile panels */
#mapPanel .map-watermark {
  z-index: 2000;
}

.mobile-nav-hidden {
  display: none !important;
}

/* Event hero with image background and marine gradient */
.event-hero {
  position: relative;
  height: 320px;
  width: 100%;
  overflow: hidden;
  border-radius: 8px 8px 0 0;
}

.event-hero img {
  height: 100% !important;
  width: 100% !important;
  object-fit: cover !important;
  display: block !important;
}

.event-hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 185, 255, 0.0) 0%,
    rgba(0, 185, 255, 0.25) 40%,
    rgba(11, 34, 57, 0.85) 100%
  );
  pointer-events: none;
}

.event-hero-content {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 22px;
  width: 100%;
  padding: 0 16px;
}

.event-hero-title {
  color: #ffffff !important;
  text-align: center !important;
  line-height: 1.2 !important;
  word-wrap: break-word !important;
  font-size: clamp(22px, 3.2vw, 36px) !important;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

@media (max-width: 576px) {
  .event-hero { height: 260px; }
  .event-hero-content { bottom: 18px; }
}

