/* Category Page - Exceptional Egypt Travel */

.cat-hero {
  position: relative;
  min-height: 620px;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--white);
  background: var(--black);
}

.cat-hero picture,
.cat-hero picture img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.cat-hero img {
  object-fit: cover;
  filter: saturate(.84) contrast(1.04);
}

.cat-hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0,0,0,.78), rgba(0,0,0,.35) 46%, rgba(0,0,0,.08)),
    linear-gradient(0deg, rgba(0,0,0,.58), transparent 54%);
}

.cat-hero-inner {
  position: relative;
  z-index: 2;
  padding: 150px 0 82px;
}

.cat-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 28px;
  font-family: var(--ui);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255,255,255,.66);
}

.cat-breadcrumb a {
  color: rgba(255,255,255,.88);
}

.cat-hero h1 {
  max-width: 850px;
  margin: 18px 0 24px;
  font-family: var(--serif);
  font-size: clamp(58px, 8vw, 108px);
  line-height: .98;
  font-weight: 600;
  letter-spacing: -.075em;
}

.cat-hero p {
  max-width: 650px;
  margin: 0;
  color: rgba(255,255,255,.78);
  font-size: 19px;
}

.cat-intro {
  padding: clamp(64px, 9vw, 116px) 0 34px;
  background: var(--offwhite);
}

.cat-intro-grid,
.cat-note-grid {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: 72px;
  align-items: center;
}

.cat-intro h2,
.cat-results-head h2,
.cat-filter-head h2,
.cat-note-grid h2 {
  margin: 0;
  color: var(--soft-black);
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -.055em;
  line-height: 1.08;
}

.cat-intro h2 {
  font-size: clamp(42px, 5.4vw, 68px);
}

.cat-intro p,
.cat-note-grid p {
  margin: 0;
  color: #565656;
  font-size: 18px;
}

.cat-subnav-section {
  position: sticky;
  top: 78px;
  z-index: 30;
  padding: 16px 0;
  background: rgba(246,244,239,.9);
  border-top: 1px solid rgba(24,24,24,.08);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.cat-subnav {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.cat-subnav::-webkit-scrollbar {
  display: none;
}

.cat-subnav a {
  flex: 0 0 auto;
  padding: 12px 17px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.48);
  font-family: var(--ui);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .15em;
  text-transform: uppercase;
  transition: .28s ease;
}

.cat-subnav a:hover,
.cat-subnav a.is-active {
  background: var(--black);
  border-color: var(--black);
  color: var(--white);
}

.cat-listing {
  padding: clamp(58px, 8vw, 110px) 0 clamp(80px, 10vw, 140px);
  background: var(--white);
}

.cat-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 38px;
  align-items: start;
}

.cat-filter {
  position: sticky;
  top: 156px;
  padding: 26px;
  background: var(--offwhite);
  border: 1px solid var(--line);
}

.cat-filter-head {
  margin-bottom: 24px;
}

.cat-filter-head h2 {
  margin-top: 9px;
  font-size: 34px;
}

.filter-field {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.filter-field span {
  font-family: var(--ui);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #565656;
}

.filter-field input,
.filter-field select {
  width: 100%;
  height: 48px;
  border: 1px solid rgba(24,24,24,.16);
  border-radius: 0;
  background: rgba(255,255,255,.72);
  color: var(--ink);
  padding: 0 14px;
  font-family: var(--ui);
  font-size: 13px;
  outline: none;
}

.filter-field input:focus,
.filter-field select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(185,155,99,.14);
}

.btn-filter {
  width: 100%;
  margin-top: 8px;
  background: var(--black);
  color: var(--white);
}

.filter-reset {
  display: table;
  margin: 16px auto 0;
  font-family: var(--ui);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #555;
  border-bottom: 1px solid var(--gold);
}

.cat-results-head {
  display: flex;
  gap: 22px;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 26px;
}

.cat-results-head h2 {
  max-width: 680px;
  margin-top: 10px;
  font-size: clamp(40px, 4.5vw, 62px);
}

.cat-results-head p {
  margin: 0 0 8px;
  font-family: var(--ui);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--grey);
  white-space: nowrap;
}

.cat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.cat-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--offwhite);
  border: 1px solid var(--line);
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}

.cat-card:hover {
  transform: translateY(-7px);
  border-color: rgba(185,155,99,.48);
  box-shadow: 0 26px 74px rgba(0,0,0,.12);
}

.cat-card-featured {
  grid-column: span 2;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  min-height: 460px;
  background: var(--black);
  color: var(--white);
}

.cat-card-media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 11;
  overflow: hidden;
  background: #ddd;
}

.cat-card-featured .cat-card-media {
  aspect-ratio: auto;
  min-height: 100%;
}

.cat-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(.86) contrast(1.02);
  transition: transform .75s ease;
}

.cat-card:hover .cat-card-media img {
  transform: scale(1.055);
}

.cat-badge {
  position: absolute;
  left: 20px;
  top: 20px;
  padding: 10px 13px;
  background: rgba(246,244,239,.9);
  color: var(--black);
  font-family: var(--ui);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
}

.cat-card-copy {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 26px;
}

.cat-card-featured .cat-card-copy {
  justify-content: center;
  padding: clamp(30px, 4vw, 52px);
}

.cat-meta {
  font-family: var(--ui);
  color: var(--gold);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.cat-card h3 {
  margin: 12px 0 12px;
  font-family: var(--serif);
  font-size: clamp(32px, 3.5vw, 52px);
  line-height: 1.06;
  font-weight: 600;
  letter-spacing: -.05em;
}

.cat-card:not(.cat-card-featured) h3 {
  font-size: clamp(30px, 3vw, 42px);
}

.cat-card p {
  margin: 0 0 22px;
  color: #555;
  font-size: 16px;
}

.cat-card-featured p {
  color: rgba(255,255,255,.72);
  font-size: 18px;
}

.cat-card-details {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: auto 0 20px;
}

.cat-card-details span {
  padding: 8px 10px;
  border: 1px solid rgba(185,155,99,.28);
  font-family: var(--ui);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #5a5a5a;
}

.cat-card-featured .cat-card-details span {
  color: rgba(255,255,255,.75);
  border-color: rgba(185,155,99,.34);
}

.cat-card-featured .journey-foot {
  border-top-color: rgba(185,155,99,.34);
}

.cat-cinema-note {
  padding: clamp(78px, 10vw, 136px) 0;
  background: var(--offwhite);
}

.cat-note-grid h2 {
  margin-top: 14px;
  font-size: clamp(46px, 6vw, 82px);
}

@media (max-width: 1080px) {
  .cat-layout {
    grid-template-columns: 1fr;
  }

  .cat-filter {
    position: relative;
    top: auto;
  }

  .cat-filter form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    align-items: end;
  }

  .filter-field {
    margin-bottom: 0;
  }

  .btn-filter,
  .filter-reset {
    margin-top: 0;
  }
}

@media (max-width: 900px) {
  .cat-card-featured {
    grid-template-columns: 1fr;
  }

  .cat-card-featured .cat-card-media {
    aspect-ratio: 16 / 10;
    min-height: auto;
  }

  .cat-intro-grid,
  .cat-note-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }
}

@media (max-width: 760px) {
  .cat-hero {
    min-height: 560px;
  }

  .cat-hero-shade {
    background:
      linear-gradient(180deg, rgba(0,0,0,.70), rgba(0,0,0,.34) 55%, rgba(0,0,0,.66)),
      linear-gradient(90deg, rgba(0,0,0,.48), rgba(0,0,0,.12));
  }

  .cat-hero-inner {
    padding: 108px 0 54px;
  }

  .cat-breadcrumb {
    margin-bottom: 22px;
    font-size: 9px;
  }

  .cat-hero h1 {
    font-size: clamp(48px, 14vw, 66px);
    max-width: 390px;
  }

  .cat-hero p {
    font-size: 16px;
  }

  .cat-intro {
    padding-top: 60px;
  }

  .cat-intro h2,
  .cat-results-head h2,
  .cat-note-grid h2 {
    font-size: 42px;
  }

  .cat-subnav-section {
    top: 68px;
  }

  .cat-layout {
    gap: 28px;
  }

  .cat-filter {
    padding: 20px;
  }

  .cat-filter form,
  .cat-grid {
    grid-template-columns: 1fr;
  }

  .cat-results-head {
    display: block;
  }

  .cat-results-head p {
    margin-top: 14px;
  }

  .cat-card-featured {
    grid-column: auto;
  }

  .cat-card-media,
  .cat-card-featured .cat-card-media {
    aspect-ratio: 1 / .82;
  }

  .cat-card-copy,
  .cat-card-featured .cat-card-copy {
    padding: 22px;
  }

  .cat-card-details {
    margin-top: 2px;
  }
}

@media (max-width: 430px) {
  .cat-subnav a {
    padding: 11px 14px;
    font-size: 9px;
  }

  .cat-card-media,
  .cat-card-featured .cat-card-media {
    aspect-ratio: 1 / .9;
  }

  .cat-card h3,
  .cat-card:not(.cat-card-featured) h3 {
    font-size: 32px;
  }

  .cat-card-details span {
    font-size: 9px;
  }
}
