* {
  font-family: "Montserrat", sans-serif;
  font-optical-sizing: auto;
  font-weight: 500;
  font-style: normal;
}

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

.request-btn {
  padding: 5px 5px 5px 16px;
  border-radius: 22px;
  border: 2px solid #fff;
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #0088FF;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
  border:none;
}

.request-btn:hover {
  box-shadow: 0 5px 15px rgba(102, 104, 105, 0.35);
  transform: translateY(-1px);
}

.request-btn-icon {
  width: 30px;
  height: 30px;
  border-radius: 16px;
  background: #fff;
  color: #0088FF;
  display: flex;
  align-items: center;
  justify-content: center;
}


#main_top {
  position: relative;
  /* margin-top:-5px; */
  z-index: 0;   /* ← put behind everything */
}

.cursor-pointer {
  cursor: pointer;
}

/* #main_top::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 200px;

  background: linear-gradient(to bottom, rgba(255,255,255,0), white);

  z-index: -1;
  pointer-events: none;
} */

#email-status-icon {
  transition: opacity 0.2s ease, transform 0.2s ease;
}

* {
  margin: 0;
  padding: 0;
  font-family: "Montserrat", sans-serif;
  font-optical-sizing: auto;
  font-weight: 500;
  font-style: normal;
}

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

.badge {
  background: #0088FF;
  color: white;
  padding: 2px 6px;  /* smaller */
  font-size: 10px;   /* smaller text */
  border-radius: 8px;
  text-align: center;
  white-space: nowrap;
  width:fit-content
}

.arrow-down {
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid #0088FF;
  margin: 0 auto;
}

.segmented-control {
  position: relative;
  display: flex;
  border-radius: 24px;
  background: #F2F2F7;
  padding: 4px;
  width: 300px;
  /* margin: 50px auto;
  margin-top:40px;
  margin-bottom:30px; */
  user-select: none;
}

.segmented-control .segment {
  flex: 1;
  background: transparent;
  border: none;
  padding: 8px 0;
  cursor: pointer;
  z-index: 1;
  position: relative;
  font-weight: 500;
  transition: color 0.3s ease;
}

.segmented-control .segment.active {
  color: black;
}

.segmented-control .highlight {
  position: absolute;
  top: 4px;
  left: 0;
  width: 0; /* JS will set width */
  height: calc(100% - 8px);
  /* background: linear-gradient(90deg, #6155F5, #0088FF); */
  background-color: #fff;
  border-radius: 20px;
  transition: left 0.3s ease, width 0.3s ease;
  z-index: 0;
}

/* Dropdown Button */
.dropbtn {
  margin-top:-10px;
  margin-bottom:-10px;
  background-color: transparent;
  color: black;
  padding: 16px;
  font-size: 16px;
  border: none;
  cursor: pointer;
  border-radius:20px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.cn_choice {
  cursor: pointer;
}

/* The container <div> - needed to position the dropdown content */
.dropdown {
  position: relative;
  display: inline-block;
}

/* ensure sort button wrapper is always above hero background */
.flex.gap-2.mb-4,
[id="sortBtn"] {
    position: relative;
    z-index: 10;
}

/* Dropdown Content (Hidden by Default) */
.dropdown-content {
  /* display: none; */
  margin-top:15px;
  /* margin-left:5px; */
  position: absolute;
  background-color: #fff;
  min-width: 275px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 1000;
  border-radius: 20px;
  border: 1px solid #E5E5EA;
  max-height: 400px;
  overflow-y: auto;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
  pointer-events: none;
  visibility: hidden;
}

/* Links inside the dropdown */
.dropdown-content .cn_choice {
  text-align: left;
  color: black;
  padding: 15px 20px;
  text-decoration: none;
  display: block;
  border-radius:16px;
  margin:8px;

  display: flex;
  justify-content: space-between;
  align-items: center;
}


.subtype-chip {
  min-width: 20px;
  height: 20px;
  padding: 2 7px;
  font-size: 12px;
  border-radius: 999px;
  background: #0088FF;
  color:#fff;
  display: none;
  align-items: center;
  justify-content: center;
  font-weight: 550;
}

.cn_choice_et {
  text-align: left;
  color: black;
  padding: 15px 20px;
  text-decoration: none;
  display: block;
  border-radius:16px;
  margin:8px;
  cursor: pointer;
}



.cn_choice_et:hover {background-color: #F2F2F7;cursor: pointer;}

/* .circle-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}

.circle-checkbox::before {
  content: "";
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid #0088FF;
  display: inline-block;
  transition: all 0.2s ease;
}

input[type="checkbox"]:checked + .circle-checkbox::before {
  background-color: #0088FF;
  box-shadow: inset 0 0 0 3px white;
} */
 /* Container */
/* Container for label */
/* Container */
.circle-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}

body.modal-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
  /* ✅ remove any hardcoded top — JS sets it dynamically */
}

/* Circle element */
.circle-mark {
  width: 16px;
  height: 16px;
  min-width: 16px;
  min-height: 16px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 2px solid #0088FF;
  display: inline-block;
  box-sizing: border-box;
  transition: all 0.2s ease;
}

/* Checked state: when input inside label is checked */
.circle-checkbox input[type="checkbox"]:checked + .circle-mark {
  background-color: #0088FF;
  box-shadow: inset 0 0 0 3px white;
}

/* Hover effect */
.circle-checkbox:hover .circle-mark {
  border-color: #005fcc;
}

/* Label text */
.label-text {
  line-height: 1;          /* ✅ was 1.3 which adds extra space */
  word-break: break-word;
}

/* Change color of dropdown links on hover */
.dropdown-content .cn_choice:hover {background-color: #F2F2F7;cursor: pointer;}

/* Show the dropdown menu (use JS to add this class to the .dropdown-content container when the user clicks on the dropdown button) */
/* .show {display:block;} */

.dropdown-content.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  visibility: visible;
}

.loader {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(0, 136, 255, 0.3); /* soft blue instead of white */
  border-top: 2px solid #0088FF;            /* bright blue */
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-bottom:-5px;
}

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

.modal {
  position: fixed;
  inset: 0;
  display: flex;          
  align-items: center;
  justify-content: center;

  z-index: 1000;
  opacity: 0;
  width: 100%;
  height: 100%;
  visibility: hidden;
  pointer-events: none;

  transition: opacity 0.25s ease, visibility 0s linear 0.25s;
}

.modal.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.25s ease;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.modal.open .modal-backdrop {
  opacity: 1;
}

/* #subtypes-container div:hover {
  border-radius: 20px;
  padding: 14px;
} */

#subtypes-container {
  position: absolute;
  top: 0;
  left: 0;
  background-color: #fff;
  min-width: 215px;
  max-height: 350px;
  overflow-y: auto;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 1000;
  border-radius: 20px;
  border: 1px solid #E5E5EA;

  /* Start hidden */
  opacity: 0;
  visibility: hidden;
  transform: translateX(10px); /* slightly to the right */
  pointer-events: none;

  /* transition for smooth effect */
  transition: opacity 0.2s ease, transform 0.2s ease;
}

#subtypes-container.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(0); /* slide into place */
  pointer-events: auto;
}

#subtype-info-container {
  position: absolute;
  top: 0;
  left: 0;
  min-width: 215px;
  background: white;
  border: 1px solid #E5E5EA;
  border-radius: 20px;
  box-shadow: 0px 8px 16px rgba(0,0,0,0.15);
  padding: 12px;
  font-size: 13px;
  z-index: 1000;

  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

#subtype-info-container.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.dropdown-menu {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.15s ease, transform 0.15s ease;
  pointer-events: none;
}

.dropdown-menu.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* .modal-content {
  width:fit-content;
  height: fit-content;
  position: relative;
  background: #fff;
  border-radius: 26px;

  z-index: 1;

  box-shadow: 0 20px 60px rgba(0,0,0,0.25);

  opacity: 0;
  transform: translateY(24px) scale(0.95);
  transition: transform 0.3s ease, opacity 0.3s ease;
} */

.modal-content {
  max-width: 1150px;
  width: calc(100% - 32px);
  height: 90vh;
  position: relative;
  background: #fff;
  border-radius: 26px;
  z-index: 1;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
  opacity: 0;
  transform: translateY(24px) scale(0.95);
  transition: transform 0.3s ease, opacity 0.3s ease;
  display: flex;
  flex-direction: column;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

#ads-column {
  position: sticky;
  top: 20px;
  align-self: flex-start; /* critical — prevents stretching to parent height */
  /* No overflow on this element — would break sticky */
}

.modal.open .modal-content {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.ai-label {
  /* font-weight: 600; */
  font-size:17px;
  color:#CB30E0;
  padding-top:0.4px;
  margin-left:10px;
  /* background: linear-gradient(
    270deg,
    #a78bfa,
    #c084fc,
    #8b5cf6,
    #d946ef
  );
  background-size: 600% 600%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: aiTint 6s ease infinite; */
}

@keyframes aiTint {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Country / District / County header — matches mobile/tablet overlay .ov-hdr style */
.dropdown-section-header {
  text-align: left;
  position: sticky;
  top: 0;
  z-index: 2;
  pointer-events: none;
  background: #fff;
  /* Pill-style label matching overlay ov-hdr */
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 10px 12px 4px;
  color: #8E8E93;
  border-radius: 0;
  margin: 0;
  line-height: 1.4;
  box-sizing: border-box;
  word-break: break-word;
  font-family: 'Montserrat', sans-serif;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.dropdown-section-header.active-country {
  color: #111827;
  opacity: 1;
  transform: translateY(0);
}

#ai_search_filed {
  visibility: hidden;
  opacity: 0;
  transform: translateY(-10px);
  pointer-events:none;

  transition:
    opacity 0.25s ease,
    transform 0.25s ease,
    visibility 0s linear 0.25s;
}

#ai_search_filed.active {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
  pointer-events:auto;
  transition:
    opacity 0.25s ease,
    transform 0.25s ease,
    visibility 0s;
}

/* Pointer events only when the field is actually visible/active */
#ai_search_filed.active,
#ai_search_filed.active * {
  pointer-events: auto;
}

#ai_search_container{
  position:absolute;
  left:50%;
  transform:translateX(-50%);
  z-index:1;
  pointer-events: none;
}

#ai_search_loading{
  margin-top:5px;
  background:white;
  border:1px solid #e5e7eb;
  border-radius:18px;
  padding:14px 18px;
  font-size:14px;
  color:#6b7280;
  box-shadow:0 6px 16px rgba(0,0,0,0.06);

  opacity:0;
  transform:translateY(-8px);
  pointer-events:none;

  transition: opacity 0.25s ease, transform 0.25s ease;
  max-width:300px;
}

/* .hero-stats {
  display: flex;
  background: white;
  border: 1px solid rgba(255,255,255,.15); border-radius: var(--r-pill);
  overflow: hidden; margin: 4px 0;
  width: fit-content; max-width: 90%;
  border-radius:30px;
  margin-top:15px;
  margin-bottom:30px;
}
.hstat {
  padding: 11px 26px;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  border-right: 1px solid rgba(255,255,255,.12);
}
.hstat:last-child { border-right: none; }
.hstat strong { color: #000; font-size: 15px; font-weight: 700; }
.hstat span   { color: rgba(0,0,0,.58); font-size: 11px; font-weight: 400; } */

#ai_search_loading_text {
  display: inline-block;
  transition: opacity 0.3s ease;
  opacity: 1;
}

#ai_search_loading_text.fade-out {
  opacity: 0;
}

#ai_search_container.loading #ai_search_loading{
  opacity:1;
  transform:translateY(0);
}

.btn-disabled {
  opacity: 0.5;
  pointer-events: none;
  cursor: not-allowed;
}

/* #filters-container {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: flex-start;
} */

/* 
.filter-item {
  box-sizing: border-box;
  flex: 0 0 calc(25% - 12px);
}

.filter-item:nth-child(-n+3) {
  flex-basis: calc(33.333% - 12px);
} */


/* Country header */
/* .dropdown-section-header {
  position: sticky;
  top: 0;
  z-index: 2;
  pointer-events: none; 
  background: white;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 8px 12px;
  color: #6b7280;
  border-radius:0px !important;
  margin-top:-1px !important;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.dropdown-section-header {
  opacity: 1;
  transform: translateY(0);
}

.dropdown-section-header.active-country {
  opacity: 1;
  transform: translateY(0);
  color: #111827;
} */


