/**
 * Brand UI — full-visual-site-export (Button, InputField/Search, SearchDropDown,
 * SegmentedControl, MasterRow, Chips). Map geometry untouched.
 */

/* Button.primary — large (text + IconArrow endAddon) */
.cta {
  width: 100%;
  height: 52px;
  padding: 0 24px;
  gap: 12px;
  border: none;
  border-radius: var(--r-btn-lg);
  background: var(--buttonPrimaryFillDefault);
  color: var(--buttonPrimaryTextDefault);
  font: var(--f17-semiBold);
  letter-spacing: var(--f17-semiBold-ls);
  cursor: pointer;
  transition: background 150ms, transform 150ms, box-shadow 150ms;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cta__text {
  text-align: center;
}
.cta__icon {
  flex-shrink: 0;
  color: var(--buttonPrimaryTextDefault);
  transition: color 150ms;
}
.cta:hover {
  background: var(--buttonPrimaryFillHover);
  color: var(--buttonPrimaryTextHover);
  box-shadow: var(--shadow-2);
  transform: translateY(-1px);
}
.cta:hover .cta__icon {
  color: var(--buttonPrimaryTextHover);
}
.cta:active {
  background: var(--buttonPrimaryFillPress);
  color: var(--buttonPrimaryTextPress);
  transform: scale(0.98);
  box-shadow: none;
}
.cta:active .cta__icon {
  color: var(--buttonPrimaryTextPress);
}

/* InputField + IconSearch (SearchDesktop / TopBlock) */
.search-field {
  position: relative;
  flex: 1;
  max-width: 340px;
  margin-left: 4px;
  min-width: 0;
}
.search-field__control {
  display: flex;
  align-items: center;
  gap: 8px;
  height: var(--search-field-height);
  padding-inline-start: 14px;
  padding-inline-end: 12px;
  border-radius: var(--search-field-radius);
  background: var(--inputFillDefault);
  transition: background 150ms;
  box-sizing: border-box;
}
.search-field__control:hover {
  background: var(--inputFillHover);
}
.search-field__control:focus-within {
  background: var(--inputFillActive);
}
.search-field__icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  color: var(--inputIconDefault);
  pointer-events: none;
}
.search-field__icon svg {
  display: block;
}
.search-field__input {
  all: unset;
  box-sizing: border-box;
  flex: 1;
  min-width: 0;
  width: 100%;
  font: var(--f17);
  letter-spacing: var(--f17-ls);
  color: var(--inputTextInput);
}
.search-field__input::placeholder {
  font: var(--f17);
  letter-spacing: var(--f17-ls);
  color: var(--inputTextDefault);
  opacity: 1;
}

/* SearchDropDown */
.search-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  max-height: 280px;
  overflow-y: auto;
  z-index: 100;
  display: none;
  background: var(--backgroundWhiteToBlack3);
  border: none;
  border-radius: var(--search-field-radius);
  box-shadow: var(--searchDropdownShadow);
  padding-bottom: 8px;
}
.search-dropdown .s-item {
  font: var(--f14-medium);
  letter-spacing: var(--f14-medium-ls);
  color: var(--textMain);
  border-bottom-color: var(--borderSecondary);
  min-height: 48px;
  padding: 12px 16px;
  transition: background 150ms;
}
.search-dropdown .s-item:hover,
.search-dropdown .s-item.on {
  background: var(--fillRowHover);
}

/* Checkbox — RadioButton variant="check" (24px square, orange active) */
.checkbox {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--checkbox-size);
  height: var(--checkbox-size);
  pointer-events: none;
}
.checkbox__box {
  width: var(--checkbox-size);
  height: var(--checkbox-size);
  border-radius: var(--checkbox-radius);
  background: var(--borderSecondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 150ms;
}
.checkbox.is-checked .checkbox__box {
  background: var(--fillRadiobuttonActive);
}
.search-dropdown .s-item:hover .checkbox:not(.is-checked) .checkbox__box {
  background: var(--fillRadiobuttonDefaultHover);
}
.search-dropdown .s-item:active .checkbox:not(.is-checked) .checkbox__box {
  background: var(--fillRadiobuttonDefaultPressed);
}
.search-dropdown .s-item:hover .checkbox.is-checked .checkbox__box,
.search-dropdown .s-item.on .checkbox.is-checked .checkbox__box {
  background: var(--fillRadiobuttonActiveHover);
}
.search-dropdown .s-item:active .checkbox.is-checked .checkbox__box {
  background: var(--fillRadiobuttonActivePress);
}
.checkbox__icon {
  display: block;
  width: 100%;
  color: var(--iconWhiteMain);
}

/* SegmentedControl.pill */
.pp-tabs {
  display: flex;
  gap: 4px;
  padding: 3px;
  background: var(--segmentedControlContainerFill);
  border-radius: var(--r-pill);
}
.pp-tab {
  flex: 1;
  min-height: 38px;
  padding: 0 8px;
  border: none;
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--segmentedControlButtonTextDefault);
  font: var(--f14-medium);
  letter-spacing: var(--f14-medium-ls);
  cursor: pointer;
  transition: background 150ms, color 150ms, box-shadow 150ms;
}
.pp-tab:hover {
  color: var(--segmentedControlButtonTextHover);
  background: var(--segmentedTabsButtonFillHover);
}
.pp-tab:active {
  background: var(--segmentedTabsButtonFillPress);
}
.pp-tab.active {
  background: var(--segmentedControlButtonFillActive);
  color: var(--segmentedControlButtonTextActive);
  font: var(--f14-semiBold);
  letter-spacing: var(--f14-semiBold-ls);
  box-shadow: var(--shadow1);
}

/* MasterRow / country card */
.ccard {
  background: var(--backgroundGrayToBlack3);
  border: none;
  border-radius: var(--r-input);
  padding: 10px 12px;
  min-height: 52px;
  transition: background 150ms;
}
.ccard:hover {
  background: var(--fillRowHover);
}
.ccard .cn {
  font: var(--f14-semiBold);
  letter-spacing: var(--f14-semiBold-ls);
  color: var(--textMain);
}
.ccard .cp {
  font: var(--f12);
  letter-spacing: var(--f12-ls);
  color: var(--textTetriary);
}
/* Trip card remove — Close icon only */
.ccard-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  margin-left: 4px;
  margin-right: -4px;
  cursor: pointer;
  color: var(--iconTetriary);
  border-radius: 50%;
  transition: color 150ms;
}
.ccard-remove:hover {
  color: var(--iconMain);
}
.ccard-remove:focus-visible {
  outline: 2px solid var(--borderActive);
  outline-offset: 2px;
}

.clear-btn {
  font: var(--f12-medium);
  letter-spacing: var(--f12-medium-ls);
  color: var(--textTetriary);
}
.clear-btn:hover {
  background: var(--fillRowHover);
  color: var(--buttonLinkAccentTextDefault);
}

.sel-badge {
  background: var(--buttonTetriaryFillDefault);
  color: var(--buttonTetriaryTextDefault);
  font: var(--f12-semiBold);
  letter-spacing: var(--f12-semiBold-ls);
}

.sb-mode {
  background: var(--segmentedControlContainerFill);
}
.sb-mode-btn {
  color: var(--textSecondary);
}
.sb-mode-btn.active {
  background: var(--segmentedControlButtonFillActive);
  color: var(--textMain);
  box-shadow: var(--shadow1);
}

/* Tag — WEB Design System (GlobalBlock / ResultsBlock; orange subtle = header coverage) */
.tag {
  display: inline-flex;
  align-items: center;
  gap: var(--tag-gap);
  width: max-content;
  max-width: 100%;
  padding: var(--tag-padding-y) var(--tag-padding-x);
  border-radius: var(--tag-radius);
  border: var(--tag-border-width) solid var(--borderMain);
  background: var(--orange200);
  color: var(--orange1000);
  font: var(--f12);
  letter-spacing: var(--f12-ls);
  white-space: nowrap;
  flex-shrink: 0;
  transition: opacity 150ms;
  box-sizing: border-box;
}
.tag__indicator {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
  background: currentColor;
}
.tag__label {
  font: inherit;
  letter-spacing: inherit;
  color: inherit;
}
.tag--orange-subtle {
  background: var(--tag-orange-subtle-fill);
  color: var(--tag-orange-subtle-text);
  border-color: var(--tag-orange-subtle-border);
  border-width: 1px;
  font: var(--f12-bold);
  letter-spacing: var(--f12-bold-ls);
}
.tag--orange-subtle .tag__indicator {
  background: var(--tag-orange-subtle-indicator);
}
.tag--pill {
  border-radius: var(--tag-radius-pill);
  padding-inline: var(--tag-padding-x-pill);
}
.tag.loading {
  opacity: 0.6;
}
.tag .skel-num {
  display: inline-block;
  width: 24px;
  height: 10px;
  border-radius: 4px;
  background: linear-gradient(
    90deg,
    var(--tag-orange-subtle-fill) 25%,
    var(--orange400) 50%,
    var(--tag-orange-subtle-fill) 75%
  );
  background-size: 200% 100%;
  animation: tag-skel-shine 0.9s infinite linear;
  vertical-align: middle;
}
@keyframes tag-skel-shine {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .tag .skel-num {
    animation: none;
    background: var(--tag-orange-subtle-fill);
  }
}

/* RoundFlag — design-system-export RoundFlag (default 32px) */
.round-flag {
  border-radius: 30px;
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-sizing: border-box;
}
.round-flag::after {
  position: absolute;
  content: '';
  display: block;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  border-radius: 30px;
  border: 1px solid rgba(0, 0, 0, 0.04);
  pointer-events: none;
}
.round-flag img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.round-flag--32 {
  width: 32px;
  height: 32px;
}
.round-flag--20 {
  width: 20px;
  height: 20px;
}

/* IconButton — design-system-export IconButton */
.icon-button {
  transition: background 150ms, transform 150ms;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  font-family: inherit;
  padding: 0;
  flex-shrink: 0;
  box-sizing: border-box;
}
.icon-button:active {
  transform: scale(0.92);
}
.icon-button svg {
  transition: color 150ms;
  flex-shrink: 0;
  display: block;
}
.icon-button--medium {
  border-radius: 50%;
  width: 40px;
  height: 40px;
}
.icon-button--small {
  border-radius: 50%;
  padding: 8px;
  width: 32px;
  height: 32px;
  min-width: 32px;
  min-height: 32px;
  overflow: visible;
}
.icon-button--xSmall {
  border-radius: 50%;
  width: 24px;
  height: 24px;
}
.icon-button--secondary {
  background: var(--buttonSecondaryFillDefault);
}
.icon-button--secondary:hover {
  background: var(--buttonSecondaryFillHover, var(--gray400));
}
.icon-button--secondary:active {
  background: var(--buttonSecondaryFillPress, var(--gray500));
}
.icon-button--secondary svg {
  color: var(--buttonSecondaryIconDefault, var(--iconSecondary));
}
.icon-button--secondary svg path {
  fill: currentColor;
}
.icon-button--light {
  background: var(--buttonLightFillDefault);
}
.icon-button--light:hover {
  background: var(--buttonLightFillHover);
}
.icon-button--light:active {
  background: var(--buttonLightFillPress);
}
.icon-button--light svg {
  color: var(--buttonLightIconDefault);
}
.icon-button--light svg path {
  fill: currentColor;
}
.icon-button--light:hover svg {
  color: var(--buttonLightIconHover);
}
.icon-button--light:active svg {
  color: var(--buttonLightIconPress);
}
.icon-button--link {
  background: none;
}
.icon-button--link:hover {
  background: var(--buttonLinkFillHover, var(--fillRowHover));
}
.icon-button--link:hover svg {
  color: var(--buttonLinkIconHover, var(--iconMain));
}
.icon-button--link:active {
  background: var(--buttonLinkFillPress, var(--gray300));
}
.icon-button--link:active svg {
  color: var(--buttonLinkIconPress, var(--iconSecondary));
}
.icon-button--link svg {
  color: var(--buttonLinkIconDefault, var(--iconTetriary));
}
