/* =====================================================================
   ICON SVG + KHUNG TÌM KIẾM DẠNG TAB
   ===================================================================== */
.i { display: inline-block; flex-shrink: 0; vertical-align: middle; }
.hdr-link .i { width: 20px; height: 20px; }
.dropdown__menu li a, .dropdown__menu li[data-logout] { display: flex; align-items: center; gap: 10px; }
.dropdown__menu li[data-logout] { cursor: pointer; }
.drawer__nav a { display: flex; align-items: center; gap: 12px; }
.drawer__nav .i { color: var(--text-2); }
.drawer__close { display: grid; place-items: center; }
.catbar__item--hot { gap: 4px; }
.quickcat__icon { color: var(--primary); }
.why__icon { color: var(--primary); }
.empty__icon { color: var(--text-3); display: flex; justify-content: center; }
.ico-inline { display: inline-flex; align-items: center; gap: 6px; }

/* ---------- Ô tìm kiếm trang chủ / điểm đến (kiểu field xám) ---------- */
.search { padding: 10px; gap: 10px; border-radius: 16px; }
.search__field {
  background: var(--bg-2); border-radius: 12px; padding: 0 16px; min-height: 56px;
  border: 1.5px solid transparent; transition: border-color .15s, background .15s;
}
.search__field:focus-within { border-color: var(--primary); background: #fff; }
.search__field input { background: transparent; height: 54px; font-weight: 500; }
.search__field input::placeholder, .sw-f__input::placeholder { color: #9e9e9e; font-weight: 400; }
.search__btn { height: 58px; border-radius: 12px; font-size: 17px; font-weight: 700; }

/* ---------- Hero trang danh mục ---------- */
.cat-hero { position: relative; padding-top: 4px; }
.cat-hero__bg { position: absolute; left: 0; right: 0; top: 0; height: 280px; background-size: cover; background-position: center; }
.cat-hero__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.35), rgba(0,0,0,.05) 70%); }
.cat-hero .container { position: relative; }
.cat-hero .crumb, .cat-hero .crumb a { color: rgba(255,255,255,.85); }
.cat-hero .crumb span:last-child { color: #fff; }

/* ---------- Khung tìm kiếm ---------- */
.sw { position: relative; padding-top: 8px; }
.sw__title { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; color: #fff; }
.sw__title h1 { font-size: 34px; font-weight: 800; text-shadow: 0 2px 10px rgba(0,0,0,.25); }
.sw__pill {
  display: inline-flex; align-items: center; gap: 4px; height: 38px; padding: 0 16px;
  background: #fff; color: var(--text); border-radius: 999px; font-weight: 600;
}
.dropdown__menu--left { left: 0; right: auto; min-width: 160px; color: var(--text); }

.sw__tabs {
  display: flex; align-items: flex-end; overflow-x: auto; scrollbar-width: none;
  width: fit-content; max-width: 100%;
  background: rgba(255,255,255,.82); backdrop-filter: blur(6px);
  border-radius: 16px 16px 0 0;
}
.sw__tabs::-webkit-scrollbar { display: none; }
.sw__tab {
  display: flex; align-items: center; gap: 10px; flex-shrink: 0;
  height: 60px; padding: 0 16px; font-size: 15px; font-weight: 600; color: var(--text);
  border-radius: 16px 16px 0 0; transition: color .15s, background .15s;
}
.sw__tab:hover { color: var(--primary); }
.sw__tab.active { height: 68px; margin-top: -8px; padding-top: 8px; background: #fff; color: var(--primary); }

.sw__card {
  position: relative; background: #fff; border-radius: 0 16px 16px 16px;
  padding: 24px 24px 22px; box-shadow: 0 10px 40px rgba(0,0,0,.08);
}
.sw-radios { display: flex; flex-wrap: wrap; gap: 14px 30px; margin-bottom: 22px; }
.sw-radio { display: inline-flex; align-items: center; gap: 10px; font-size: 16px; cursor: pointer; }
.sw-radio input { position: absolute; opacity: 0; pointer-events: none; }
.sw-radio span { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid #8c8c8c; display: grid; place-items: center; transition: .15s; }
.sw-radio span::after { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--primary); transform: scale(0); transition: transform .15s; }
.sw-radio input:checked + span { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(255,91,0,.15); }
.sw-radio input:checked + span::after { transform: scale(1); }
.sw-radio input:focus-visible + span { outline: 2px solid var(--primary); outline-offset: 2px; }

.sw__row { display: flex; gap: 12px; align-items: stretch; }
.sw__fields { flex: 1; display: flex; gap: 12px; min-width: 0; }
.sw-f {
  position: relative; flex: 1 1 0; min-width: 0;
  display: flex; flex-direction: column; justify-content: center; gap: 2px;
  min-height: 66px; padding: 8px 18px; border-radius: 12px; background: var(--bg-2);
  border: 1.5px solid transparent; cursor: text; transition: border-color .15s, background .15s;
}
.sw-f:hover { background: #efefef; }
.sw-f:focus-within { border-color: var(--primary); background: #fff; }
.sw-f--grow { flex-grow: 1.6; }
.sw-f--err { border-color: #d93025 !important; background: #fff6f5; }
.sw-f__label { font-size: 13px; color: #757575; white-space: nowrap; }
.sw-f__input {
  width: 100%; border: 0; outline: none; background: transparent; padding: 0;
  font: inherit; font-size: 17px; font-weight: 600; color: var(--text); text-overflow: ellipsis;
}
select.sw-f__input { appearance: none; cursor: pointer; }
input[type="date"].sw-f__input { cursor: pointer; min-height: 26px; }
input[type="date"].sw-f__input::-webkit-calendar-picker-indicator { display: none; }
.sw-pair--dates { flex: 2.2 1 0; }
.sw-pair--dates .sw-f { min-width: 130px; }
.sw__fields .sw-f--pop { flex: 1.3 1 0; }
.sw-hidden { display: none; }

.sw-pair { position: relative; flex: 2 1 0; display: flex; gap: 0; min-width: 0; background: var(--bg-2); border-radius: 12px; }
.sw-pair .sw-f { background: transparent; }
.sw-pair .sw-f:first-child { padding-right: 34px; }
.sw-pair .sw-f:last-child { padding-left: 38px; }
.sw-pair .sw-f:hover { background: #efefef; }
.sw-pair .sw-f:focus-within { background: #fff; }
.sw-swap {
  position: absolute; left: 50%; top: 50%; z-index: 2; transform: translate(-50%, -50%);
  width: 44px; height: 44px; border-radius: 50%; background: #fff; color: var(--primary);
  display: grid; place-items: center; box-shadow: 0 2px 8px rgba(0,0,0,.12); transition: transform .3s;
}
.sw-swap:hover { box-shadow: 0 3px 12px rgba(0,0,0,.18); }
.sw-swap.spin { transform: translate(-50%, -50%) rotate(180deg); }
.sw-pair--dates .sw-f:first-child { padding-right: 18px; }
.sw-pair--dates .sw-f:last-child { padding-left: 18px; }
.sw-nights {
  align-self: center; flex-shrink: 0; padding: 3px 10px; border-radius: 999px;
  background: #fff; font-size: 12px; font-weight: 600; color: var(--text-2); box-shadow: 0 1px 4px rgba(0,0,0,.08);
}
.sw-dt { display: flex; align-items: center; gap: 8px; }
.sw-dt input { flex: 1; min-width: 0; }
.sw-f__time { width: auto; flex-shrink: 0; padding-left: 10px; border-left: 1px solid #ddd; }

.sw-f--pop { cursor: pointer; }
.sw-f__btn { text-align: left; white-space: nowrap; overflow: hidden; }
.sw-pop {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 20; width: 300px;
  padding: 14px 16px; background: #fff; border-radius: 14px; box-shadow: var(--shadow-lg);
  display: none; cursor: default;
}
.sw-f--pop.open .sw-pop { display: block; }
.sw-f--pop.open { border-color: var(--primary); background: #fff; }
.sw-pop__row { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; }
.sw-pop__row small { display: block; color: var(--text-3); font-size: 12px; }
.sw-pop .btn { margin-top: 8px; }

.sw__submit {
  flex-shrink: 0; min-width: 150px; padding: 0 28px; border-radius: 12px;
  background: var(--primary); color: #fff; font-size: 20px; font-weight: 700; transition: background .15s;
}
.sw__submit:hover { background: var(--primary-dark); }

.sw-switch { display: inline-flex; align-items: center; gap: 12px; margin-top: 18px; font-size: 16px; cursor: pointer; user-select: none; }
.sw-switch input { position: absolute; opacity: 0; pointer-events: none; }
.sw-switch__ui { position: relative; width: 48px; height: 26px; border-radius: 999px; background: #c4c4c4; transition: background .2s; }
.sw-switch__ui::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.sw-switch input:checked + .sw-switch__ui { background: var(--primary); }
.sw-switch input:checked + .sw-switch__ui::after { transform: translateX(22px); }
.sw-switch input:focus-visible + .sw-switch__ui { outline: 2px solid var(--primary); outline-offset: 2px; }

.sw__float { position: absolute; right: -28px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 12px; }
.sw__fab {
  width: 64px; height: 64px; border-radius: 50%; background: #fff; color: var(--text);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  box-shadow: 0 4px 16px rgba(0,0,0,.14); transition: transform .15s;
}
.sw__fab:hover { transform: scale(1.06); color: var(--primary); }
.sw__fab small { font-size: 11px; font-weight: 600; }

/* ---------- Căn icon trong danh sách / nút ---------- */
.highlights li, .incl li, .app-feats li, .auth__side li { display: flex; align-items: flex-start; gap: 8px; }
.highlights li .i, .incl .yes .i { color: var(--green); margin-top: 1px; }
.incl .no .i { margin-top: 1px; }
.app-feats li .i, .auth__side li .i { color: var(--primary); }
.auth__side li .i { color: #fff; }
.profile__side nav a { display: flex; align-items: center; gap: 10px; }
.pay-opt .i { color: var(--text-2); }
.pay-opt:has(input:checked) .i { color: var(--primary); }
.help-cat .i { color: var(--primary); margin-bottom: 4px; }
.btn .i { width: 18px; height: 18px; }
.chip--x .i { width: 12px; height: 12px; }
.check .i { color: var(--text-2); }
.lightbox__close .i, .modal__close .i { display: block; }
.booking__trust { justify-content: center; width: 100%; gap: 4px; }
.flash__title .ico-inline .i, .deals-hero .i { color: inherit; }
.flash__title .section__title .i { color: var(--primary); }

/* ---------- Logo thanh toán ---------- */
.payment-icons { display: flex; flex-wrap: wrap; gap: 8px; max-width: 260px; }
.payment-icons__item {
  width: 52px; height: 32px; border-radius: 4px; background: #fff; overflow: hidden;
  display: grid; place-items: center; box-shadow: 0 0 0 1px rgba(0,0,0,.08);
}
.payment-icons__item svg { width: 100%; height: 100%; display: block; }
.footer__bottom a { color: #c7c7c7; text-decoration: underline; }

/* ---------- Responsive ---------- */
@media (max-width: 1240px) {
  .sw__float { right: 12px; top: 12px; transform: none; flex-direction: row; }
  .sw__fab { width: 40px; height: 40px; box-shadow: 0 2px 8px rgba(0,0,0,.12); }
  .sw__fab small { display: none; }
  .sw__fab .i { width: 18px; height: 18px; }
  .sw-radios { padding-right: 100px; }
}
@media (max-width: 1024px) {
  .sw__row { flex-direction: column; }
  .sw__fields { flex-wrap: wrap; }
  .sw-pair { flex-basis: 100%; }
  .sw-f { flex-basis: 220px; }
  .sw__submit { height: 56px; }
}
@media (max-width: 768px) {
  .sw__title h1 { font-size: 26px; }
  .sw__tab { height: 52px; padding: 0 14px; font-size: 14px; gap: 6px; }
  .sw__tab.active { height: 58px; margin-top: -6px; }
  .sw__tab .i { width: 18px; height: 18px; }
  .sw__card { padding: 18px 14px; border-radius: 0 0 16px 16px; }
  .sw-radios { gap: 10px 20px; margin-bottom: 16px; }
  .sw-radio { font-size: 14px; }
  .sw__fields { flex-direction: column; }
  .sw-f { flex-basis: auto; min-height: 60px; }
  .sw-pair { flex-direction: column; flex-basis: auto; }
  .sw-pair .sw-f:first-child, .sw-pair .sw-f:last-child { padding: 8px 60px 8px 18px; }
  .sw-swap { left: auto; right: 12px; transform: translateY(-50%) rotate(90deg); }
  .sw-swap.spin { transform: translateY(-50%) rotate(270deg); }
  .sw-pair--dates { flex-direction: row; }
  .sw-pair--dates .sw-f:first-child, .sw-pair--dates .sw-f:last-child { padding: 8px 12px; }
  .sw-pop { left: 0; right: 0; width: auto; }
  .sw-switch { font-size: 14px; }
  .cat-hero__bg { height: 220px; }
}
