/* === Global Styles === */
body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: "Josefin Sans", sans-serif; /* Clean, modern font */
}

.leaflet-tooltip  {
    font-family: "Josefin Sans", sans-serif; /* Clean, modern font */   
}

a:link {
    color: #195485;
    text-decoration: double;
}

a:visited {
    color: #275f8d;
}

#map {
    height: 100vh; /* Full height of the viewport */
    width: 100%;
    display: block;
}

/* === Split View Layout === */
#split-view {
  display: flex;
  flex-direction: row; /* Horizontal layout: left pane and right pane side by side */
  width: 100%;
  height: 100vh; /* Full viewport height */
  overflow: hidden; /* Hide overflow from children */
}

#left-pane {
  flex: 0 0 auto; /* Do not grow or shrink; take only as much space as needed */
  padding: 1rem;
  width: auto;
  background-color: #f7f7f7; /* Light background to distinguish from the right pane */
  box-shadow: 1px 0 5px rgba(0,0,0,0.1); /* Subtle shadow for separation */
  overflow-y: auto; /* Scroll if content is too long */
}

#right-pane {
    width: auto;
    background-size: cover; /* Cover the entire element */
    background-position: center;
    transition: background-image 0.4s ease; /* Smooth transition between images */
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1 1 auto; /* Takes up the remaining space */
    padding: 1rem;
    position: relative;
}

#poi-details {
    padding: 1rem;
    width: 25%;
    position: absolute; /* Anchored to bottom-left of the right pane */
    bottom: 0;
    left: 0;
}

/* === POI Image Styling === */
.poi-photo {
    width: 100%; /* Full width */
    margin: 1rem 0;
    display: block;
    opacity: 1;
    transition: opacity 0.8s ease; /* Fade effect */
}

/* Mini embedded map in the POI detail view */
.small-map {
    margin-top: 1rem;
    border-radius: 8px;
    width: 100%;
    height: 150px;
    box-sizing: border-box;
}

/* === Menu Tabs === */
#menu-tabs {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%); /* Center horizontally */
    display: flex;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); /* Soft shadow */
    z-index: 1000; /* Stay above other elements */
    overflow: hidden;
}

.tab {
    padding: 0.75rem 1.25rem;
    cursor: pointer;
    background: #fff;
    color: #444;
    font-weight: 500;
    transition: background 0.3s;
}

.tab:hover {
    background: #195485;
    color: whitesmoke;
}

/* === POI List === */
.poi-link {
    padding: 0.5rem;
    border-bottom: 1px solid #ccc;
    cursor: pointer;
    transition: background 0.2s;
}

.poi-link.active {
  background-color: #195485; /* Active item highlight */
  color: white;
}

.poi-link:hover {
    background: #195485;
    color: white;
}

/* === Dropdown (Mobile View) === */
.styled-dropdown {
    width: 100%;
    padding: 0.5rem;
    font-size: 1rem;
    margin-bottom: 1rem;
    border-radius: 5px;
    border: 1px solid #ccc;
}

/* === Display Rules for Responsiveness === */
.mobile-only {
    display: none; /* Hidden by default */
}

.desktop-only {
    display: block; /* Shown by default */
}


/* === POI Content Container Styling === */
.poi-content {
    background: rgba(222, 228, 230, 0.8); /* Semi-transparent background */
    padding: 1em;
    border-radius: 8px;
}

/* === Responsive Design: Mobile View === */
@media (max-width: 768px) {
    #split-view {
        display: flex;
        flex-direction: column; /* Stack vertically on mobile */
        height: auto;
    }

    #left-pane {
      width: auto;
    }

    #right-pane {
        max-width: 100%;
        flex: none;
        background-image: none !important; /* Remove background slideshow */
        background: #fff;
        justify-content: flex-start;
        height: auto !important;
        overflow-y: visible;
        position: static !important;
    }

    .poi-photo {
        display: block; /* Ensure image is visible */
    }

    .mobile-only {
        display: block; /* Now visible on small screens */
    }

    .desktop-only {
        display: none; /* Hide desktop elements on mobile */
    }

    #poi-details {
        position: static;
        width: 100%;
        padding: 1rem;
        box-sizing: border-box;
    }

    .poi-content {
      position: static !important;
    }
}
