.gm-style .gm-style-iw {
    z-index: 9999 !important;
    pointer-events: auto !important;
  }

/* Make the map cover the whole screen */
#map {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 0; /* Ensures the map is behind floating UI elements */
    overflow: visible !important;  /* Allow InfoWindow to overflow properly */

}

/* Hide bottom right UI elements from Google Maps */
.gm-style .gm-style-cc,
.gm-control-active,
.gmnoprint,
.gm-fullscreen-control {
  display: none !important;
}


/* Floating UI Elements */
.floating-buttons {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 2;
}

body.ios-webview .floating-buttons {
    position: absolute;
    top: 50px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 2;
}


.location-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(245, 127, 245, 0.7); /* transparent F57FF5 */
    color: white;
    text-align: center;
    padding: 8px 12px;
    font-size: 14px;
    z-index: 9999;
    backdrop-filter: blur(3px);
  }
  


.floating-button {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    border: none;
    background: linear-gradient(to right, #F7B2F7, #F57FF5);
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
}

.floating-button:active{
    transform: scale(0.96);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
}

.floating-button:hover {
    filter: brightness(1.1); /* ✅ Slightly brightens on hover */
}

/* White Inner Circle for Floating Buttons */
.floating-inner {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 3;
}

.floating-button img {
    width: 25px;
    height: 25px;
}


/* Top Navigation */
.top-nav {
    position: fixed;
    top: 0;
    left: 0;  /* Ensures it starts from the left edge */
    width: 100%;
    height: 50px;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: center; /* Ensures content is centered */
    background: linear-gradient(to right, #F7B2F7, #F57FF5);
    z-index: 1000;
    box-sizing: border-box; /* Ensures padding doesn’t mess up the width */
}

body.ios-webview .top-nav {
    padding-top: 44px;
    height: 94px;
  }
  
  

/* Ensures the event title is perfectly centered */
.top-nav .event-title {
    font-size: 18px;
    font-weight: bold;
    color: white;
    text-align: center;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    text-decoration: none;
}

/* Back Icon: Positioned on the left */
.top-nav .back-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    cursor: pointer;
}

body.ios-webview .top-nav .back-icon {
    top: 74%;
}

/* Allow scrolling */
body {
    overflow-y: auto;
}



/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    width: 100%;
    height: 25px;
    padding: 12px 0;
    display: flex;
    justify-content: space-around;
    align-items: center;
    background: linear-gradient(to right, #F7B2F7, #F57FF5);
    z-index: 2;
}

body.ios-webview .bottom-nav {
    position: fixed;
    bottom: 0;
    width: 100%;
    height: 25px;
    padding-top: 12px;
    padding-bottom: 27px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    background: linear-gradient(to right, #F7B2F7, #F57FF5);
    z-index: 2;
}


.bottom-nav img {
    width: 27px;  /* Smaller size */
    height: auto; /* Maintain aspect ratio */
    display: block;
}






/* Floating Action Button */
.fab {
    position: fixed !important;
    bottom: 72px;
    right: 25px;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    border: none;
    background: linear-gradient(to right, #F7B2F7, #F57FF5);
    z-index: 2;
}

body.ios-webview .fab {
    position: fixed !important;
    bottom: 85px;
    right: 25px;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    border: none;
    background: linear-gradient(to right, #F7B2F7, #F57FF5);
    z-index: 2;
}

.fab:active{
    transform: scale(0.96);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
}

.fab:hover {
    filter: brightness(1.1); /* ✅ Slightly brightens on hover */
}

/* White Inner Circle */
.fab-inner {
    width: 72px; /* Slightly smaller than .fab */
    height: 72px;
    border-radius: 50%;
    background-color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 3; /* Ensures visibility */
}

.fab-inner img {
    width: 45px; /* ✅ Adjust this value as needed */
    height: 45px;
}


/* Navigation Buttons */
.nav-button {
    padding: 10px 15px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
    color: white;
    background: linear-gradient(to right, #F7B2F7, #F57FF5);
    display: inline-block;
    text-align: center;
}

.nav-button:hover {
    opacity: 0.9;
}

/* ✅ Outer container for the gradient border */
.user-marker-container {
    position: absolute;
    transform: translate(-50%, -50%);
    width: 48px; /* ✅ Adjusted to fit the gradient border */
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(to right, #F7B2F7, #F57FF5); /* ✅ Gradient border */
    padding: 3px; /* ✅ Spacing for the inner profile picture */
}

/* ✅ The actual profile image inside the border */
.user-marker {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: white;
    background-size: cover;
    background-position: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2); /* ✅ Keep a subtle shadow */
    position: relative;
}





.infowindow-container {
    width: 320px; /* Increased from 250px */
    height: auto; /* Let height adjust to content */
    display: flex;
    align-items: center;
    padding: 12px;
}

/* Style for the event image inside the InfoWindow */
.infowindow-img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border: 4px solid #F57FF5;
    border-radius: 10px;
    padding: 2px;
    background: white;
    display: block;
    margin-left: 0;
}

.infowindow-content {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: nowrap; /* Prevent wrapping */
}

.infowindow-text {
    flex-grow: 1;
    font-size: 14px;
    color: #333;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    overflow-wrap: break-word;
    word-break: break-word;
}

.event-title {
    font-weight: bold;
    font-size: 18px;
}

.infowindow-link {
    color: #F57FF5;
    font-weight: bold;
    text-decoration: none;
}

.infowindow-link:hover {
    text-decoration: underline;
}

.gm-ui-hover-effect {
    display: none !important;
}




/* Ensure the page content starts below the fixed header */
.page-content {
    margin-top: 100px;  /* Adjust this based on the actual height of .top-nav */
    padding-bottom: 80px; /* Adjust this based on the actual height of .bottom-nav */
}

body.ios-webview .page-content {
    margin-top: 150px;  /* Adjust this based on the actual height of .top-nav */
}



/* signup page */
.photo-upload {
    display: flex;
    justify-content: center;
    margin: 0px 0; /* optional spacing */
  }






.event{
    width: 90%;
    max-width: 350px;
    max-width: 350px;
    margin: 0 auto; /* Center horizontally */
    margin-top: 2%;
    padding-bottom:60px;

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

.event-title-in-post{
    font-size: 25px;
    font-weight: bold;
    margin-left: 10px;
    margin-bottom: 0;
}

/* Container for the event section */
.event-container {
    background: linear-gradient(to bottom, #F57FF5, #F7B2F7);
    border-radius: 0;
    padding: 10px;
    width: 90%;
    max-width: 350px;
    margin: 20px auto;
    margin-top: 10px;
    margin-bottom: 0;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.event-photo-wrapper {
    width: 95%;
    max-width: 325px;
    aspect-ratio: 1 / 1; /* Keeps it square */
    position: relative; /* Allows absolute positioning inside */
    display: flex;
    justify-content: center;
    align-items: center;
    background: white; /* Ensures no unwanted gaps */
    overflow: hidden; /* Prevents shadow from overflowing */
    padding: 0;
    margin: 0 auto 7px; /* Centers the wrapper */

    transform: translateY(4%);
}

.event-photo-wrapper::before {
    content: "";
    position: absolute;
    inset: 0; /* Covers the whole wrapper */
    box-shadow: inset 0px 10px 20px rgba(0, 0, 0, 0.05), 
                inset 0px -10px 20px rgba(0, 0, 0, 0.1); /* Stronger inner shadow */
    mix-blend-mode: multiply; /* Allows shadow to blend under the image */
    pointer-events: none; /* Prevents interaction */
    z-index: 2; /* Places it above the wrapper background but below the image */
}

.event-photo {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures image fills the space */
    display: block;
    position: relative;
    z-index: 1; /* Ensures image does not cover the shadow */
}

/* Event details section */
.event-details {
    padding: 10px;
    color: white;
    font-family: Arial, sans-serif;
    text-align: left;
}

/* Profile image inside event details */
.profile-img-post-wrapper {
    display: inline-block;
    padding: 2px; /* Space for the border effect */
    border-radius: 50%;
    background: linear-gradient(to right, #ffe4ff, white); /* Gradient border */
    margin-right: 8px;
    margin-bottom:7px;
    margin-top: 5px;
    vertical-align: middle;
  }
  
  .profile-img-post {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
  }

/* Username */
.event-details .username {
    font-weight: bold;
    font-size: 20px;
    vertical-align: middle;
}

/* Event Time & People Count */
.event-details p {
    margin: 0;
    font-size: 15px;
    height: 23px;
}




.event-description {
    padding: 0 10px 10px; /* ✅ Ensures proper spacing */
    color: #888888; /* ✅ Updated color */
    font-family: Arial, sans-serif;
    text-align: left;
    width: 95%; /* ✅ Matches the width of .event-photo-wrapper */
    max-width: 325px;
    margin: 0 auto; /* ✅ Centers it within the container */
}

/* Ensures event description text starts from the left edge */
.event-description p {
    margin: 5px 0;
    font-size: 17px;
    text-align: left;
    padding-left: 0; /* ✅ Removes any left padding */
}


.icon-vertical {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-decoration: none;
  }
  
  .icon-label {
    font-size: 13px;
    font-weight: 500;
    color: #444;
  }
  
  .icon-button {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
  }
  
  




.event-action {
    display: flex;
    justify-content: flex-end; /* Aligns all content to the right */
    width: 100%; /* Ensure it takes full width of the container */
    gap: 12px;
    padding: 10px 20px;
    box-sizing: border-box;
  }
  
  .event-action form {
    display: inline-flex; /* Keeps form inline */
    margin: 0;
    width: auto; /* Prevent it from stretching full-width */
  }
  
  /* JOIN button */
  .join-button {
    background: linear-gradient(to right, #F7B2F7, #F57FF5);
    color: white;
    font-size: 16px;
    font-weight: bold;
    padding: 12px 35px;
    width: 130px;
    height: 41px;
    border: none;
    border-radius: 25px;
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease-in-out;
    cursor: pointer;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  /* LEAVE button */
  .leave-button {
    background: white;
    color: #F57FF5;
    font-size: 16px;
    font-weight: bold;
    padding: 12px 35px;
    width: 130px;
    height: 41px;
    border-radius: 25px;
    border: 4px solid transparent;
    background-image: linear-gradient(white, white), linear-gradient(to right, #F7B2F7, #F57FF5);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease-in-out;
    cursor: pointer;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  /* Press + Hover Effects */
  .join-button:active,
  .leave-button:active {
    transform: scale(0.95);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  }
  
  .join-button:hover,
  .leave-button:hover {
    filter: brightness(1.1);
  }








  .event-cancel {
    display: flex;
    justify-content: flex-end; /* ✅ ensures right-alignment */
    padding: 5px 20px;
    width: 100%;
    box-sizing: border-box;
  }
  
  .event-cancel-inner {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
  }
  
  .event-action-icons {
    display: flex;
    gap: 13px;
    align-items: center;
  }
  
  .event-cancel .event-icon {
    width: 35px;
    height: 35px;
    cursor: pointer;
    transition: transform 0.2s ease;
  }

  
  .event-icon:hover {
    transform: scale(1.1);
  }
  
  .icon-button {
    background: none;
    border: none;
    padding: 0;
  }
  
  
  





/* Creating new events */

.page-contents{
    padding-top: 150px;
    padding-bottom: 60px;
    width: 90%;
    max-width: 360px;
    max-width: 360px;
    margin: 0 auto; /* Center horizontally */
    margin-top: 2%;

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


/* General Form Styles */
.page-contents form div {
    margin-bottom: 35px;
    position: relative;
  }

/* Labels */
form label {
    font-size: 14px;
    color: #888888; /* Light gray color */
    font-weight: normal;
    display: block;
    margin-bottom: 0;
}

/* Input Fields */
form input[type="text"],
form input[type="time"],
form input[type="number"],
form select {
    width: 97%;
    border: none;
    border-bottom: 2px solid #F7B2F7; /* Pink underline */
    outline: none;
    font-size: 14px;
    padding: 8px 5px;
    color: #333;
    background: transparent;
}

/* Apply Mukta font and fix bottom line width */
form select {
    width: 100%;
    border: none;
    border-bottom: 2px solid #F7B2F7; /* Matches other fields */
    outline: none;
    font-size: 14px;
    padding: 8px 5px;
    color: #888888; /* Makes "Category?" gray */
    background: transparent;
    appearance: none; /* Removes default styling */
}

/* Ensures "Mukta" font is applied to options */
form select, form select option {
    font-family: 'Mukta', sans-serif !important;
    color: #888888; /* Matches input placeholder color */
}

/* Fix bottom border length to match other fields */
form select:after {
    content: "";
    display: block;
    width: 100%;
    border-bottom: 2px solid #F7B2F7;
}

/* Custom dropdown arrow (Optional) */
form select {
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="pink"><path d="M7 10l5 5 5-5z"/></svg>') no-repeat right 8px center;
    background-size: 16px;
    padding-right: 30px; /* Space for custom arrow */
}


/* General Styling for Textarea */
form textarea {
    width: 92%;
    height: 120px; /* Adjust height as needed */
    border: 2px solid #F7B2F7; /* Pink border */
    border-radius: 12px; /* Rounded edges */
    outline: none;
    font-size: 14px;
    padding: 12px;
    color: #333;
    background: transparent;
    resize: none; /* Prevents resizing */
}

/* Placeholder (Event detail*) Styling */
form textarea::placeholder {
    color: #888888; /* Light gray */
    font-size: 14px;
}

/* Focus Effect */
form textarea:focus {
    border: 2px solid #F7B2F7; /* Darker pink on focus */
}

form .time-field-group input[type="time"] {
    padding-top: 2px !important;
    padding-bottom: 6px; /* optional tweak */
  }


.upload-icon {
    width: 80px; /* Adjust size */
    height: 80px;
    cursor: pointer; /* Makes it clickable */
    transition: transform 0.15s ease-in-out;
}

/* Extra smooth pushing effect via JavaScript */
.upload-icon.pressed {
    transform: scale(0.92);
}

/* Create Post Button Container */
.create-post-container {
    display: flex;
    justify-content: flex-end; /* Moves the button to the right */
    width: 100%;
    margin-top: 20px; /* Adds spacing from previous elements */
}



/* Create Post Button (Same as Join Button) */
.create-post-button {
    background: linear-gradient(to right, #F7B2F7, #F57FF5); /* ✅ Matches gradient */
    color: white;
    font-size: 16px;
    font-weight: bold;
    width: 130px; /* ✅ Fixed width */
    height: 41px; /* ✅ Fixed height */
    border: none;
    border-radius: 25px; /* ✅ Rounded edges */
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15); /* ✅ Soft shadow */
    transition: all 0.2s ease-in-out;
    cursor: pointer;
    text-align: center;
    display: flex;
    justify-content: center; /* ✅ Centers text inside button */
    align-items: center; /* ✅ Centers text vertically */
}

/* Click Effect */
.create-post-button:active {
    transform: scale(0.96);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
}


.create-post-button:hover {
    filter: brightness(1.1); /* ✅ Slightly brightens on hover */
}








