/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}


/* Swiper */
.swiper-container { width: 100%; height: 100%; }
.swiper-slide {
    display: -webkit-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    -webkit-justify-content: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    -webkit-align-items: center;
    align-items: center;
}


/* Sub Pages - offset under header */
#baseWrap #baseBody.base-main:not(:has(.main-hero)) { padding-top: 132px; }
@media (max-width: 1024px) {
    #baseWrap #baseBody.base-main:not(:has(.main-hero)) { padding-top: 56px; }
}


/* Sub Pages - Full Width */
#baseWrap #baseBody.base-main:has(.body-wrap) { max-width: none; }


/* Select */
.custom-select { position: relative; z-index: 2; width: 100%; }
.custom-select__native { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.custom-select__btn { display: block; position: relative; width: 100%; height: 56px; padding-inline: 16px 38px; border: 1px solid var(--color-line-200); border-radius: 8px; font-size: 18px; font-weight: 500; letter-spacing: -0.5px; line-height: 1; text-align: left; color: var(--color-text-700); background-color: var(--color-solid-100); transition: border-color 0.15s ease, background-color 0.15s ease; }
.custom-select__btn::after { content: ''; position: absolute; top: 50%; right: 16px; width: 7px; height: 7px; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: translateY(-70%) rotate(45deg); transition: transform 0.2s ease; pointer-events: none; }
.custom-select__btn:hover { border-color: var(--color-line-300); }
.custom-select__btn:focus { outline: none; border-color: var(--color-line-500); background-color: #fff; }
.custom-select__btn.is-placeholder { color: var(--color-text-300); }
.custom-select--open .custom-select__btn { border-color: var(--color-primary-400); background-color: #fff; }
.custom-select--open .custom-select__btn::after { transform: translateY(-30%) rotate(225deg); }
.custom-select__list { display: flex; flex-direction: column; gap: 4px; position: fixed; z-index: 100; max-height: min(320px, 50vh); margin: 0; padding: 12px; overflow-x: hidden; overflow-y: auto; border: 1px solid var(--color-line-200); border-radius: 16px; background-color: var(--color-solid-white); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08); -webkit-overflow-scrolling: touch; }
.custom-select__list[hidden] { display: none; }
.custom-select__item { border-radius: 12px; }
.custom-select__item--active { background-color: var(--color-red-50); }
.custom-select__item > button { display: block; width: 100%; padding: 12px 16px; border-radius: 12px; font-size: 18px; font-weight: 500; text-align: left; letter-spacing: -0.5px; line-height: 1.3; color: var(--color-text-700); word-break: keep-all; }
.custom-select__item:not(.custom-select__item--active) > button:hover,
.custom-select__item:not(.custom-select__item--active) > button:focus-visible { background-color: var(--color-solid-200); color: var(--color-text-700); }
.custom-select--pill .custom-select__btn { height: 54px; padding-inline: 24px 38px; border-radius: 30px; background-color: var(--color-solid-200); }
.custom-select--pill .custom-select__btn::after { right: 24px; }
@media (max-width: 768px) {
    .custom-select__btn { height: 48px; padding-inline: 12px 34px; font-size: 15px; }
    .custom-select__btn::after { right: 12px; }
    .custom-select__list { padding: 8px; border-radius: 12px; }
    .custom-select__item { border-radius: 8px; }
    .custom-select__item > button { padding: 10px 12px; border-radius: 8px; font-size: 15px; }
}


/* Accordion */
.ui-collapse { display: grid; grid-template-rows: 0fr; min-height: 0; transition: grid-template-rows 0.3s ease; }
.ui-collapse.is-open,
.is-open > .ui-collapse { grid-template-rows: 1fr; }
.ui-collapse > * { min-height: 0; overflow: hidden; }
@media (prefers-reduced-motion: reduce) {
    .ui-collapse { transition: none; }
}


/* Breadcrumb */
.breadcrumb { margin-top: 32px; }
.breadcrumb-wrap { display: flex; align-items: center; gap: 8px; height: 32px; }
.breadcrumb__home { display: flex; justify-content: center; align-items: center; width: 32px; height: 100%; border-radius: 6px; transition: background-color 0.15s ease; }
.breadcrumb__home:hover { background-color: var(--color-solid-200); }
.icon-breadcrumb-home { width: 16px; height: 16px; color: var(--color-text-500); }
.breadcrumb-items { display: flex; align-items: center; gap: 8px; height: 100%; }
.breadcrumb-dropdown { position: relative; height: 100%; }
.breadcrumb-item { display: flex; align-items: center; width: 147px; height: 100%; padding-inline: 10px 4px; border-bottom: 1px solid var(--color-line-400); }
.breadcrumb-text { flex: 1 0 0; font-size: 13px; font-weight: 600; color: var(--color-text-500); text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.icon-breadcrumb-chevron { width: 14px; height: 14px; color: var(--color-text-400); transition: transform 0.2s ease; }
.breadcrumb-item:hover .breadcrumb-text { color: var(--color-text-600); }
.breadcrumb-item:hover .icon-breadcrumb-chevron { color: var(--color-text-500); }
.breadcrumb-popover { display: none; position: absolute; top: calc(100% + 4px); left: 0; right: auto; min-width: 100%; padding-block: 4px; border: 1px solid var(--color-line-150); border-radius: 6px; background-color: var(--color-text-white); box-shadow: 4px 4px 12px rgba(0, 0, 0, 0.1); z-index: 2; }
.breadcrumb-popover > li { padding: 8px 16px; font-size: 14px; font-weight: 600; color: var(--color-text-500); cursor: pointer; white-space: nowrap; }
.breadcrumb-popover > li:hover { background-color: var(--color-solid-200); }
.breadcrumb-popover > li.active { color: var(--color-primary-400); }
.breadcrumb-dropdown.open > .breadcrumb-popover { display: block; }
.breadcrumb-dropdown.open > .breadcrumb-item .icon-breadcrumb-chevron { transform: rotate(180deg); }
@media (max-width: 1024px) {
    .breadcrumb-wrap { display: none; }
}