/* Country dropdown */
.country-select{
  display:flex;
  align-items:center;
  gap:0;
  background:var(--bg-ffffff, #fff);
  height:60px;
  padding:0 8px;
  border-right:1px solid var(--bd-eeeeee, #eee);
  margin-right:10px;
  flex:0 0 auto;
  width:auto;
  position:relative;
  cursor:pointer;
  z-index:10020;
}

.country-panel-host{
  position:relative !important;
}

.country-flag-icon{
  width:24px;
  height:16px;
  border-radius:2px;
  object-fit:cover;
  display:block;
  position:static;
}

.country-select .dropdown-icon{
  font-size:12px;
  color:var(--tx-6b7280, #6b7280);
  margin-left:6px;
  line-height:1;
  pointer-events:none;
  transition:transform .15s ease;
}
.country-select.open .dropdown-icon{
  transform:rotate(180deg);
}

.country-select select{
  -webkit-appearance:none;
  -moz-appearance:none;
  appearance:none;
  background:none !important;
  border:none !important;
  outline:none !important;
  font-size:16px;
  padding:0 !important;
  margin:0 !important;
  width:1px !important;
  height:1px !important;
  opacity:0 !important;
  pointer-events:none !important;
  position:absolute !important;
  left:-10000px !important;
  top:auto !important;
}
.country-select select::-ms-expand{ display:none !important; }
.country-select select::-webkit-calendar-picker-indicator{ display:none !important; }
.country-select select::-webkit-inner-spin-button,
.country-select select::-webkit-outer-spin-button{
  -webkit-appearance:none !important;
  margin:0 !important;
}

.country-panel{
  position:absolute;
  top:100%;
  left:0;
  display:none;
  width:min(800px, calc(100vw - 24px));
  max-height:min(70vh, 520px);
  background:var(--bg-ffffff, #fff) !important;
  border:1px solid var(--bd-e5e7eb, #e5e7eb);
  border-radius:5px;
  box-shadow:0 24px 60px rgba(15,23,42,.22);
  padding:14px;
  z-index:10010 !important;
  overflow:hidden;
}
.country-panel[hidden]{ display:none !important; }

.country-search-input{
  width:100%;
  height:40px;
  border:1px solid var(--bd-e5e7eb, #e5e7eb);
  border-radius:10px;
  padding:0 12px;
  font-size:15px;
  outline:none;
  background:var(--bg-ffffff, #fff);
  margin-bottom:10px;
  box-sizing:border-box;
}
.country-search-input:focus{
  border-color:#2563eb;
  box-shadow:0 0 0 3px rgba(37,99,235,.15);
}

.country-list{
  margin-top:8px;
  max-height:420px;
  overflow:auto;
  padding-right:4px;
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:8px;
}

.continent-label{
  font-size:12px;
  font-weight:700;
  letter-spacing:.02em;
  color:var(--tx-000000, #000);
  margin:10px 0 6px;
  text-transform:uppercase;
  grid-column:1 / -1;
  border-bottom:1px solid var(--bd-f3f4f6, #f3f4f6);
  padding-bottom:4px;
}

.country-item{
  appearance:none;
  border:0;
  background:transparent;
  width:100%;
  display:flex;
  align-items:center;
  gap:10px;
  padding:8px;
  border-radius:8px;
  cursor:pointer;
  user-select:none;
  transition:background .2s ease;
  text-align:left;
}
.country-item:hover,
.country-item[aria-selected="true"]{
  background:var(--bg-f3f4f6, #f3f4f6);
}

.country-flag{
  width:18px;
  height:13px;
  border-radius:2px;
  object-fit:cover;
  flex:0 0 18px;
  position:static !important;
  display:inline-block;
  vertical-align:middle;
}

.country-name{
  font-size:13px;
  color:var(--tx-111827, #111827);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  flex:1;
}

.sp-search-header,
.sp-search-container{
  overflow:visible !important;
}

@media (max-width:768px){
  .country-panel{
    width:calc(100vw - 24px) !important;
    max-height:70vh;
  }
  .country-list{
    grid-template-columns:repeat(2, minmax(0, 1fr));
    max-height:55vh;
  }
}

@media (max-width:480px){
  .country-list{
    grid-template-columns:1fr;
  }
}

/* Kruisje: standaard verborgen; de pagina's die het willen tonen zetten het aan (zie add_property.css) */
.country-panel-close{
  display:none;
}
