:root {
  --brand-blue: #2c37e5;
  --heading-font: 'Plus Jakarta Sans', sans-serif;
  --body-font:    'Figtree', sans-serif;
}

/* Improve text rendering in WebKit/Safari */
.city-label,
.city-cost,
#procedure-select {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--body-font);
}

h1, h2, h3, .gc-widget-title {
  font-family: var(--heading-font);
}

/* Apply body font to dropdown and labels */
#selector-container,
.city-label,
.city-cost {
  font-family: var(--body-font);
}

/* Globalcare branded widget container and header */
.gc-widget {
  max-width: 900px;
  background-color: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-radius: 15px;
  overflow: hidden;
  width: 100%;
  place-self: center;
  position: relative;
}

.gc-widget-header {
  display: flex;
  flex-direction: column;
  align-items: left;
  background-color: #2C37E5; /* brand blue */
  padding: 16px 24px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.2);
  background-image: url('pattern-bg.webp');
  background-size: 300px 300px;
  background-position: 20%;
  background-repeat: no-repeat;
}

.gc-widget-header p {
  color: white;
  margin: 0;
}

.gc-widget-logo {
  height: 32px;
  width: auto;
  margin-right: 16px;
  flex-shrink: 0;
}

.gc-widget-title {
  margin: 0;
  color: #ffffff;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.5rem;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* Global resets */
html, body {
    margin: 0;
    padding: 0;
    font-family: 'Figtree', sans-serif;
  }
  
  /* Widget container and selector */
  #widget-container {
    width: 100%;
    padding: 0px 24px 24px 24px;
    box-sizing: border-box;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
  }
  
  #selector-container {
    padding: 16px;
    text-align: center;
  }

#procedure-select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: 100%;
  max-width: 400px;
  padding: 10px 2.5em 10px 15px; /* leave room for arrow */
  font-family: var(--heading-font);
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 10px;
  background-color: #ffffff;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="8"><path d="M0 0l6 8 6-8z" fill="%23005A9C"/></svg>');
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 12px 8px;
}
/* Hide IE dropdown icon */
#procedure-select::-ms-expand {
  display: none;
}
  
  /* Static map background */
  #map-static {
    position: relative;
    width: 100%;
    aspect-ratio: 800 / 600;
    background: url('map-static.png') no-repeat center/contain;
    background-size: contain;
  }

  .gc-mobile-instruction {
    color: #10257b;
    font-weight: 400;
    font-size: 12px;
    display: none;
  }
  
  /* City labels */
.city-label {
  position: absolute;
  width: auto;
  padding: 8px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 8px;
  text-align: center;
  font-size: clamp(0.75rem, 1.2vw, 1rem);
  font-weight: 600;
  letter-spacing: 0.2px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
  font-family: var(--body-font);
  transition: all 0.3s ease;
  z-index: 1;
}
  
  /* Allow clicks only on the city-name text */
  .city-name {
    pointer-events: auto;
    cursor: pointer;
    
  }
  
.city-cost {
  display: block;
  color: #2C37E5;
  font-weight: bold;
  font-size: 1.1rem; /* larger for emphasis */
  letter-spacing: 0.2px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.city-label .city-name {
  font-weight: 550;
  -webkit-font-smoothing: subpixel-antialiased;
  text-rendering: geometricPrecision;
}

.city-label .city-cost {
  font-family: var(--heading-font);
  font-weight: 700;
  -webkit-font-smoothing: subpixel-antialiased;
  text-rendering: geometricPrecision;
}
  
  /* Position each label by city (tweak these values as you fine‑tune) */
  .city-label[data-city="Tijuana"]         { top: 6%;    left: 0%; }
  .city-label[data-city="Los Algodones"]   { top: 4%; left: 14.25%; }
  .city-label[data-city="Ciudad Juarez"]    { top: 9.2%;  left: 38.1%; }
  .city-label[data-city="Guadalajara"]      { top: 71.7%; left: 40%; }
  .city-label[data-city="Los Cabos"]        { top: 50%;   left: 25.3%; }
  .city-label[data-city="Monterrey"]        { top: 41%;   left: 57.5%; }
  .city-label[data-city="Playa del Carmen"] { top: 72%;   left: 85%; }
  .city-label[data-city="Cancun"]           { top: 53.3%; left: 86.25%; }
  .city-label[data-city="CDMX"]             { top: 79.2%; left: 57.5%; }
  .city-label[data-city="Puerto Vallarta"]  { top: 66.7%; left: 18.5%; }
  .city-label[data-city="Queretaro"]        { top: 64.7%; left: 60%; }
  .city-label[data-city="Merida"]           { top: 61.7%; left: 78%; }
  
  /* Globalcare pin icons */
  .city-pin {
    position: absolute;
    width: clamp(24px, 4vw, 40px);
    height: auto;
    transform: translate(-50%, -100%); /* center bottom of icon at exact point */
    pointer-events: auto;
  }
  
  /* Pin positions for each city (tweak values as needed) */
  .city-pin[data-city="Tijuana"]         { top: 5%;    left: 2.5%; }
  .city-pin[data-city="Los Algodones"]   { top: 8%; left: 12%; }
  .city-pin[data-city="Ciudad Juarez"]   { top: 15%;   left: 35%; }
  .city-pin[data-city="Guadalajara"]     { top: 70.8%; left: 42.5%; }
  .city-pin[data-city="Los Cabos"]       { top: 55%;   left: 23%; }
  .city-pin[data-city="Monterrey"]       { top: 46.7%; left: 55%; }
  .city-pin[data-city="Playa del Carmen"]{ top: 70%; left: 97%; }
  .city-pin[data-city="Cancun"]          { top: 64%; left: 98%; }
  .city-pin[data-city="CDMX"]            { top: 78.3%; left: 58.75%; }
  .city-pin[data-city="Puerto Vallarta"] { top: 71.7%; left: 36.25%; }
  .city-pin[data-city="Queretaro"]       { top: 70%;   left: 57.5%; }
  .city-pin[data-city="Merida"]          { top: 67%; left: 89%; }

.gc-gulf-logo {
  position: absolute;
  width: 200px;    /* increased size for better visibility */
  height: auto;
  top: 10%;
  left: 85%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  opacity: 0.85;
}

/* Hover styles for city labels */
.city-label:hover {
    background: #97c961;          /* very light blue background */
  }
  
  .city-label:hover .city-name,
  .city-label:hover .city-cost {
    color: white;               /* text turns blue */
  }
  
  .city-label:hover {
    cursor: pointer;              /* show pointer over the entire label */
  }

  .gc-table-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-gap: 8px;
    row-gap: 4px;
  }

  .gc-table-data-element {
    display: block;
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #10257b;

  }

  .gc-table-data-element p {
    margin: 0;
    place-content: center;
    font-size: 14px;
    text-align: center;
  }

  .gc-table-data-element .table-city-name {
    background-color: #10257b;
    color: white;
    padding: 4px 8px;
  }

  .gc-table-data-element .table-city-cost {
    background-color: #ffffff;
    color: #10257b;
  }

  .loading-screen {
    position: absolute;
    top: 50%;
    left: 45%;
    right: auto;
    font-size: 40px;
    font-weight: 700 ;
    color: #2C37E5;
    animation: pulse 1.5s infinite;
    transition: opacity 0.3s ease-in-out;
  }

  .loader {
    width: 54px;
    height: 54px;
    border: 5px solid #2C37E5;
    border-bottom-color: transparent;
    border-radius: 50%;
    display: inline-block;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
  }

  @keyframes rotation {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
  } 

  @keyframes pulse {
    0% {
      opacity: 1;
    }
    25% {
      opacity: 0.80;
    }
    50% {
      opacity: 0.70;
    }
    75% {
      opacity: 0.80;
    }
    100% {
      opacity: 1;
    }
  }

  /* @media (max-width: 768px) {
    .loading-screen {
      left: 35%;
    font-size: 40px;
    }
  }

  @media (max-width: 430px) {
    .loading-screen {
      left: 30%;
    font-size: 32px;
    }
  } */

  @media (min-width: 768px) {
    .gc-table-container {
      display: none;
    }
  }

@media (max-width: 768px) {
    .city-label {
      display: none;
  }

  .gc-mobile-instruction {
    display: block;
  }

  .gc-gulf-logo {
    width: 150px;
  }

  .city-label[data-city="Playa del Carmen"] { top: 72%;   left: auto; right: 0%; }
  .city-label[data-city="Cancun"]           { top: 46%; left: auto; right: 0%;}
}

@media (max-width: 480px) {
  .gc-widget-header { padding: 20px; }
  #procedure-select { font-size: 0.9rem; }
  .city-label { font-size: 0.8rem; }
  .city-pin   { width: 24px; }

  .gc-gulf-logo {
    width: 100px;
  }
}