@charset "utf-8";
/* CSS Document */
:root {
--accent:#111;
--bg:#fafbfc;
--b:#e3e6ea;
--txt:#111;
--muted:#57606a;
}
html, body {
    height: 100%;
    margin: 0;
}
#gridToggleChk { position:absolute; left:-9999px; }
#indexToggleChk { position:absolute; left:-9999px; }

body {
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    color: var(--txt);
}
#app {
    display: grid;
    grid-template-rows: auto 1fr auto;
    height: 100%;
}

.closeSuccess {
/*  position: absolute;*/
  color:white;
/*
  top: 10px;
  right: 14px;
*/
  border: 0;
  background: transparent;
  font-size: 26px;
  cursor: pointer;
  font-weight: 700;
}
.toggle {
    background: #f0f2f4;
    color: #111;
    border: 1px solid var(--b);
}
.toggle.active {
    background: #0CB634;
    color: #fff;
}

/* refactored with chatGPT — 29/09/2025 08:20 UK */
header{
  padding:10px 12px;
  border-bottom:1px solid #fff;
  background:#1a9af8;
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;            /* let the hint drop below */
}

/* Left side: title + buttons inherit your existing look */
header button,
footer button{
  padding:10px 14px;
  border-radius:10px;
  border:0;
  background:var(--accent);
  color:#fff;
  cursor:pointer;
}
header button:hover,
footer button:hover{ filter:brightness(1.08); }

/* Right side: search container pushed to the edge */
#searchContainer{
  margin-left:auto;          /* push search to the right */
  display:flex;
  align-items:center;
  gap:8px;
  width:100%;
}
header input[type="text"]{
  width:min(520px,60vw);
  padding:9px 11px;
  border-radius:10px;
  border:1px solid var(--b);
}

/* Hint on its own line under everything */
header .hint{
  flex-basis:100%;           /* take a full new row */
  font-size:16px;
  color:#fff;
  margin-top:2px;
}

/* Small screens: keep layout tidy */
@media (max-width: 560px){
  #searchContainer{ width:100%; justify-content:flex-end; }
}    

#map {
    width: 100%;
    height: 100%;
}
footer {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 10px 12px;
    border-top: 1px solid var(--b);
    background: #fff;
}
.links a {
    margin-right: 10px;
}
.pill {
    font-size: 12px;
    color: #fff;
    background: #666;
    border-radius: 999px;
    padding: 2px 8px;
}
.pill.green {
    background: #1a7f37;
}
.pill.orange {
    background: #bf8700;
}
.pill.red {
    background: #b42318;
}
.marker-handle {
    width: 14px;
    height: 14px;
    border-radius: 3px;
    background: #fff;
    border: 2px solid #111;
    box-shadow: 0 0 0 1px rgba(0,0,0,.15);
}
.move-handle {
    width: 16px;
    height: 16px;
    border-radius: 3px;
    background: #111;
    border: 2px solid #fff;
    box-shadow: 0 1px 0 rgba(0,0,0,.2);
    cursor: move;
}
/* refactored with chatGPT — 24/09/2025 21:40 UK */
.start-handle {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid #1a7f37; /* green ring */
    box-shadow: 0 0 0 1px rgba(0,0,0,.15);
}
.vertex-handle {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #111;
    box-shadow: 0 0 0 1px rgba(0,0,0,.15);
    cursor: grab;
}
.vertex-handle:active {
    cursor: grabbing;
}
    
.field-right-label{
  display:inline-flex;
  align-items:center;
  gap:.5rem;             /* space between select and label */
}
.field-right-label > label{ order:2; margin:0; }
.field-right-label > select{ order:1; }
  

#topBar, #bottomBar {
background: var(--blue);
    color: #fff;
    padding: 10px 14px;
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
}
/* Ensures text and labels in the top bar are white, with font-weight 300 */
#topBar, #topBar label, #topBar select, #topBar input, #topBar button {
    color: #fff;
    font-weight: 300;
}

#spinnyWheel {
    display: none;
    z-index: 3000;
    position: absolute;
    top: 40%;
    left: 50%;
    border: 16px solid transparent;
    border-top: 16px solid #3498db;
    border-bottom: 16px solid #3498db;
    border-radius: 50%;
    width: 120px;
    height: 120px;
    animation: spin 1s linear infinite;
}

/* Draggable frame (if still needed) */
#pageFrame {
    position: absolute;
    top: 139px;
    right: 40px;
    border: 2px solid #000;
    overflow: hidden;
    z-index: 10000;
    background: white;
    box-shadow: black 2px 2px 3px;    
}

#miniMap {
    position: absolute;
/*
    top: 2%;
    left: 2%;
*/
    width: 97%;
    height: 98%;
    background-color: #f9f9f9;
}
.color-selector {
  position: relative;
  cursor: pointer;
}

#banner-container {
    height: 200px;              /* set the desired height */
    overflow: hidden;           /* hide horizontal overflow */
    width: 100%;                /* full width of container */
    position: relative;         /* establish positioning context */
}

#top-street-banner-img {
    height: 200px;              /* fixes image height */
    width: auto;                /* keeps original width proportional */
    display: block;             /* removes default spacing */
    position: absolute;         /* absolute positioning inside container */
    left: 50%;                  /* center horizontally */
    transform: translateX(-50%);/* center adjustment */
}
      
#color-input {
  position: absolute;
  top: 50%; /* Adjust based on your design */
  left: 50%;
  transform: translate(-50%, -50%);
  width: 30px;
  height: 30px;
  cursor: pointer;
}
.sidebar{
  width:250px;
  background:#f4f4f4;
  border-right:1px solid #ccc;
  padding:.5rem;
  box-sizing:border-box;
  position:absolute;      /* keep absolute over the map */
  z-index:1000;
  left:11px;
  /* top set by JS -> headerBottom + 15px */
  box-shadow: 2px 2px 3px rgba(0,0,0,.6);
}

/*
    .sidebar {
      width: 250px;
      background: #f4f4f4;
      border-right: 1px solid #ccc;
      padding: 0.5rem;
      box-sizing: border-box;
      position: absolute;
      z-index: 1000;  
      left: 11px;
      top: 175px; 
      box-shadow: black 2px 2px 3px;
    }
*/

    /* Each accordion section: 
       .accordion-header + .accordion-body 
       is one item in the menu
    */
    .accordion-section {
/*      margin-bottom: 0.5rem;*/
      border-bottom: 1px solid #ccc;
    }

    /* The grey bar with an icon on the left and text label */
    .accordion-header {
      display: flex;
      align-items: center;
      gap: 0.5rem;
      background: #666;
      color: #fff;
      padding: 0.5rem;
      cursor: pointer;
      user-select: none;
    }
    .accordion-header:hover {
      background: #555;
    }
    .accordion-header .icon {
      width: 20px;
      height: 20px;
      background: #999; /* Placeholder “icon” background */
      border-radius: 3px;
    }

    /* Accordion content area hidden by default. 
       We'll animate with max-height + overflow hidden.
     */
    .accordion-body {
      background: #ececec;
      padding: 0 0.5rem;
      max-height: 0;
      overflow: hidden;
      transition: max-height 0.3s ease;
        padding-bottom: 0.5rem;
    }

    /* Optional padding at the bottom is only shown when open (inline style). */

    /* Grid of clickable icons */
    .icon-grid {
      display: flex;
      flex-wrap: wrap;
      gap: 0.5rem;
      margin-top: 0.5rem;
    }
    .icon-option {
      width: 50px;
      height: 50px;
      background: #fff url('data:image/svg+xml;base64,R0lGODlhAQABAIAAAP///w==') no-repeat center/contain;
      border: 2px solid transparent;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
/*      box-sizing: border-box;*/
    }
      
    .icon-option:hover {
      border-color: #aaa;
    }
    .icon-option.selected {
      border-color: #ff00ff; /* Example highlight color */
    }
  .icon-option img {
    width: 50px;
    height: 50px;
  }

  /* Tooltip styles */
  .tooltip {
    display: none;
    position: fixed; /* Fixed positioning to follow the cursor */
    width: 350px;
    height: 350px;
    background: white;
    border: 2px solid red;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    pointer-events: none; /* Prevent the tooltip from interfering with hover events */
  }

  .tooltip img {
    width: 100%;
    height: 100%;
    display: block;
  }
  @keyframes spin {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
}

#indexPanel{
  width:250px;
  background:#f4f4f4;
  border-right:1px solid #ccc;
  padding:.5rem;
  box-sizing:border-box;
  position:absolute;        /* keep absolute over the map */
  z-index:1000;
  right:11px;
  /* top is set via JS to headerBottom + 15px */
  box-shadow: 2px 2px 3px rgba(0,0,0,.6);
}

#resetSelections, #resetRectangle {
    padding: 9px 14px;
    border-radius: 10px;
    border: 0;
    background: var(--accent);
    color: #fff;
    cursor: pointer;
    margin-top: 10px; 
}

#buildIndexBtn {
    padding: 9px 5px;
    border-radius: 10px;
    border: 0;
    background: var(--accent);
    color: #fff;
    cursor: pointer;
    margin-top: 17px;
}

#generatePreviewBtn {
    padding: 9px 14px;
    border-radius: 10px;
    border: 0;
    background: #24CD4C;
    color: #fff;
    cursor: pointer;
    margin-top: 10px; 
}

#searchContainer {
    float:right;
}

/* refactored with chatGPT — 22 Oct 2025, 12:55 UK */
.pz-viewport {
  position: relative;
  overflow: hidden;
  touch-action: none; /* lets Panzoom handle panning/pinch on touch */
}

.pz-viewport img#pzContent {
  display: block;
  will-change: transform;
  user-select: none;
  -webkit-user-drag: none;
  transform-origin: 0 0;
}

.pz-controls {
  position: absolute;
  right: 12px;
/*  bottom: 12px;*/
  z-index: 10;
  display: flex;
  gap: 6px;
}

.pz-controls button {
  pointer-events: auto;
  padding: 6px 10px;
}

/* refactored with chatGPT — 08 Nov 2025, 10:29 UK */

/* Typography & layout inside the modal content */
.about-wrap {
  max-width: 60rem;   /* keeps line lengths comfortable */
  margin: 0 auto;
}

.about-eyebrow {
  margin: 0 0 4px 0;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #6c757d;
}

.about-title {
  margin: 0 0 12px 0;
  font-size: clamp(1.25rem, 2.2vw, 1.75rem);
  line-height: 1.25;
}

.about-section {
  margin-top: 18px;
}

.about-bullets {
  margin: 10px 0 0 0;
  padding-left: 1.1rem;
}
.about-bullets li {
  margin: 6px 0;
}

/* Steps row */
.about-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 10px;
  margin-top: 10px;
}
.about-steps > div {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid #e7e7e7;
  border-radius: 10px;
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  min-height: 26px;
  border-radius: 999px;
  font-weight: 700;
  border: 1px solid #cfd3d7;
}

/* Hero image behaviour (uses your existing .modal-hero rules) */
.about-hero {
/*  height: min(45vh, 600px);*/
  min-height: 240px;
  margin: 12px 0 8px 0;
  overflow: hidden; /* crop for detail on small overlays */
}
.about-hero > img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover; /* fill width & height, keep detail */
}

/* CTA link */
.about-contact-cta a {
  color: #0b5ed7;
  text-decoration: none;
  border-bottom: 1px dashed currentColor;
}
.about-contact-cta a:hover { border-bottom-style: solid; }

/* Small screens: keep steps readable */
@media (max-width: 520px) {
  .about-steps { grid-template-columns: 1fr; }
}

/* refactored with chatGPT — 08 Nov 2025, 11:10 UK */
#contact-form .form-status {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 0.95rem;
  border: 1px solid transparent;
}
#contact-form .form-status[data-type="ok"]    { background:#eefbf0; border-color:#c7eed8; }
#contact-form .form-status[data-type="error"] { background:#fff2f2; border-color:#f5c2c7; }

/* refactored with chatGPT — 08 Nov 2025, 20:58 UK */
.guide-wrap { max-width: 60rem; margin: 0 auto; }
.guide-header h2 { margin: 0 0 6px; line-height: 1.15; }
.guide-sub { margin: 0 0 16px; color: #6c757d; }

.guide-section { margin: 20px 0; }
.guide-section h3 { margin: 0 0 8px; }
.guide-section h4 { margin: 12px 0 6px; }

.guide-figure { margin: 10px 0 6px; }
.guide-figure img {
  display: block;
  width: 300px;
  height: auto;
  border-radius: 8px;
}

.guide-inline-calls p { margin: 6px 0; }