/* 1. Reset and prevent overall scrolling */
html, body {
  margin: 0;
  padding: 0;
  overflow: hidden;      /* Prevent any page scroll */
  height: 100%;
  width: 100%;
  box-sizing: border-box;
}
*, *::before, *::after {
  box-sizing: inherit;
}

/* 2. Body: center our container and use fluid font sizing */
body {
  font-family: Arial, sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  width: 100vw;
  background-color: white;
  font-size: clamp(12px, 1.5vw, 15px);
  /* overflow hidden already set on html/body above */
}
/* 3. Main container */
.container {
  padding: 1rem;      /* ← new */
  box-shadow: none;   /* keep it clean if you don’t want a container shadow */
}



/* 5. Right Section – use flex-column with a gap and allow children to shrink */
.right-section {
  width: 30% !important;
  margin-left: 1%;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 1vh;             /* Use a controlled vertical gap between items */
  overflow: hidden;      /* Prevent any overflow inside the section */
  min-height: 0;         /* Allow flex children to shrink if needed */
}

/* 6. Right-top: the search bar area */
.right-top {
  flex: 0 0 5%;
  display: flex;
  align-items: center;
  gap: 1%;              /* Spacing between the input and the button */
  overflow: hidden;
  overflow-x: hidden !important;
  /* (No extra margin added here) */
}



/* ---------------------- */



/* Container for the entire layout */
.container {
  width: 99%;
  height: 98vh;
  border-radius: 10px;
  display: flex;
}

/* Leaflet Map */
.left-div {
  width: 74%;
  height: 100%;
  border-radius: 10px;
  background-color: #ccc;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}


/* Right Section */
.right-section {
  width: 25%;
  margin-left: 1%;
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* Right Top (Search Bar) */
.right-top {
  margin-bottom: 10px;
}

/* Right Bottom (Info Widget and Service Offer) */
.right-bottom {
  margin-top: 1%;
  flex: 1;
  border-radius: 10px;
  background-color: #f0f0f07e;
  padding: 3%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch; /* make children fill the width */
  text-align: left;
  font-family: 'Roboto', Arial, sans-serif;
  line-height: 1.5;
  color: #333;
  overflow: auto;
}


/* Headings */
.right-bottom h3 {
  font-size: 1.5em;
  margin-bottom: 0.5em;
}

/* Paragraphs, Ordered and Unordered Lists */
.right-bottom p,
.right-bottom ol,
.right-bottom ul {
  font-size: 1em;
  margin-bottom: 1em;
}

/* List Items */
.right-bottom li {
  margin-bottom: 0.5em;
}

/* Optional: Style the ordered list numbers if desired */
.right-bottom ol {
  padding-left: 1.5em;
}

.leaflet-popup-content-wrapper {
  background: #ffffff;
  border: 2px solid #365e92;
  border-radius: 6px !important;
  width: 300px !important;
  height: 120px !important;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  box-shadow: none !important;
  transition: transform 0.2s ease, border-color 0.2s ease;
}



/* Make the inner content stretch to fill wrapper */
.leaflet-popup-content {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}


/* Style the popup tip (arrow) as needed */
.leaflet-popup-tip {
  background: #fff;
  border: none;
  margin-bottom: 0px; /* moves the tip a bit higher */
}

.leaflet-popup-tip,
.leaflet-popup-tip-container {
  display: none !important;
}

.leaflet-popup-close-button {
  display: none !important;
}


/* Popup header (service status) */
.popup-header {
  font-family: 'Roboto', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  padding: 6px 12px;
  letter-spacing: 0.5px;
  margin: 0 auto;            /* center via auto left/right */
  display: block;
              /* or whatever fixed width you want */
  box-sizing: border-box;
  text-align: center;         /* center the text itself */
  white-space: nowrap;        /* prevent wrapping */
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Unavailable — red left bar, pale background */
.popup-header.unavailable {
   width: 250px;  
  margin-top: -30px;          /* keeps your vertical positioning */
  margin-bottom: 20px;
  background-color: #fdecea;
  color: #c6362c;
  border-left: 4px solid #c6362c;
  border-radius: 8px;
  padding-left: 16px;
}

/* Available — green left bar, pale background */
.popup-header.available {
   width: 200px;  
  margin-top: -20px;          /* vertical offset */
  margin-bottom: -10px;   
  background-color: #e0f4ea;
  color: #2a7f51;
  border-left: 4px solid #2a7f51;
  border-radius: 8px;
  padding-left: 16px;
}


/* Modern body text */
.leaflet-popup-content {
  font-family: 'Roboto', sans-serif;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #444;
  padding: 12px;
}

/* Days count styling */
.popup-content .big-days {
  font-size: 1.5rem;
  font-weight: 700;
  color: #365e92;
  margin: 8px 0 4px;
  line-height: 1.2;
}

.popup-content .small-text {
  font-size: 1rem;
  font-weight: 500;
  color: #555;
  margin: 0;
}


/* Adjust the overall popup position so it appears higher relative to the marker */


/* Overall layer control styling (unchanged) */
.leaflet-control-layers {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 14px;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  padding: 5px;
}

/* Each overlay layer label: default state has transparent background */
.leaflet-control-layers-list label {
  display: block;
  background-color: transparent;  /* No background by default */
  width: 200px;
  padding: 3px 6px;
  margin-bottom: 0px;
  border-radius: 5px;
  cursor: pointer;
}

/* When a layer is selected (checkbox checked), apply the background color */
.leaflet-control-layers-list label.layer-selected {
  background-color: #f0f0f0;  /* Light grey background when selected */
}

/* Increase the size of the checkboxes */
.leaflet-control-layers-list input {
  transform: scale(1.2);
  margin-right: 8px;
  vertical-align: middle;
}

/* Ensure that the expanded layers list is scrollable if necessary */
.leaflet-control-layers-expanded {
  max-height: 400px;
  overflow-y: auto;
}

/* Custom styling for the township tooltip labels (if applicable) */
.township-label {
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  font-weight: bold;
  color: #000;
  padding: 0;
}


.right-top {
  flex: 0 0 50px;
  display: flex;
  align-items: center;
  gap: 1%; /* Space between input and button */
  /* Remove any extra height property here */
}

.search-container {
  width: 90%;
  padding-right: 0px; /* Adjust as needed */
  position: relative;
  display: inline-block;
}

#search-input {
  height: 50px;
  width: 100% !important;
  padding-left: 3%;
  border: 2px solid #ccc;
  border-radius: 100px;
  outline: none;
  font-size: 1em;
  width: 80%;
  
}

/* Clear (X) button styles */
.clear-search {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 2em;
  display: block; /* Always visible */
  color: #888;
  padding: 0;
  margin: 0;
  transition: transform 0.1s ease, color 0.1s ease;
}

.clear-search:hover {
  color: #333;
}

/* Click animation: scale down briefly on active */
.clear-search:active {
  transform: translateY(-50%) scale(0.7);
}


/* Combined Action Button Styles for both #search-button and .action-button */
.action-button,
#search-button {
  height: 50px;
  width: 60px;
  border: none;
  background-color: #365e92;
  color: white;
  font-size: 1em;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: -2px;
  padding: 5px;
}

/* Unique border radius overrides */
#enter-button {
  border-radius: 100px 10px 10px 100px; /* Enter button gets 50px radius */
}

#search-button {
  background-color: #d6263b;
  margin: 2px;
  border-radius: 10px; /* Search button gets 100px radius */
}

#home-button {
  
  border-radius: 10px 100px 100px 10px; /* Home button gets 25px radius */
}

/* Hover and active states for all action buttons */
.action-button:hover,
#search-button:hover,
#home-button:hover,
#enter-button:hover {
  background-color: #facc10;
}

.action-button:active,
#search-button:active,
#home-button:active,
#enter-button:active {
  transform: scale(0.7);
}

/* Icon styling shared by both buttons */
.action-button .search-icon,
#search-button .search-icon {
  width: 1.2em;  /* Adjust icon size as needed */
  height: 2em;
  object-fit: contain;
}

/* Input focus styling */
#search-input:focus {
  border-color: #facc10 !important;

}

/* Clear (X) button styles */
.search-container {
  position: relative;
  display: inline-block;
}

#search-input {
  padding-right: 30px; /* Ensure text doesn't run under the clear button */
}



/* Style the autocomplete dropdown container */
.pac-container {
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  font-family: 'Arial', sans-serif;
  font-size: 1em;
  border: none;
  padding: 5px;
}

/* Style each item in the dropdown */
.pac-item {
  padding: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

/* Hover effect for dropdown items */
.pac-item:hover {
  background-color: #e6e6e6;
  border-radius: 10px;
}

/* Style the text inside each suggestion */
.pac-item-query {
  font-weight: bold;
  color: #365e92;
}

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

/* Highlight the selected item */
.pac-item.pac-selected {
  background-color: #e0e0e0;
}






/* Hide elements with the mobile-only class by default */
.mobile-only { display: none; }
@media (max-width: 1000px) {
  .desktop-only { display: none; }
  .mobile-only { display: inline; }
}





.public-notice {
  background-color: #ffffff; /* White background */
  color: red; /* Red text */
  padding: 1px; /* Reduced padding for compact look */
  border-radius: 10px; /* More rounded corners */
  margin: 0px 0; /* Compact margin */

  font-size: 1em;
}



/* Wrapper for timeline and description (side-by-side layout) */
#timeline-wrapper {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  width: 99%;
}


/* Left column: timeline (50% width) */
.timeline-column {
  width: 100%;
}


/* Horizontal timeline container */
.timeline {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  position: relative; /* keep this so tooltip can anchor to timeline */
  width: 80%;             /* Reduced overall width */
  margin: 20px auto;      /* Center horizontally */
  padding: 0;
  overflow: visible;
}

/* Horizontal line behind timeline items */
.timeline::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  background: #ddd;
  transform: translateY(-50%);
  z-index: 0;
}

/* Each timeline item container */
.timeline-item {
  text-align: center;
  position: static; /* tooltip will now anchor to the .timeline, not this */
  z-index: 1;
  overflow: visible;
}

/* Adjust the timeline circle styling */
.timeline-item span {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 16px;
  font-weight: bold;
  color: #000000;
  border: 2px solid #365e92;
  background: #fff;
  transition: transform 0.3s ease, background 0.3s ease;
  cursor: pointer;
}

/* Enlarge the timeline item on hover */
.timeline-item span:hover {
  transform: scale(1.2);
  z-index: 2;
}

/* Completed phase */
.timeline-item.completed-phase span {
  color: green;
  font-size: 22px;
}

/* Current phase image size */
.timeline-item.current-phase span img {
  width: 50px;
  height: 50px;
}


/* Tooltip — now fixed below the entire timeline */
.tooltip {
  position: absolute;
  left: 50%;
  top: calc(100% + 20px); /* fixed under the whole timeline */
  transform: translateX(-50%);
  background: #fff;
  color: #365e92;
  border: 0px solid #365e92;
  padding: 6px 10px;
  border-radius: 4px;
  font-size: 15px;
  font-family: 'Roboto', sans-serif;
  font-weight: bold;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 20;
  max-width: 240px;
  white-space: normal;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

/* Arrow now points up */
.tooltip::after {
  content: "";
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 8px;
  border-style: solid;
  border-color: transparent transparent #fff transparent;
}

/* Show tooltip on hover or click, but in same fixed position */
.timeline-item:hover .tooltip,
.timeline-item:active .tooltip {
  opacity: 1;
  visibility: visible;
}


/* Header and phase coloring */
.current-phase-header {
  text-align: center;
  font-size: 2.2em !important;
  font-weight: bold;
  color: #ffffff;
  margin-bottom: 20px;
}

.timeline-item.completed-phase span,
.timeline-item.current-phase span {
  background: #ffffff;
}

.timeline-item.remaining-phase span {
  background: #ffffff;
}



/* Info Widget Styling */
#info-widget {
  flex: 1;
  min-height: 200px;           /* Ensure enough space for button */
  margin-bottom: 10px;

  overflow-x: hidden;
}


.card {
  background: #ffffff00;
  border-radius: 8px;

  padding: 0px;
  margin-top: 0px;
  transition: transform 0.3s;
}



.card h4 {
  color: #0056b3;
  font-size: 1.8em !important;
  margin-bottom: 10px;
}

.card .expected-date,
.card .days-left {
  font-size: 0.9em;
  color: #666;
  margin: 5px 0;
}

.card .phase-description {
  margin-top: 10px;
  font-size: 0.9em;
  color: #444;
  background: #f9f9f9;
  padding: 10px;
  border-radius: 5px;
}


.card .days-display {
  text-align: center;
  margin-bottom: 20px;
}

.card .big-days {
  margin-top: 10px;
  font-size: 2.5em;      /* Adjust size as needed */
  font-weight: bold;
  color: #777;           /* Gray aesthetic text */
  display: block;
}

.card .days-label {
  font-size: 1.2em;
  color: #777;           /* Gray aesthetic text */
  margin: 0;
}


.empire-logo {
  width: 200px;
  max-width: 100%;
  height: auto;
  margin: 0 auto 12px;
  display: block;
}


@media screen and (max-width: 1000px) {

    .empire-logo {
    width: 80px !important;
  }



  /* Hide the map on mobile */
  .left-div {
    width: 0;
  }

  /* Make the right section occupy full width */
  .right-section {
    width: 100% !important;
  }

  /* Hide home button on mobile */
  #home-button {
    display: none !important;

  }




  /* #timeline-wrapper {
    display: none !important; 
  } */

  .right-top {
    flex: 0 0 0px 0px !important;
    display: flex;
    align-items: center;
    gap: 1%;
    overflow-x: auto; /* Horizontal scrollbar if overflow */
    overflow-y: hidden; /* Hide vertical scrollbar */
  }
  

  #search-input {
    height: 40px !important;
    border-radius: 10px !important;
    width: 100% !important;
    padding-left: 3%;
    border: 2px solid #ccc;
    border-radius: 100px;
    outline: none;
    font-size: 1em;
 

  }

  .action-button,
  #enter-button {
    height: 40px !important;
    width: 30px !important;
    border-radius: 10px !important;
    border: none;
    background-color: #365e92 !important;
    color: white;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: -2px;
    padding: 5px;
  }


/* Wrapper for timeline and description (side-by-side layout) */
#timeline-wrapper {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  width: 99%;
}

/* Left column: timeline (50% width) */
.timeline-column {
  width: 100%;
  margin-bottom: -40px !important;
}

/* Horizontal timeline container */
.timeline {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  position: relative;
  width: 80%;             /* Reduced overall width */
  margin: 20px auto;      /* Center horizontally */
  padding: 0;
}

/* Horizontal line behind timeline items */
.timeline::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  background: #ddd;
  transform: translateY(-50%);
  z-index: 0;
}

/* Each timeline item container */
.timeline-item {
  text-align: center;
  position: relative;
  z-index: 1;
  overflow: visible;
}

/* Adjust the timeline circle styling */
.timeline-item span {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 40px;         /* Smaller circle */
  height: 40px;        /* Smaller circle */
  border-radius: 50%;
  font-size: 16px;
  font-weight: bold;
  color: #000000;
  border: 2px solid #365e92;
  background: rgb(255, 255, 255);    /* Default background; will be overridden by classes */
  transition: transform 0.3s ease, background 0.3s ease;
  cursor: pointer;
}

/* Enlarge the timeline item on hover */
.timeline-item span:hover {
  transform: scale(1.2); /* Adjust the scale factor as needed */
  z-index: 2;
}

/* Completed phase: show a large green tick */
.timeline-item.completed-phase span {
  color: green;          /* Tick color */
  font-size: 22px;       /* Increase size for visibility */
}

/* Current phase: style the image inside the circle */
.timeline-item.current-phase span img {
  width: 50px;   /* Increased from 24px */
  height: 50px;  /* Increased from 24px */
}


/* --- Force a single, centered tooltip position relative to the timeline --- */

/* Make .timeline the positioning context */
.timeline { position: relative; }

/* Remove positioning context from each item so tooltips anchor to .timeline */
.timeline-item { position: static; z-index: auto; }

/* Keep the dot itself layered above the line if needed */
.timeline-item span { position: relative; z-index: 1; }

/* Center the tooltip UNDER the whole timeline, not under the hovered item */
.tooltip {
  position: absolute;
  left: 50% !important;
  top: calc(100% + 12px) !important;  /* consistent offset below the timeline */
  transform: translateX(-50%) !important;
  max-width: min(90%, 420px);
  white-space: normal;
  word-break: break-word;
}

/* Arrow stays centered */
.tooltip::after {
  left: 50% !important;
  transform: translateX(-50%) !important;
}

/* Show on hover/focus/click the same way */
.timeline-item:hover .tooltip,
.timeline-item:focus-within .tooltip,
.timeline-item:active .tooltip {
  opacity: 1;
  visibility: visible;
}



.current-phase-header {
  text-align: center;
  font-size: 2.2em !important;      /* Increase size as desired */
  font-weight: bold;
  color: #ffffff;      /* Adjust color if needed */
  margin-top: 200px !;
  margin-bottom: 20px; /* Adjust spacing */
}

/* Styling for completed and current phases */
.timeline-item.completed-phase span,
.timeline-item.current-phase span {
  background: #ffffff;
}

/* Styling for remaining phases */
.timeline-item.remaining-phase span {
  background: rgb(255, 255, 255);
}

  /* Change wrapper layout to a column */
  #timeline-wrapper {
    flex-direction: column;
    align-items: center;
  }
  
  /* Timeline column takes full width */
  .timeline-column {
    width: 100%;
    margin-bottom:  20px !important;
  }
  
  /* Reduce timeline container width and margin */
  .timeline {
    width: 95%;
    margin: 10px auto;
  }
  
  /* Smaller timeline circles */
  .timeline-item span {
    width: 30px;
    height: 30px;
    font-size: 12px;
  }
  
  /* Slightly reduce hover scale */
  .timeline-item span:hover {
    transform: scale(1.1);
  }
  
  /* Reduce header font size for current phase */
  .current-phase-header {
    font-size: 1.8em !important;
    margin-bottom: 10px;
  }
  
  /* Adjust tooltip styling for smaller screens */
  .tooltip {
    font-size: 12px;
    padding: 4px 8px;
  }
}






.no-service-card {
  display: flex;
  align-items: center;
  background-color: #fdecea;
  border-left: 4px solid #c6362c;
  border-radius: 8px;
  padding: 12px 16px;
  margin-top: 16px;
}

.no-service-icon {
  font-size: 1.8rem;
  margin-right: 12px;
  color: #c6362c;
}

.no-service-text {
  font-family: 'Roboto', sans-serif;
  color: #8a1f2d;
  font-size: 1.1rem;
  line-height: 1.4;
}


.plans-container {
  display: flex;
  gap: clamp(0.75rem, 1.5vw, 1rem);
  justify-content: space-between;
  width: 100%;
  padding-top: clamp(0.5rem, 1vw, 1rem);
}

.plan {
  flex: 1;
  border: 2px solid #d6263b;
  border-radius: 8px;
  padding: clamp(0.5rem, 1vw, 0.75rem);
  text-align: left;
  background-color: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  gap: clamp(0.25rem, 0.5vw, 0.5rem);
}

.plan span, 
.plan h4, 
.plan p, 
.plan a {
  white-space: normal;
}

.plan .plan-speed {
  color: #d6263b;
  font-weight: 600;
  font-size: clamp(0.9rem, 1.5vw, 1.1rem);
}

.plan h4 {
  margin: 0;
  font-size: clamp(1rem, 2vw, 1.25rem);
}

.plan .plan-desc {
  font-size: clamp(0.8rem, 1.2vw, 1rem);
  line-height: 1.4;
}

.plan .plan-price-row {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
}

.plan .plan-price {
  color: #000;
}

.plan small {
  font-size: clamp(0.65rem, 1vw, 0.75rem);
  color: #555;
}

.plan-btn {
  margin-top: auto;
  align-self: start;
}


.leaflet-popup-content button {
  padding: 0.4rem 0.8rem;
  font-size: 0.9rem;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

#confirm-yes {
  background-color: #2a7f51;
  color: #fff;
  margin-right: 0.5rem;
}

#confirm-yes:hover {
  background-color: #256d46;
}

#confirm-no {
  background-color: #ccc;
  color: #333;
}

#confirm-no:hover {
  background-color: #b3b3b3;
}