#app {
  outline: none !important;
}

#app:focus,
#app:focus-visible {
  outline: none !important;
}

body.has-desktop-shell {
  background: #f5f7fa;
}

.desktop-sidebar,
.desktop-top-header,
.desktop-home-feature {
  display: none;
}

@media (min-width: 821px) {
  body.has-desktop-shell > .site-header {
    display: none !important;
  }

  .desktop-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 51;
    display: flex;
    width: 240px;
    height: 100vh;
    flex-direction: column;
    flex-shrink: 0;
    overflow-y: auto;
    border-right: 1px solid #e6e9f0;
    background: #ffffff;
    padding: 20px 0;
  }

  .sidebar-logo-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 24px 24px;
  }

  .sidebar-logo-wrap .fa-bars {
    color: #4a5568;
    cursor: pointer;
    font-size: 20px;
    transition: color 0.2s;
  }

  .sidebar-logo-wrap .fa-bars:hover {
    color: #0f1c38;
  }

  .sidebar-logo {
    color: #0f1c38;
    font-family: "Poppins", sans-serif;
    font-size: 22px;
    font-weight: 700;
    text-decoration: none;
  }

  .sidebar-logo em {
    color: #f5a623;
    font-style: normal;
  }

  .sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .sidebar-nav .nav-item {
    display: flex;
    align-items: center;
    margin: 0 8px;
    border-radius: 8px;
    color: #4a5568;
    font-size: 14px;
    font-weight: 500;
    padding: 12px 24px;
    text-decoration: none;
    transition: all 0.2s ease;
  }

  .sidebar-nav .nav-item i {
    width: 18px;
    margin-right: 12px;
    color: #718096;
    font-size: 15px;
    text-align: center;
    transition: color 0.2s;
  }

  .sidebar-nav .nav-item:hover,
  .sidebar-nav .nav-item.active {
    background-color: #f0f5ff;
    color: #0f1c38;
  }

  .sidebar-nav .nav-item.active {
    font-weight: 600;
  }

  .sidebar-nav .nav-item:hover i,
  .sidebar-nav .nav-item.active i {
    color: #0f1c38;
  }

  .sidebar-divider {
    height: 1px;
    margin: 12px 24px;
    background: #e6e9f0;
  }

  .desktop-top-header {
    position: fixed;
    top: 0;
    right: 0;
    left: 240px;
    z-index: 50;
    display: flex;
    height: 64px;
    flex-shrink: 0;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    border-bottom: 1px solid #e6e9f0;
    background: #ffffff;
    padding: 0 32px;
  }

  .header-search {
    position: relative;
    width: 360px;
    flex-shrink: 0;
  }

  .header-search input {
    width: 100%;
    border: 1px solid #dce1e8;
    border-radius: 8px;
    background: #f8fafc;
    font-size: 14px;
    outline: none;
    padding: 10px 44px 10px 16px;
    transition: all 0.2s;
  }

  .header-search input:focus {
    border-color: #0f1c38;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(15, 28, 56, 0.06);
  }

  .header-search .search-btn {
    position: absolute;
    top: 50%;
    right: 6px;
    border: 0;
    border-radius: 6px;
    background: #0f1c38;
    color: #ffffff;
    cursor: pointer;
    font-size: 12px;
    padding: 8px 12px;
    transform: translateY(-50%);
    transition: background 0.2s;
  }

  .header-search .search-btn:hover {
    background: #1b2f5c;
  }

  .header-right {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    gap: 8px;
    color: #4a5568;
    font-size: 13px;
  }

  .header-link {
    display: flex;
    align-items: center;
    gap: 6px;
    border-radius: 8px;
    color: #4a5568;
    cursor: pointer;
    font-weight: 500;
    padding: 8px 12px;
    text-decoration: none;
    transition: all 0.2s;
    white-space: nowrap;
  }

  .header-link:hover {
    background: #f5f7fa;
    color: #0f1c38;
  }

  .header-link i {
    color: #718096;
    font-size: 14px;
    transition: color 0.2s;
  }

  .header-link:hover i {
    color: #0f1c38;
  }

  .lang-switcher {
    display: flex;
    align-items: center;
    gap: 2px;
    border: 1px solid #e6e9f0;
    border-radius: 8px;
    background: #f5f7fa;
    padding: 3px;
  }

  .lang-btn {
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #4a5568;
    cursor: pointer;
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 12px;
    transition: all 0.2s;
    white-space: nowrap;
  }

  .lang-btn.active {
    background: #ffffff;
    color: #0f1c38;
    box-shadow: 0 1px 3px rgba(15, 28, 56, 0.1);
  }

  .lang-btn:hover:not(.active) {
    background: rgba(255, 255, 255, 0.6);
    color: #0f1c38;
  }

  .btn-login,
  .btn-signup {
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 18px;
    text-decoration: none;
    transition: all 0.2s;
    white-space: nowrap;
  }

  .btn-login {
    margin-left: 4px;
    border: 1.5px solid #0f1c38;
    background: transparent;
    color: #0f1c38;
  }

  .btn-login:hover {
    border-color: #1b2f5c;
    background: #f0f5ff;
    color: #1b2f5c;
  }

  .btn-signup {
    border: 1.5px solid #0f1c38;
    background: #0f1c38;
    color: #ffffff;
  }

  .btn-signup:hover {
    border-color: #1b2f5c;
    background: #1b2f5c;
    box-shadow: 0 4px 12px rgba(15, 28, 56, 0.2);
    transform: translateY(-1px);
  }

  body.has-desktop-shell > #app {
    margin-left: 240px;
    padding-top: 64px;
  }

  body.has-desktop-shell > .site-footer {
    margin-left: 240px;
  }

  body[data-page="hotel-search"].has-desktop-shell .desktop-sidebar {
    display: none !important;
  }

  body[data-page="hotel-search"].has-desktop-shell .desktop-top-header {
    left: 0;
  }

  body[data-page="hotel-search"].has-desktop-shell > #app,
  body[data-page="hotel-search"].has-desktop-shell > .site-footer {
    margin-left: 0;
  }

  .desktop-home-feature {
    display: block;
    margin-left: 240px;
    padding-top: 64px;
  }

  .hero-container {
    padding: 28px 32px 0;
  }

  .hero-banner {
    position: relative;
    display: flex;
    height: 310px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 16px;
    background: #0f1c38;
    color: #ffffff;
    padding: 0 24px;
    text-align: center;
  }

  .hero-banner::before,
  .hero-banner::after {
    display: none;
    position: absolute;
    content: "";
    border-radius: 50%;
  }

  .hero-banner::before {
    top: -40%;
    right: -15%;
    width: 500px;
    height: 500px;
    background: rgba(245, 166, 35, 0.08);
  }

  .hero-banner::after {
    bottom: -35%;
    left: -10%;
    width: 450px;
    height: 450px;
    background: rgba(245, 166, 35, 0.06);
  }

  .hero-banner h1 {
    position: relative;
    z-index: 1;
    margin-bottom: 18px;
    font-family: "Poppins", sans-serif;
    font-size: 40px;
    font-weight: 700;
    letter-spacing: 0;
  }

  .trust-badges {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 20px;
    font-size: 14px;
    opacity: 0.9;
  }

  .trust-badges span {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .trust-badges span i {
    color: #f5a623;
    font-size: 16px;
  }

  .search-panel {
    position: relative;
    z-index: 10;
    display: flex;
    width: calc(100% - 64px);
    flex-direction: column;
    align-items: center;
    margin: -55px auto 0;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 8px 32px rgba(15, 28, 56, 0.1);
    padding: 20px;
  }

  .panel-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 5px;
    max-width: 100%;
    margin-bottom: 18px;
    border-radius: 28px;
    background: #0f1c38;
    padding: 5px;
  }

  .tab {
    display: flex;
    align-items: center;
    gap: 7px;
    border: 0;
    border-radius: 24px;
    background: none;
    color: #8899aa;
    cursor: pointer;
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    padding: 10px 16px;
    transition: all 0.25s;
    white-space: nowrap;
  }

  .tab:hover {
    color: #ffffff;
  }

  .tab.active {
    background: #ffffff;
    color: #0f1c38;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    font-weight: 600;
  }

  .tab i {
    font-size: 13px;
  }

  .panel-search-field {
    display: flex;
    width: 100%;
    max-width: 820px;
    flex-wrap: wrap;
    gap: 12px;
  }

  .input-wrapper {
    position: relative;
    min-width: 180px;
    flex-grow: 1;
  }

  .input-wrapper input,
  .input-wrapper select,
  .input-wrapper output {
    width: 100%;
    border: 1px solid #dce1e8;
    border-radius: 10px;
    background: #fafbfc;
    color: #1a202c;
    font-size: 14px;
    outline: none;
    padding: 14px 16px;
    transition: all 0.2s;
  }

  .input-wrapper output.package-duration-output {
    display: flex;
    align-items: center;
    min-height: 48px;
    color: #5f6b7a;
    font-weight: 700;
  }

  .input-wrapper input:focus,
  .input-wrapper select:focus {
    border-color: #0f1c38;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(15, 28, 56, 0.06);
  }

  .btn-search {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 0;
    border-radius: 10px;
    background: #f5a623;
    color: #1c1507;
    cursor: pointer;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    padding: 0 32px;
    transition: all 0.2s;
    white-space: nowrap;
  }

  .btn-search:hover {
    background: #e8991a;
    box-shadow: 0 4px 14px rgba(245, 166, 35, 0.3);
    transform: translateY(-1px);
  }

  .panel-search-field:has(.tab-content[data-content="hotels"]:not([hidden])) {
    display: grid;
    grid-template-columns: repeat(5, minmax(130px, 1fr));
    max-width: 1120px;
  }

  .panel-search-field:has(.tab-content[data-content="hotels"]:not([hidden])) .input-wrapper {
    min-width: 0;
  }

  .panel-search-field:has(.tab-content[data-content="hotels"]:not([hidden])) .btn-search {
    width: min(224px, 100%);
    min-height: 30px;
    padding: 4px 18px;
    justify-content: center;
  }

  .panel-search-field:has(.tab-content[data-content="hotels"]:not([hidden])) .stay-date-range-button {
    min-height: 49px;
    padding: 0 16px;
    background: #fafbfc;
    border-color: #dce1e8;
    border-radius: 10px;
    color: #1a202c;
    font-size: 14px;
  }

  .panel-search-field:has(.tab-content[data-content="hotels"]:not([hidden])) .stay-date-range-button:focus {
    border-color: #0f1c38;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(15, 28, 56, 0.06);
  }

  body[data-page="home"].has-desktop-shell > #app {
    padding-top: 0;
  }

  body[data-page="home"].has-desktop-shell > #app .hero,
  body[data-page="home"].has-desktop-shell > #app .desktop-traveloka-services {
    display: none !important;
  }
}

@media (max-width: 1180px) and (min-width: 821px) {
  .desktop-top-header {
    gap: 14px;
    padding: 0 20px;
  }

  .header-search {
    width: 280px;
  }

  .header-link {
    padding: 8px;
  }

  .btn-login,
  .btn-signup {
    padding: 8px 12px;
  }
}

@media (max-width: 820px) {
  body.has-desktop-shell > .site-header {
    display: flex;
  }
}
