.stats-container {
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
   
    padding: 4px;
    margin-bottom: 0px;
}

.section-heading {
    font-size: .8rem;
    font-weight: 500;
    margin-bottom: 0.125rem;
    color: #495057;
    margin-top: -4px;

}

.stat-box {
    text-align: center;
    line-height: 1.0;
    margin-top: -8px;

}

.stat-box small {
    color: #6c757d;
    font-size: 1rem;
}

.stat-number {
    font-weight: bold;
    color: #28a745;
    font-size: 1.2rem;
}

.stat-number-prev {
    font-size: 1rem;
    color: #6c757d;
}

@media (max-width: 576px) {
    .stat-box small {
        font-size: 0.7rem;
    }
    .stat-number {
        font-size: 1.1rem;
    }
    .stat-number-prev {
        font-size: 0.9rem;
    }
}

body {
    font-family: 'Roboto', sans-serif !important;
}

body h1, body h2, body h3, body h4, body h5, body h6, body .h7 {
    font-family: 'Roboto', sans-serif !important;
    line-height: 1.0 !important;
    margin-bottom: 0.5em !important;
}
body .h7 {
    font-size: 1rem !important;
    font-weight: bold !important;
    color: #333 !important;
    margin-top: 0.5em !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    body .h7 { font-size: 0.9rem !important; }
}

.venue-title-container {
    position: relative;
    padding-right: 40px; /* Make space for the star */
}

.venue-title-container h1 {
    margin-bottom: 0.5em; /* Restore some bottom margin */
}

.favorite-star {
    position: absolute;
    top: 65px; /* Changed from 73px to move star icon up */
    right: 4px;
    transform: translateY(-50%);
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 100; /* Reduced from 2000 to be below modal z-index */
}

.favorite-star .fas {
    color: #FFD700;  /* Gold color for filled star */
}

.favorite-star .far {
    color: #ccc;  /* Grey color for empty star */
}

.indented-icon {
    display: flex;
    align-items: flex-start;
}

.indented-icon .icon {
    flex-shrink: 0; /* Prevent the icon from shrinking */
    margin-right: 0px; /* Adjust the space between the icon and the text */
    margin-left:-5px;
    font-size: 1.2rem !important;

}

.indented-icon span + span {
    text-indent: -0px; /* Adjust the indent to match the margin-right of the icon */
}

.instruction {
    text-align: center;
    font-size: 16px;

}

.modal {
    display: none;
    position: fixed;
    z-index: 1050 !important;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
    align-items: center;
    justify-content: center;
}
.modal-dialog {
    display: flex;
    align-items: center;
    min-height: calc(100% - 1rem);
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 600px;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/* Styles for Bootstrap modal */
#editContactBootstrapModal {
    background-color: rgba(0,0,0,0.4);
}

#editContactBootstrapModal .modal-content {
    margin: 10% auto;
    width: 90%;
    max-width: 500px;
}

/* Modal styles */
#editContactBootstrapModal .modal-content {
    padding: 10px;
}

#editContactBootstrapModal .modal-header,
#editContactBootstrapModal .modal-body,
#editContactBootstrapModal .modal-footer {
    padding: 10px;
}

#editContactBootstrapModal .form-group {
    margin-bottom: 10px;
}

#editContactBootstrapModal .icon-left {
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #495057;
    font-size: 1.2em;
}

#editContactBootstrapModal .pl-icon {
    padding-left: 35px;
}

#editContactBootstrapModal .form-control {
    height: 44px;
    font-size: 1.1em;
}

#editContactBootstrapModal .btn-primary {
    height: 44px;
    font-size: 1.1em;
}

#editContactBootstrapModal .delete-contact {
    display: block;
    text-align: center;
    margin-top: 10px;
}

/* Responsive adjustments */
@media (max-width: 576px) {
    #editContactBootstrapModal .modal-dialog {
        margin: 0.5rem;
    }
}
#editContactBootstrapModal .modal-body {
    padding: 5px 10px;
}

#editContactBootstrapModal .form-group {
    margin-bottom: 5px;
}

#editContactBootstrapModal .icon-left {
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #495057;
}

#editContactBootstrapModal .pl-icon {
    padding-left: 35px;
}

#editContactBootstrapModal .form-control {
    height: 38px;
}

#editContactBootstrapModal .modal-footer {
    padding: 10px 20px;
}

/* Responsive adjustments */
@media (max-width: 576px) {
    #editContactBootstrapModal .modal-dialog {
        margin: 0.5rem;
    }
}
.modal-backdrop {
    z-index: 1040 !important;
}
.modal-content {
    z-index: 1100 !important;
}
.text-muted {
    color: #a4a4a4!important;
    
}
.contacts-list {
    display: flex;
    flex-direction: column;
    padding-bottom:0px;
    padding-bottom:8px;
 
}

.contact-item {
    display: flex;
    align-items: center;
    margin:0px!important;
    
}


.contact_list_row {
    padding-bottom:3px;
    padding-top:3px;
    border: 0px;
    border-bottom: 1px solid #e0e0e0;  /* Horizontal line between items */
}

.contact_list_row:last-child {
    border-bottom: none;  /* Remove border from last item */
}

.contact-info {
    border: 1px solid #ccc;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    padding: 4px;
    flex: 1;
    display: flex;
    flex-direction: column;
    margin:0px!important;
   
}

.contact-info:hover {
    background-color: #f0f0f0;
}

.contact-name {
    font-weight: bold;
    font-size: 1em;
      margin:0px!important;
    padding:0px!important;
    line-height: 1em;
}

.contact-role {
    font-size: 0.8em;
    color: #666;
    line-height: 0.8em;
}

.contact-phone, .contact-email {
      margin:0px!important;
    padding:0px!important;
    font-size: 1.2em;
}

.contact_action_icon {
  
    margin-left:0px!important;
}



/* Responsive design */
@media (max-width: 768px) {
    .contact-item {
        flex-wrap: wrap;
    }

    .contact-info {
        width: 100%;
        margin-bottom: 10px;
    }

    .contact-phone, .contact-email, .contact-action {
        flex: 1;
        text-align: center;
    }
}

@media (max-width: 575.98px) {
    #new-contact-form .form-row > div:not(:last-child) {
        margin-bottom: 0rem;
    }
}

#new-contact-form .form-control-sm {
    height: calc(1.5em + 0.5rem + 2px);
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    line-height: 1.5;
    border-radius: 0.2rem;
}

#new-contact-form .btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    line-height: 1.5;
    border-radius: 0.2rem;
}
/* Custom Select Primary Styling */
.custom-select-primary {
    text-align:center;
    background-color: #0d6efd;
    color: #fff;
    border-color: #0d6efd;
      appearance: none; /* Remove default styling */
    -webkit-appearance: none; /* Remove default styling for WebKit browsers */
    -moz-appearance: none; /* Remove default styling for Mozilla browsers */
}
.custom-select-primary::after {
    content: '\25BC'; /* Unicode character for down arrow */
    color: #fff; /* Color of the arrow */
    position: absolute;
    right: 2px; /* Position the arrow closer to the right edge */
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none; /* Ensure the arrow does not interfere with clicks */
}

.custom-select-primary:focus {
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.custom-select-primary option {
    background-color: #fff;
    color: #0d6efd;
}

/* Hover state */
.custom-select-primary:hover {
    background-color: #0d6efd;
    border-color: #0d6efd;
    color: #ffffff;
}

/* For Firefox */
.custom-select-primary:-moz-focusring {
    color: transparent;
    text-shadow: 0 0 0 #fff;
}

/* For IE/Edge */
select::-ms-expand {
    display: none;
}

@media screen and (-webkit-min-device-pixel-ratio:0) {
    .custom-select-primary {
        padding-right: 1.5em;
    }
}

.place-pin-label {
    background-color: white;
    border: 1px solid #ccc;
    padding: 5px 10px;
    border-radius: 3px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    cursor: pointer;
    margin-top: 10px;
    font-family: Arial, sans-serif;
    font-size: 14px;
}
.equal-width-btn {
    width: 48%; /* Adjust as needed */
}
.places-filter-form .form-control,
.places-filter-form .btn {
    height: 38px;
    width: 100%;
}

.places-filter-form .places-filter-select,
.places-filter-form .places-filter-input,
.places-filter-form .places-filter-button {
    margin-bottom: 10px;
}

.places-filter-form .row {
    display: flex;
    flex-wrap: wrap;
    margin-left: -5px;
    margin-right: -5px;
}

.places-filter-form .col-1,
.places-filter-form .col-2,
.places-filter-form .col-3,
.places-filter-form .col-4,
.places-filter-form .col-5,
.places-filter-form .col-6,
.places-filter-form .col-7,
.places-filter-form .col-8,
.places-filter-form .col-9,
.places-filter-form .col-10,
.places-filter-form .col-11,
.places-filter-form .col-12{
    padding-left: 5px;
    padding-right: 5px;
    box-sizing: border-box;
}

/* Styles for all screen sizes */
.places-filter-form .col-6 {
    flex: 0 0 50%;
    max-width: 50%;
}

.places-filter-form .col-3 {
    flex: 0 0 25%;
    max-width: 25%;
}

.places-filter-form .col-9 {
    flex: 0 0 75%;
    max-width: 75%;
}

/* Button styling override */
.places-filter-form .places-filter-button {
    height: 38px;
    line-height: 1;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    border-radius: 0.25rem;
    white-space: nowrap;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0;
    margin-top: 0;
}

.places-filter-form .col-3 {
    display: flex;
    align-items: flex-start;
}

/* Override any conflicting Bootstrap styles */
.places-filter-form .btn-block {
    display: flex;
}

.places-filter-form .btn-block + .btn-block {
    margin-top: 0;
}

/* Adjustments for very small screens */
@media (max-width: 320px) {
    .places-filter-form .col-6,
    .places-filter-form .col-3 {
        font-size: 0.8em; /* Slightly reduce font size on very small screens */
    }
    
    .places-filter-form .places-filter-button {
        font-size: 0.9em;
    }
}

/* Ensure button aligns with input field */
@media (min-width: 321px) {
    .places-filter-form .places-filter-button {
        height: 38px; /* Match the height of the input fields */
    }
}

/* Ensure button aligns with input field */
@media (min-width: 321px) {
    .places-filter-form .places-filter-button {
        height: 38px; /* Match the height of the input fields */
    }
}

:root {
    --header-height: 46px; /* Adjust this to match your header height */
}

.breadcrumb a {
    align-items: center;
    color: #485fc7;
    display: flex;
    justify-content: center;
    padding:0em!important;

}

ol.breadcrumb {
       margin-bottom: 0px;
    padding: 4px 4px 4px 10px;

}


 .user-card {
        display: flex;
        border: 1px solid #ddd;
        border-radius: 8px;
        overflow: hidden;
        margin-bottom: 15px;
        transition: box-shadow 0.3s ease;
        cursor: pointer;
    }
    .user-card:hover {
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    }
    .user-image-container {
        flex: 0 0 75px;
        height: 75px;
    }
    .user-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    .user-info {
        flex: 1;
        padding: 10px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
     .card-user-name {
        font-weight: bold;
        margin-bottom: 5px;
        color: #333; /* or any color that fits your design */
    }
    .user-details {
        font-size: 0.9em;
        color: #666;
    }
    
    
.alert-banner {
    position: fixed;
    top: 46px; /* Adjust based on your header height */
    left: 0;
    right: 0;
    width: 100%;
    z-index: 2000;
    display: none;
}

.alert-banner.active {
    display: block;
}

.alert-banner .alert {
    margin: 0;
    padding: 10px 0;
    border: none;
    border-radius: 0;
    text-align: center;
}

.alert-banner .alert-success {
    background-color: #d4edda;
    color: #155724;
    border-bottom: 1px solid #c3e6cb;
}

.alert-banner .alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border-bottom: 1px solid #f5c6cb;
}

/* Success variant */
.alert-banner.success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}
#nearbyListModal {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1050; /* Ensure this is above other content but below the header */
    overflow-y: auto;
}

.modal-content {
    margin: 20px auto;
    max-width: 90%;
    background-color: #fff;
    border-radius: 15px;
    padding: 10px;
}

.modal-header {
    padding: 15px;
    border-bottom: 1px solid #eee;
    position: relative;
    display: flex;
    flex-direction: column; /* Stack children vertically */
    gap: 8px; /* Space between elements */
}

.modal-header h2 {
    margin: 0;
    padding: 0;
    color: #333;
    font-size: 1.5rem;
    line-height: 1.2;
    display: block;
    width: 100%;
    margin-bottom: 5px;
    color: #276abb;
}

.modal-header .modal-caption {
    margin: 0;
    padding: 0;
    color: #666;
    font-size: 0.9em;
    line-height: 1.4;
    display: block;
    width: 100%;
}

.modal-header .close {
    position: absolute;
    right: 15px;
    top: 12px;
    font-size: 24px;
    cursor: pointer;
    z-index: 1;
}

.range-selector {
    padding: 0;
    width: 100%;
    margin-bottom: 5px;
}

.modal-body {
    max-height: calc(100vh - var(--header-height) - 100px); /* Adjust as needed */
    overflow-y: auto;
}

#nearbyPlacesList {
    list-style-type: none;
    padding: 0;
}

@media (max-width: 600px) {
    .modal-content {
        margin: 5% auto;
        width: 95%;
    }
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}



.button-column {
    display: flex;
    align-items: center;
}

.select-button {
    background-color: #4285F4;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.select-button:hover {
    background-color: #3367D6;
}


.tabs {
    overflow: hidden;
    border: 1px solid #ccc;
    background-color: #f1f1f1;
    margin-bottom: 0px!important;
    border-bottom: none;
    border-radius: 6px 6px 0px 0px; 
}

.tab-button {
    background-color: inherit;
    width:100%;
    float: left;
    border: none;
    outline: none;
    cursor: pointer;
    padding: 3px 4px;
    transition: 0.3s;
    
}

.tab-button:hover {
    background-color: #ddd;
}

.tab-button.active {
    background-color: #ccc;
    font-weight: bold;
}

.tab-content {
    display: none;
    padding: 3px 9px;
    border: 1px solid #ccc;
    
}

.tab-content.active {
    display: block;
}




/* Existing styles for venue list */
.venue-list {
    list-style-type: none;
    padding: 0;
    margin: 0;
    width: 100%;
}

.venue-item {
    border-bottom: 1px solid #e0e0e0;
    width: 100%;
}

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

.venue-link {
    display: block;
    padding: 6px 0;
    color: inherit;
    text-decoration: none;
    width: 100%;
}

.venue-link:hover {
    background-color: #f8f9fa;
}

.venue-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.venue-row:first-child {
    margin-bottom: 4px;
}

.venue-name {
    font-weight: bold;
    flex-grow: 1;
    margin-right: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.venue-location {
    text-align: right;
    white-space: nowrap;
}

.user-initials {
    background-color: #f1f1f1;
    color: black;
    border-radius: 20%;
    width: 20px;
    height: 20px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    font-size: 0.80em;
    font-weight: 500;
    margin-right: 5px;
    line-height: 0;
    flex-shrink: 0;
}

.visit-count {
    margin-right: 10px;
    white-space: nowrap;
}

.last-updated {
    font-size: 0.8em;
    color: #6c757d;
    white-space: nowrap;
    margin-left: auto;
}

/* Adjust container padding for mobile */
@media (max-width: 768px) {
    .container {
        padding-left: 10px;
        padding-right: 10px;
    }
}
.btn-primary.btn-sm .btn-outline-dark.btn-sm .btn-outline-secondary.btn-outline-secondary {
    white-space: nowrap;
    padding: 2px 8px;
    font-size: 0.8em;
}

.btn-outline-dark.btn-sm  {
    white-space: nowrap;
    padding: 2px 8px;
    font-size: 0.8em;
}


.gm-style .gm-style-iw-c {
    padding: 0 !important;
}

.gm-style .gm-style-iw-d {
    overflow: hidden !important;
    padding: 0 !important;
}

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

.gm-style-iw-chr {
    display: none !important;
}

.gm-style .gm-style-iw-c h3 {
    margin-top: 0;
    margin-bottom: 8px;
}

.gm-style .gm-style-iw-c p {
    margin-bottom: 8px;
}

.gm-style .gm-style-iw-c .btn {
    display: inline-block;
    padding: 6px 12px;
    margin-bottom: 0;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.42857143;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    cursor: pointer;
    background-image: none;
    border: 1px solid transparent;
    border-radius: 4px;
    color: #fff;
    background-color: #337ab7;
    border-color: #2e6da4;
}

.menu-toggle {
    display: flex;
    align-items: center;
    cursor: pointer;
    width: auto; /* Allow the div to grow based on its content */
}


.home-icon {
    color: white;
    margin-right: 10px;
    text-decoration: none;
    font-size: 1.3em; /* Increase font size by 20% */
    font-weight: bold; /* Make the text bold */
    display: flex;
    align-items: center;
}

.home-icon i {
    font-size: 1.1em; /* Increase icon size by 20% */
    margin-right: 1px; /* Add some space between the icon and text */
}

.home-icon:hover {
    color: white;
    text-decoration: none;
}

.stracker-logo {
    width: 24px; /* Adjust as needed */
    height: 24px; /* Adjust as needed */
    margin-right: 2px; /* Space between logo and text */
    position: relative;
    top: -4px;
}

.stracker-logo svg {
    display: block; /* Removes any extra space below the SVG */
    vertical-align: middle; /* Aligns the SVG with the middle of the line */
}

.location-indicator {
    margin-right: 10px;
    position: relative;
}

.location-indicator .fa-map-marker-alt {
    color: #F6B26B;
}

.location-indicator .fa-exclamation {
    color: #F6B26B;
    position: absolute;
    top: -8px;
    right: -8px;
    font-size: 12px;
}

.location-indicator .fa-check {
    color: #93C47D;
    position: absolute;
    top: -8px;
    right: -8px;
    font-size: 12px;
}

/* Remove top margin from all page content containers */
.page-content-container.container {
    margin-top: 0 !important;
    padding-top: 0 !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
}

/* Remove top margin from cards within page content containers */
.page-content-container .card {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Add some padding to the top of the first card if needed */
.page-content-container .card:first-child {
    padding-top: 1rem;
}

/* Adjust spacing between cards if needed */
.page-content-container .card + .card {
    margin-top: 1rem !important;
      padding-top: 0 !important;
}

/* Remove unwanted top margin from buttons in the venue action buttons row */
.form-row.align-items-center .btn {
    margin-top: 0 !important;
}

/* Target the specific venue buttons to remove their top margin */
#scoutFromVenue, 
#nearbyButton, 
a[href*="google.com/maps/dir"].btn {
    margin-top: 0 !important;
}

/* Ensure column divs that contain the buttons don't have top margin either */
.form-row.align-items-center > div.col-4 {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

#placesList {
    list-style-type: none;
    padding: 0;
    margin: 20px auto;
    width: 90%;
    max-width: 600px;
}

.place-card {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px;
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.place-checkbox {
    flex-shrink: 0;
}

.place-name, .place-address, .place-distance {
    flex-grow: 1;
}

.place-name {
    font-weight: bold;
}

.place-distance {
    font-style: italic;
}

.latlong p {
     font-size: .65em;
     line-height: 1.0;
     color:#c9c9c9;
     margin-right: 0px; /* Optional: Add some space between the Lat and Long */
      font-family: 'Roboto Condensed', sans-serif;
}

.latlonginfo {
    display: inline;
}
.header {
       position: sticky;
        top: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #000;
    color: white;
    padding: 2px 4px;
    z-index: 9998; /* Lower than the message overlay */

}

.header-left {
    display: flex;
        width:80%;

    align-items: center;
}

.header-right {
    display: flex;
    width:20%;
    align-items: center;
    position: relative;
    justify-content: flex-end;
}

.header-title {
    font-size: 1.2em;
    margin-right: 5px;
        color: white;
}
.user-name {
     color: white;
}

.header-user-info {
     color: white;
    margin-right: 10px;
    cursor: pointer;
}

.user-avatar {
    width: 35px !important;
    height: 35px !important;
    border-radius: 10%;
      min-width: 35px;
    min-height: 35px;
}

.hamburger-menu {
    font-size: 1.8em;
    cursor: pointer;
}

.nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #000;
    border: 1px solid #444;
    border-radius: 4px;
    width: 200px;
    z-index: 10000;
}

.nav-menu.active {
    display: block;
}

.nav-menu ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.nav-menu ul li {
    border-bottom: 1px solid #919191;
}

.nav-menu ul li:last-child {
    border-bottom: none;
}

.nav-menu ul li a {
    display: block;
    padding: 10px 20px;
    color: white;
    text-decoration: none;
}

.nav-menu ul li a:hover {
    background-color: #444;
}

/* For stronger visual separation */
.nav-menu .separator {
    border-bottom: 1px solid rgba(255, 255, 255, 255);
    margin-bottom: 5px;
    padding-bottom: 5px;
}

.backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent black */
    z-index: 9998;  /* Just below the menu but above other content */
}

.nav-menu.active + .backdrop {
    display: block;
}
/* Remove or comment out this media query */
/*
@media (min-width: 600px) {
    .nav-menu {
        display: flex;
        position: static;
        background-color: transparent;
        border: none;
    }

    .nav-menu ul {
        display: flex;
    }

    .nav-menu ul li {
        border: none;
    }

    .nav-menu ul li a {
        padding: 10px 20px;
    }

    .hamburger-menu {
      
    }
}
*/

.icon-width {
    width: 20px;
    display: inline-block;
    text-align: center;
}

body .card {
    margin-bottom: 1rem !important;
    box-shadow: 0 2px 3px rgba(10, 10, 10, 0.1) !important;
    border: 1px solid #e0e0e0 !important;
    color: #333 !important; /* Override all imported sheets - minimum darkness requirement */
}

body .card-body {
    padding-top: 0.75rem !important;     /* Keep top padding */
    padding-bottom: 0.75rem !important;   /* Keep bottom padding */
    padding-left: 0.375rem !important;    /* Reduce left padding by 50% */
    padding-right: 0.375rem !important;   /* Reduce right padding by 50% */
    color: #333 !important; /* Override all imported sheets - minimum darkness requirement */
}
.card-header {
    padding: 1rem;
}

.card-subtitle {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.card-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.card-text {
    font-size: 0.9rem;
}

body .card .card-title {
    font-size: 1.5rem !important;
    margin-bottom: 0.5rem !important;
    font-weight: bold !important;
}

body .card .card-text {
    margin-bottom: 0.25rem !important;
    font-size: 1rem !important;
    line-height: 1.4 !important;
}

body .card .btn-sm {
    padding: 0.25rem 0.5rem !important;
    font-size: 0.875rem !important;
    margin-top: 0.5rem !important;
}

body .card a {
    color: #0056b3 !important;
    text-decoration: none !important;
}

body .card a:hover {
    text-decoration: underline !important;
}



.btn-primary {
    background-color: #007bff;
    color: #ffffff;
    border: none;
}

.btn-secondary {
    background-color: #6c757d;
    color: #ffffff;
    border: none;
   
}

main {
    flex: 1;
}

/* Desktop: Constrain main content, header, footer, and breadcrumb to mobile-width for better UX */
@media (min-width: 768px) {
    main {
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
        box-sizing: border-box;
        overflow-x: hidden;
    }
    
    .header {
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
        box-sizing: border-box;
    }
    
    .sfooter {
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
        box-sizing: border-box;
    }
    
    ol.breadcrumb {
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
        box-sizing: border-box;
    }
    
    /* Ensure child elements respect container width */
    main * {
        box-sizing: border-box;
        max-width: 100%;
    }

    /* Google Maps controls need unrestricted sizing */
    #interactiveMap,
    #interactiveMap * {
        max-width: none;
    }

    /* Ensure cards and containers don't overflow */
    main .card,
    main .container,
    main .container-fluid {
        max-width: 100%;
        box-sizing: border-box;
    }
}

/* Shift map controls closer to bottom edge */
#interactiveMap .gm-bundled-control {
    transform: translateY(10px);
}
#interactiveMap gmp-internal-camera-control {
    transform: translateY(20px);
}

/* Footer styling */
.sfooter {
    /*   position: sticky;
       bottom: 0; */
    background-color: #333;
    color: white;
    height: 50px; /* Set the same height as the header */
    text-align: center;
      font-size: .75em;
    padding: 10px 20px;
  
    width: 100%;
}

.footer-column {
    flex: 1;
    padding: 10px;
}

.footer-column p {
    margin: 0;
}

 html, body {
            height: 100%;
            margin: 0;
            padding: 0;
            display: flex;
            flex-direction: column;
            font-family: 'Roboto', sans-serif !important;
            font-size: 2em; /* Base font size for the body */
            color: #222 !important; /* Override all imported sheets - minimum darkness requirement */
        }

        /* Style for the map container */
        #map {
            height: 300px; /* Adjust height as needed */
            width: 100%;
        }

        /* Styling for header and content */
       

        .container {
            max-width: 100%;
            margin: 0 auto;
            padding: 10px;
        }
        
        
           .places-list {
            list-style: none;
            padding: 0;
        }

        .places-list li {
            margin-bottom: 10px;
        }
        
body h1, body h2, body h3, body h4, body h5, body h6, body .h7 {
    font-family: 'Roboto', sans-serif !important;
    line-height: 1.0 !important;
    margin-bottom: 0.5em !important;
}

body h1 {
    font-size: 2.5rem !important;
    font-weight: bold !important;
    color: #333 !important;
    border-bottom: 2px solid #4285F4 !important;
    padding-bottom: 0.3em !important;
    padding-right: 25px;
}

body h1::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px; /* Adjust the height of the underline */
    background-color: #4285F4 !important; /* Adjust the color of the underline */
}

body h2 {
    font-size: 2rem !important;
    font-weight: bold !important;
    color: #4285F4 !important;
}

body h3 {
    font-size: 1.75rem !important;
    font-weight: bold !important;
    color: #0F9D58 !important;
}

body h4 {
    font-size: 1.5rem !important;
    font-weight: bold !important;
    color: #F4B400 !important;
}

body h5 {
    font-size: 1.25rem !important;
    font-weight: bold !important;
    color: #DB4437 !important;
}

body h6 {
    font-size: 1.1rem !important;
    font-weight: bold !important;
    color: #4285F4 !important;
}

body .h7 {
    font-size: 1rem !important;
    font-weight: bold !important;
    color: #333 !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    body h1 { font-size: 2rem !important; }
    body h2 { font-size: 1.75rem !important; }
    body h3 { font-size: 1.5rem !important; }
    body h4 { font-size: 1.25rem !important; }
    body h5 { font-size: 1.1rem !important; }
    body h6, body .h7 { font-size: 1rem !important; }
}

/* Add this section after the venue-list styles (around line 723) */

/* Order List Styling */
.order-list {
    display: flex;
    flex-direction: column;
    padding: 0;
    margin: 0;
}

.order-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 12px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.order-item:hover {
    background-color: #f8f9fa;
}

/* Add after line 1370, before line 1371 */

/* Demo Order Styling */
.demo-order-list {
    margin-top: 0px;
}

.demo-order-item {
    display: flex;
    justify-content: space-between;
    /* Removed commented out margin-bottom */
}

.demo-order-left, 
.demo-order-right {
    display: flex;
    flex-direction: column;
}

.demo-order-date, 
.demo-order-due, 
.demo-order-priority, 
.demo-order-user {
    font-size: 0.9em;
}

.demo-order-priority {
    font-weight: bold;
}

.demo-order-comments {
    font-style: italic;
    margin-top: 5px;
    font-size: 0.9em;
}

/* End Demo Order Styling */

#new-contact-form select.form-control-sm.custom-select-primary {
    padding: 0.25rem 0.75rem;  /* Increase horizontal padding */
    line-height: 1.2;          /* Adjust line height */
    display: flex;             /* Use flex for vertical centering */
    align-items: center;       /* Center content vertically */
    justify-content: center;   /* Center content horizontally */
    height: 31px;             /* Match button height */
}

/* Voice Input Button Styling */
.voice-input-btn {
    height: 100% !important;
    margin: 0 !important;
    padding: 0.375rem 0.75rem !important;
    display: flex !important;
    align-items: center !important;
    -webkit-tap-highlight-color: transparent !important;
    outline: none !important;
    box-shadow: none !important;
}

.voice-input-btn:focus,
.voice-input-btn:active,
.voice-input-btn:hover {
    outline: none !important;
    box-shadow: none !important;
    background-color: transparent !important;
}

/* Voice Input Modal Styling */
.voice-status-icon i {
    font-size: 1.5em;
}

.voice-status-icon i.fa-beat {
    animation: fa-beat 1s infinite;
}

@keyframes fa-beat {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.input-group-append {
    display: flex;
}

/* Input Group Styling for Voice Input */
.input-group textarea {
    resize: vertical;
    min-height: 100px;
}

.input-group-append {
    align-self: stretch;
}

.input-group-append .voice-input-btn {
    height: 100% !important;
    display: flex;
    align-items: center;
}

/* Ensure the input group wraps the textarea properly */
.input-group {
    display: flex;
    flex-wrap: nowrap;
}

/* Make sure the mic button stays on the right side */
.input-group > .form-control {
    flex: 1 1 auto;
    width: 1%;
}

/* Adjust the mic button for textareas */
.input-group-append .voice-input-btn.textarea-mic {
    padding: 0.375rem 0.75rem;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    border: 1px solid #ced4da;
    border-left: none;
    background-color: #f8f9fa;
}

/* Modal styling to prevent scrolling */
.modal {
    position: fixed;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    margin: 0 !important;
}

body.modal-open {
    overflow: hidden !important;
    height: 100vh !important;
}


/* Ensure the effect isn't clipped */
.form-group {
    position: relative !important;
    z-index: 1 !important;
    margin-bottom: 2rem !important;
    overflow: visible !important;
}

.form-control {
    position: relative !important;
    z-index: 1 !important;
}

/* Listening state - blue glow and background */
@keyframes listening-glow {
    0% { 
        box-shadow: 0 0 10px #90caf9, 0 0 20px #64b5f6, 0 0 30px #42a5f5;
        background-color: #e3f2fd;
    }
    50% { 
        box-shadow: 0 0 15px #64b5f6, 0 0 25px #42a5f5, 0 0 35px #2196f3;
        background-color: #bbdefb;
    }
    100% { 
        box-shadow: 0 0 10px #90caf9, 0 0 20px #64b5f6, 0 0 30px #42a5f5;
        background-color: #e3f2fd;
    }
}

/* Processing state - orange glow and background */
@keyframes processing-glow {
    0% { 
        box-shadow: 0 0 10px #ffcc80, 0 0 20px #ffb74d, 0 0 30px #ffa726;
        background-color: #fff3e0;
    }
    50% { 
        box-shadow: 0 0 15px #ffb74d, 0 0 25px #ffa726, 0 0 35px #ff9800;
        background-color: #ffe0b2;
    }
    100% { 
        box-shadow: 0 0 10px #ffcc80, 0 0 20px #ffb74d, 0 0 30px #ffa726;
        background-color: #fff3e0;
    }
}

/* Formatting state - green glow and background */
@keyframes formatting-glow {
    0% { 
        box-shadow: 0 0 10px #a5d6a7, 0 0 20px #81c784, 0 0 30px #66bb6a;
        background-color: #e8f5e9;
    }
    50% { 
        box-shadow: 0 0 15px #81c784, 0 0 25px #66bb6a, 0 0 35px #4caf50;
        background-color: #c8e6c9;
    }
    100% { 
        box-shadow: 0 0 10px #a5d6a7, 0 0 20px #81c784, 0 0 30px #66bb6a;
        background-color: #e8f5e9;
    }
}

@keyframes error-glow {
    0% { 
        box-shadow: 0 0 10px #ef9a9a, 0 0 20px #e57373, 0 0 30px #ef5350;
        background-color: #ffebee;
    }
    50% { 
        box-shadow: 0 0 15px #e57373, 0 0 25px #ef5350, 0 0 35px #f44336;
        background-color: #ffcdd2;
    }
    100% { 
        box-shadow: 0 0 10px #ef9a9a, 0 0 20px #e57373, 0 0 30px #ef5350;
        background-color: #ffebee;
    }
}



.voice-recording.voice-state-listening {
    animation: listening-glow 2s ease-in-out infinite !important;
}

.voice-recording.voice-state-processing {
    animation: processing-glow 2s ease-in-out infinite !important;
}

.voice-recording.voice-state-formatting {
    animation: formatting-glow 2s ease-in-out infinite !important;
}

.voice-recording.voice-state-error {
    animation: error-glow 2s ease-in-out infinite !important;
}

.voice-recording {
    position: relative !important;
    border: 1px solid #ced4da !important;
    border-radius: 4px !important;
}

.followup-card {
    border: 1px solid rgba(0,0,0,0.1);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    cursor: pointer;
    transition: transform 0.2s;
}

.followup-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.followup-type {
    font-weight: 500;
    font-size: 1rem;
    color: #495057;
}


.fa-square-check, .fa-square {
    font-size: 1.1rem;
    padding-right: 5px;
}

.text-success {
    color: #28a745 !important;
}

.text-secondary {
    color: #adb5bd !important;
}

/* Add this after your existing badge styles */
.badge {
    color: #fff !important;
}

.location-bar {
    background-color: #444444;
    padding: 4px 15px;
    margin-bottom: 0;
}

.location-info {
    display: flex;
    align-items: center;
    gap: 20px;
    color: #ffffff;
    font-size: 0.7em;
}

.location-indicator {
    display: inline-flex;
    align-items: center;
}

.location-text {
    white-space: nowrap;
}

.latlonginfo {
    font-weight: 500;
    color: #8eef8e;
}

/* Sticky header and nav styles */
.header-container {
    position: sticky;
    top: 0;
    width: 100%;
    background-color: #000;
    z-index: 9999;
}

.header {
    width: 100%;
    background-color: #000;
    padding: 2px 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
}

/* Simple dropdown menu */
.nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #000;
    border: 1px solid #444;
    border-radius: 4px;
    width: 200px;
    z-index: 10000;
}

.nav-menu.active {
    display: block;
}

/* Adjust tabs z-index */
.tabs {
    position: relative;
    z-index: 1;
}

/* Style for Scout, Nearby, and Directions buttons - ensuring consistent styling */
#scoutFromVenue.btn-primary, 
#nearbyButton.btn-secondary,
button.btn-outline-primary.btn-sm.btn-block,
.btn-secondary[href*="google.com/maps/dir"],
a[href*="google.com/maps/dir"].btn {
    background-color: #ffffff;
    color: #276abb !important;
    border: 1px solid #276abb;
    display: inline-block;
    font-weight: 400;
    text-align: center;
    vertical-align: middle;
    user-select: none;
    padding: .25rem .5rem;
    font-size: .875rem;
    line-height: 1.5;
    border-radius: .2rem;
    text-decoration: none !important;
    transition: color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;
}

#scoutFromVenue.btn-primary:hover, 
#nearbyButton.btn-secondary:hover,
button.btn-outline-primary.btn-sm.btn-block:hover,
.btn-secondary[href*="google.com/maps/dir"]:hover,
a[href*="google.com/maps/dir"].btn:hover {
    background-color: rgba(39, 106, 187, 0.1);
    color: #276abb !important;
    border: 1px solid #276abb;
    text-decoration: none !important;
}

#scoutFromVenue.btn-primary:active, 
#nearbyButton.btn-secondary:active,
button.btn-outline-primary.btn-sm.btn-block:active,
.btn-secondary[href*="google.com/maps/dir"]:active,
a[href*="google.com/maps/dir"].btn:active {
    background-color: #276abb;
    color: #ffffff !important;
    border: 1px solid #276abb;
    text-decoration: none !important;
}

/* Override any default link behaviors for Directions button */
a[href*="google.com/maps/dir"].btn * {
    color: #276abb !important;
}

/* Override any default behaviors for Directions button */
a[href*="google.com/maps/dir"].btn *,
button.btn-outline-primary.btn-sm.btn-block * {
    color: #276abb !important;
}

button.btn-outline-primary.btn-sm.btn-block:active * {
    color: #ffffff !important;
}

/* Venue item styling in nearby modal */
#nearbyModal .venue-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 12px;
    border-bottom: 1px solid #eee;
    text-align: left;
}

#nearbyModal .venue-info {
    flex: 1;
    padding-right: 15px;
    min-width: 0; /* Allow text to wrap */
    text-align: left;
}

#nearbyModal .venue-name {
    color: #000;
    font-weight: 500;
    margin-bottom: 4px;
    word-wrap: break-word;
    text-align: left;
}

#nearbyModal .venue-location {
    color: #000;
    font-size: 0.9em;
    word-wrap: break-word;
    text-align: left;
    margin-bottom: 4px;
    text-decoration: none;
    color: #276abb; /* Link color to match other links */
    cursor: pointer;
}

#nearbyModal .venue-location:hover {
    text-decoration: underline;
}

#nearbyModal .venue-distance {
    color: #666;
    font-size: 0.8em;
    font-style: italic;
}

#nearbyModal .button-column {
    flex-shrink: 0;
    margin-left: 10px;
    display: flex;
    align-items: center;
}

#nearbyModal .btn {
    white-space: nowrap;
}

/* Range slider styling */
.range-slider {
    width: 100%;
    margin-bottom: 10px;
    -webkit-appearance: none;
    height: 4px;
    background: #ddd;
    border-radius: 2px;
    outline: none;
}

.range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%; 
    background: #276abb;
    cursor: pointer;
}

.range-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #276abb;
    cursor: pointer;
}

.range-marks {
    display: flex;
    justify-content: space-between;
    padding: 0 2px;
    font-size: 0.8em;
    color: #666;
    margin-top: 10px; /* Increased from -8px to 10px to create space below the slider */
}

/* Modal content styling */
.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 0;
    border: 1px solid #888;
    width: 90%;
    max-width: 400px; /* Control the width of the modal */
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.modal-body {
    padding: 0;
    max-height: calc(100vh - 200px);
    overflow-y: auto;
}

#nearbyModal {
    z-index: 2100 !important; /* Higher than the favorite star */
}

/* Ensure nearby modal fits within viewport on mobile */
#nearbyModal .modal-content {
    width: calc(100vw - 24px);
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

#nearbyModal .modal-body {
    overflow-x: hidden;
}

/* Route modal styles moved to includes/route_modal.php */

/* Venue Open Status Indicator Styles */
.status-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-left: 5px; /* Space between dot and venue name */
    vertical-align: middle;
    border: 1px solid transparent; /* Base border */
}

.status-dot.open {
    background-color: #28a745; /* Green */
    border-color: #28a745;
}

.status-dot.closed {
    /* Was: Red Outline Circle */
    /* Now: Solid Orange Dot (like old closing-soon) */
    background-color: #ffc107; /* Orange/Amber */
    border-color: #ffc107;
}

.status-dot.closing-soon {
    /* Was: Orange Solid Dot */
    /* Now: Red Outline Circle (like old closed) */
    background-color: transparent;
    border-color: #dc3545; /* Red */
}

.status-dot.opening-soon {
    /* Was: Yellow Solid Dot */
    /* Now: Green Outline Circle */
    background-color: transparent;
    border-color: #28a745; /* Green */
}

.status-dot.closed-today {
    /* Unchanged: Red Solid Dot */
    background-color: #dc3545; /* Red */
    border-color: #dc3545;
}

.status-dot.unknown-hours {
     /* Unchanged: Grey Outline Circle */
    background-color: transparent;
    border-color: #6c757d; /* Grey */
}
