/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* Fullscreen Height Setup */
html, body {
    height: 100%; /* Ensure the body takes the full viewport height */
    overflow-x: hidden; /* Prevent horizontal scrolling */
}

body {
    background-color: #fff;
    overflow-y: hidden;
}
.heading_centred{
    display: flex;
    width: 100%;
    position: relative;
    align-items: center;
}
/* Header Styling */
.header-section {
    display: flex;
    position: absolute;
    align-items: center;
    width: 35%;
    padding: 0.3rem 8rem;
    justify-content: space-between;
    border-bottom: 1px solid #f3f3f3;
    position: sticky;
    top: 0;
    z-index: 100;
}

/* Logo Styling */
.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 600;
    text-decoration: none;
    color: #063A44;
}
.logo img {
    width: 150px; /* Adjust logo size for better responsiveness */
    height: auto;
}

/* Navigation Menu */
.nav {
    display: flex;
    position: relative;
    gap: 1.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
    justify-content: center;
    align-items: center;
    top: rem;
    z-index: 2000000;
}
.nav-link {
    text-decoration: none;
    color: #666;
    font-size: 0.9rem;
    padding: 0.5rem 0;
    position: relative;
    transition: color 0.3s ease;
}
.nav-link:hover {
    color: #063A44;
}
.nav-link.active {
    color: #063A44;
}
.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #063A44;
}

/* User Section */
.user-section {
    display: flex;
    position: absolute;
    align-items: center;
    gap: 1rem;
    top: 1rem;
    right: 10rem;
}
.profile {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: #063A44;
    font-size: 0.9rem;
}
.user-profile-photo {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    object-fit: cover;
}
.notification {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}
.mobile-menu-toggle{
    display: none;
}

/* Filters Bar Container */
.filters-bar-container {
    display: flex;
    justify-content: space-between; /* Push the toggle button to the right */
    align-items: center;
    gap: 1rem;
    background: rgb(255, 255, 255);
}

/* Filters Toggle Button (on the right) */
.filters-toggle-button {
    display: none; /* Hidden on larger screens */
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    background: #fff;
    color: #063A44;
    font-size: 0.6rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.filters-toggle-button:hover {
    background: #f0f0f0;
}

/* Custom Icon Styling */
.filter-icon {
    width: 1.2rem;
    height: auto;
}

/* Filter Label Styling */
.filter-label {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Filters Bar */
.filters-bar {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping for smaller screens */
    gap: 1rem;
    padding: 0.5rem 1rem;
    background: rgb(255, 255, 255);
    transition: max-height 0.3s ease, opacity 0.3s ease;
}

/* Dropdowns Container */
.dropdowns-container {
    display: flex;
    flex-wrap: wrap; /* Allow dropdowns to wrap */
    gap: 1rem;
    flex: 1; /* Take up available space */
}

/* Filter Dropdown Container */
.filter-dropdown {
    flex: 1 1 calc(20% - 1rem); /* Each dropdown takes up approximately 20% of the container's width */
    max-width: 150px; /* Limit maximum width for better responsiveness */
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
}

/* Filter Select Styling */
.filter-select {
    width: 100%; /* Ensure dropdowns take full available width */
    padding: 0.6rem 1.5rem;
    border: 1px solid #ddd;
    border-radius: 24px;
    background: white;
    font-size: 0.9rem;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.5rem center;
    background-size: 12px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.filter-select:hover,
.filter-select:focus {
    border-color: #063A44;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.2);
}

/* Buttons Container */
.buttons-container {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap; /* Allows buttons to wrap if needed */
    justify-content: space-between; /* Ensures buttons are spaced evenly */
}
/* Default styles for desktop */
.google-signin-btn {
    position: fixed; /* Fixed positioning to keep it in place */
    top: 10px; /* Distance from the top */
    right: 10px; /* Distance from the right */
    z-index: 1000; /* Ensure it's above other elements */
}

/* Styles for mobile and smaller devices */
@media (max-width: 768px) {
    .google-signin-btn {
        top: 55px; /* Adjust distance from the top for smaller screens */
        right: 10px; /* Keep the same distance from the right */
    }
}
/* Apply Filters Button */
.apply-filters-button {
    flex: 1; /* Allows buttons to grow and take up available space */
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    background: #063A44;
    color: white;
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}
.apply-filters-button:hover {
    background: #333;
    transform: scale(1.05);
}

.search-container {
    display: flex;
    justify-content: space-between; /* Distribute space between elements */
    align-items: center; /* Vertically align elements */
    gap: 1rem; /* Add spacing between elements */
    background-color: #fff; /* Optional: Background color for better contrast */
    border-bottom: 1px solid #eee; /* Optional: Separator line */
}

/* Ensure the search bar takes up a fixed width or percentage */
.search-bar-container {
    flex: 1; /* Allow the search bar to take up available space */
    max-width: 30%; /* Limit the width of the search bar */
    position: relative;
    align-items: center;
    border-radius: 4px;
    overflow: hidden;
    background-color: #ffffff; /* Light background for the search bar container */
}

.search-bar {
    width: 100%;
    padding: 0.7rem 1rem;
    border: none;
    outline: none;
    font-size: 1rem;
    color: #333;
    background-color: transparent;
}


/* Search Icon */
.search-icon {
    display: flex;
    position: absolute;
    margin-left: 0.5rem; /* Space between the input text and the icon */
    right: 3rem;
    top: 0.75rem;
    pointer-events: none; /* Prevents interaction with the icon */
    border: none;
    color: #aaa; /* Grayed-out icon color */
}
/* Feedback Div */
.feedback-div {
    display: none;
    position: relative; /* Allows positioning of close button if needed */
    padding: 0.2rem 0.5rem; /* Adds internal spacing */
    margin-top: 1rem; /* Space between the search bar/listings and feedback */
    border-radius: 4px; /* Rounded corners for a modern look */
    font-size: 0.9rem; /* Slightly smaller text for feedback */
    text-align: center; /* Centers the message */
}
.info-tab {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #063A44;
    color: #fff;
    padding: 0.8rem;
}

.info-tab p {
    text-align: center;
    font-weight: 400;
    margin: 0 auto;
}

.dynamic-text {
    font-weight: 500;
    overflow: hidden; /* Hide overflowing content */
    white-space: nowrap; /* Prevent line breaks */
    border-right: 2px solid #fff; /* Cursor-like effect */
    width: 0; /* Start with zero width */
    animation: typeWriter 2s steps(20, end) forwards, cursorBlink 1s step-end infinite;
}

/* Keyframes for typewriter effect */
@keyframes typeWriter {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

/* Keyframes for blinking cursor */
@keyframes cursorBlink {
    from,
    to {
        border-color: transparent;
    }
    50% {
        border-color: #fff;
    }
}

.suggestions {
    position: absolute;
    top: 100%; /* Position below the search bar */
    left: 0;
    right: 0;
    background-color: #fff;
    border: 1px solid #ccc;
    border-top: none;
    border-radius: 0 0 4px 4px;
    max-height: 200px; /* Limit height for long lists */
    overflow-y: auto; /* Enable scrolling */
    z-index: 10;
}

.suggestion {
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.suggestion:hover {
    background-color: #f0f0f0;
}
 
/* Main Container Styling */
.main-container {
    position: relative;
    display: flex;
    flex-direction: column; /* Stack elements vertically */
    min-height: calc(100vh - 80px); /* Adjust for header height */
    background-color: #f8f9fa;
    transition: filter 0.5s ease;
}
.neighborhood-marker {
    background-color: #063A44;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    text-align: center;
}

.info-window {
    max-width: 300px;
    font-family: Arial, sans-serif;
}
.info-window h3 {
    margin: 0 0 5px;
    font-size: 16px;
}
.info-window p {
    margin: 5px 0;
    font-size: 14px;
}
.info-window img {
    margin-top: 10px;
}
/* Map Container */
.map-container, .listings-container {
    display: none; /* Initially hide both */
    position: absolute;
    top: 20;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    transition: all 0.3s ease;
}

.map-container.active, .listings-container.active {
    display: block; /* Show the active container */
}

#map {
    width: 100%;
    height: 100%;
    touch-action: none; /* Disable browser zoom gestures on the map */
}

/* Listings Container */
.listings-container {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 0.4rem 3rem;
}

#listings {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    max-height: calc(100vh - 200px);
    overflow-y: auto;
    padding-bottom: 10rem;
}
/* Floating Button */
.floating-button {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 40px;
    background-color: #063A44;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    z-index: 100;
}


.floating-button:hover {
    background-color: #074956;
}

.search-container {
    margin-bottom: 1rem;
}

.search-bar {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
}
/* Search Icon */
.search-icon {
    display: flex;
    position: absolute;
    margin-left: 0.5rem; /* Space between the input text and the icon */
    right: 1rem;
    pointer-events: none; /* Prevents interaction with the icon */
    border: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Hide the map container on smaller screens */
    .map-container {
        max-width: 100%; /* Take full width */
        margin-top: 0; /* Remove unnecessary spacing */
        padding: 1rem;
    }

    /* Listings container takes full width on smaller screens */
    .listings-container {
        max-width: 100%; /* Take full width */
        margin-top: 0; /* Remove unnecessary spacing */
        padding: 1rem;

    }
    .floating-button {
        width: 120px;
        font-size: 14px;
    }
    .heading_centred{
        display: flex;
        flex-direction: column;
        width: 100%;
        justify-content: center;
    }

    .header-section {
        display: flex;
        position: relative;
        width: 100%;
        padding: 1rem;

    }
    .search-container {
        flex-direction: column; /* Stack elements vertically */
        align-items: stretch; /* Stretch elements to full width */
    }

    .search-bar-container {
        max-width: 100%; /* Full width on smaller screens */
    }

    .filters-bar-container {
        flex-direction: column; /* Stack filters and buttons vertically */
    }

    .dropdowns-container {
        flex-direction: column; /* Stack dropdowns vertically */
    }

    .buttons-container {
        flex-direction: column; /* Stack buttons vertically */
        align-items: flex-start; /* Align buttons to the left */
    }

    /* Show mobile menu toggle */
    .mobile-menu-toggle {
        display: flex;
    }

    /* Hide navigation menu by default */
    .nav {
        display: flex;
        position: relative;
        width: 100%;
        justify-content: space-between;
        left: 0;
        right: 0;
        padding: 1rem;
        z-index: 101;
        align-items: center;
        top: 0;
    }


    /* Show navigation menu when active */
    .nav.active {
        display: flex;
    }


    /* Adjust logo size for smaller screens */
    .logo img {
        width: 150px;
    }
    .info-tab {
        display: none;
    }

    /* Stack elements vertically on smaller screens */
    .main-container {
        flex-direction: column; /* Stack elements vertically */
        margin: 0;
    }

    /* Hide the map container on smaller screens */
    .map-container {
        max-width: 100%; /* Take full width */
        margin-top: 0; /* Remove unnecessary spacing */
        padding: 0;
    }

    /* Listings container takes full width on smaller screens */
    .listings-container {
        max-width: 100%; /* Take full width */
        margin-top: 0; /* Remove unnecessary spacing */
        padding: 1rem;

    }

    /* Single-column layout for listings on smaller screens */
    #listings {
        grid-template-columns: 1fr; /* Single column for listings */
    }

    /* Reduce image height for better usability on smaller screens */
    .listing-image {
        height: 150px; /* Reduce image height */
    }

    .buttons-container {
        flex-direction: row; /* Ensures buttons are side by side */
        gap: 0.5rem; /* Adjust gap for smaller screens */
    }

    .apply-filters-button {
        flex: 1; /* Ensures both buttons take equal space */
        font-size: 0.8rem; /* Adjust font size for smaller screens */
        padding: 0.5rem 1rem; /* Adjust padding for smaller screens */
    }
    .filterbtn{
        display: flex;
        position: relative;
    }
    /* Show the toggle button on smaller screens */
    .filters-toggle-button {
        display: flex;
    }
    .filters-bar-container{
        padding: 0;
    }

    /* Collapse the filters bar by default */
    .filters-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        padding: 0;
        pointer-events: none;
    }

    /* Expand the filters bar when active */
    .filters-bar.active {
        max-height: 500px;
        opacity: 1;
        padding: 1rem 2rem;
        pointer-events: visible;
    }

    /* Make dropdowns full-width on smaller screens */
    .filter-dropdown {
        flex: 1 1 100%;
        max-width: 100%;
    }

    /* Adjust buttons for smaller screens */
    .buttons-container {
        width: 100%;
        flex-direction: row;
        align-items: flex-start;
        gap: 0.5rem;
        padding: 1rem;
    }
    /* User Section */
.user-section {
    display: flex;
    gap: 1rem;
    top: 1.5rem;
    right: 0.5rem;
    z-index: 1000000000;
}

}

Marker Styling
.marker {
    position: absolute;
    width: 20px;
    height: 20px;
    background: red;
    border-radius: 50%;
    transform: translate(-50%, -50%); /* Center the marker on its coordinates */
    z-index: 10; /* Ensure markers appear above the safezone */
}


/* Listings Cards */
.listing-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
}
/* Carousel Container */
.property-carousel {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    user-select: none; /* Prevent text selection during swipe */
}

/* Carousel Images Container */
.carousel-images {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    transition: transform 0.5s ease; /* Smooth sliding effect */
}

.listing-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    flex-shrink: 0; /* Prevent images from shrinking */
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    transition: opacity 0.3s ease; /* Fade effect */
}

.listing-image.active {
    opacity: 1;
    position: relative;
}

/* Carousel Navigation Dots */
.carousel-nav {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: 2px solid transparent;
    cursor: pointer;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.carousel-dot.active {
    background-color: rgba(255, 255, 255, 0.8);
    border-color: #fff;
}

.carousel-dot:hover {
    background-color: rgba(255, 255, 255, 0.8);
}

/* Carousel Arrows (for larger screens) */
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px;
    font-size: 20px;
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s ease;
    display: none; /* Hidden by default on small screens */
}

.carousel-arrow:hover {
    background: rgba(0, 0, 0, 0.8);
}

.left-arrow {
    left: 10px;
}

.right-arrow {
    right: 10px;
}

/* Show arrows on larger screens */
@media (min-width: 768px) {
    .carousel-arrow {
        display: block;
    }
}

/* Ensure carousel responsiveness */
@media (max-width: 767px) {
    .property-carousel {
        touch-action: pan-y; /* Allow vertical scrolling while swiping horizontally */
    }
}

.listing-content {
    padding: 1rem;
}

.listing-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.listing-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #f8f9fa;
    padding: 0.4rem 0.7rem;
    border-radius: 7px;
}

.listing-details {
    display: flex;
    gap: 2rem;
    margin-bottom: 0.5rem;
    color: #666;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.listing-location {
    color: #666;
    margin-bottom: 1rem;
}

.listing-price {
    font-size: 1.3rem;
    font-weight: 600;
}

.listing-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
}

.action-button {
    padding: 0.75rem 3rem;
    border-radius: 8px;
    border: none;
    background: #063A44;
    color: white;
    font-weight: 500;
    cursor: pointer;
}

.favorite-button {
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 50%;
    background: white;
    cursor: pointer;
}

/* Ensure the confirm button stays at the bottom */
.confirm-button-container {
    margin-top: auto; /* Push the button to the bottom of the modal */
    padding: 1rem;
    background: #f9f9f9; /* Light background for separation */
    border-top: 1px solid #ddd; /* Subtle divider */
}

.back-button {
background: none;
border: none;
font-size: 1.5rem;
cursor: pointer;
padding: 0.5rem;
}

.header-title {
flex-grow: 1;
text-align: center;
font-size: 1rem;
font-weight: 500;
}

.refresh-button {
background: none;
border: none;
font-size: 1.2rem;
cursor: pointer;
padding: 0.5rem;
}

.toggle-container {
display: flex;
padding: 1rem;
gap: 1rem;
padding-top: 2.5rem;
}

.toggle-button {
flex: 1;
padding: 0.75rem;
border: 1px solid #eee;
border-radius: 25px;
background: white;
font-size: 0.9rem;
cursor: pointer;
transition: all 0.3s ease;
}

.toggle-button.active {
background: #063A44;
color: white;
border-color: #063A44;
}

.section {
padding: 1rem;
}

.section-title {
font-size: 1rem;
margin-bottom: 1rem;
color: #333;
}

.location-option-select {
    width: 100%; /* Ensures the dropdown spans the full width of its container */
    min-width: 250px; /* Ensures the dropdown is at least 300px wide */
    max-width: 500px; /* Limits the maximum width for better design control */
    padding: 1rem; /* Provides sufficient padding for readability */
    font-size: 1rem; /* Ensures the text is large enough to read easily */
    border: 1px solid #ccc; /* Adds a subtle border for visibility */
    border-radius: 8px; /* Rounded corners for a modern look */
    background-color: #fff; /* Clean white background */
    color: #333; /* Readable text color */
    cursor: pointer; /* Indicates interactivity */
    transition: border-color 0.3s ease, box-shadow 0.3s ease; /* Smooth hover effects */
    box-sizing: border-box; /* Ensures padding and borders are included in the element's total width/height */
}

.location-option-select:focus {
    outline: none; /* Removes default focus outline */
    border-color: #063A44; /* Changes border color on focus for better feedback */
    box-shadow: 0 0 5px rgba(68, 246, 255, 0.358); /* Adds a shadow for emphasis */
}

.price-range {
background: #f8f8f8;
padding: 2rem 1rem;
border-radius: 12px;
position: relative;
}

.price-inputs {
display: flex;
gap: 1rem;
margin-bottom: 1rem;
}

.price-input-group {
flex: 1;
}

.price-label {
font-size: 0.85rem;
color: #666;
margin-bottom: 0.5rem;
display: block;
}

.price-input {
width: 100%;
padding: 0.75rem;
border: 1px solid #ddd;
border-radius: 8px;
font-size: 0.9rem;
outline: none;
transition: border-color 0.3s ease;
}

.price-input:focus {
border-color: #063A44;
}

.cityscape {
height: 60px;
background: #063A44;
opacity: 0.2;
margin: 1rem 0;
clip-path: polygon(0% 100%, 20% 60%, 40% 80%, 60% 40%, 80% 70%, 100% 20%, 100% 100%);
}

.options-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
gap: 0.5rem;
margin-top: 1rem;
}

.option-button {
padding: 0.5rem;
border: 1px solid #eee;
border-radius: 8px;
background: white;
font-size: 0.9rem;
cursor: pointer;
transition: all 0.3s ease;
}

.option-button.active {
background: #063A44;
color: white;
border-color: #063A44;
}

.amenity-item {
display: flex;
justify-content: space-between;
align-items: center;
padding: 1rem 0;
border-bottom: 1px solid #eee;
}

.show-all {
color: #063A44;
text-align: center;
padding: 1rem;
cursor: pointer;
font-weight: 500;
}

@media (max-width: 640px) {

    /* User Section */
.user-section {
display: flex;
gap: 1rem;
top: 1.5rem;
right: 0.5rem;
z-index: 1000000000;
}
}
/* Base styles */
:root {
    --primary-color: #063A44;
    --secondary-color: #f5f5f5;
    --border-color: #e5e5e5;
    --text-color: #333;
    --text-secondary: #666;
    --success-color: #10b981;
    --panel-width: 380px;
    --avatar-size: 40px;
    --status-dot-size: 8px;
  }

  /* Notification button styles */
  .notification {
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-color);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
  }
  
  .notification:hover {
    background-color: var(--secondary-color);
  }
  
  .notification-badge {
    position: absolute;
    top: 0;
    right: 0;
    background-color: var(--primary-color);
    color: white;
    font-size: 10px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .filters-toggle-button {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
  }
  
  .filters-toggle-button:hover {
    background-color: var(--secondary-color);
  }
  
  /* Notifications panel styles */
  .notifications-panel {
    position: absolute;
    top: 60px;
    right: 20px;
    width: var(--panel-width);
    max-width: 95vw;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    max-height: 80vh;
    overflow: hidden;
    display: none;
    flex-direction: column;
  }
  
  .notifications-panel.active {
    display: flex;
  }
  
  .notifications-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
  }
  
  .notifications-header h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
  }
  
  .notifications-actions {
    display: flex;
    gap: 8px;
  }
  
  .icon-button {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
  }
  
  .icon-button:hover {
    background-color: var(--secondary-color);
  }
  
  /* Tabs styles */
  .notifications-tabs {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    overflow-x: auto;
    scrollbar-width: none;
  }
  
  .notifications-tabs::-webkit-scrollbar {
    display: none;
  }
  
  .tab-button {
    padding: 12px 16px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-secondary);
    white-space: nowrap;
    position: relative;
  }
  
  .tab-button.active {
    color: var(--primary-color);
    font-weight: 500;
  }
  
  .tab-button.active::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
  }
  
  .tab-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 10px;
    background-color: var(--secondary-color);
    font-size: 12px;
    margin-left: 4px;
  }
  
  /* Notifications list styles */
  .notifications-list {
    overflow-y: auto;
    max-height: calc(80vh - 120px);
  }
  
  .notification-item {
    display: flex;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    position: relative;
  }
  
  .notification-item:last-child {
    border-bottom: none;
  }
  
  .notification-avatar {
    position: relative;
    margin-right: 12px;
    flex-shrink: 0;
  }
  
  .notification-avatar img {
    width: var(--avatar-size);
    height: var(--avatar-size);
    border-radius: 50%;
    object-fit: cover;
  }
  
  .status-dot {
    position: absolute;
    bottom: 0;
    right: 0;
    width: var(--status-dot-size);
    height: var(--status-dot-size);
    border-radius: 50%;
    background-color: var(--success-color);
    border: 2px solid white;
  }
  
  .notification-content {
    flex: 1;
    min-width: 0;
  }
  
  .notification-header {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 4px;
    font-size: 14px;
  }
  
  .notification-user {
    font-weight: 600;
  }
  
  .notification-target {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 500;
  }
  
  .notification-time {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 2px;
  }
  
  .notification-time-ago {
    font-size: 12px;
    color: var(--text-secondary);
    position: absolute;
    top: 16px;
    right: 20px;
  }
  
  .notification-message {
    margin-top: 8px;
    padding: 12px;
    background-color: var(--secondary-color);
    border-radius: 6px;
    font-size: 14px;
  }
  
  .notification-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
  }
  
  .action-button {
    padding: 6px 16px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
  }
  
  .action-button.decline {
    background-color: white;
    border: 1px solid var(--border-color);
    color: var(--text-color);
  }
  
  .action-button.accept {
    background-color: var(--primary-color);
    border: 1px solid var(--primary-color);
    color: white;
  }
  
  /* File styles */
  .notification-file {
    display: flex;
    align-items: center;
    margin-top: 12px;
    padding: 8px;
    background-color: var(--secondary-color);
    border-radius: 6px;
  }
  
  .file-icon {
    width: 40px;
    height: 40px;
    background-color: #7c3aed;
    color: white;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    margin-right: 12px;
  }
  
  .file-info {
    flex: 1;
    min-width: 0;
  }
  
  .file-name {
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  .file-size {
    font-size: 12px;
    color: var(--text-secondary);
  }
  
  .download-button {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 4px;
  }
  
  .download-button:hover {
    background-color: rgba(0, 0, 0, 0.05);
  }
  
  /* Responsive styles */
  @media (max-width: 480px) {
    .notifications-panel {
      right: 0;
      left: 0;
      width: 100%;
      max-width: 100%;
      border-radius: 0;
      top: 60px;
      max-height: calc(100vh - 60px);
    }
  
    .notification-time-ago {
      position: static;
      margin-bottom: 8px;
    }
  
    .notification-actions {
      flex-direction: column;
    }
  
    .action-button {
      width: 100%;
      text-align: center;
    }
  }
  .show-location-button {
    position: absolute;
    bottom: 20px;
    right: 20px;
    padding: 10px 20px;
    background-color: #063A44;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    z-index: 20;
}

.show-location-button:hover {
    background-color: #074956;
}
/* Touch Hint Overlay */
.touch-hint {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    z-index: 20;
    opacity: 0;
    pointer-events: none; /* Prevent interference with swiping */
    animation: none; /* Default to no animation */
}

/* Touch Icon (GIF) */
.touch-icon {
    width: 60px; /* Adjust size based on your GIF */
    height: 60px;
    display: block;
}

/* Touch Text */
.touch-text {
    font-size: 14px;
    font-weight: 500;
}

/* Animation for showing hint */
@keyframes showHint {
    0% { opacity: 0; }
    20% { opacity: 1; }
    80% { opacity: 1; }
    100% { opacity: 0; }
}

/* Show touch hint only on mobile/small screens */
@media (max-width: 767px) {
    .touch-hint {
        animation: showHint 3s ease-in-out; /* Show for 3s, then fade */
    }
}
  