
/* ==========================================
   YALLA MEDITERRANEO
   OPPORTUNITIES PAGE
========================================== */

/* ==========================================
   01 / PAGE OPENING
========================================== */

.opp-opening {
  position: relative;
  overflow: hidden;
  padding-block: 88px 32px;
  background: var(--off-white);
}

.opp-opening::before {
  content: "";
  position: absolute;
  top: -195px;
  right: -135px;
  width: 400px;
  height: 400px;
  border: 65px solid var(--mist);
  border-radius: 50%;
  opacity: .65;
  pointer-events: none;
}

.opp-opening-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.3fr .7fr;
  align-items: end;
  gap: 65px;
  padding-bottom: 82px;
}

.opp-opening h1 {
  max-width: 880px;
  margin: 0;
  color: var(--navy);
  font-size: clamp(3.2rem, 6.6vw, 7rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -.075em;
}

.opp-opening h1 span {
  display: block;
}

.opp-opening-accent {
  color: var(--coral);
}

.opp-opening-side > p {
  max-width: 430px;
  margin-bottom: 25px;
  font-size: 1.09rem;
  line-height: 1.85;
}

.opp-opening-rule {
  height: 3px;
  background: linear-gradient(
    to right,
    var(--blue) 0 35%,
    var(--saffron) 35% 60%,
    var(--coral) 60% 83%,
    var(--teal) 83% 100%
  );
}

/* ==========================================
   02 / SEARCH & FILTERS
========================================== */

.opp-explorer {
  background: var(--off-white);
}

.opp-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  align-items: end;
  gap: 20px;
  margin-bottom: 35px;
}

.opp-search-wrap {
  position: relative;
}

.opp-search-wrap input {
  width: 100%;
  min-height: 62px;
  padding: 17px 25px 17px 64px;
  border: 1px solid var(--sand);
  border-radius: 18px;
  outline-offset: 3px;
  background: var(--sand);
  color: var(--navy);
  font-size: 1rem;
  transition: border-color .2s, background .2s;
}

.opp-search-wrap input:focus {
  border-color: var(--blue-light);
  background: #fff;
}

.opp-search-wrap input::placeholder {
  color: var(--blue);
  opacity: .85;
}

.opp-search-icon {
  position: absolute;
  top: 50%;
  left: 24px;
  transform: translateY(-50%);
  color: var(--blue);
  font-size: 2rem;
  line-height: 1;
  pointer-events: none;
}

.opp-sort-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.opp-sort-wrap label {
  color: var(--blue);
  font-size: .72rem;
  font-weight: 850;
  letter-spacing: .12em;
}

.opp-sort-wrap select,
.opp-filter-fieldset select,
.opp-filter-fieldset input[type="number"] {
  width: 100%;
  min-height: 49px;
  padding: 10px 13px;
  border: 1px solid rgba(21,43,85,.2);
  border-radius: 11px;
  background: #fff;
  color: var(--navy);
  font-size: .88rem;
  cursor: pointer;
}

.opp-layout {
  display: grid;
  grid-template-columns: 292px minmax(0, 1fr);
  align-items: start;
  gap: 32px;
}

/* FILTER SIDEBAR */

.opp-filter-panel {
  overflow: hidden;
  border: 1px solid var(--sand);
  border-radius: var(--radius);
  background: var(--sand);
}

.opp-filter-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  padding: 23px 22px;
  color: var(--navy);
  cursor: pointer;
  list-style: none;
}

.opp-filter-heading::-webkit-details-marker {
  display: none;
}

.opp-filter-heading-title {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 1.12rem;
  font-weight: 850;
}

.opp-filter-heading-title > span:first-child {
  font-size: 1.6rem;
  line-height: 1;
}

.opp-filter-chevron {
  font-size: 1.4rem;
  transition: transform .2s;
}

.opp-filter-panel[open] .opp-filter-chevron {
  transform: rotate(180deg);
}

.opp-filter-body {
  padding: 0 22px 24px;
}

.opp-filter-description {
  padding-bottom: 20px;
}

.opp-filter-description p {
  margin: 0;
  color: var(--blue);
  font-size: .84rem;
}

.opp-filter-fieldset {
  min-width: 0;
  margin: 0 0 23px;
  padding: 23px 0 0;
  border: 0;
  border-top: 1px solid rgba(21,43,85,.15);
}

.opp-filter-fieldset legend,
.opp-filter-title {
  display: block;
  width: 100%;
  margin-bottom: 15px;
  padding: 0;
  color: var(--navy);
  font-size: .92rem;
  font-weight: 850;
}

.opp-filter-fieldset legend {
  float: left;
}

.opp-filter-fieldset legend + * {
  clear: both;
}

.opp-checkbox-stack {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.opp-check {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin-bottom: 10px;
  color: var(--ink);
  font-size: .87rem;
  line-height: 1.55;
  cursor: pointer;
}

.opp-check input {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  margin: 3px 0 0;
  accent-color: var(--blue);
  cursor: pointer;
}

.opp-check span {
  flex: 1;
}

.opp-filter-hint,
.opp-country-hint {
  margin: 10px 0 0;
  color: var(--blue);
  font-size: .77rem;
  line-height: 1.65;
}

.opp-clear-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 47px;
  padding: 11px 14px;
  border: 1px solid var(--navy);
  border-radius: 100px;
  background: transparent;
  color: var(--navy);
  font-size: .85rem;
  font-weight: 800;
  cursor: pointer;
  transition: background .2s, color .2s;
}

.opp-clear-btn:hover {
  background: var(--navy);
  color: var(--off-white);
}

/* RESULTS */

.opp-results-area {
  min-width: 0;
}

.opp-results-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  min-height: 47px;
  margin-bottom: 17px;
}

.opp-results-top p {
  margin: 0;
  color: var(--navy);
  font-size: 1.03rem;
  font-weight: 850;
}

.opp-live-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--blue);
  font-size: .66rem;
  font-weight: 850;
  letter-spacing: .09em;
}

.opp-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
}

/* ACTIVE FILTER CHIPS */

.opp-active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.opp-active-filters:empty {
  display: none;
}

.opp-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  max-width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--mist);
  border-radius: 100px;
  background: var(--mist);
  color: var(--navy);
  font-size: .74rem;
  font-weight: 750;
  cursor: pointer;
  overflow-wrap: anywhere;
}

.opp-filter-chip:hover {
  border-color: var(--coral);
  background: var(--sand);
}

.opp-filter-chip span:last-child {
  color: var(--coral);
  font-size: 1rem;
  line-height: 1;
}

/* CARD GRID */

.opp-results-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 18px;
}

.opp-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--sand);
  border-radius: var(--radius);
  background: #fff;
  transition:
    transform .3s var(--ease),
    box-shadow .3s;
}

.opp-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 30px rgba(21,43,85,.11);
}

/* CARD IMAGE / CSS ART */

.opp-card-visual {
  position: relative;
  display: grid;
  place-items: center;
  height: 220px;
  overflow: hidden;
  background: var(--blue);
  color: var(--off-white);
  isolation: isolate;
}

.opp-card:nth-child(3n + 2) .opp-card-visual {
  background: var(--teal);
}

.opp-card:nth-child(3n + 3) .opp-card-visual {
  background: var(--coral);
}

.opp-card-visual::before {
  content: "";
  position: absolute;
  top: -80px;
  right: -60px;
  width: 230px;
  height: 230px;
  border: 35px solid var(--saffron);
  border-radius: 50%;
  opacity: .45;
}

.opp-card-visual img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.opp-card-symbol {
  position: relative;
  z-index: 1;
  font-size: clamp(4.5rem, 7vw, 7rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.1em;
  transform: rotate(-9deg);
}

.opp-card-visual-label {
  position: absolute;
  z-index: 2;
  bottom: 15px;
  left: 18px;
  padding: 7px 12px;
  border-radius: 100px;
  background: var(--navy);
  color: var(--off-white);
  font-size: .67rem;
  font-weight: 850;
}

/* CARD CONTENT */

.opp-card-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  padding: 25px;
}

.opp-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  width: 100%;
  margin-bottom: 20px;
}

.opp-card-status,
.opp-card-urgent {
  padding: 6px 10px;
  border-radius: 100px;
  background: var(--mist);
  color: var(--navy);
  font-size: .65rem;
  font-weight: 850;
}

.opp-card-urgent {
  background: var(--saffron);
}

.opp-card-content h3 {
  margin-bottom: 13px;
  color: var(--navy);
  font-size: clamp(1.4rem, 2vw, 1.9rem);
  font-weight: 850;
  line-height: 1.22;
}

.opp-card-summary {
  margin-bottom: 23px;
  color: var(--ink);
  font-size: .88rem;
  line-height: 1.8;
}

.opp-card-info {
  display: grid;
  grid-template-columns: 1fr;
  gap: 11px;
  width: 100%;
  margin-top: auto;
  padding-top: 19px;
  border-top: 1px solid var(--sand);
}

.opp-card-info-row {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  font-size: .78rem;
  line-height: 1.5;
}

.opp-card-info-row span {
  color: var(--blue);
}

.opp-card-info-row strong {
  color: var(--navy);
  text-align: end;
}

.opp-card-link {
  display: inline-flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  width: 100%;
  margin-top: 23px;
  padding: 13px 17px;
  border-radius: 100px;
  background: var(--navy);
  color: var(--off-white);
  font-size: .82rem;
  font-weight: 800;
  transition: background .2s;
}

.opp-card-link:hover {
  background: var(--coral);
}

/* NO OPPORTUNITIES */

.opp-empty {
  position: relative;
  overflow: hidden;
  padding: 65px 35px;
  border: 1px solid var(--sand);
  border-radius: var(--radius);
  background: var(--sand);
  text-align: center;
}

.opp-empty-art {
  margin-bottom: 18px;
  color: var(--coral);
  font-size: 5rem;
  line-height: 1;
}

.opp-empty h3 {
  max-width: 510px;
  margin: 0 auto 16px;
  color: var(--navy);
  font-size: clamp(1.8rem, 3vw, 2.65rem);
  font-weight: 850;
}

.opp-empty p {
  max-width: 540px;
  margin: 0 auto 28px;
  font-size: .96rem;
  line-height: 1.8;
}

.opp-empty-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 11px;
}

/* ==========================================
   03 / FINAL CTA
========================================== */

.opp-cta {
  position: relative;
  overflow: hidden;
  background: var(--saffron);
}

.opp-cta::before {
  content: "";
  position: absolute;
  top: -250px;
  right: -130px;
  width: 420px;
  height: 420px;
  border: 70px solid var(--coral);
  border-radius: 50%;
  opacity: .3;
  pointer-events: none;
}

.opp-cta-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  align-items: end;
  gap: 65px;
}

.opp-cta h2 {
  max-width: 750px;
  margin: 0;
  color: var(--navy);
  font-size: clamp(3rem, 5.6vw, 5.7rem);
  font-weight: 900;
}

.opp-cta h2 span {
  display: block;
}

.opp-cta-accent {
  color: var(--blue);
}

.opp-cta-side p {
  max-width: 470px;
  margin-bottom: 27px;
  font-size: 1.05rem;
  line-height: 1.85;
}

/* ==========================================
   RESPONSIVE
========================================== */

@media (max-width: 1150px) {

  .opp-layout {
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 24px;
  }

  .opp-results-grid {
    gap: 13px;
  }

  .opp-card-content {
    padding: 21px;
  }

}

@media (max-width: 950px) {

  .opp-opening {
    padding-top: 65px;
  }

  .opp-opening-grid {
    grid-template-columns: 1fr;
    gap: 25px;
    padding-bottom: 58px;
  }

  .opp-opening h1 {
    font-size: clamp(3rem, 8vw, 5.8rem);
  }

  .opp-layout {
    grid-template-columns: 1fr;
  }

  .opp-results-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .opp-filter-body {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px 25px;
  }

  .opp-filter-description,
  .opp-clear-btn {
    grid-column: 1 / -1;
  }

  .opp-filter-fieldset {
    margin-bottom: 14px;
  }

  .opp-cta-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

}

@media (max-width: 650px) {

  .opp-opening {
    padding-top: 48px;
    padding-bottom: 20px;
  }

  .opp-opening-grid {
    padding-bottom: 45px;
  }

  .opp-opening h1 {
    font-size: clamp(2.9rem, 10.5vw, 4.4rem);
    letter-spacing: -.05em;
  }

  .opp-opening-side > p {
    font-size: 1rem;
  }

  .opp-toolbar {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .opp-search-wrap input {
    min-height: 55px;
  }

  .opp-layout {
    gap: 25px;
  }

  .opp-filter-body {
    display: block;
  }

  .opp-results-grid {
    grid-template-columns: 1fr;
  }

  .opp-card-visual {
    height: 200px;
  }

  .opp-card-content {
    padding: 24px;
  }

  .opp-card-content h3 {
    font-size: 1.7rem;
  }

  .opp-live-label {
    font-size: .58rem;
  }

  .opp-empty {
    padding: 45px 23px;
  }

  .opp-empty-actions {
    flex-direction: column;
  }

  .opp-empty-actions .btn {
    width: 100%;
  }

  .opp-cta h2 {
    font-size: clamp(2.9rem, 10vw, 4.4rem);
  }

}

/* ==========================================
   RTL
========================================== */

html[dir="rtl"] .opp-opening h1,
html[dir="rtl"] .opp-cta h2,
html[dir="rtl"] .opp-card-content h3 {
  letter-spacing: 0;
  line-height: 1.3;
}

html[dir="rtl"] .opp-search-wrap input {
  padding: 17px 64px 17px 25px;
}

html[dir="rtl"] .opp-search-icon {
  left: auto;
  right: 24px;
}

html[dir="rtl"] .opp-sort-wrap label,
html[dir="rtl"] .opp-live-label {
  letter-spacing: 0;
}

html[dir="rtl"] .opp-card-visual {
  direction: ltr;
}

html[dir="rtl"] .opp-card-content {
  align-items: flex-start;
  text-align: right;
}

html[dir="rtl"] .opp-card-visual-label {
  left: auto;
  right: 18px;
}

/* ==========================================
   REDUCED MOTION
========================================== */

@media (prefers-reduced-motion: reduce) {

  .opp-card {
    transition: none;
  }

  .opp-card:hover {
    transform: none;
  }

}



/* ==========================================
   OPPORTUNITIES — PAGINATION
========================================== */

.opp-pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 9px;
  margin: 30px 0 12px;
}

.opp-pagination[hidden] {
  display: none;
}

.opp-page-button {
  min-width: 42px;
  min-height: 42px;
  padding: 8px 14px;
  border: 1px solid var(--sand, #e9e2d6);
  border-radius: 10px;
  background: var(--off-white, #f7f8fa);
  color: var(--navy, #152b55);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.opp-page-button:hover:not(:disabled) {
  border-color: var(--blue, #244582);
}

.opp-page-button[aria-current="page"] {
  background: var(--navy, #152b55);
  border-color: var(--navy, #152b55);
  color: #fff;
}

.opp-page-button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.opp-check.is-disabled {
  opacity: 0.5;
}
