/**
 * ATP Theme - Header Styles
 * This file contains all header-related styles for the ATP WordPress theme.
 */

/* --------------------------------------------------------
 * 0. Fix Header Spacing - Remove Top Gap
 * -------------------------------------------------------- */
body > header,
body > .atp-header-bg,
body > .header-bg {
  margin-top: 0 !important;
}

/* --------------------------------------------------------
 * 1. Main Header Layout
 * -------------------------------------------------------- */
.atp-header-bg,
.header-bg {
  background: url('../images/earth.jpg') center top/cover no-repeat;
  min-height: 120px;
  width: 100%;
  position: relative;
  padding: 0;
  margin-bottom: 0;
  margin-top: 0 !important;
}

/* --------------------------------------------------------
 * 2. Header Components
 * -------------------------------------------------------- */
.atp-header-content {
  display: flex;
  align-items: flex-start;
  padding: 24px 36px 12px 36px;
}

.atp-header-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.atp-logo-img {
  height: 80px;
  margin-bottom: 2px;
}

.atp-logo-audit {
  font-size: 1.1rem;
  font-style: italic;
  color: #e0e0e0;
  margin-top: 2px;
  margin-bottom: 6px;
}

.atp-header-title {
  font-size: 1.4rem;
  font-weight: 500;
  letter-spacing: 1px;
  color: #fff;
  margin-top: 6px;
}

.atp-header-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  min-width: 420px;
}

.atp-header-toprow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

/* --------------------------------------------------------
 * 3. Navigation Styles
 * -------------------------------------------------------- */
.atp-btn {
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
  border-radius: 6px;
  padding: 6px 22px;
  font-size: 1.1rem;
  font-weight: 600;
  margin-left: 8px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.atp-btn:hover {
  background: #fff;
  color: #1e3c5a;
}

.atp-menu {
  font-size: 1.3rem;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  margin-right: 10px;
}

.atp-menu-icon {
  font-size: 1.5rem;
  margin-left: 4px;
}

/* --------------------------------------------------------
 * 5. Flag Icons & Country Selector
 * -------------------------------------------------------- */
.atp-country-select {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.atp-country-label {
  font-size: 1.1rem;
  color: #fff;
  margin-right: 6px;
}

.atp-flags {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
}

.atp-flags img {
  width: 36px;
  height: 24px;
  margin-right: 3px;
  border-radius: 2px;
  border: 1px solid #ccc;
  background: #fff;
}

/* --------------------------------------------------------
 * 7. Responsive Adaptations
 * -------------------------------------------------------- */
@media (max-width: 768px) {
  .atp-flags {
    flex-wrap: wrap;
    gap: 4px;
    padding: 3px;
  }

  .atp-flags img {
    width: 28px;
    height: 18px;
  }
}

@media (max-width: 576px) {
  .atp-flags img {
    width: 24px;
    height: 16px;
  }
}

.atp-header-register-link {
  font-size: 1.1rem;
  color: #fff;
  margin-top: 2px;
}

.atp-header-register-link a {
  color: #ffd700;
  text-decoration: underline;
  font-weight: 600;
}

/* Enhanced header background with overlay gradient */
.header-bg {
  background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url('../images/earth.jpg') center top/cover no-repeat;
  padding-top: 10px;
  z-index: 1;
}

/* Text shadow for better readability on background images */
.text-shadow {
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* Logo sizing */
.logo-container img {
  height: 5rem;
}

/* Reduce spacing around logo */
.navbar-brand {
  margin-right: 0.25rem !important;
  padding-right: 0 !important;
}

.logo-container {
  margin-right: 0.25rem !important;
}

.logo-container img {
  margin-right: 0.25rem !important;
}

.flag-icon {
  width: 28px;
  height: auto;
  margin-right: 5px;
  transition: all 0.3s ease;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
  filter: saturate(1.1);
}

.flag-icon:hover {
  transform: scale(1.15) translateY(-2px);
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  filter: saturate(1.3) brightness(1.05);
}

/* Active/selected state for flags */
.flag-icon:active {
  transform: scale(0.65);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  transition: all 0.1s ease;
}

.main-title {
  font-size: 1.25rem;
  letter-spacing: 1px;
  font-weight: bold;
}

@media (max-width: 768px) {
  .main-title {
    font-size: 1rem;
  }

  .flag-icon {
    width: 22px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
  }

  .logo-container img {
    height: 36px;
    margin-bottom: 0 !important;
  }

  /* Reduce logo spacing on mobile */
  .navbar-brand {
    margin-right: 0.125rem !important;
    padding-right: 0 !important;
    margin-bottom: 0 !important;
  }

  .logo-container {
    margin-right: 0.125rem !important;
    margin-bottom: 0 !important;
  }

  .logo-container img {
    margin-right: 0.125rem !important;
    margin-bottom: 0 !important;
  }
}

/* Responsive styles for medium devices (tablets) */
@media (max-width: 991px) {
  .header-bg {
    min-height: 110px;
  }

  .main-title {
    margin-bottom: 0.5rem !important;
  }
}

@media (max-width: 768px) {
  .header-bg {
    min-height: 100px;
    background-position: center top;
    background-size: cover;
    padding-top: 5px !important;
    padding-bottom: 0 !important;
  }

  .navbar {
    padding-top: 0.25rem !important;
    padding-bottom: 0.25rem !important;
  }

  .main-title {
    font-size: 1rem !important;
    margin-bottom: 0 !important;
    margin-top: 0 !important;
  }
}

@media (max-width: 576px) {
  .header-bg {
    min-height: 80px;
    padding-bottom: 0;
  }

  .row.py-3 {
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
  }

  .main-title {
    font-size: 0.9rem !important;
    letter-spacing: 0.5px;
  }
}

/* --------------------------------------------------------
 * 6. Utility Components
 * -------------------------------------------------------- */
/* White box with transparency for overlaying content */
.white-transparent-box,
.atp-white-box {
  background-color: rgba(255, 255, 255, 0.85);
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
  position: relative;
  z-index: 1100;
}

/* Flag container */
.atp-flags {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px;
  border-radius: 8px;
}

/* Flag icon styling */
.flag-icon {
  height: 16px;
  width: auto;
  display: block;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  filter: saturate(1.2);
  transition: all 0.3s ease;
}

/* SVG-specific flag adjustments */
.flag-icon[src$=".svg"] {
  background-color: transparent;
}

/* --------------------------------------------------------
 * 4. User Authentication Buttons
 * -------------------------------------------------------- */
/* Header button base styles */
header.header-bg .btn {
  font-weight: 600;
  border-radius: .25rem;
}

/* Light outline button styles */
header.header-bg .btn.btn-outline-light {
  background: #494e53;
  color: #fff;
  border-color: rgba(255, 255, 255, .7);
}

/* Light outline button hover/focus states */
header.header-bg .btn.btn-outline-light:hover,
header.header-bg .btn.btn-outline-light:focus {
  background: rgba(73, 78, 83, .6);
  color: #fff;
  border-color: rgba(255, 255, 255, .9);
  box-shadow: none;
}

.navbar-container {
  margin-top: 1rem;
  transition: 0.3s ease-in-out;
}

.navbar-container a {
  color: white;
  text-decoration: underline;
}


@media (max-width: 991px) {
  .navbar-container {
    margin-top: 1rem;
    transition: 1s ease-in-out;
  }


}


.js-nav-menu {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: row !important;
  background: #494e53;
  width: 100%;
}

.js-nav-menu>li {
  position: relative;
  margin: 0;
}

.js-nav-menu>li>a {
  color: white;
  text-decoration: none;
  padding: 0.8rem 1rem;
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.js-nav-menu>li>a span {
  display: block;
  font-size: 0.75rem;
  font-weight: 400;
  opacity: 0.9;
  margin-top: 2px;
  line-height: 1.2;
}

.js-nav-menu>li>a:hover {
  color: white;
  text-decoration: underline;
}

/* Second Menu */
.ab_second_menu {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

/* Dropdown Menus */
.dropdown-sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 300px;
  background: white;
  color: #333;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  padding: 1.5rem;
  z-index: 1000;
  margin-top: 0.5rem;
}

.js-nav-menu>li.active>.dropdown-sub-menu {
  display: block;
}

.dropdown-sub-menu.inner {
  padding: 1rem;
}

.dropdown-sub-menu .container,
.dropdown-sub-menu .container-fluid {
  padding: 0;
}

.dropdown-sub-menu p {
  margin: 0;
  padding: 1rem;
  color: #666;
}

/* Nested dropdown for Commercial */
.dropdown-sub-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 1rem;
}

.dropdown-sub-menu ul li {
  flex: 1;
  position: relative;
}

.dropdown-sub-menu ul li a:hover {
  color: #333;
  text-decoration: none;
  padding: 0.5rem 1rem;
  display: block;
  background-color: #f8f9fa;
  border-radius: 4px;
  text-decoration: underline;
}

.dropdown-sub-menu ul li .dropdown-menu {
  display: none;
  position: static;
  box-shadow: none;
  margin-top: 0.5rem;
  background-color: #fff;
  border: 1px solid #e0e0e0;
}

.dropdown-sub-menu ul li.active>.dropdown-menu {
  display: block;
}

.clearfix::after {
  content: "";
  display: table;
  clear: both;
}


/* Responsive Design */
@media (max-width: 991px) {
  .navbar-container {
    margin-top: 1rem;
    transition: 0.5s ease-in-out;
  }

  .js-nav-menu {
    flex-direction: column;
    align-items: stretch;
    transition: 0.5s ease-in-out;
    text-align: center;
  }

  .js-nav-menu>li {
    width: 100%;
  }

  .js-nav-menu>li>a {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .dropdown-sub-menu {
    position: static;
    box-shadow: none;
    background: rgba(255, 255, 255, 0.95);
    margin: 0.5rem 0;
    border-radius: 4px;
    min-width: auto;
  }

  .dropdown-sub-menu ul {
    flex-direction: column;
  }

  .ab_second_menu {
    border-top: 2px solid rgba(255, 255, 255, 0.3);
  }
}

@media (max-width: 768px) {
  .main-menu {
    border-radius: 0;
  }

  .js-nav-menu>li>a {
    font-size: 0.85rem;
    padding: 0.6rem 0.8rem;
  }

  .js-nav-menu>li>a span {
    font-size: 0.7rem;
  }
}

/* Pseudo-element for background opacity */
header.sticky-navbar-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  opacity: 0.8;
  z-index: -1;
}

header.sticky-navbar-header {
  background-image: none;
  background: none;
  position: fixed;
  top: 0;
  overflow: visible;
  z-index: 11000;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-weight: 600;
  transform: translateY(-100%);
  transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
  opacity: 0;
  pointer-events: none;
  width: 100%;
}

header.sticky-navbar-header.visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

header.sticky-navbar-header.invisible {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;


}

.sticky-navbar-container {
  padding: 0.5rem 1rem;
  gap: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 1;
}

.sticky-navbar-logo {
  display: flex;
  align-items: center;
  height: 40px;
  flex-shrink: 0;
}

.sticky-navbar-logo a {
  display: flex;
  align-items: center;
  height: 100%;
}

.sticky-navbar-logo img {
  height: 100%;
  width: auto;
  object-fit: contain;
  display: block;
}

.sticky-navbar-buttons-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 1;
  flex-wrap: wrap;
  flex: 1;
  min-width: 0;
}

.sticky-navbar-buttons-container .navigation-buttons {
  border: none;
  color: black;
  padding: 0.4rem 0.8rem;
  border-radius: 10px;
  background-color: inherit;
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none !important;
  font-size: 0.9rem;
  flex-shrink: 1;
}

.sticky-navbar-buttons-container .navigation-buttons:hover {
  border: none;
  color: #fff;
  background-color: var(--primary-color);
  transition: ease 0.5s;
  text-decoration: none !important;
}

.sticky-navbar-buttons-container .navigation-buttons:active {
  border: none;
  color: #fff;
  background-color: var(--primary-color);
  text-decoration: none !important;
}

.sticky-navbar-login-container,
.sticky-navbar-menu-button {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
}

.sticky-navbar-login-container a,
.sticky-navbar-menu-button button {
  border: var(--primary-color) 1px solid;
  color: white;
  padding: 0.4rem 0.8rem;
  border-radius: 10px;
  background-color: inherit;
  white-space: nowrap;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none !important;
  font-size: 0.9rem;
}

.sticky-navbar-login-container a:hover,
.sticky-navbar-menu-button button:hover {
  color: #fff;
  background-color: var(--primary-color);
  transition: ease 0.5s;
  text-decoration: none !important;
}

.sticky-navbar-login-container a:active,
.sticky-navbar-menu-button button:active {
  color: #fff;
  background-color: var(--primary-color);
  text-decoration: none !important;
}

.sticky-navbar-menu-button {
  display: flex;
}

.sticky-navbar-menu-button button {
  color: black !important;
  font-weight: 600;
  border: var(--primary-color) 1px solid;
}

.sticky-navbar-menu-button button:hover {
  color: #fff !important;
}

.sticky-navbar-menu-button button[aria-expanded="true"] {
  color: #fff !important;
  background-color: var(--primary-color);
}

.sticky-navbar-login-container a img {
  width: 18px;
  height: 18px;
}

.sticky-navbar-login-container a span {
  color: black !important;
  font-weight: 600;
}

.sticky-navbar-login-container a:hover span {
  color: #fff !important;
}




.sticky-navbar-container2 {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  pointer-events: none;
  transition:
    max-height 0.4s ease-in-out,
    opacity 0.3s ease-in-out;
  padding-bottom: 1rem;


}

.sticky-navbar-container2.active {
  max-height: 300px;
  opacity: 1;
  pointer-events: auto;
}


/* ========================================
   RESPONSIVE BREAKPOINTS
   ======================================== */

/* Large desktops (1400px and up) */
@media (min-width: 1480px) {
  .sticky-navbar-container {
    padding: 0.5rem 2rem;
    gap: 2rem;
  }

  .sticky-navbar-buttons-container {
    gap: 1rem;
  }

  .sticky-navbar-buttons-container .navigation-buttons {
    padding: 0.5rem 1rem;
    font-size: 1rem;
  }

  .sticky-navbar-logo {
    height: 45px;
  }
}

/* Standard desktops (1200px to 1399px) */
@media (max-width: 1399px) {
  .sticky-navbar-container {
    gap: 1.5rem;
  }

  .sticky-navbar-buttons-container {
    gap: 0.75rem;
  }

  .sticky-navbar-buttons-container .navigation-buttons {
    padding: 0.45rem 0.9rem;
    font-size: 0.95rem;
  }
}

/* Smaller desktops/large tablets (1024px to 1199px) */
@media (max-width: 1199px) {
  .sticky-navbar-container {
    padding: 0.5rem 1rem;
    gap: 1rem;
  }

  .sticky-navbar-menu-button {
    order: 1;
    /* move to left */
  }

  .sticky-navbar-logo {
    order: 2;
  }

  .sticky-navbar-buttons-container {
    order: 3;
  }

  .sticky-navbar-login-container {
    order: 4;
  }


  .sticky-navbar-buttons-container {
    gap: 0.5rem;
  }

  .sticky-navbar-buttons-container .navigation-buttons {
    padding: 0.4rem 0.75rem;
    font-size: 0.85rem;
  }

  .sticky-navbar-logo {
    height: 38px;
  }
}

/* Hide sidebar drawer on desktop */
.side-navbar-drawer {
  display: none;
}

/* Tablets landscape (900px to 1023px) */

@media (max-width: 1023px) {



  /* Hide desktop buttons */
  .sticky-navbar-container>.sticky-navbar-buttons-container {
    display: none;
  }

  .side-navbar-drawer .side-navbar-top-buttons {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    margin-bottom: 1rem;
  }

  .side-navbar-drawer .sticky-navbar-login-container a {
    font-size: 1.2rem;
  }

  .side-navbar-top-buttons .close-button {
    background: transparent;
    border-radius: 100px;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    color: black;
    text-decoration: none !important;
    font-weight: 600;
    border: var(--primary-color) 1px solid;
    cursor: pointer;
    transition: all 0.3s ease;
  }

  .side-navbar-top-buttons .close-button:hover {
    background: var(--primary-color);
    color: #fff;
  }

  /* Drawer ONLY */
  .side-navbar-drawer {
    display: block;
    position: fixed;
    top: 0;
    right: -320px;
    width: 320px;
    height: 100vh;

    padding: 1rem;
    padding-top: 80px;
    overflow-y: auto;

    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);

    transition: right 0.35s ease;
    z-index: 12000;

    pointer-events: none;
  }

  .side-navbar-drawer.active {
    right: 0;
    pointer-events: auto;
    padding-top: 1rem;
  }

  /* Buttons layout */
  .side-navbar-drawer .side-navbar-buttons-container {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
  }

  .side-navbar-drawer .navigation-buttons {
    width: 100%;
    text-align: left;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    background-color: #f5f5f5;
    color: #333;
    text-decoration: none;
    display: block;
    transition: all 0.2s ease;
  }

  .side-navbar-drawer .navigation-buttons:hover {
    background-color: var(--primary-color);
    color: #fff;
  }

  /* Overlay - darker backdrop */
  body.menu-open::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 11500;
  }



  /* Buttons container INSIDE drawer */
  .side-navbar-container .side-navbar-buttons-container {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
  }

  /* Buttons / links keep SAME styling */
  .side-navbar-container .navigation-buttons {
    width: 100%;
    text-align: left;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    background-color: inherit;
  }

  .side-navbar-container .navigation-buttons:hover,
  .side-navbar-container .navigation-buttons:active {
    background-color: var(--primary-color);
    color: #fff;
  }

  /* Page overlay */
  body.menu-open::before {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 11000;
  }
}




@media (max-width: 1399px) {
  .sticky-navbar-menu-button {
    display: flex;
  }

  .sticky-navbar-login-container a,
  .sticky-navbar-menu-button button {
    padding: 0.35rem 0.65rem;
    font-size: 0.8rem;
    gap: 0.4rem;
  }


  .sticky-navbar-container {
    gap: 0.75rem;
  }

  .sticky-navbar-logo {
    height: 36px;
  }
}

@media (max-width: 1399px) {
  .sticky-navbar-menu-button {
    display: flex;
  }

  .sticky-navbar-login-container a,
  .sticky-navbar-menu-button button {
    padding: 0.35rem 0.65rem;
    font-size: 0.7rem;
    gap: 0.4rem;
  }


  .sticky-navbar-container {
    gap: 0.75rem;
  }

  .sticky-navbar-logo {
    height: 36px;
  }
}

/* Tablets portrait (768px to 899px) - Show hamburger, hide some buttons */
@media (max-width: 899px) {
  .sticky-navbar-menu-button {
    display: flex;
  }




  .sticky-navbar-container {
    gap: 0.75rem;
  }

  .sticky-navbar-logo {
    height: 36px;
  }
}

/* Mobile landscape (576px to 767px) */
@media (max-width: 767px) {
  .sticky-navbar-container {
    padding: 0.4rem 0.75rem;
    gap: 0.5rem;
  }

  .sticky-navbar-logo {
    height: 32px;
  }

  .sticky-navbar-login-container a,
  .sticky-navbar-menu-button button {
    padding: 0.35rem 0.65rem;
    font-size: 0.8rem;
    gap: 0.4rem;
  }

  .sticky-navbar-login-container a img {
    width: 16px;
    height: 16px;
  }
}

/* Mobile portrait (below 576px) */
@media (max-width: 575px) {
  .sticky-navbar-container {
    padding: 0.35rem 0.5rem;
    gap: 0.5rem;
  }

  .sticky-navbar-logo {
    height: 28px;
  }

  .sticky-navbar-login-container a span {
    display: none;
  }

  .sticky-navbar-login-container a,
  .sticky-navbar-menu-button button {
    padding: 0.4rem;
    min-width: 40px;
    justify-content: center;
    font-size: 0.7rem;
  }

  .sticky-navbar-login-container a img {
    width: 18px;
    height: 18px;
  }

  .sticky-navbar-menu-button button {
    font-size: 0.75rem;
  }
}

/* Extra small devices (below 400px) */
@media (max-width: 399px) {
  .sticky-navbar-logo {
    height: 24px;
  }

  .sticky-navbar-container {
    padding: 0.3rem 0.4rem;
  }
}

.hamburger-menu-div {
  width: 20px;
  height: 20px;
  margin-right: 5px;
}

.country-tooltip {
  position: relative;
  display: inline-block;
  border-bottom: 1px dotted black;
  /* Add dots under the hoverable text */
  cursor: pointer;
}

.country-tooltip .country-tooltip-text {
  visibility: hidden;
  width: 120px;
  background-color: #333;
  color: #fff;
  text-align: center;
  border-radius: 6px;
  padding: 5px 0;
  position: absolute;
  z-index: 1;
  bottom: 125%;
  left: 50%;
  margin-left: -60px;

  opacity: 0;
  transition: opacity 0.3s;
}

.country-tooltip:hover .country-tooltip-text {
  visibility: visible;
  opacity: 1;
}