/* Mega Menu */
.navigation .dropdown .mega-menu {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: #fff;
  padding: 20px 0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  display: none;
  z-index: 999;
}

.navigation .dropdown:hover .mega-menu {
  display: block;
}

.navigation .dropdown .mega-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.navigation .dropdown .mega-menu ul li {
  padding: 5px 0;
}

.navigation .dropdown .mega-menu ul li a {
  text-decoration: none;
  color: #333;
  font-size: 14px;
  display: block;
}

.navigation .dropdown .mega-menu ul li a:hover {
  color: #44a635;
}

.navigation .dropdown .mega-menu ul li a::before {
  content: "\2192";
  /* Unicode Right Arrow → */
  margin-right: 8px;
  color: #44a635;
  font-weight: bold;
}

.navigation .dropdown .mega-menu ul li a i {
  margin-right: 8px;
  color: #0d6efd;
}

.navigation .dropdown .mega-menu ul li {
  border-bottom: 1px solid #e0e0e0;
  /* light grey */
  padding: 6px 0;
  /* spacing */
}

.navigation .dropdown .mega-menu ul li:last-child {
  border-bottom: none;
  /* remove last line */
}



.call-now-left {
  position: fixed;
  bottom: 35px;
  left: 0;
  background-color: #78EB54;
  color: white;
  padding: 12px 18px;
  padding-left: 12px;
  border-top-right-radius: 30px;
  border-bottom-right-radius: 30px;
  font-size: 16px;
  font-weight: bold;
  text-decoration: none;
  display: flex;
  align-items: center;
  width: 50px;
  transition: width 0.3s ease, padding 0.3s ease;
  overflow: hidden;
  white-space: nowrap;
  z-index: 9999;
}

.call-now-left .text {
  margin-left: 10px;
  opacity: 0;
  transition: opacity 0.3s ease;
  color: rgb(0, 0, 0);
}

.call-now-left:hover {
  width: 150px;
  padding-left: 15px;
}

.call-now-left:hover .text {
  opacity: 1;
}

.call-now-left i {
  font-size: 18px;
  color: white;
}



.button-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 30px;
}

.booking-button {
  height: 40px;
  /* reduced height */
  padding: 0;
  display: grid;
  border-radius: 6px;
  border: 2px solid black;
  letter-spacing: 0.25px;
  cursor: pointer;
  position: relative;
  background: black;
  color: white;
  font-weight: 80;
  font-size: 14px;
  /* smaller text */
  outline-color: #78EB54;
  outline-offset: 0.25rem;
}


.booking-button:is(:hover, :focus-visible) {
  --active: 1;
}

.booking-button:active {
  --pressed: 1;
}

.booking-button>span:nth-of-type(1) {
  height: 100%;
  width: 100%;
  border-radius: 8px;
  position: absolute;
  inset: 0;
  scale: calc(1 - (var(--pressed, 0) * 0.05));
  transition: scale 0.1s;
}

.booking-button:is(:hover, :focus-visible) .button_container {
  width: 100%;
}

.button_container {
  --mask-image: url(https://assets.codepen.io/605876/chev-mask_1.png);
  --spread: 22px;
  --size: 22px;
  width: 48px;
  height: 100%;
  background: #78EB54;
  position: absolute;
  left: 0;
  transition: width 0.25s;
  border-radius: 6px;
  box-shadow: 0 10px 10px -5px hsl(0 0% 0% / 0.5);
  container-type: inline-size;
}

.primary {
  content: "";
  position: absolute;
  inset: 0;
  background: hsl(0 0% 0% / 0.15);
  z-index: 2;
  mask: var(--mask-image) 50% 50% / var(--size) var(--size) no-repeat;
  container-type: inline-size;
}

:where(.primary, .complimentary)::after {
  --distance: calc(100cqi + 100%);
  content: "";
  height: calc(var(--size) * 4);
  aspect-ratio: 1;
  position: absolute;
  left: 0%;
  top: 50%;
  translate: -50% -50%;
  background: radial-gradient(hsl(0 0% 0%), transparent);
  animation: fly-by calc((2 - var(--active, 0)) * 1s) infinite linear;
}

@keyframes fly-by {
  0% {
    translate: -100% -50%;
  }

  100% {
    translate: var(--distance) -50%;
  }
}

.complimentary {
  content: "";
  position: absolute;
  inset: 0;
  opacity: var(--active, 0);
  transition: opacity 0.25s;
  background: hsl(0 0% 0% / 0.15);
  mask:
    var(--mask-image) calc(50% - (var(--spread) * 1)) 50% / var(--size) var(--size) no-repeat,
    var(--mask-image) calc(50% - (var(--spread) * 2)) 50% / var(--size) var(--size) no-repeat,
    var(--mask-image) calc(50% - (var(--spread) * 3)) 50% / var(--size) var(--size) no-repeat,
    var(--mask-image) calc(50% + (var(--spread) * 1)) 50% / var(--size) var(--size) no-repeat,
    var(--mask-image) calc(50% + (var(--spread) * 2)) 50% / var(--size) var(--size) no-repeat,
    var(--mask-image) calc(50% + (var(--spread) * 3)) 50% / var(--size) var(--size) no-repeat;
}

.booking-button>span:nth-of-type(2) {
  padding: 0 1rem 0 calc(48px + 1rem);
  /* adjusted for new container size */
  display: grid;
  place-items: center;
  height: 100%;
}

#map {
  height: 550px;
  width: 100%;
  border-radius: 12px;
}

.flag-img {
  width: 30px;
  height: 20px;
  object-fit: cover;
  margin-right: 6px;
}


/* Popup CSS */

 .modal-content {
      border-radius: 20px;
      overflow: hidden;
      background-image:url("../images/attestation/popup_img.png");
      background-size: cover;
      color: #fff;
    }
    .popup-left {
     
      color: #fff;
      padding: 3rem;
      display: flex;
      flex-direction: column;
      justify-content: center;
    }
    .popup-left h2 {
      font-weight: 700;
      font-size: 2rem;
    }
    .popup-left h2 span {
      color: #00ff66;
    }
    .popup-left ul {
      list-style: none;
      padding: 0;
    }
    .popup-left ul li {
      margin-bottom: 10px;
      font-size: 1rem;
    }
    .popup-left ul li i {
      color: #00ff66;
      margin-right: 8px;
    }
    .popup-right {
      padding: 3rem;
      
    }
    .btn-close {
  background-color: #fff;
  /* border-radius: 50%;
  opacity: 1; */
  font-size: 0.9rem;
}
    .popup-right input {
      border-radius: 25px;
      padding: 10px 20px;
      margin-bottom: 15px;
      border: none;
      width: 100%;
    }
    .popup-right button {
      border-radius: 25px;
      padding: 10px 20px;
      width: 100%;
      background-color: #007f3b;
      border: none;
      color: #fff;
      font-weight: 600;
    }
    .popup-right button:hover {
      background-color: #00b34a;
    }
    .modal-dialog {
      max-width: 900px;
    }
    .attested-badge {
      position: relative;
      top: 60px;
      width: 120px;
      opacity: 0.9;
    }
    @media (max-width: 768px) {
      .modal-dialog {
        margin: 1rem;
      }
      .popup-left, .popup-right {
        text-align: center;
      }
    }