/* =========================
   GLOBAL FONT + WRAPPER
========================= */
body {
    font-size: clamp(14px, 1.4vw, 18px);
    /* font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif; */
	font-family: Hind Siliguri;
}

.ats-wrapper {
    max-width: 1000px;
    margin: 0px auto;
    background: #f6f7fb;
    padding: clamp(14px, 2vw, 24px);
    border-radius: 14px;
    color: #000;
    font-size: clamp(14px, 1.4vw, 16px);
    position: relative;
    z-index: 9999;
}

/* =========================
   GROUP HEADERS
========================= */
.ats-group {
    background: #fff;
    border: 1px solid #e8e8ee;
    border-radius: 12px;
    padding: clamp(12px, 2vw, 18px);
    margin-bottom: clamp(10px, 2vw, 16px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

.ats-group strong {
    display: block;
    margin-bottom: 10px;
    font-size: clamp(16px, 2vw, 20px);
    font-weight: 700;
    color: #000;
}

/* =========================
   SELECT2 BASE
========================= */
.select2-container {
    width: 100% !important;
    font-size: clamp(13px, 1.5vw, 16px);
    z-index: 100000 !important;
}

.select2-container--default .select2-selection--multiple {
    border-radius: 10px !important;
    border: 1px solid #ccc !important;
    padding: clamp(4px, 0.8vw, 8px);
    min-height: clamp(38px, 4vw, 48px);
    background: #fff;
}

/* SELECTED TAGS */
.select2-container--default .select2-selection--multiple .select2-selection__choice {
    background: #f2f2f2;
    border: 1px solid #ddd;
    color: #000 !important;
    border-radius: 999px;
    padding: clamp(5px, 0.9vw, 8px) clamp(10px, 1.4vw, 14px);
    font-size: clamp(12px, 1.5vw, 16px);
    font-weight: 600;
    margin-top: 6px;
    margin-right: 6px;
    display: inline-flex;
    align-items: center;
}

.select2-selection__choice__display {
    padding-left: 10px !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    color: #666;
    margin-right: 6px;
    font-weight: 700;
}

.select2-selection__choice__remove{
	top: -7px !important;
}

/* SEARCH INPUT */
.select2-search__field {
    height: clamp(26px, 3vw, 34px) !important;
    font-size: clamp(13px, 1.5vw, 16px);
}

/* DROPDOWN OPTIONS */
.select2-container--default .select2-results__option {
    color: #000;
    font-size: clamp(13px, 1.5vw, 16px);
}

.select2-dropdown {
    z-index: 100001 !important;
}

/* =========================
   FILTER TOGGLE BUTTON
========================= */
.ats-filter-toggle {
    background: #000;
    color: #fff;
    padding: clamp(10px, 1.8vw, 16px);
    
    cursor: pointer;
    font-size: clamp(10px, 2.2vw, 16px);
    margin-bottom: 10px;
    text-align: center;
	text-transform: uppercase;
	cursor: pointer;
	flex: 1; /* mindkettő egyenlő széles */
	
	
	/* lassabb animáció */
	
	border-radius: 10px;
	border: 2px solid red;
    transition:
        border-radius 0.6s ease,
        border-color 0.8s ease,
        box-shadow 0.8s ease,
        transform 0.8s ease;
	
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
	
}



.ats-filter-toggle:hover {
	border: 2px solid red;
	border-radius: 10px;
	opacity: .7;
}

.ats-filter-toggle:active {
    transform: scale(0.92);
    box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}


/* =========================
   RESULTS (CARDS)
========================= */
.ats-card {
    display: flex;
    gap: clamp(10px, 1.8vw, 18px);
    align-items: center;
    background: #fff;
    border-radius: 14px;
    padding: clamp(10px, 1.8vw, 16px);
    margin-bottom: clamp(8px, 1.4vw, 14px);
    border: 1px solid #eaeaea;
    box-shadow: 0 3px 12px rgba(0,0,0,0.04);
	min-height: 60px;
}

.ats-card img {
    width: clamp(80px, 12vw, 120px);
    height: clamp(60px, 9vw, 90px);
    object-fit: cover;
    border-radius: 10px;
}

.ats-card a {
    font-weight: 700;
    color: #000;
    text-decoration: none;
    font-size: clamp(14px, 1.8vw, 18px);
}

/* =========================
   GLOBAL SEARCH BAR
========================= */
.ats-global-search-bar {
    /* display: flex; */
    gap: clamp(6px, 1.2vw, 12px);
    align-items: center;
    padding: clamp(10px, 1.8vw, 16px) clamp(14px, 2vw, 20px);
    background: #ffffff;
    border-bottom: 1px solid #ddd;
    position: sticky;
    top: 0;
    z-index: 9999;
}

.ats-global-input {
    flex: 1;
    padding: clamp(8px, 1.4vw, 12px) clamp(10px, 1.8vw, 16px);
    border: 1px solid #ccc;
    border-radius: 10px;
    font-size: clamp(14px, 1.6vw, 18px);
    background: #fff;
}

.ats-global-toggle {
    color: #fff;
	background-color: #3cb371;
    border: 2px solid red !important;
    padding: clamp(8px, 1.4vw, 12px) clamp(10px, 1.8vw, 16px);
    border-radius: 30px;
    cursor: pointer;
    font-size: clamp(14px, 1.6vw, 18px);
    transition: 0.2s;
}

.ats-global-toggle:hover {
    opacity: .7;
}

/* =========================
   FLOATING SEARCH BUTTON
========================= */
.ats-floating-search {
    position: fixed;
    top: 20px;
    right: 20px;
    width: clamp(44px, 4vw, 60px);
    height: clamp(44px, 4vw, 60px);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(20px, 2.4vw, 28px);
    cursor: pointer;
    z-index: 9999;
    transition: 0.2s;
   
}

.ats-floating-search:hover {
    opacity: .7;
	border: 2px solid #fff;
}


/* =========================
   OVERLAY
========================= */
.ats-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 9998;
    overflow-y: auto;
}

/* =========================
   RESULTS SCROLL
========================= */
.ats-results {
    max-height: 400px;
    overflow-y: auto;
    padding-right: 10px;
}

/* =========================
   RESULTS LIST LINK
========================= */

.ext-link {
  color: #000;
  text-decoration: underline;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.icon-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.icon {
  fill: none;
  stroke: #000;
  stroke-width: 2;
  opacity: 0.7;
}

.icon-wrapper:hover .icon {
  opacity: 1;
  cursor: pointer;
}

/* Tooltip buborék */
.tooltip {
  position: absolute;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);
  background: #000;
  color: #fff;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}

.icon-wrapper:hover .tooltip {
  opacity: 1;
}

/* =========================
   NO SCROLL MAIN SCREEN
========================= */

body.no-scroll {
  overflow: hidden;
}

.ats-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 9999;
  display: none; /* alapból rejtve */
}

.ats-overlay.active {
  display: block;
}


.ats-close-overlay {
    cursor: pointer;
    color: #000;
}

.ats-close-overlay:hover {
    opacity: .9;
}


.ats-filter-toggle-close {
    background: #000;
    color: #fff;
    padding: clamp(10px, 1.8vw, 16px);
    cursor: pointer;
    font-size: clamp(10px, 2.2vw, 16px);
    margin-bottom: 10px;
    text-align: center;
	text-transform: uppercase;
	
	cursor: pointer;
	flex: 1; /* mindkettő egyenlő széles */
	
	border-radius: 10px;
	border: 2px solid red;
    transition:
        border-radius 0.6s ease,
        border-color 0.8s ease,
        box-shadow 0.8s ease,
        transform 0.8s ease;
	
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
	
}

.ats-filter-toggle-close:hover {
	border: 2px solid red;
	border-radius: 10px;
	opacity: .7;
}

.ats-filter-toggle-close:active {
    transform: scale(0.92);
    box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}

/* nagyon keskeny helyen egymás alá */
@media (max-width: 480px) {
    .ats-filter-toggle,
    .ats-filter-toggle-close {
        width: 100%;
    }
}
/* opcionális: kis kijelzőn teljes szélesség */
.ats-filter-toggle,
.ats-filter-toggle-close {
    flex: 1 1 auto;
}


.ats-filter-toggle-container {
    display: flex;
    width: 100%;
    gap: 10px; /* távolság a két gomb között */
    flex-wrap: wrap; /* ha nincs hely, törik */
    align-items: center;
}

.open {
    display: block;
}


