/* Universal box-sizing for better width control */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
}

/* Ensure all images and media are responsive */
img, video, iframe, embed, object {
  max-width: 100%;
  height: auto;
}

.instrument-sans-paragraph {
  font-family: "Instrument Sans", serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  font-variation-settings:
    "wdth" 100;
}

h1, h2, h3, h4, p {
  font-family: "Instrument Sans", serif;
}

h1 {
  font-size: 5em;
  line-height: 1em;
  margin: 0 auto;
}

h2 {
  font-size: 2.5em;
}

p {
  line-height: 1.5em;
  color: #191919;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden; /* Prevent horizontal scrolling */
}

/*body {
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}*/


/* Header Styling */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: rgba(255, 255, 255, 0.2); /* Transparent white */
    backdrop-filter: blur(10px); /* Blur effect */
    display: flex;
    align-items: center;
    padding: 10px 20px;
    /* box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); */
    justify-content: center; /* Centers the container */
    z-index: 1000; /* Ensures it stays above other elements */
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: center; /* Centers the logo */
    max-width: 1800px;
    width: 100%;
    padding: 0 40px; /* Adds spacing */
}



/* Logo */
.logo img {
    height: 30px; /* Adjust logo size */
}

/* Skilled Mapping Logo */
.skilled-mapping-logo {
  font-family: "Bebas Neue", sans-serif;
  font-weight: 400;
  font-size: 2.5em;
  color: #000000;
  letter-spacing: 1px;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.skilled-mapping-logo:hover {
  opacity: 0.8;
  text-decoration: none;
  color: #000000;
}

.skilled-mapping-logo .highlight-a,
.skilled-mapping-logo .highlight-i {
  color: #30D38F;
}

.half-section {
  display: flex;
  flex-direction: row;
  margin: 100px auto;
}

/* First section*/


.square-rounded {
  width: 30px;
}

body {
  background-color: #FAFAFA;
  overflow-x: hidden; /* Prevent horizontal scrolling */
  max-width: 100vw; /* Ensure body doesn't exceed viewport width */
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100vh;
}

.custom-button {
  font-family: "Instrument Sans", serif;
  font-weight: 400;
  font-size: 1em;
  width: 350px;
  max-width: 100%;
  height: 60px;
  border-radius: 8px;
  border-color: transparent;
  background-color: #30D38F;
  color: white;
  display: flex;
  justify-content: space-between;
  padding-left: 25px;
  padding-right: 25px;
  align-items: center;

}

.custom-button .bold-text {
  font-weight: 600;
}

.custom-button::after {
    content: '→'; /* Unicode for the arrow */
    margin-left: auto; /* Pushes the arrow to the far right */
    font-size: 1rem; /* Adjust size as needed */
    color: inherit; /* Matches the text color */
    transition: transform 0.3s ease; /* Smooth hover animation */
}


.custom-button:hover::after {
    transform: translateX(5px); /* Slide the arrow on hover */
}

.bold {
  font-weight: 600;
}

.tag {
    display: inline-block;
    background-color: #B3B3B3; /* Light grey background */
    color: white;
/*    font-weight: bold;*/
    font-size: 14px;
    padding: 8px 16px;
    border-radius: 20px; /* Makes it pill-shaped */
    text-align: center;
    white-space: nowrap;
    font-family: "Instrument Sans", serif;
}

.container {
    max-width: 1800px;   
    margin: 0 auto; /* Centers content */
    padding: 0 20px; /* Adds space on smaller screens */
    width: 100%; /* Ensure full width usage */
}

/*Section 1*/

.text-section {
    flex: 1;
    max-width: 50%;
    justify-content: space-between;
    max-width: 1200px;
    margin: 50px auto;
    padding: 20px;
    padding-right: 100px;
}

.image-section {
    flex: 1;
    display: flex;
    justify-content: center;
}

.image-section img {
    width: 100%;
    max-width: 1000px;
    border-radius: 10px;
    object-fit: cover;
}


/* Logos section */

/* Wrapper for the logo slider */
.logo-slider {
    overflow: hidden; /* Hides overflow */
    white-space: nowrap;
    position: relative;
    width: 100%;
/*    background: white; */
    padding: 20px 0;
}

/* Track for the moving logos */
.logo-track {
    display: flex;
    gap: 40px; /* Space between logos */
    width: max-content;
    animation: scrollLogos 20s linear infinite;
}

/* Logo styling */
.logo-track img {
    height: 50px; /* Adjust logo size */
    width: auto;
    filter: grayscale(100%);
    transition: filter 0.3s ease-in-out;
}

/* Remove grayscale effect on hover */
.logo-track img:hover {
    filter: grayscale(0%);
}

/* Keyframes for infinite scrolling */
@keyframes scrollLogos {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}


/*Section 2*/
.second-section {
    margin: 50px auto;
    padding: 20px;
}

.stats-container {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    gap: 20px; /* Spacing between boxes */
}

.stat-box {
    background-color: #F0F0F0; /* Light grey background */
    padding: 30px;
    margin: 10px;
    border-radius: 12px; /* Smooth corners */
    text-align: left;
    width: 500px; /* Adjust width as needed */
    max-width: 100%;
    box-sizing: border-box;
}
/*
.stat-box h3 {
    font-size: 5em;
    font-weight: bold;
    margin: 0;
    color: #111;
}*/

.stat-box p {
    font-size: 16px;
    color: #444;
    margin: 5px 0 0;
}

.stat-box h3 {
  font-size: 64px;
  font-weight: bold;
  margin: 0;
  color: black;
}


/*Section thermal*/
.thermal-section {
    padding: 80px 0;
    background-color: #FAFAFA;
}

.thermal-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1800px;
    margin: 0 auto;
    gap: 40px;
}

/* Left: Image Styling */
.thermal-image {
    flex: 1;
    max-width: 900px;
}

.thermal-image img {
    width: 100%;
    border-radius: 12px;
    object-fit: cover;
}

/* Right: Text Styling */
.thermal-text {
    flex: 1;
}

.thermal-text h2 {
    font-size: 36px;
    font-weight: bold;
    color: #191919;
}

.thermal-benefits {
    list-style: none;
    padding: 0;
}

.thermal-benefits li {
    color: #333;
    margin-bottom: 10px;
    font-family: "Instrument Sans", serif;
}

.contact-section {
    padding: 80px 0;
    background-color: #FAFAFA;
}

.contact-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 1200px;
    margin: 0 auto;
    gap: 40px;
}

/* Left: Contact Details */
.contact-details {
    flex: 1;
}

.contact-details h2 {
    font-size: 36px;
    font-weight: bold;
    color: #191919;
}

.contact-info {
    margin-top: 20px;
}

.info-box {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.info-box img {
    width: 40px;
    height: 40px;
    border-radius: 5px;
}

/* Right: Contact Form */
.contact-form {
    flex: 1;
}

.contact-form .form-group {
    display: flex;
    gap: 20px;
    margin-bottom: 10px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    border: 1px solid #000;
    border-radius: 8px;
    background-color: #fff;
}

.contact-form textarea {
    height: 150px;
}

.submit-btn {
    background-color: black;
    color: white;
    padding: 12px 20px;
    font-size: 16px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.submit-btn:hover {
    background-color: #333;
}

.success-message {
    font-size: 16px;
    color: green;
    margin-top: 10px;
}


/*Footer*/

.footer {
    text-align: left; /* Align text to the left */
    padding: 0px;
    max-width: 1800px;
    margin: 0 auto; /* Centers the footer content */
    font-size: 14px;
    color: #666;
    position: relative;
    z-index: 10;
}

.footer hr {
    border: none;
    height: 1px;
    background-color: #E2E2E2; /* Light gray line */
    margin-bottom: 10px;
}

.footer p {
    margin: 0;
    font-weight: 400;
}

.map-section {
    margin: 100px auto;
}

#map {
    height: 700px;
    width: 100%;
}

/* ✅ General: Mobile-Friendly Styles */
@media (max-width: 1200px) {
    .container {
        width: 100%;
        padding: 0 20px;
    }
}

@media (max-width: 1024px) {
    .container {
        width: 100%; /* Use full width on tablets */
        padding: 0 20px;
        max-width: none; /* Remove max-width constraint on smaller screens */
    }

    h1 {
        font-size: 3em; /* Reduce main heading size */
        margin-top: 20px;
    }

    h2 {
        font-size: 2em;
    }
}

/* ✅ Header Adjustments for Mobile */
@media (max-width: 768px) {
    .header {
        display: flex;
        flex-direction: row; /* Ensures logo and text are in a row */
        align-items: center; /* Aligns vertically */
        justify-content: flex-start; /* Aligns everything to the left */
        height: auto;
        padding: 15px; /* Proper padding */
    }

    .header .container {        
        padding: 0 15px; /* Proper padding */
        justify-content: center; /* Centers the logo on mobile */
    }
    
    .skilled-mapping-logo {
        font-size: 2em; /* Slightly smaller on mobile for better fit */
    }

    .logo {
        display: flex;
        align-items: center;
    }

    .logo img {
        height: 40px; /* Adjust logo size */
        margin-right: 10px; /* Adds spacing between logo and text */
    }
}

@media (max-width: 768px) {
  body {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
  }
  
  .container {
    width: 100%;
    max-width: 100vw;
    padding: 0 15px; /* Slightly reduced padding on mobile */
    box-sizing: border-box;
  }
  
  /* Ensure all elements fit within viewport */
  * {
    max-width: 100%;
  }
  
  /* Make custom button responsive on mobile */
  .custom-button {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
}

/* ✅ Half-Section (Hero Section with Image & Text) */
@media (max-width: 768px) {
    .half-section {
        flex-direction: column;
        margin: 0;
/*        text-align: center;*/
    }

    .text-section, .image-section {
        width: 100%;
    }

    .text-section {
        padding: 0;
    }

    .image-section img {
        max-width: 100%;
        height: auto;
    }
}

/* ✅ Logos Section (Partners) */
@media (max-width: 768px) {
    .logo-track {
        animation: scrollLogos 15s linear infinite; /* Speed up on mobile */
        gap: 20px;
    }

    .logo-track img {
        height: 40px; /* Smaller logos on mobile */
    }

    video {
        max-width: 100%;
    }
}


/* ✅ Stats Section (Pourquoi Nous Choisir) */
@media (max-width: 768px) {
    .stats-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .text-section {
        margin-bottom: 0;
    }

    .stat-box {
        width: 100%; /* Full width for better stacking */
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
        box-sizing: border-box;
    }
}

/* ✅ Thermal Section (Image & Text) */
@media (max-width: 768px) {
    .thermal-content {
        flex-direction: column;
/*        text-align: center;*/
    }

    .thermal-image, .thermal-text {
        width: 100%;
    }
}

/* ✅ Contact Form Section */
@media (max-width: 768px) {
    .contact-content {
        flex-direction: column;        
    }

    .contact-form, .contact-details {
        width: 90%;
    }

    .form-group {
        flex-direction: column;
    }

    .contact-form input, 
    .contact-form textarea {
        width: 100%;
    }
}

/* Champigny specific elements */

/* --- Champigny Map Section --- */
.champigny-map-wrapper {
  position: relative;
  max-width: 1200px;
  margin: 80px auto;
}

.champigny-map-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}

/* --- Clickable Dots --- */
.champigny-map-point {
  position: absolute;
  width: 30px;
  height: 30px;
  color: white;
  font-weight: bold;
  font-size: 16px;
  border-radius: 50%;
  text-align: center;
  line-height: 30px;
  cursor: pointer;
  transform: translate(-50%, -50%);
  font-family: "Instrument Sans", serif;
}

/* --- Modal Overlay --- */
.champigny-modal-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: flex-start;
      z-index: 2000;
      overflow-y: auto;
      padding: 70px 0;
    }

.champigny-modal-content {
  background: white;
  max-width: 1200px;
  width: 90%;
  max-height: calc(100vh - 140px);
  padding: 0;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  position: relative;
  font-family: "Instrument Sans", serif;
  overflow-y: auto;
  margin: auto;
  scroll-behavior: smooth;
}

/* Modal Header */
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  /* padding: 0px 30px 10px 30px; */
  /* border-bottom: 1px solid #e9ecef; */
  /* position: sticky; */
  top: 0;
  /* background: white; */
  z-index: 5;
  border-radius: 12px 12px 0 0;
}

.modal-title {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 600;
  color: #191919;
  font-family: "Instrument Sans", serif;
  background: none;
}

/* Modal Content Body */
.modal-body {
  padding: 20px 0 30px 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Custom scrollbar for modal content */
.champigny-modal-content::-webkit-scrollbar {
  width: 8px;
}

.champigny-modal-content::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.champigny-modal-content::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 4px;
}

.champigny-modal-content::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

/* Modal Panels Container - Side by Side on Desktop */
.modal-panels-container {
  display: flex;
  gap: 20px;
  width: 100%;
  align-items: flex-start;
}

/* Modal Video Section */
.modal-video-section {
  flex: 1;
  display: flex;
  justify-content: center;
}

.champigny-modal-content video {
  width: 100%;
  max-width: 500px;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Modal Street View Section */
.modal-streetview-section {
  flex: 1;
  display: flex;
  justify-content: center;
}

#streetViewIframe {
  width: 100%;
  max-width: 500px;
  height: auto;
  aspect-ratio: 16/9;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.champigny-modal-text {
  flex: 1;
  font-size: 1em;
  color: #191919;
}

.champigny-modal-text ul {
  margin: 8px 0;
  padding-left: 20px;
}

.champigny-modal-text li {
  margin: 4px 0;
  line-height: 1.4;
}

.champigny-modal-close {
  position: static;
  font-size: 1.8rem;
  background: white;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #191919;
  cursor: pointer;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.15);
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.champigny-modal-close:hover {
  background: #f8f9fa;
  color: #dc3545;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.25);
  transform: scale(1.1);
}

.color-0 {
  background-color: #779824;
}

.color-1 {
  background-color: #779824;
}

.color-2 {
  background-color: #F8C0B5;

}

.color-3 {
  background-color: #F2917D;
}
.color-4 {
  background-color: #ED6145;
}
.color-5 {
  background-color: #E03616;
    border: #191919;
}
.color-na {
  background-color: lightgray;
}
.color-other {
  background-color: black;
  color: white;
}

.color-0,
.color-1,
.color-2,
.color-3,
.color-4,
.color-5,
.color-na,
.color-other {
  font-family: "Instrument Sans", serif;
}

.legend-section {
  max-width: 600px;
  margin: 50px auto;
  padding: 20px;
  background: #FAFAFA;
  border-radius: 12px;
  font-family: "Instrument Sans", serif;
  text-align: center;
}

.legend-section h2 {
  font-size: 1.8em;
  margin-bottom: 20px;
  color: #191919;
}

.legend-scale {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 20px 0 10px;
}

.scale-block {
  flex: 1;
  height: 20px;
  margin: 0 2px;
  border-radius: 4px;
  border: 1px solid #191919;
}

.scale-labels {
  display: flex;
  justify-content: space-between;
  font-size: 1em;
  color: #333;
  margin-top: 5px;
  padding: 0 5px;
}

.legend-items {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.legend-item {
  display: flex;
  align-items: center;
  font-size: 1em;
  color: #333;
}

.legend-color {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  margin-right: 10px;
  border: 1px solid #191919;
}

/* === Centered layout styling === */
.centered .centered-container {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.centered .centered-title {
  text-align: center;
  margin: 0 auto 40px auto;
  padding: 0 20px;
}

.centered h2 {
  font-size: 2.2em;
  line-height: 1.4em;
  color: #191919;
  font-family: "Instrument Sans", serif;
  font-weight: 600;
}

.centered .centered-footer {
  text-align: center;
}

.centered .centered-footer hr {
  width: 80%;
  margin: 20px auto;
}

.centered .centered-footer p {
  margin: 10px 0;
  font-size: 14px;
  color: #666;
}

/* Ensure centered logo stays centered at all breakpoints */
.centered-header {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 60px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  padding: 10px 20px;
  z-index: 1000;
}

.centered-header .centered-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.centered-header .logo {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.centered-header .logo img {
  height: 30px;
  max-width: 200px;
  margin: 0 auto;
}

/* === New Home Page Styles === */

/* Hero Section */
.hero-section {
  padding: 80px 0;
  text-align: center;
  background: linear-gradient(135deg, #FAFAFA 0%, #F0F0F0 100%);
}

.hero-content h1 {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #191919;
}

.hero-subtitle {
  font-size: 1.3em;
  color: #666;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Client Section */
.client-section {
  padding: 60px 0;
  background-color: white;
  text-align: center;
  border-top: 1px solid #E2E2E2;
  border-bottom: 1px solid #E2E2E2;
}

.client-text {
  font-size: 1em;
  color: #666;
  margin-bottom: 20px;
  font-family: "Instrument Sans", serif;
}

.client-logo-link {
  display: inline-block;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.client-logo-link:hover {
  transform: scale(1.05);
  opacity: 0.8;
}

.client-logo {
  height: 60px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
}

/* Locations Section */
.locations-section {
  padding: 80px 0;
  background-color: #FAFAFA;
}

.locations-section h2 {
  text-align: center;
  margin-bottom: 50px;
  font-size: 2.5em;
  color: #191919;
}

.locations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.location-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  text-align: center;
}

.location-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.location-image {
  height: 200px;
  overflow: hidden;
  position: relative;
}

.location-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.location-card:hover .location-image img {
  transform: scale(1.05);
}

.location-card:hover .map-image {
  transform: scale(1.05);
  transition: transform 0.3s ease;
}

.location-card:hover .map-overlay {
  background: rgba(0, 0, 0, 0.8);
  transition: background 0.3s ease;
}

.location-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #30D38F 0%, #2bb87a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2em;
  font-weight: 600;
  text-align: center;
}

/* Map Preview Styles */
.map-preview {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.map-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.3s ease;
}

.map-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 20px;
  border-radius: 8px;
  text-align: center;
  backdrop-filter: blur(5px);
  z-index: 2;
}

.map-title {
  display: block;
  font-size: 1.3em;
  font-weight: 600;
  margin-bottom: 5px;
  font-family: "Instrument Sans", serif;
}

.map-subtitle {
  display: block;
  font-size: 0.9em;
  opacity: 0.9;
  font-family: "Instrument Sans", serif;
}

.location-info {
  padding: 25px;
  flex: 1;
  display: flex;
  flex-direction: column;
  text-align: center;
}

.location-info h3 {
  font-size: 1.5em;
  margin-bottom: 10px;
  color: #191919;
}

.location-info p {
  color: #666;
  margin-bottom: 15px;
}

.location-stats {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
  align-items: center;
}

.stat {
  background: #F0F0F0;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 0.75em;
  color: #666;
  font-family: "Instrument Sans", serif;
  text-align: center;
  line-height: 1.2;
  display: inline-block;
  width: fit-content;
  max-width: 90%;
}


/* Coming Soon Card */
.location-card.coming-soon {
  opacity: 0.6;
  cursor: not-allowed;
}

.location-card.coming-soon:hover {
  transform: none;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.coming-soon-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
}

/* Features Section */
.features-section {
  padding: 80px 0;
  background: white;
}

.features-section h2 {
  text-align: center;
  margin-bottom: 50px;
  font-size: 2.5em;
  color: #191919;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.feature-card {
  text-align: center;
  padding: 30px;
}

.feature-card h3 {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: #191919;
}

.feature-card p {
  color: #666;
  line-height: 1.6;
}

/* Navigation */
.nav {
  margin-left: auto;
}

.nav-link {
  color: #191919;
  text-decoration: none;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 6px;
  transition: background-color 0.3s ease;
}

.nav-link:hover {
  background-color: rgba(0, 0, 0, 0.1);
}

/* Full Page Map */
.fullpage-main {
  position: fixed;
  top: 60px; /* Start below the header */
  left: 0;
  height: calc(100vh - 60px - 50px); /* Subtract header height and footer height (50px) */
  height: calc(100dvh - 60px - 50px); /* Dynamic viewport height minus header and footer height */
  width: 100vw;
  margin: 0;
  padding: 0;
  overflow: hidden;
  z-index: 1;
}

#map {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  margin: 0;
  padding: 0;
}


/* Layer Control Styling */
.leaflet-control-layers {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  font-family: "Instrument Sans", serif;
}

.leaflet-control-layers-toggle {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.leaflet-control-layers-expanded {
  padding: 10px;
  background: white;
  border-radius: 8px;
}

.leaflet-control-layers label {
  font-family: "Instrument Sans", serif;
  font-size: 14px;
  color: #191919;
  margin: 5px 0;
  cursor: pointer;
}

.leaflet-control-layers input[type="radio"] {
  margin-right: 8px;
}

/* Title Overlay */
.title-overlay {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  max-width: 500px;
  text-align: center;
}

.title-overlay h2 {
  font-size: 1.8em;
  margin: 0 0 8px 0;
  color: #191919;
}

.title-overlay p {
  font-size: 1em;
  margin: 0;
  color: #666;
}

/* Compact Legend Box */
.legend-box {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 12px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  max-width: 180px;
  font-family: "Instrument Sans", serif;
  font-size: 0.85em;
}

.legend-box h4 {
  font-size: 0.9em;
  margin: 0 0 8px 0;
  color: #191919;
  font-weight: 600;
}

.legend-priority {
  margin-bottom: 8px;
}

.legend-scale-compact {
  display: flex;
  gap: 1px;
  margin-bottom: 4px;
}

.legend-scale-compact .scale-block {
  flex: 1;
  height: 10px;
  border-radius: 1px;
  border: 1px solid #191919;
}

.scale-labels-compact {
  display: flex;
  justify-content: space-between;
  font-size: 0.65em;
  color: #666;
  margin-top: 2px;
}

.legend-categories {
  border-top: 1px solid #E2E2E2;
  padding-top: 6px;
}

.legend-item-compact {
  display: flex;
  align-items: center;
  font-size: 0.65em;
  color: #333;
  margin-bottom: 3px;
}

.legend-item-compact .legend-color {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 5px;
  border: 1px solid #191919;
}





/* Marker Popup */
.marker-popup h4 {
  margin: 0 0 10px 0;
  color: #191919;
}

.marker-popup p {
  margin: 0 0 15px 0;
  color: #666;
}

.marker-popup button {
  background: #30D38F;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-family: "Instrument Sans", serif;
  font-size: 0.9em;
}

.marker-popup button:hover {
  background: #2bb87a;
}

/* === Mobile Responsive Design === */

@media (max-width: 768px) {
  /* Hero Section Mobile */
  .hero-content h1 {
    font-size: 2.5em;
  }
  
  .hero-subtitle {
    font-size: 1.1em;
    padding: 0 20px;
  }
  
  .client-section {
    padding: 40px 0;
  }
  
  .client-text {
    font-size: 0.9em;
    margin-bottom: 15px;
    padding: 0 20px;
  }
  
  .client-logo {
    height: 50px;
    max-width: 180px;
  }
  
  /* Locations Grid Mobile */
  .locations-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 20px;
  }
  
  .location-card {
    margin: 0 10px;
  }
  
  .location-image {
    height: 150px;
  }
  
  .location-info {
    padding: 20px;
  }
  
  .location-stats {
    flex-direction: column;
    gap: 6px;
    align-items: center;
  }
  
  .stat {
    font-size: 0.7em;
    padding: 3px 6px;
  }
  
  /* Features Grid Mobile */
  .features-grid {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 0 20px;
  }
  
  /* Full Page Map Mobile */
  .fullpage-main {
    position: fixed;
    top: 60px; /* Start below the header */
    left: 0;
    height: calc(100vh - 60px - 50px); /* Subtract header height and footer height (50px) */
    height: calc(100dvh - 60px - 50px); /* Dynamic viewport height minus header and footer height */
    width: 100vw;
    margin: 0;
    padding: 0;
    overflow: hidden;
  }
  
  #map {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
  }
  
  /* Title Overlay Mobile */
  .title-overlay {
    top: 70px; /* Position below the header (60px) with some margin */
    left: 10px;
    right: 10px;
    transform: none;
    max-width: none;
    padding: 12px;
    position: absolute;
    z-index: 1000;
  }
  
  .title-overlay h2 {
    font-size: 1.2em;
    margin-bottom: 4px;
  }
  
  .title-overlay p {
    font-size: 0.8em;
  }
  
  /* Legend Box Mobile */
  .legend-box {
    bottom: 125px; /* Position higher above the footer with more margin */
    left: 10px;
    right: 10px;
    max-width: none;
    padding: 8px;
    font-size: 0.7em;
    max-height: 100px; /* Reduced height to fit better */
    overflow-y: auto;
  }
  
  .legend-box h4 {
    font-size: 0.75em;
    margin-bottom: 3px;
  }
  
  .legend-priority {
    margin-bottom: 3px;
  }
  
  .legend-scale-compact .scale-block {
    height: 5px;
  }
  
  .scale-labels-compact {
    font-size: 0.5em;
  }
  
  .legend-categories {
    padding-top: 2px;
  }
  
  .legend-item-compact {
    font-size: 0.5em;
    margin-bottom: 1px;
  }
  
  .legend-item-compact .legend-color {
    width: 5px;
    height: 5px;
    margin-right: 2px;
  }
  
  

  
  /* Navigation Mobile */
  .centered-header .centered-container {
    flex-direction: column;
    gap: 10px;
  }
  
  .nav {
    margin-left: 0;
  }
  
  /* Modal Mobile */
  .champigny-modal-content {
    width: 95%;
    padding: 20px;
    flex-direction: column;
    max-height: calc(100vh - 200px);
  }
  
  .champigny-modal-content video {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 2em;
  }
  
  .locations-section h2,
  .features-section h2 {
    font-size: 2em;
  }
  
  .location-info h3 {
    font-size: 1.3em;
  }
  
  .feature-card h3 {
    font-size: 1.3em;
  }
  
  .modal-header {
    padding: 8px 15px 4px 15px;
  }
  
  /* Ensure full width on very small screens */
  .container {
    width: 100%;
    max-width: 100vw;
    padding: 0 10px;
    box-sizing: border-box;
  }
  
  .fullpage-main {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    margin: 0;
    padding: 0;
    overflow: hidden;
  }
  
  #map {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
  }
  
  /* Force all elements to fit within viewport */
  * {
    max-width: 100vw;
    box-sizing: border-box;
  }
  
  .skilled-mapping-logo {
    font-size: 1.8em; /* Even smaller on very small screens */
  }
}

/* === Footer Styles === */
.footer {
  background-color: #000000;
  color: white;
  text-align: center;
  padding: 30px 0;
  margin-top: 80px;
  font-family: "Instrument Sans", serif;
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}

.footer-content p {
  margin: 0;
  font-size: 14px;
  color: white;
  line-height: 1.4;
}

.footer-content a {
  color: white;
  text-decoration: underline;
  transition: opacity 0.3s ease;
}

.footer-content a:hover {
  opacity: 0.8;
}

/* Map Page Footer - Full Width */
.map-page-footer {
  background-color: #000000;
  color: white;
  text-align: center;
  padding: 15px 0;
  font-family: "Instrument Sans", serif;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
}

.map-page-footer p {
  margin: 0;
  font-size: 12px;
  color: white;
  line-height: 1.4;
  white-space: nowrap;
}

.map-page-footer a {
  color: white;
  text-decoration: underline;
  transition: opacity 0.3s ease;
}

.map-page-footer a:hover {
  opacity: 0.8;
}

/* Mobile Footer */
@media (max-width: 768px) {
  .footer {
    padding: 25px 0;
    margin-top: 60px;
  }
  
  .footer-content p {
    font-size: 13px;
  }
  
  /* Map Page Footer Mobile */
  .map-page-footer {
    padding: 12px 0;
  }
  
  .map-page-footer p {
    font-size: 11px;
  }
}

/* === Add Sector Card and Modal Styles === */

/* Add Sector Card */
.add-sector-card {
  border: 2px dashed #30D38F;
  background: linear-gradient(135deg, #f8fffe 0%, #f0fdf9 100%);
  transition: all 0.3s ease;
}

.add-sector-card:hover {
  border-color: #2bb87a;
  background: linear-gradient(135deg, #f0fdf9 0%, #e8faf5 100%);
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(48, 211, 143, 0.2);
}

.add-sector-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #30D38F 0%, #2bb87a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 3em;
  font-weight: 300;
  text-align: center;
  transition: all 0.3s ease;
}

.add-sector-card:hover .add-sector-placeholder {
  background: linear-gradient(135deg, #2bb87a 0%, #26a069 100%);
  transform: scale(1.05);
}

.add-icon {
  font-size: 1.2em;
  font-weight: 300;
  line-height: 1;
}

.add-sector-card .location-info h3 {
  color: #30D38F;
  font-weight: 600;
}

.add-sector-card .location-info p {
  color: #666;
  font-style: italic;
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-content {
  background-color: white;
  margin: 3% auto;
  padding: 0;
  border-radius: 12px;
  width: 95%;
  max-width: 800px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  animation: slideIn 0.3s ease;
  overflow: hidden;
}

@keyframes slideIn {
  from { 
    opacity: 0;
    transform: translateY(-50px);
  }
  to { 
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-header {
  /* background: linear-gradient(135deg, #30D38F 0%, #2bb87a 100%); */
  /* color: white; */
  padding: 20px 25px 15px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h2 {
  margin: 0;
  font-size: 1.8em;
  font-weight: 600;
}

.close {
  color: white;
  font-size: 2em;
  font-weight: bold;
  cursor: pointer;
  transition: opacity 0.3s ease;
  line-height: 1;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
}

.close:hover {
  opacity: 0.8;
  background: rgba(255, 255, 255, 0.3);
}

.modal-body {
  padding: 20px 25px 25px 25px;
  font-family: "Instrument Sans", serif;
}

.modal-body p {
  color: #666;
  line-height: 1.5;
  margin-bottom: 15px;
  font-size: 1em;
}

.contact-info {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 8px;
  margin: 20px 0;
  border-left: 4px solid #30D38F;
}

.contact-info h3 {
  color: #191919;
  margin-bottom: 15px;
  font-size: 1.2em;
  font-weight: 600;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-method {
  display: flex;
  align-items: center;
  gap: 10px;
}

.contact-method strong {
  color: #191919;
  font-weight: 600;
  min-width: 80px;
}

.contact-method a {
  color: #30D38F;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.contact-method a:hover {
  color: #2bb87a;
  text-decoration: underline;
}

.modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid #E2E2E2;
}

.btn-primary, .btn-secondary {
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-family: "Instrument Sans", serif;
  font-size: 1em;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, #30D38F 0%, #2bb87a 100%);
  color: white;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #2bb87a 0%, #26a069 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(48, 211, 143, 0.3);
}

.btn-secondary {
  background: #f8f9fa;
  color: #666;
  border: 1px solid #E2E2E2;
}

.btn-secondary:hover {
  background: #e9ecef;
  color: #191919;
  transform: translateY(-1px);
}

/* Mobile Responsive for Modal */
@media (max-width: 768px) {
  .modal-content {
    margin: 2% auto;
    width: 98%;
    max-width: none;
  }
  
  .modal-header {
    padding: 15px 20px 10px 20px;
  }
  
  .modal-header h2 {
    font-size: 1.4em;
  }
  
  .modal-body {
    padding: 15px 20px 20px 20px;
  }
  
  .modal-body p {
    font-size: 0.95em;
    margin-bottom: 12px;
  }
  
  .contact-info {
    padding: 15px;
    margin: 15px 0;
  }
  
  .contact-info h3 {
    font-size: 1.1em;
    margin-bottom: 12px;
  }
  
  .contact-methods {
    gap: 10px;
  }
  
  .contact-method {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  
  .contact-method strong {
    min-width: auto;
  }
  
  .modal-actions {
    flex-direction: column;
    gap: 8px;
    margin-top: 15px;
    padding-top: 12px;
  }
  
  .btn-primary, .btn-secondary {
    width: 100%;
    padding: 12px;
  }
  
  /* Mobile responsive for Street View */
  .champigny-modal-content {
    padding: 20px;
    gap: 15px;
    /* max-height: calc(100vh - 250px); */
  }
  
  .champigny-modal-overlay {
    padding: 70px 0;
  }
  
  /* Stack panels vertically on mobile */
  .modal-panels-container {
    flex-direction: column;
    gap: 15px;
  }
  
  .champigny-modal-content video {
    max-width: 100%;
  }
  
  #streetViewIframe {
    height: 250px;
    max-width: 100%;
  }
}

/* Extra small screens - reduce margins */
@media (max-height: 600px) {
  .champigny-modal-overlay {
    padding: 70px 0;
  }
  
  .champigny-modal-content {
    max-height: calc(100vh - 160px);
  }
  
  .modal-content {
    margin: 1% auto;
  }
  
  .modal-body {
    padding: 12px 20px 15px 20px;
  }
  
  .contact-info {
    padding: 12px;
    margin: 12px 0;
  }
}

/* Very small screens - minimal margins */
@media (max-height: 500px) {
  .champigny-modal-overlay {
    padding: 60px 0;
  }
  
  .champigny-modal-content {
    max-height: calc(100vh - 120px);
  }
  
  .modal-content {
    margin: 0.5% auto;
  }
  
  .modal-header {
    padding: 10px 15px 8px 15px;
  }
  
  .modal-body {
    padding: 10px 15px 12px 15px;
  }
  
  .contact-info {
    padding: 10px;
    margin: 10px 0;
  }
  
  .modal-actions {
    margin-top: 10px;
    padding-top: 8px;
  }
}
