body {
    font-family: Arial, sans-serif;
    background-color: #D6F1F1;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Ensure the manual input popup is hidden by default */
#manual-waypoint-modal {
    display: none;
}



.leaflet-control-zoom a {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  width: 30px !important;
  height: 30px !important;
  line-height: 30px !important;
  font-size: 18px !important;
  text-align: center !important;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
        z-index: 1001;
}


.logo-container {
    display: flex;
    align-items: center;
}

.logo {
    height: 85px;
    width: auto;
    margin-right: 1rem;
}

.site-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
    margin: 0;
}

.mobile-header {
    display: none;
}

.sticky-nav {
    position: sticky;
    top: 0;
    background-color: #ffffff;
    z-index: 10000; /* Increase the z-index value here */
    padding: 10px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.sticky-nav ul {
    display: flex;
    justify-content: space-between;
    padding: 0;
    margin: 0;
    list-style-type: none;
}

.sticky-nav ul li {
    margin: 0 10px;
}

.sticky-nav .progress-indicator {
    flex-grow: 1;
    margin: 0 20px;
    height: 4px;
    background: #e0e0e0;
    border-radius: 2px;
    position: relative;
}

.sticky-nav .progress-indicator .progress {
    height: 100%;
    background: #007bff;
    border-radius: 2px;
    width: 0;
}
.cta-button {
    display:block;
    text-align: center;
    background-color: #007bff;
    color:#ffffff !important;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.cta-button2 {
    display:block;
    text-align: center;
    background-color: #007bff;
    color:#ffffff !important;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #0056b3;
}

.cta-button2:hover {
    background-color: #0056b3;
}

.notification {
    display: none;
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #28a745;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    z-index: 1001;
}


@media (min-width: 769px) {
  .cta-button2 {
    display: none;
  }
}

@media (max-width: 768px) {
  .cta-button {
    display: block;
  }

}

.main-nav ul {
    display: flex;
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.main-nav li {
    margin-left: 1.5rem;
}

.main-nav a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.main-nav a:hover {
    color: #007bff;
}

.help-section {
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin: 5px auto;
    margin-bottom: 0px; /* Remove any bottom margin here */
    padding: 20px;
    background-color: #D6F1F1;
    border-radius: 8px;
    max-width: 1200px; /* Ensure it matches your container or map width */
}

.gpx-info-section {
    display: flex;            /* Use flexbox for alignment */
    justify-content: center;  /* Center the content horizontally */
    align-items: center;      /* Center the content vertically */
    text-align: center;       /* Ensure text is centered */
    max-width: 1200px;        /* Ensure it matches your container or map width */
    margin: 0 auto;           /* Center the container itself */
    margin-bottom: 0px; /* Remove any bottom margin here */
    padding: 0px 0;          /* Add some padding for spacing */
    box-sizing: border-box;   /* Include padding and borders in the element's width and height */
}




.help-step {
    text-align: center;
    max-width: 200px;
}

.help-image {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin-bottom: 10px;
}

.help-step p {
    font-size: 16px;
    color: #333;
    margin: 0;
    font-weight: bold;
}



#map {
    height: 400px;
    margin: 20px 0;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.filter-container {
    text-align: center;
    margin-top: 0px; /* Remove top margin to reduce space */
    position: relative;
    z-index: 990;
}



.filter-container label {
    font-weight: bold;
    display: block;
    margin-bottom: 10px;
}

#county-filter {
    width: 80%;  /* Change from 80% to 100% */
    max-width: 600px;  /* Increase from 600px to 800px or more if needed */
    padding: 10px;
    border-radius: 4px;
    border: 1px solid #ccc;
}

.choices__input {
        min-width: 200px; /* Smaller width for mobile devices */
    width: auto !important;
}

@media (max-width: 768px) {
    .choices__inner, .choices__input {
        min-width: 200px; /* Smaller width for mobile devices */
    }
}

/* Choices.js Custom Styles */
.choices {
    margin-bottom: 20px;
}

.choices__inner {
    min-height: 44px;
}

.choices__list--multiple .choices__item {
    background-color: #007bff;
    border: none;
}
.reef-info {
    background-color: #fff;
    border: 1px solid #ccc;
    padding: 20px;
    margin: 20px 0;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    display: none;
}

.reef-info.visible {
    display: block;
}

.button {
    background-color: #007bff;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.button:hover {
    background-color: #0056b3;
}

.popup {
    display: none;
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0,0,0,0.2);
    z-index: 35000;
    width: 90%;
    max-width: 500px;
    max-height: 70vh;
    overflow-y: auto;
}

.social-share-buttons {
    text-align: center;
    margin: 20px 0;
}

.social-icon {
    margin: 5px;
    width: 40px; /* Set a fixed width */
    height: 40px; /* Set a fixed height */
    background-color: #4267B2;
    color: white;
    border-radius: 50%;
    display: inline-flex; /* Use inline-flex to center the icon */
    justify-content: center; /* Center the icon horizontally */
    align-items: center; /* Center the icon vertically */
    transition: background-color 0.3s;
    font-size: 24px;
    text-decoration: none;
}

#share-facebook {
    background-color: #4267B2;
}

#share-instagram {
    background-color: #E1306C;
}

#share-twitter {
    background-color: #1DA1F2;
}

.social-icon:hover {
    opacity: 0.8;
}



.popup h2 {
    margin-top: 0;
    color: #333;
    font-size: 24px;
}

.popup input[type="email"],
.popup input[type="text"],
.popup input[type="number"],
.popup select {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.popup button {
    background-color: #007bff;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 20px;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.popup button:hover {
    background-color: #0056b3;
}

.popup label {
    display: block;
    margin: 15px 0;
    font-size: 16px;
}

.popup input[type="checkbox"],
.popup input[type="radio"] {
    margin-right: 10px;
}
.footer {
    background-color: #f8f9fa;
    text-align: center;
    padding: 20px 0;
    margin-top: 60px;
    border-top: 1px solid #e9ecef;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
}

.footer-content .footer-logo {
    height: 50px;
    width: auto;
    margin-bottom: 10px;
}

.footer-nav {
    margin: 10px 0;
}

.footer-nav a {
    margin: 0 10px;
    text-decoration: none;
    color: #007bff;
    transition: color 0.3s ease;
}

.footer-nav a:hover {
    color: #0056b3;
    text-decoration: underline;
}

.mobile-footer {
    display: none;
    position: fixed;
    bottom: 0;
    width: 100%;
    background-color: #ffffff;
    box-shadow: 0 -2px 4px rgba(0,0,0,0.1);
    z-index: 1000;
}

.mobile-footer nav ul {
    display: flex;
    justify-content: space-around;
    list-style-type: none;
    margin: 0;
    padding: 10px 0;
}

.mobile-footer nav ul li a {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #007bff;
    text-decoration: none;
    font-size: 12px;
}

.mobile-footer nav ul li a i {
    font-size: 24px;
    margin-bottom: 5px;
}

#loading-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9998;
}

#loading-indicator {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.error-message {
    color: red;
    font-size: 0.875em;
    margin-top: 0.5em;
}

.error {
    border: 2px solid red;
}

.error-message-inline {
    color: red;
    font-size: 0.875em;
    margin-top: 0.5em;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 768px) {
    .sticky-nav {
        display: none;
    }

    .mobile-header {
        display: block; /* Ensure the mobile header is shown */
    }
}

   .mobile-header {
    background-color: #fff;
    position: sticky;
    top: 0;
    z-index: 1001;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 0px; 
    padding: 1rem 0;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo {
    height: 85px;
    width: auto;
    margin-right: 1rem;
}

.site-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
    margin: 0;
}

/* Adjust the main container to ensure proper spacing */
main.container {
    padding-top: 0px; /* Adjust padding as needed */
    padding-bottom: 20px;
    margin: 0 auto;
    max-width: 1200px;
}

    .cta-button download-gpx {
        width: calc(100% - 20px);
        margin: 0px auto;
        padding: 10px 0;
    }

    .filter-container {
        margin: 10px;
    }

    #county-filter {
        width: 100%;
        max-width: none;
    }

    .mobile-footer {
        display: flex;
    }

    .popup {
        width: 95%;
        padding: 20px;
    }

    .popup h2 {
        font-size: 20px;
    }

    .popup input[type="email"],
    .popup input[type="text"],
    .popup input[type="number"],
    .popup select,
    .popup button {
        font-size: 14px;
    }

:focus {
    outline: 3px solid #007bff;
    outline-offset: 2px;
}

/* Mobile Footer Styles */
.mobile-footer {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #ffffff;
    box-shadow: 0 -2px 4px rgba(0,0,0,0.1);
    z-index: 1000;
    padding: 10px 0;
}

.mobile-footer nav {
    width: 100%;
}

.mobile-footer nav ul {
    display: flex;
    justify-content: space-around;
    align-items: center;
    list-style-type: none;
    margin: 0;
    padding: 0;
    width: 100%;
}

.mobile-footer nav ul li {
    flex: 1;
    text-align: center;
}

.mobile-footer nav ul li a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #007bff;
    text-decoration: none;
    padding: 5px;
    transition: background-color 0.3s ease;
}

.mobile-footer nav ul li a:hover,
.mobile-footer nav ul li a:focus {
    background-color: rgba(0, 123, 255, 0.1);
    border-radius: 5px;
}

.mobile-footer nav ul li a i {
    font-size: 24px;
    margin-bottom: 5px;
}

.mobile-footer nav ul li a span {
    font-size: 12px;
    white-space: nowrap;
}

/* Show the mobile footer only on screens smaller than 768px */
@media (max-width: 768px) {
    .mobile-footer {
        display: block;
    }

    /* Add padding to the bottom of the main content to prevent overlap with the footer */
    main.container {
        padding-bottom: 70px;
    }
}

.spinner {
  border: 16px solid #f3f3f3 !important;
  border-top: 16px solid #3498db !important;
  border-radius: 50% !important;
  width: 120px !important;
  height: 120px !important;
  animation: spin 2s linear infinite !important;
  margin: 20px auto !important;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* New overlay and indicator styles - add these */
#loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

#loading-indicator {
  display: none;
}

/* Ensure .gpx-info does not exceed the width of the container */
.gpx-info {
    text-align: center;  /* Center the text */
    margin: 0 auto;      /* Center the container itself */
    font-size: 18px;     /* Adjust font size as needed */
    font-weight: bold;   /* Make text bold */
    color: #333;         /* Text color */
    max-width: 1200px;   /* Match the container width */
    width: 100%;         /* Ensure full width */
    padding: 0 20px;     /* Add padding to create some space on the sides */
    box-sizing: border-box;  /* Include padding and border in the element's width and height */
}




/* Common modal/popup content style */
.modal-content, .popup-container .modal-content {
    background-color: #fefefe;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    width: 100%;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 35000;
    overflow-y: auto;
    max-height: 80vh;
}

.large-modal {
    width: 600px;
}

/* Prevent page scroll when popup is open */
body.modal-open {
    overflow: hidden;
}

/* Close button style */
.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/* Button styling */
.cta-button {
    display: inline-block;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    margin-top: 10px;
}

.cta-button.secondary {
    background-color: #dc3545;
}

/* Specific styles for the popup container */
.popup-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4); /* Darken the background when popup is open */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.map-container {
    position: relative;
    width: 100%;
    height: 400px;
}

#map {
    height: 100%;
    width: 100%;
}

.map-controls {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 1000;
}

.map-control-btn {
    background-color: #4a90e2;
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    font-size: 16px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
    margin-bottom: 5px;
}

.map-control-btn:hover {
    background-color: #357abd;
}

.filter-btn {
    z-index: 2;
}

.filter-options {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 45px;
    right: 0;
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
}

.map-controls:not(.collapsed) .filter-options {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
}

.pro-view-timer {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
}

#loading-overlay, #loading-indicator {
    display: none;
}
