/* Responsive breakpoints and reduced motion. Loaded after every feature. */
@media(min-width:1500px) {
  .discover {
    padding: 0 65px 45px;
  }
  .welcome {
    padding: 65px 0 35px;
  }
  .destination-card {
    height: 310px;
  }
  .welcome h1 {
    font-size: 42px;
  }
  .spotlight {
    margin-top: 28px;
  }
  .idea-card {
    min-height: 160px;
  }
}

@media(max-width:1150px) {
  .sidebar {
    width: 185px;
  }
  .shell {
    margin-inline-start: 185px;
  }
  .topbar {
    padding: 0 20px;
  }
  .discover {
    padding: 0 25px 35px;
  }
  .welcome {
    padding-top: 33px;
  }
  .welcome h1 {
    font-size: 31px;
  }
  .destination-card {
    height: 220px;
  }
  .conversation {
    width: 53%;
    min-width: 310px;
  }
  .map-pane {
    width: 47%;
  }
  .conversation-body {
    padding: 22px 19px;
  }
  .place-grid {
    grid-template-columns: repeat(2,1fr);
  }
  .topbar-actions {
    gap: 8px;
  }
  .mode-badge {
    display: none;
  }
  .inspiration-hero .portal {
    opacity: .65;
  }
  .inspiration-hero h1 {
    font-size: 40px;
  }
}

@media(max-width:800px) {
  .sidebar {
    width: 73px;
    padding: 20px 8px;
  }
  .brand {
    font-size: 0;
    gap: 0;
    margin-bottom: 28px;
  }
  .brand .spark {
    font-size: 31px;
  }
  .brand .dot {
    display: none;
  }
  .nav-item {
    justify-content: center;
    padding: 13px 8px;
  }
  .nav-item>span {
    display: none;
  }
  .new-chat {
    font-size: 0;
    padding: 11px 10px;
    margin: 15px 0;
  }
  .new-chat span {
    font-size: 20px;
    margin: auto;
  }
  .recent-label,
  .recent-chats,
  .profile>span:not(.avatar),
  .profile>i,
  .footer-links,
  .copyright {
    display: none;
  }
  .profile {
    justify-content: center;
  }
  .shell {
    margin-inline-start: 73px;
  }
  .destination-card {
    height: 220px;
  }
  .destination-grid {
    gap: 12px;
  }
  .caption h3 {
    font-size: 23px;
  }
  .caption p {
    font-size: 9px;
  }
  .spotlight {
    gap: 12px;
  }
  .idea-art {
    display: none;
  }
  .idea-card {
    padding: 19px;
  }
  .topbar-actions .small {
    font-size: 10px;
    padding: 7px 12px;
  }
  .conversation {
    min-width: 300px;
  }
  .listing {
    padding: 25px;
  }
  .inspiration-hero .portal {
    left: -40px;
  }
}

@media(max-width:600px) {
  .sidebar {
    transform: translateX(100%);
    width: 218px;
    transition: transform .2s;
    box-shadow: var(--shadow);
    z-index: 700;
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .sidebar.open .brand {
    font-size: 33px;
    gap: 9px;
  }
  .sidebar.open .nav-item {
    justify-content: start;
  }
  .sidebar.open .nav-item>span {
    display: block;
  }
  .sidebar.open .new-chat {
    font-size: 13px;
  }
  .sidebar.open .new-chat span {
    margin: 0;
  }
  .sidebar.open .profile>span,
  .sidebar.open .footer-links,
  .sidebar.open .copyright {
    display: block;
  }
  .sidebar.open .profile {
    justify-content: start;
  }
  .shell {
    margin: 0;
  }
  .topbar {
    height: 60px;
    padding: 0 12px;
    gap: 8px;
  }
  .mobile-menu {
    display: flex;
  }
  .breadcrumb {
    gap: 8px;
    flex: 1;
    font-size: 11px;
  }
  .breadcrumb button {
    font-size: 10px;
  }
  .topbar-actions {
    gap: 4px;
  }
  .topbar-actions .small {
    padding: 6px 10px;
  }
  .topbar-actions .icon-btn {
    display: none;
  }
  .discover {
    padding: 0 18px 30px;
  }
  .welcome {
    padding: 30px 0 23px;
  }
  .welcome h1 {
    font-size: 27px;
    letter-spacing: -.7px;
  }
  .welcome>p {
    font-size: 11px;
    line-height: 2;
  }
  .welcome .spark {
    font-size: 32px;
  }
  .composer {
    margin-top: 22px;
    padding: 13px 13px 10px;
  }
  .composer textarea {
    height: 57px;
    font-size: 11px;
  }
  .suggestions {
    gap: 6px;
  }
  .suggestions button {
    padding: 7px 10px;
    font-size: 9px;
  }
  .section-title h2 {
    font-size: 17px;
  }
  .section-title p {
    font-size: 10px;
  }
  .section-title button {
    font-size: 9px;
  }
  .destination-grid {
    grid-template-columns: 1fr 1fr;
  }
  .destination-card {
    height: 220px;
  }
  .destination-card:first-child {
    grid-column: 1/-1;
    height: 210px;
  }
  .destination-card .caption {
    right: 16px;
    bottom: 16px;
  }
  .spotlight {
    grid-template-columns: 1fr;
  }
  .idea-card {
    min-height: 125px;
  }
  .idea-art {
    display: block;
  }
  .listing {
    padding: 25px 18px;
  }
  .listing h1 {
    font-size: 23px;
  }
  .listing-header {
    align-items: start;
    flex-wrap: wrap;
  }
  .listing-header p {
    font-size: 11px;
  }
  .place-grid {
    gap: 12px;
  }
  .place-image {
    height: 135px;
  }
  .place-info {
    padding: 11px;
  }
  .place-info h3 {
    font-size: 12px;
  }
  .place-info p {
    font-size: 10px;
  }
  .card-actions {
    font-size: 9px;
    gap: 5px;
  }
  .card-actions svg {
    width: 12px;
  }
  .workspace {
    height: calc(100dvh - 60px);
    padding-top: 42px;
    position: relative;
  }
  .mobile-work-tabs {
    display: flex;
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 42px;
    border-bottom: 1px solid var(--line);
    background: var(--surface);
    z-index: 500;
  }
  .mobile-work-tabs button {
    width: 50%;
    font-size: 11px;
  }
  .mobile-work-tabs button.active {
    border-bottom: 2px solid var(--text);
    font-weight: 700;
  }
  .conversation {
    width: 100%;
    min-width: 0;
    border: 0;
  }
  .map-pane {
    display: none;
    width: 100%;
  }
  .workspace.show-map .conversation {
    display: none;
  }
  .workspace.show-map .map-pane {
    display: block;
  }
  .chat-bottom {
    padding: 0 13px 10px;
  }
  .conversation-body {
    padding: 22px 18px;
  }
  .chat-disclaimer {
    font-size: 8px;
  }
  .trip-cover {
    height: 145px;
  }
  .trip-card img {
    height: 155px;
  }
  .trip-card h3 {
    font-size: 13px;
  }
  .trip-card p {
    font-size: 10px;
  }
  .trip-card>div {
    padding: 13px;
  }
  .inspiration-hero {
    padding: 35px 22px;
    min-height: 320px;
  }
  .inspiration-hero h1 {
    font-size: 33px;
  }
  .inspiration-hero p {
    max-width: 240px;
    font-size: 11px;
    line-height: 2;
  }
  .inspiration-hero .portal {
    width: 150px;
    height: 230px;
    left: -55px;
    top: 75px;
    opacity: .5;
  }
  .breadcrumb .slash,
  .breadcrumb #destinationBtn {
    display: none;
  }
  .detail-image {
    height: 190px;
  }
  dialog {
    padding: 20px;
  }
  .form-row {
    gap: 10px;
  }
}

@media(prefers-reduced-motion:reduce) {
  * {
    scroll-behavior: auto!important;
    transition: none!important;
    animation: none!important;
  }
}

.map-bottom {
  display: flex;
  align-items: center;
  gap: 5px;
}

.map-bottom svg {
  width: 13px;
  height: 13px;
}

.trip-toolbar button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.trip-toolbar svg {
  width: 13px;
  height: 13px;
}

@media(max-width:600px) {
  .sidebar {
    visibility: hidden;
  }
  .sidebar.open {
    visibility: visible;
  }
  .sidebar.open .recent-label,
  .sidebar.open .recent-chats {
    display: block;
  }
  .sidebar.open .footer-links {
    display: flex;
  }
}
