.login-status {
    color: rgb(245, 109, 109);
    font-size: smaller;
}

.update-status {
    color: green;
}

.header {
    height: 60px;
    padding: 0 20px;
    background-color: #f5f5f5;
    width: 100%;
}

.sidebar {
    width: 250px;
    padding: 10px;
    background-color: #f5f5f5;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

.home-content {
    flex: 1;
    /* Remove padding to allow full-width hero */
    padding: 0; 
    overflow-x: hidden;
}

.login-card {
    width: 400px;
    padding: 30px;
}

.page-content {
    padding-top: 70px;
}

.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
}

.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 20px;
    border-radius: 5px;
    z-index: 10000;
}

.modal-content {
    /* Add any specific styling for the modal content here */
}

.hidden {
    display: none;
}

/* 
  Force Google Places Autocomplete dropdown to appear above other elements, 
  especially modals which often have a high z-index. 
  The z-index value (10500) must be higher than the modal's z-index (10000).
*/
.pac-container {
    z-index: 10500 !important;
}

.draggable-group {
    cursor: move;
}

.draggable-group.dragging {
    opacity: 0.5;
}

.drag-over {
    /* Highlight the drop target */
    border-top: 2px solid #3498db; /* Example color */
}

.timeline-tabs .timeline-panel {
    position: relative;
    padding-left: 50px;
    border-left: 2px solid #e0e0e0;
}

.timeline-item {
    position: relative;
    margin-bottom: 20px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -58px;
    top: 5px;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background-color: #3498db;
    border: 2px solid white;
}

.timeline-content {
    position: relative;
    background-color: #ffffff;
    border-radius: 4px;
}

.upload-photo-card {
    width: 100px;
    height: 100px;
    border-width: 1px;
    border-style: dashed;
    border-radius: 5px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 5px;
    box-sizing: border-box;
}

.upload-photo-card a {
    color: #3498db;
}

.states-scroll-container {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: scroll;
    scroll-behavior: smooth;
    flex-grow: 1;
    gap: 1rem;
    padding: 1rem 0;
    scrollbar-width: none; /* For Firefox */
}

.states-scroll-container::-webkit-scrollbar {
    display: none; /* For Chrome, Safari, and Opera */
}

.image-overlay {
    position: relative;
}

.image-overlay::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: inherit;
}

.state-card {
    width: 160px;
    min-width: 160px;
}

/* Hero Section Styles */
.hero-section {
    position: relative;
    width: 100%;
    height: 85vh; /* Or whatever height fits best */
    min-height: 600px;
    background-size: cover;
    background-position: center;
    transition: background-image 1s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4); /* Dimmer background */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    padding: 20px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    font-weight: 400;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.hero-location-badge {
    position: absolute;
    bottom: 30px;
    right: 30px;
    z-index: 2;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    padding: 0.75px 16px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 0.75px;
    color: white;
    font-weight: 500;
    font-size: 0.75rem;
    border: none;
    transition: opacity 0.5s ease;
}

.hero-search-input .mantine-Input-input {
    background-color: rgba(255, 255, 255, 0.95);
    border: none;
    height: 50px;
    font-size: 1.1rem;
    border-radius: 25px;
    padding-left: 20px;
}

.hero-search-input .mantine-Input-input:focus {
    background-color: #ffffff;
    box-shadow: 0 0 0 2px #3498db;
}

/* Features Strip */
.features-strip {
    background-color: #ffffff;
    width: 100%;
    padding: 0.75rem 0;
    border-bottom: 1px solid #eaeaea;
    box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.05);
}

.features-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.feature-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    text-align: left;
    padding: 0.5rem;
    gap: 0.75rem;
    transition: transform 0.2s ease;
    color: #555;
}

.feature-item:hover {
    transform: translateY(-2px);
    color: #3498db;
}

.feature-icon {
    /* Icon size controlled by DashIconify props, just handle margin/color here if needed */
    color: inherit;
}

.feature-text {
    font-size: 0.95rem;
    font-weight: 500;
    color: inherit;
    white-space: nowrap;
}

/* Welcome message in Hero */
.hero-welcome-text {
    font-size: 1.2rem;
    font-weight: 600;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    min-height: 1.5em;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    .hero-subtitle {
        font-size: 1.2rem;
    }
    .hero-section {
        height: 70vh;
    }
    .features-container {
        justify-content: center;
    }
}

/* Photo Collage */
.clickable-photo {
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.clickable-photo:hover {
    transform: scale(1.02);
    opacity: 0.9;
}

.clickable-location {
    cursor: pointer;
    color: #3498db;
    text-decoration: underline;
}

.clickable-location:hover {
    color: #2980b9;
}

/* Search Results Container */
#search-results-container {
    position: absolute;
    top: 100%; /* Position it right below the input */
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.9); /* Semi-transparent white */
    backdrop-filter: blur(8px); /* Frosted glass effect */
    -webkit-backdrop-filter: blur(8px); /* Safari support */
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px; /* Slightly larger radius */
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15); /* Softer, more modern shadow */
    z-index: 100;
    margin-top: 8px; /* A little space from the search bar */
    max-height: 350px;
    overflow-y: auto;
    display: none; /* Hidden by default */
}

.search-result-item:hover {
    background-color: rgba(255, 255, 255, 0.5);
}

.search-result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    text-decoration: none;
    color: #333;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s ease;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background-color: #f5f5f5;
}

.search-result-title {
    font-weight: 500;
}

.search-result-type {
    font-size: 0.8rem;
    color: #888;
    background-color: #e9e9e9;
    padding: 2px 6px;
    border-radius: 4px;
}

/* Header hide/show on scroll */
#main-header {
    transition: transform 0.3s ease-in-out;
}

.header-hidden {
    transform: translateY(-100%);
}

/* Navigation Links Hover Effect */
.nav-link {
    text-decoration: none;
    color: #333;
    position: relative;
    padding: 5px 0;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #3498db !important; /* Blue color - !important to override potential inherited text color */
}

/* Underline effect */
.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #3498db;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

@media (max-width: 768px) {
    /* Hide specific elements on mobile */
    .mobile-hidden {
        display: none !important;
    }
}

/* Responsive Grid/Scroll Container for Community Insights */
.responsive-community-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

@media (max-width: 768px) {
    .responsive-community-grid {
        display: flex;
        overflow-x: auto;
        gap: 15px;
        padding-bottom: 15px;
        padding-right: 20px;
        scroll-snap-type: x mandatory;
        scrollbar-width: none; 
    }
    .responsive-community-grid::-webkit-scrollbar {
        display: none;
    }

    .responsive-community-grid > * {
        flex: 0 0 auto;
        width: 260px; /* Fixed width for horizontal scroll */
        scroll-snap-align: center;
    }
    
    .responsive-community-grid .mantine-Paper-root {
        height: 100%;
        min-height: 180px;
        padding: 16px !important;
    }
}

/* Masonry Grid for Places (Homepage & Discover) */
.masonry-places-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* Large Screens: 4 cols */
    gap: 24px;
    padding-bottom: 20px;
}

@media (max-width: 1200px) {
    .masonry-places-grid {
        grid-template-columns: repeat(3, 1fr); /* Medium: 3 cols */
    }
}

@media (max-width: 1024px) {
    .masonry-places-grid {
        grid-template-columns: repeat(2, 1fr); /* Tablet: 2 cols */
    }
}

@media (max-width: 768px) {
    .masonry-places-grid {
        display: block; /* Disable grid to use columns */
        column-count: 2;
        column-gap: 10px;
    }

    /* Target the Card/Div children */
    .masonry-places-grid > div,
    .masonry-places-grid .mantine-Card-root {
        break-inside: avoid;
        margin-bottom: 10px !important;
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}
