:root {
  --brand-color: #e03e1b;
}
body {
  background-color: #ffffff;
  font-family: 'Montserrat', sans-serif; /* Use Google Fonts */
  color: #666666; /* A nice dark grey instead of pure black */
}
.nav-link {
  color: black;
  font-size: 0.8rem;
  transition: color 0.3s ease;
}
.nav-link:hover,
.nav-link.active {
  color: #e03e1b;
}
a.custom-link {
  color: black !important;
  text-decoration: underline !important;
  cursor: pointer;
}
a.edit-link {
  color: green !important;
  text-decoration: underline !important;
}
p { 
  margin: 0;
}
table {
  width: 100%;
}

/* Set the FINAL font styles on the cells directly */
#dataTable td {
    font-size: 14px;
    color: black;
}
/* Change the background color of the DataTable header */
  #dataTable thead {
  background-color: #e0e0e0; /* Change to desired background color */
}
/* Increase font size of table header */
  #dataTable thead th {
  font-size: 16px; /* Adjust font size as needed */
}
.sticky-header {
  position: fixed;
  top: 0;
  left: 0; /* Ensure it sticks to the left edge */
  width: 100%; /* Ensure it spans the full width */
  background-color: #ffffff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}
.header-logo {
  width: 100px; /* Adjust as needed */
  height: auto;
}
.header-links {
  font-size: 18px; /* Adjust as needed */
}
/* JUST for site width and centering. Use this everywhere. */
.site-container {
  width: 85%;
  margin: 0 auto;
}
/* ONLY handles spacing for the main content area. */
.container-main {
  padding-top: 100px;
}
.image-column img {
  max-width: 100%;
  height: auto;
}
.description-column {
  overflow: hidden;
}
.description-text {
  max-height: 195px; /* Adjust as needed */
  overflow: hidden;
}
.show-more {
  display: none;
  text-align: right;
  margin-top: 10px;
}
.show-more.show {
  display: block;
}
.video-container {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
}
.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
.map-container {
  width: 100%;
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio, adjust as needed */
}
/* Set the iframe to 100% width and absolute positioning */
.map-iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
/* Increase button text and icon size */
.modal-body .btn {
  margin-bottom: 10px; /* Adjust as needed */
  color: #000; /* Black text */
  font-size: 18px; /* Adjust as needed */
  padding: 8px 12px; /* Adjust padding as needed */
  text-align: left; /* Left align text */
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
/* Change hover color of Share Buttons */
  .modal-body .btn:hover {
  background-color: #f0f0f0; /* Light gray */
  color: #000; /* Black text */
}
/* Custom CSS for oval button */
.btn-custom-top {
  width: 100px; /* Adjust width as needed */
  height: 40px; /* Adjust height as needed */
  border-radius: 30px; /* Half of the height to create an oval shape */
  background-color: #ffffff; /* Button background color */
  color: gray; /* Button text color */
  border: 1px solid #cccccc; /* Button border */
  display: flex; /* Use flexbox for icon alignment */
  align-items: center; /* Center items vertically */
  justify-content: space-around; /* Space icons evenly */
  padding: 5px 10px; /* Adjust padding as needed */
  font-size: 30px; /* Adjust icon size */
  cursor: pointer; /* Change cursor to pointer on hover */
  transition: background-color 0.3s; /* Smooth transition for background color change */
  /* Remove the down arrow */
  background-image: none !important;
}
/* Custom CSS for hover effect */
.btn-custom:hover {
  background-color: #ffffff; /* Background color on hover */
  border: 1px solid #dddddd;
}
/* Remove default dropdown arrow */
  .dropdown-toggle::after {
  display: none;
}
/* Custom CSS to remove or change background color of dropdown links */
  .dropdown-item {
  background-color: transparent !important; /* Remove background color */
}
/* --------------------- */
/* INDEX CSS ADDED BELOW */
/* --------------------- */
.custom-border {
  border: 1px solid #ced4da;
  border-radius: 10px;
  padding: 10px;
}
.dropdown-toggle {
  background-color: #fff !important;
  border-color: #ccc !important;
  color: #000;
}
.dropdown-toggle:focus {
  box-shadow: none !important;
}
.form-control {
  width: 100%; /* Full width */
}
.form-group {
  margin-bottom: 0; /* Remove bottom margin */
}
.d-flex {
  align-items: center; /* Align items vertically */
}
.flex-grow-1 {
  flex-grow: 1; /* Allow the middle column to grow */
}
.col-auto {
  flex: 0 0 auto; /* Disable flex growth */
}
/* Set dropdown item text color to black */
.dropdown-menu .dropdown-item {
  color: black;
}
/* Change background color on hover */
.dropdown-menu .dropdown-item:hover {
  background-color: #f0f0f0 !important;
}
/* Set dropdown button text color and background */
.custom-dropdown .dropdown-toggle {
  color: white !important;
  background-color: #FE0101 !important;
}
/* Change dropdown button background color on hover */
.custom-dropdown .dropdown-toggle:hover {
  background-color: #FF7F7F !important;
}
.form-control:focus {
  border-color: #e08787;
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(255, 0, 0, 0.1);
}
/* Target the DataTable container */
#dataTable_wrapper {
  font-size: 14px; /* Set the font size */
  color: black;
}
/* Hide the sorting icon for all columns */
.dataTable > thead > tr > th[class*="sort"]:before,
.dataTable > thead > tr > th[class*="sort"]:after {
  content: "" !important;
}
/* Custom button styles */
.btn-VH {
  background-color: #ffffff; /* White background */
  color: #212529; /* Text color */
  border: 1px solid #ced4da; /* Border color */
}
.btn-VH:hover {
  background-color: #f8f9fa; /* Light grey on hover */
  border: 1px solid #ced4da; /* Border color */
}
/* Delete button style */
.btn-delete {
  background-color: #ffffff; /* White background */
  color: #FF0000 !important; /* Text color */
  border: 1px solid #FF0000; /* Border color */
  }
  .btn-delete:hover {
  background-color: #f8f9fa; /* Light grey on hover */
  border: 1px solid #FF0000; /* Border color */
  }
/* To remove password manager background color - Target WebKit-based browsers (Chrome, Safari) */
input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus, 
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px white inset !important;
}
/* To remove password manager background color - Target Firefox (Gecko engine) */
input:-moz-autofill,
input:-moz-autofill:hover,
input:-moz-autofill:focus,
input:-moz-autofill:active {
    box-shadow: 0 0 0 30px white inset !important;
}
.initial-circle {
  display: inline-block;
  width: 32px; /* Adjust size as needed */
  height: 32px; /* Adjust size as needed */
  border-radius: 50%;
  background-color: #e03e1b; /* Your desired background color */
  color: #fff; /* Text color */
  text-align: center;
  line-height: 32px; /* Should match height to center the text vertically */
  font-size: 16px; /* Adjust font size as needed */
}
.required {
  color: #e03e1b;
}
.icon-btn-container {
  text-align: center;
}
.icon-btn {
  background-color: #e03e1b;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  text-align: center;
  cursor: pointer;
  display: flex; /* Changed from inline-flex to flex */
  align-items: center;
  justify-content: center; /* Added */
  margin-bottom: 10px;
  transition: background-color 0.2s ease; /* Smooth transition for hover effect */
}
.icon-btn i {
  margin-right: 5px;
}
.icon-btn:hover {
  color: white;
  background-color: #FF7F7F; /* Hover color */
  text-decoration: none;
}
.red-link {
  color: #e03e1b;
}
.red-link:hover {
  color: #e03e1b;
  text-decoration: underline;
  text-decoration-color: #e03e1b;
}
/*
 * Global style to remove the focus glow from ALL modal close buttons.
 * This ensures a consistent, clean look across the entire site.
 */
 .modal .btn-close:focus {
  box-shadow: none !important;
  outline: none !important;
}
/* Style for the pending counts in the account dropdown menu */
.dropdown-count {
  color: #e03e1b; /* Your brand red */
  font-weight: bold;
  margin-left: 5px; /* Adds a little space between the text and the number */
}
/* The default grey background for our sectioned items */
.dropdown-menu .dropdown-item-sectioned {
  background-color: #f4f3f3 !important;
}
/* The darker hover effect */
.dropdown-menu .dropdown-item-sectioned:hover,
.dropdown-menu .dropdown-item-sectioned:focus { /* Also apply on keyboard focus for accessibility */
  background-color: #e6e7e9 !important; /* Your darker grey */
}
/* Ensure the text color stays black on hover */
.dropdown-menu .dropdown-item-sectioned:hover a,
.dropdown-menu .dropdown-item-sectioned:hover {
  color: #212529 !important; /* Standard black text color */
}
/* A new class to create an even smaller pill than Bootstrap's .btn-sm */
.btn-pill-compact {
  padding-top: 0.15rem;    /* Reduces vertical padding */
  padding-bottom: 0.15rem; /* Reduces vertical padding */
  padding-left: 0.8rem;    /* Sets a nice horizontal padding */
  padding-right: 0.8rem;   /* Sets a nice horizontal padding */
  font-size: 0.8rem;       /* Makes the font slightly smaller */
}
/* 
  Improves map accessibility by ensuring the attribution link
  has a high contrast ratio against the map background.
*/
.leaflet-control-attribution a {
  color: black !important;
}
/*
  Accessibility Fix for Leaflet Zoom Controls
  - Increases the size of the buttons to meet the 48x48px touch target minimum.
  - Centers the '+' and '-' icons perfectly within the new, larger buttons.
*/
.leaflet-control-zoom a {
  /* 1. Set the dimensions */
  width: 44px !important;   /* Set a width close to 48px */
  height: 44px !important;  /* Set a height close to 48px */
  
  /* 2. Use Flexbox for perfect centering */
  display: flex !important;
  align-items: center !important;   /* Vertical centering */
  justify-content: center !important; /* Horizontal centering */
  
  /* 3. Adjust font size for the icon itself */
  font-size: 22px !important;  /* A good size for the '+' and '-' */
  
  /* 4. Remove the old line-height property if it's there */
  line-height: normal !important; /* Resets any conflicting line-height */
}
/*
  Font Awesome 5 Free - Specificity Fix
  Forces any element with the '.fas' class to use the correct
  font-weight (900) required for Solid icons.
*/
.fas {
  font-weight: 900 !important;
}
  /*
  *  Vertical Horizon Modal Overlay for Success Messages
  */
  .vh-modal-overlay {
    position: fixed; /* Stays in place even when scrolling */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent black background */
    display: flex; /* Use flexbox for easy centering */
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
    z-index: 1060; /* High z-index to appear on top of everything */
    padding: 15px; /* Add some padding for small screens */
}

.vh-modal-content {
    position: relative; /* Needed for positioning the close button inside it */
    background-color: #fff;
    padding: 30px;
    border-radius: 5px;
    max-width: 550px; /* Max width of the message box */
    width: 100%; /* Make it responsive */
    box-shadow: 0 5px 15px rgba(0,0,0,.3);
    text-align: center;
}

/* We need to override the Bootstrap close button slightly for this context */
.vh-modal-content .btn-close {
    position: absolute;
    box-shadow: none; /* This is the magic line that removes the blue glow */
    outline: 0;       /* This removes the default browser outline for good measure */
    top: 15px;
    right: 15px;
}

/* --- Styles for the Responsive Success Modal --- */
/* By default (mobile-first), hide the desktop button and show the mobile text */
.desktop-only-element {
  display: none;
}
.mobile-only-element {
  display: block;
}

/* Media Query for tablets and desktops (screens wider than 768px) */
@media (min-width: 768px) {
  /* On wider screens, show the desktop button... */
  .desktop-only-element {
      display: inline-block; /* Use inline-block for buttons */
  }
  /* ...and hide the mobile text */
  .mobile-only-element {
      display: none;
  }
}

/* Sticky header menu items - On screens smaller than the tablet breakpoint (e.g., 768px),
   hide elements with the 'hide-on-mobile' class. */
   @media (max-width: 767.98px) {
    .hide-on-mobile {
        display: none !important; /* Use !important to ensure it overrides other styles */
    }
}