@media (max-width: 1200px) {
  .categories,
  .listing-grid,
  .locations-grid,
  .about-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .detail {
    grid-template-columns: 1fr;
  }
  .recent-card {
    flex-basis: calc((100% - 18px) / 2);
  }
  .carousel-btn,
  .carousel-btn img,
  .carousel-next img {
    width: 48px;
    height: 48px;
  }
  .search-bar {
    display: none;
  }
  .tabs {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .tabs::-webkit-scrollbar {
    display: none;
  }
  .tabs button,
  .tabs a {
    flex: 0 0 auto;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    white-space: nowrap;
    padding: 8px 12px;
    font-size: 14px;
    gap: 6px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 12px;
  }
  .tabs button picture,
  .tabs a picture {
    float: none;
    width: 32px;
    height: 32px;
    min-width: 32px;
  }
  .tabs button.is-active {
    border-color: var(--yellow);
  }
}
@media (max-width: 1200px) {
  .header-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    column-gap: 8px;
    position: relative;
  }
  .header-inner .brand {
    grid-column: 2;
    grid-row: 1;
    justify-self: center;
    gap: 6px;
  }
  .brand img {
    width: auto;
    height: 48px;
  }
  .brand-name {
    font-size: 13px;
    line-height: 14px;
  }
  .nav {
    display: none;
  }
  .header-tools {
    display: contents;
  }
  .header-side {
    display: flex;
    align-items: center;
    gap: 8px;
    grid-row: 1;
    z-index: 2;
  }
  .header-side--start {
    grid-column: 1;
    justify-self: start;
  }
  .header-side--end {
    grid-column: 3;
    justify-self: end;
  }
  .header-side--end > [data-notify],
  .header-side--start > .country-switcher,
  .header-side--end > .lang-menu {
    order: 0;
  }
  .menu-toggle {
    display: grid;
    place-items: center;
    margin: 0;
  }
  .header-side--start .lang-popup {
    left: 0;
    right: auto;
  }
  .nav.is-open {
    display: flex;
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    right: 0;
    background: #1f1f1f;
    padding: 18px;
    border-radius: 12px;
    flex-direction: column;
    align-items: flex-start;
    z-index: 50;
  }
}
@media (max-width: 600px) {
  .header-inner {
    width: calc(100% - 20px);
    column-gap: 6px;
  }
  .brand {
    gap: 4px;
  }
  .brand img {
    width: auto;
    height: 40px;
  }
  .brand-name {
    font-size: 11px;
    line-height: 12px;
  }
  .header-side {
    gap: 6px;
  }
  .header-side--start .lang-btn,
  .header-side--end .lang-btn {
    min-width: 0;
    height: 32px;
    padding: 0 4px 0 4px;
    font-size: 12px;
    letter-spacing: 0;
  }
  .header-side--start .lang-btn img,
  .header-side--end .lang-btn img {
    width: 22px;
    height: 22px;
  }
  .inner-page {
    width: 100%;
    padding: 96px 12px 48px;
  }
  .related-advertisements .wrap {
    width: 100%;
    padding: 0 !important;
  }
  .carousel-btn {
    display: none;
  }
  .recent-card .recent-card-actions a {
    width: 27px;
    height: 27px;
  }
  .recent-card .recent-card-actions a img {
    width: 27px;
    height: 27px;
  }
  .recent-card .recent-card-actions button.share {
    width: 27px;
    height: 27px;
    bottom: 33px;
  }
  .recent-card .recent-card-actions button.share img {
    width: 27px;
    height: 27px;
  }
  .recent-card-actions {
    right: 4px;
    bottom: 8px;
  }
  .recent-card .recent-info {
    padding-right: 40px !important;
  }

  html[lang="he"] .recent-card .recent-info {
    padding-left: 40px;
    padding-right: 0px !important;
  }
  .hero {
    height: 450px !important;
  }
}
@media (max-width: 380px) {
  .header-inner {
    width: calc(100% - 12px);
  }
  .menu-toggle {
    width: 32px;
    height: 32px;
  }
  .brand img {
    width: auto;
    height: 34px;
  }
  .brand-name {
    font-size: 10px;
    line-height: 11px;
  }
  .header-side--end .icon-btn {
    width: 32px;
    height: 32px;
  }
}
@media (max-width: 900px) {
  .hero,
  .hero-copy h1 {
    min-height: 0;
  }
  .hero-copy h1 {
    font-size: 36px;
  }
  .search-bar {
    flex-direction: column;
    height: auto;
    padding: 16px;
    align-items: stretch;
  }
  .search-field {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  }
  .listing-grid,
  .locations-grid,
  .about-grid,
  .footer-inner {
    grid-template-columns: 1fr;
  }
  .site-footer {
    min-height: 0;
    padding: 28px 0;
  }
  .footer-inner {
    justify-items: center;
    gap: 18px;
  }
  .footer-inner .brand {
    grid-column: auto;
    grid-row: auto;
    justify-self: center;
  }
  .footer-legal {
    row-gap: 8px;
  }
  .footer-inner .socials {
    justify-content: center;
  }
  .categories {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
  .cat-card {
    grid-template-columns: 100px 1fr;
    min-height: 140px;
  }
  .cat-card img {
    width: 100px;
    height: 140px;
  }
  .cat-body {
    padding: 14px 12px 12px;
  }
  .cat-body h3 {
    font-size: 16px;
  }
  .cat-body p {
    margin-top: 8px;
    font-size: 13px;
    line-height: 18px;
    max-width: none;
  }
  .cat-go {
    width: 32px;
    height: 32px;
  }
  .tabs {
    gap: 18px;
  }
  .join-actions {
    flex-direction: column;
  }
  .recent-card {
    flex-basis: calc((100% - 18px) / 2);
  }
  .carousel-btn,
  .carousel-btn img,
  .carousel-next img {
    width: 36px;
    height: 36px;
  }
  .carousel-prev {
    left: 8px;
  }
  .carousel-next {
    right: 8px;
  }
  .quote-card {
    flex-basis: 300px;
    min-height: 300px;
    padding: 28px 22px 22px;
  }
  .quote-track {
    animation-duration: 20s;
  }
}
@media (max-width: 600px) {
  .categories {
    display: flex;
    grid-template-columns: none;
    gap: 14px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    margin-right: -24px;
    padding-right: 24px;
  }
  .categories::-webkit-scrollbar {
    display: none;
  }
  .cat-card {
    flex: 0 0 280px;
    grid-template-columns: 100px 1fr;
    min-height: 140px;
    scroll-snap-align: start;
  }
  .cat-card img {
    width: 100px;
    height: 140px;
  }
  .cat-body {
    padding: 14px 12px 12px;
  }
  .cat-body h3 {
    font-size: 16px;
  }
  .cat-body p {
    margin-top: 8px;
    font-size: 13px;
    line-height: 18px;
    max-width: none;
  }
  .ad-card {
    grid-template-columns: 118px 1fr;
    min-height: 200px;
  }
  .ad-photo {
    width: 118px;
    min-height: 200px;
  }
  .ad-photo img {
    width: 118px;
    height: 100%;
  }
  .fav {
    top: 8px;
    left: 8px;
    width: 32px;
    height: 32px;
  }
  .fav img {
    width: 32px;
    height: 32px;
  }
  .ad-body {
    padding: 10px 12px 0;
  }
  .ad-meta {
    gap: 5px;
    font-size: 12px;
  }
  .ad-meta img {
    width: 11px;
    height: 14px;
  }
  .ad-body h3 {
    margin: 10px 0 0;
    font-size: 14px;
  }
  .ad-body p {
    margin: 8px 0 0;
    font-size: 12px;
    line-height: 16px;
  }
  .ad-foot {
    gap: 6px;
    padding: 8px 0 10px;
  }
  .ad-foot a,
  .ad-foot .share-btn,
  .ad-foot img {
    width: 26px;
    height: 26px;
  }
  .ad-foot a.go {
    width: auto;
    height: auto;
    font-size: 13px;
  }
  .badge {
    top: 8px;
    height: 22px;
    padding: 0 8px;
    font-size: 11px;
  }
  .ad-body-head {
    gap: 6px;
  }
  .ad-card .badge {
    top: 8px;
    min-height: 22px;
    padding: 3px 8px;
    margin: 0;
    max-width: calc(100% - 6px);
  }
  html[dir=rtl] .ad-card .badge {
    left: auto;
    right: 0;
    margin: 0;
  }
  .recent-card {
    height: 230px;
  }
  .recent-card .fav,
  .recent-card .fav img {
    width: 28px;
    height: 28px;
  }
  .recent-card .fav {
    top: 8px;
    right: 8px;
    left: auto;
  }
  .recent-info {
    left: 10px;
    right: 10px;
    bottom: 12px;
  }
  .recent-card .pill {
    height: 20px;
    padding: 0 7px;
    font-size: 10px;
  }
  .recent-info h3 {
    margin: 6px 0 4px;
    font-size: 14px;
  }
  .recent-info .loc {
    gap: 4px;
    font-size: 11px;
  }
  .recent-info .loc img {
    width: 10px;
    height: 13px;
  }
}
