/* -------------------------------
   Wrapper Layout
--------------------------------*/
.airlink-map-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    margin: 0 auto;
}

#airlink-map {
    flex: 2;
    min-width: 60%;
    min-height: 500px;
    border: 0;
    border-radius: 0;
}

#airlink-map-panel {
    flex: 1;
    padding: 20px;
    background: #fff;
    /*box-shadow: 0 4px 12px rgba(0,0,0,0.08);*/
    min-height: 500px;
    display: flex;
    flex-direction: column;
}
#airlink-map-panel {
  padding: 40px; 
}

#airlink-map-panel .airlink-panel-image {
  margin: -40px -40px 15px; 
}

#airlink-map-panel .airlink-panel-image img {
  width: 100%;
  height: auto;
  border-radius: 0;
  display: block;
}

/* -------------------------------
   Filters
--------------------------------*/
.airlink-map-filters-wrapper {
    position: relative;
    z-index: 20;
}

.airlink-map-filters {
    position: absolute;
    top: 60px;
    left: 75%;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 10px;
    z-index: 30;
    display: none;
}

.airlink-map-filters.open {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    width: 230px;
}

.airlink-map-filters label {
    margin-right: 20px;
    font-weight: bold;
    color: #2c3e50;
}

.airlink-map-filters select {
    margin-left: 5px;
    padding: 6px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
}

.airlink-filter-toggle {
  background: #172458 url('../img/Filter-Icon.svg') no-repeat 10px center;
  background-size: 18px 18px;
  color: #fff;
  border: none;
  padding: 8px 14px 8px 36px; 
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
}
.airlink-map-filters select {
  background: #172458;
  color: #fff;
  border: 1px solid #7a91c6;
}
.airlink-map-filters select option {
  background: #172458;
  color: #fff;
}

/* -------------------------------
   Tooltip Bubble
--------------------------------*/
.airlink-tooltip-bubble {
  background: #172458;
  color: #fff;
  font-family: Open Sans, sans-serif;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  max-width: 260px;
  line-height: 1.4;
  pointer-events: none;
}
.airlink-tooltip-bubble .title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
  white-space: normal;
  word-break: break-word;
}
.airlink-tooltip-bubble .meta {
    font-size: 13px;
  color: #919ec6 !important;
  font-weight: 600;
  white-space: normal;
  word-break: break-word;
}
.airlink-tooltip-bubble .pipe {
  color: #FF5F15 !important;
  margin:0 4px;
}

/* Remove Google Maps default InfoWindow background + shadow */
.gm-style .gm-style-iw-c {
    background: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    overflow: visible !important;
}

/* Remove the close button */
.gm-style .gm-ui-hover-effect {
    display: none !important;
}

/* -------------------------------
   Panel Content
--------------------------------*/

.airlink-panel-header{
    margin-top:4rem;
}
#airlink-map-panel .airlink-panel-title {
    margin: 10px 0;
    font-weight: 700;
    font-size: 40px !important;
    color: #172458 !important;
    text-align: left;
}
.airlink-panel-meta {
  font-size: 14px;
  font-weight: 600;
  color: #7f8c8d;
  margin-bottom: 1rem;
}
.orange-pipe {
  color: #FF5F15 !important;
}

#airlink-map-panel .airlink-panel-desc {
    font-family: Open Sans, Arial, sans-serif;
    line-height: 1.5;
    font-size: 16px;
    color: #333;
    flex-grow: 1;
    margin-bottom: 15px;
    font-weight: 500;
    -webkit-font-smoothing: antialiased;
}

#airlink-map-panel .airlink-panel-image {
    order: -1;
    margin-bottom: 15px;
}
#airlink-map-panel .airlink-panel-image img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    object-fit: cover;
    display: block;
}

/* -------------------------------
   Panel Nav Row + Arrows
--------------------------------*/
#airlink-map-panel .airlink-panel-nav {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  flex-wrap: wrap;
}

#airlink-map-panel .airlink-panel-nav button {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 45px;
  padding: 0 20px;
  cursor: pointer;
  border: 2px solid #FF5F15;
  background: #fff;
}

#airlink-map-panel .airlink-panel-nav button .airlink-arrow {
  font-size: 24px;
  line-height: 1;
  color: #172458;
  margin: 0;
}

#airlink-map-panel .airlink-panel-nav button:hover {
  background: #FF5F15;
}
#airlink-map-panel .airlink-panel-nav button:hover .airlink-arrow {
  color: #fff;
}

/* Force CTA into the center */
#airlink-map-panel .airlink-panel-nav button.airlink-panel-cta {
  order: 2;
  flex: 0 0 auto;
  background: #ff7c00;
  color: #172458;
  font-size: 16px;
  font-weight: 600;
  border: none;
  height: 45px;
  padding: 0 28px;
  cursor: pointer;
}

#airlink-map-panel .airlink-panel-nav .airlink-prev {
  order: 1;
}

#airlink-map-panel .airlink-panel-nav .airlink-next {
  order: 3;
}

#airlink-map-panel .airlink-panel-nav button.airlink-panel-cta:hover {
  color: #fff;
}


/* -------------------------------
   Overview Map
--------------------------------*/
.airlink-map-overview-wrapper {
    width: 100%;
}
#airlink-map-overview {
    width: 100%;
    min-height: 500px;
    border: 0;
    border-radius: 0;
}
/* Force our tooltip to be the only bubble */
.airlink-tooltip-bubble {
    background: #172458 !important;
    color: #fff !important;
    padding: 10px 14px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 4px;
    line-height: 1.4;
    text-align: left;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}
/* Tooltip bubble */
.airlink-tooltip-bubble {
  background: #172458 !important;
  border: 2px solid #919ec6;
  color: #fff !important;
  padding: 10px 14px;
  border-radius: 0;
  position: relative;
  font-size: 14px;
  line-height: 1.4;
  white-space: nowrap;
}

/* Filters wrapper */
.airlink-map-filters-wrapper {
  margin-top: 15px;
  padding: 10px;
  background: #f8f9fb;
  border: 1px solid #ddd;
  border-radius: 6px;
}
.airlink-filter-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  padding: 10px 12px;
  margin-bottom: 0;
  width: 100%;
}
.airlink-filter-heading::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #FF5F15;
    margin: 0 24px 0 10px;
}
/* Filters inline */
.airlink-map-filters {
  display: flex;
  gap: 20px;
  align-items: center;
  margin-top: 10px;
  overflow: visible;
}

/* Labels + selects */
.airlink-map-filters label {
  color: #fff;
  font-weight: 600;
  font-size: 13px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0 12px 10px;
}

.airlink-map-filters select {
  margin-left: 8px;
  padding: 4px 6px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

/* Remove padding from the image only */
#airlink-map-panel .airlink-panel-image.no-padding {
    margin: 0;
    padding: 0;
}

#airlink-map-panel .airlink-panel-image img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 0; /* optional: flush edges */
}

/* Keep padding for the rest of the panel content */
#airlink-map-panel .airlink-panel-content {
    padding: 20px;
}
/* Filters styling */
.airlink-map-filters-wrapper {
  background: #fff;
  border: 1px solid #ddd;
  border-bottom: none; /* so it merges with map border */
  border-radius: 6px 6px 0 0;
  padding: 10px 15px;
  margin-bottom: 0;
}

.airlink-map-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 10px;
}

.airlink-map-wrapper {
  border: 1px solid #ddd;
  border-top: none; /* so it attaches seamlessly */
  border-radius: 0 0 6px 6px;
  overflow: hidden;
}
/* Container for map + overlayed controls */
.airlink-map-container {
  position: relative;
}

/* Toggle button in top-right */
.airlink-filter-toggle-btn {
  position: absolute;
  top: 11px;
  right: 10px;
  background: #172458 url('../img/Filter-Icon.svg') no-repeat center center;
  background-size: 20px 20px;
  border: 2px solid #ffffff;
  border-radius: 0;
  cursor: pointer;
  z-index: 50;
  width: 40px;
  height: 40px;
}
.airlink-filter-toggle-btn svg,
.airlink-filter-toggle-btn svg rect {
  display: none; 
}

/* Filters panel overlay */
.airlink-map-filters {
  position: absolute;
  top: 50px;
  right: 12px;
  background: #1a2655;
  border: 2px solid #7a91c6;
  border-radius: 0;
  padding: 0 0 20px; /* header will add top padding */
  display: none;
  z-index: 40;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  flex-direction: column;
  width: 280px;
  overflow: visible;
}
.airlink-map-filters.open {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding-bottom: 10px; 
}

/* Labels */
.airlink-map-filters label {
   position: relative;
  color: transparent;
  font-size: 0;
  font-weight: 600;
  display: flex;
  flex-direction: row;
  gap: 0;
  padding: 0;
}
.airlink-map-filters label::before {
  content: none;
}

.airlink-map-filters label select {
  font-size: 13px;
  color: #fff;
}

/* Selects */
.airlink-map-filters select {
  background: #172458;
  color: #fff;
  border: 2px solid #7a91c6;
  border-radius: 0;
  width: 80px;
  padding: 4px 8px;
  font-size: 13px;
  font-family: Open Sans, sans-serif;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg width='12' height='8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23fff' stroke-width='2' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 12px auto;
  padding-right: 28px;
}
.airlink-map-filters select option {
  background: #172458;
  color: #fff;
}

/* Close button */
.airlink-map-filters .airlink-filter-close {
  position: absolute;
  top: 6px;
  right: 8px;
  color: #fff;
  font-size: 26px;
  font-weight: 400;
  cursor: pointer;
}

.gm-style img[src*="circle"] {
  transition: transform 0.2s ease-out;
}


/* -------------------------------
   Responsive
--------------------------------*/
@media(max-width: 992px){
    .airlink-map-wrapper {
        flex-direction: column;
    }
    #airlink-map,
    #airlink-map-panel {
        width: 100%;
        min-height: 400px;
    }
    #airlink-map-panel {
        margin-top: 20px;
    }
    .airlink-map-container {
        max-width: 100% !important;
}
}

/* Tablet */
@media (max-width: 1024px) {
  .airlink-map-filters {
    left: 80%;
    transform: translateX(-80%);
  }
}

/* Mobile */
@media (max-width: 600px) {
  #airlink-map{
    height:460px  !important;
  }

  .airlink-map-filters {
    left: 35%;
    transform: translateX(-25%);
    width: 220px;
  }
}
.gm-style div[style*="border:2px solid #FF5F15"] {
  transition: transform 0.25s ease, left 0.25s ease, top 0.25s ease;
}
.gm-style div[style*="border:2px solid #FF5F15"] {
  pointer-events: none;
}
/* -------------------------------------------------
   Halo pulse effect (soft radiating movement)
   ------------------------------------------------- */
#airlink-halo {
  animation: haloPulse 2.5s ease-in-out infinite;
  transform-origin: center center;
}

@keyframes haloPulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.6);
    opacity: 0.45;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}
/* -------------------------------------------------
/* Panel CTA is visible above arrows/overlays */
   ------------------------------------------------- */
.airlink-panel-cta,
.airlink-panel-cta a {
    position: relative;
    z-index: 9999;
    visibility: visible !important;
    opacity: 1 !important;
}

.airlink-panel-nav,
.airlink-prev,
.airlink-next {
    position: relative;
    z-index: 5; /* lower than CTA */
}

/* Prevent clipping */
#airlink-map-panel,
#airlink-map-panel * {
    overflow: visible !important;
}
