/* =====================================================
   activities.css
   Scoped styles for the Activity Search Bar (homepage)
   and the /activities results page. Prefixed with
   .activity-* / .as-* / .tfs-* / .at- to avoid collisions
   with style.css.
   ===================================================== */

/* ---------- Search bar wrapper (handles hero overlap) ---------- */
.activity-search-bar-wrap {
  position: relative;
  z-index: 20;
  margin-top: 0;
  opacity: 1;
  transition: opacity 0.2s ease;
}

.activity-search-bar-wrap.is-hidden {
  opacity: 0;
  pointer-events: none;
}

@media (min-width: 992px) {
  .activity-search-bar-wrap {
    margin-top: -34px;
    padding-bottom: 0;
  }
}

.activity-search-bar-wrap .container {
  display: flex;
  justify-content: center;
}

/* ---------- Fixed copy: pinned below the sticky navbar once scrolled ----------
   Rendered via a React portal straight into <body>, so it sits outside the
   GSAP ScrollSmoother-transformed #smooth-content wrapper — a `position: fixed`
   element inside a transformed ancestor is positioned relative to that
   ancestor, not the viewport, so it must live outside it to stick correctly. */
.activity-search-bar-fixed {
  position: fixed;
  top: 85px; /* matches .nav-scroll's fixed height in style.css */
  left: 0;
  width: 100%;
  z-index: 998; /* just below .navbar/.nav-scroll's 999 */
  display: flex;
  justify-content: center;
  padding: 10px 0;
  pointer-events: none;
  animation: activitySearchBarSlideIn 0.3s ease;
}

.activity-search-bar-fixed .container {
  display: flex;
  justify-content: center;
  pointer-events: auto;
}

.activity-search-bar-fixed .activity-search-bar {
  box-shadow: 0 15px 35px rgba(15, 36, 84, 0.2);
}

@keyframes activitySearchBarSlideIn {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 991.98px) {
  .activity-search-bar-fixed {
    padding: 8px 12px;
  }
}

/* ---------- Search bar card (compact, premium — matches the
   /activities toolbar's slim scale) ---------- */
.activity-search-bar {
  background: var(--clr-white, #fff);
  border: 1px solid rgba(15, 36, 84, 0.06);
  border-radius: 100px;
  box-shadow: 0 10px 30px rgba(15, 36, 84, 0.14);
  padding: 10px;
  display: flex;
  align-items: stretch;
  gap: 2px;
  font-family: var(--font-primary);
  position: relative;
  width: 100%;
  max-width: 820px;
}

@media (max-width: 991.98px) {
  .activity-search-bar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-radius: 16px;
    padding: 8px;
    gap: 6px;
  }
}

.activity-search-bar .as-field {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  border: none;
  background: transparent;
  border-radius: 100px;
  cursor: pointer;
  text-align: left;
  position: relative;
  transition: background 0.2s ease;
}

.activity-search-bar .as-field:not(:last-of-type)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 16px;
  background: rgba(15, 36, 84, 0.08);
}

.activity-search-bar .as-field:hover,
.activity-search-bar .as-field.open {
  background: var(--clr-bg-light, #f4f5f8);
}

@media (max-width: 991.98px) {
  .activity-search-bar .as-field {
    border-radius: 10px;
    width: 100%;
    padding: 9px 10px;
    background: var(--clr-bg-light, #f4f5f8);
  }

  .activity-search-bar .as-field::after {
    display: none;
  }
}

.activity-search-bar .as-field-icon {
  color: var(--clr-primary);
  font-size: 13px;
  min-width: 14px;
  text-align: center;
}

.activity-search-bar .as-field-value {
  font-family: var(--font-primary);
  font-size: 13px;
  font-weight: 600;
  color: var(--clr-heading, #0f2454);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1 1 auto;
  min-width: 0;
}

.activity-search-bar .as-field-chevron {
  color: var(--clr-body, #5e6282);
  font-size: 9px;
  transition: transform 0.25s ease;
  margin-left: auto;
}

.activity-search-bar .as-field.open .as-field-chevron {
  transform: rotate(180deg);
  color: var(--clr-primary);
}

/* Dropdown panel */
.activity-search-bar .as-panel {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 220px;
  max-width: 300px;
  max-height: 300px;
  overflow-y: auto;
  background: var(--clr-white, #fff);
  border-radius: 12px;
  box-shadow: 0 15px 40px rgba(15, 36, 84, 0.18);
  padding: 8px;
  z-index: 40;
}

@media (max-width: 991.98px) {
  .activity-search-bar .as-panel {
    left: 0;
    right: 0;
    min-width: 0;
    max-width: none;
    width: auto;
  }
}

.activity-search-bar .as-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  color: var(--clr-heading, #0f2454);
  transition: background 0.15s ease, color 0.15s ease;
}

.activity-search-bar .as-option:hover {
  background: rgba(32, 149, 174, 0.08);
}

.activity-search-bar .as-option.active {
  background: var(--clr-primary);
  color: #fff;
}

.activity-search-bar .as-option .as-option-count {
  font-size: 11px;
  opacity: 0.75;
}

/* Submit button */
.activity-search-bar .as-submit {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  background: var(--clr-primary);
  color: #fff;
  border: none;
  border-radius: 100px;
  padding: 0 20px;
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 13px;
  text-transform: capitalize;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.2s ease;
  white-space: nowrap;
}

.activity-search-bar .as-submit:hover {
  background: var(--clr-heading, #0f2454);
}

.activity-search-bar .as-submit i {
  font-size: 12px;
}

@media (max-width: 991.98px) {
  .activity-search-bar .as-submit {
    grid-column: 1 / -1;
    width: 100%;
    padding: 13px 24px;
    margin-top: 2px;
    border-radius: 12px;
  }
}


/* =====================================================
   /activities results page
   ===================================================== */

.activity-page-heading {
  padding: 60px 0 30px;
  text-align: center;
}

.activity-page-heading .section-subtitle {
  color: var(--clr-primary);
}

.activity-page-heading .activity-heading-underline {
  display: inline-block;
  width: 70px;
  height: 3px;
  background: var(--clr-primary);
  border-radius: 3px;
  margin-top: 14px;
}

.activity-layout {
  display: flex;
  align-items: flex-start;
  gap: 32px;
  padding: 0 0 80px;
}

@media (max-width: 991.98px) {
  .activity-layout {
    flex-direction: column;
  }
}

/* ---------- Sidebar ---------- */
.activity-filter-sidebar {
  flex: 0 0 260px;
  width: 260px;
  background: #fff;
  border: 1px solid rgba(15, 36, 84, 0.06);
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(15, 36, 84, 0.06);
  padding: 18px;
  font-family: var(--font-primary);
  position: sticky;
  top: 24px;
}

@media (max-width: 991.98px) {
  .activity-filter-sidebar {
    flex: 1 1 100%;
    width: 100%;
    position: static;
  }
}

.activity-filter-sidebar .tfs-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(15, 36, 84, 0.08);
}

.activity-filter-sidebar .tfs-head h5 {
  font-family: var(--font-secondary);
  color: var(--clr-heading);
  margin: 0;
  font-size: 16px;
}

.activity-filter-sidebar .tfs-clear {
  font-size: 12px;
  color: var(--clr-primary);
  cursor: pointer;
  background: none;
  border: none;
  text-decoration: underline;
  padding: 0;
}

.activity-filter-sidebar .tfs-group {
  border-bottom: 1px solid rgba(15, 36, 84, 0.08);
  padding: 12px 0;
}

.activity-filter-sidebar .tfs-group:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.activity-filter-sidebar .tfs-group-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-family: var(--font-secondary);
  font-weight: 600;
  color: var(--clr-heading);
  font-size: 14px;
}

.activity-filter-sidebar .tfs-group-title i {
  font-size: 11px;
  color: var(--clr-body);
  transition: transform 0.25s ease;
}

.activity-filter-sidebar .tfs-group.collapsed .tfs-group-title i {
  transform: rotate(-90deg);
}

.activity-filter-sidebar .tfs-group-body {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.activity-filter-sidebar .tfs-group.collapsed .tfs-group-body {
  display: none;
}

.activity-filter-sidebar .tfs-option {
  display: flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  font-size: 13px;
  color: var(--clr-body);
}

.activity-filter-sidebar .tfs-checkbox {
  width: 16px;
  height: 16px;
  min-width: 16px;
  border-radius: 5px;
  border: 1.5px solid rgba(15, 36, 84, 0.25);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 9px;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.activity-filter-sidebar .tfs-option.checked .tfs-checkbox {
  background: var(--clr-primary);
  border-color: var(--clr-primary);
}

.activity-filter-sidebar .tfs-option-label {
  flex: 1 1 auto;
  color: var(--clr-heading);
}

.activity-filter-sidebar .tfs-option.checked .tfs-option-label {
  color: var(--clr-primary);
  font-weight: 600;
}

.activity-filter-sidebar .tfs-count {
  font-size: 11px;
  background: rgba(15, 36, 84, 0.06);
  color: var(--clr-body);
  border-radius: 20px;
  padding: 2px 9px;
  min-width: 26px;
  text-align: center;
}

.activity-filter-sidebar .tfs-showmore {
  font-size: 13px;
  color: var(--clr-primary);
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  text-align: left;
  text-decoration: underline;
}

/* ---------- Toolbar ---------- */
.activity-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #fff;
  border: 1px solid rgba(15, 36, 84, 0.06);
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(15, 36, 84, 0.06);
  padding: 8px 10px 8px 18px;
  margin-bottom: 24px;
  font-family: var(--font-primary);
}

.activity-toolbar .at-search {
  display: flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  border-radius: 10px;
  padding: 6px 0;
  flex: 1 1 220px;
  min-width: 160px;
}

.activity-toolbar .at-search i {
  color: var(--clr-primary);
  font-size: 15px;
}

.activity-toolbar .at-search input {
  border: none;
  background: transparent;
  outline: none;
  font-size: 14px;
  color: var(--clr-heading);
  width: 100%;
  font-family: var(--font-primary);
  padding: 0;
  margin: 0;
  height: auto;
  max-width: none;
}

.activity-toolbar .at-search input::placeholder {
  color: var(--clr-body);
  opacity: 0.7;
}

.activity-toolbar .at-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding-left: 12px;
  border-left: 1px solid rgba(15, 36, 84, 0.08);
}

@media (max-width: 575.98px) {
  .activity-toolbar .at-right {
    border-left: none;
    padding-left: 0;
    width: 100%;
    justify-content: space-between;
  }
}

.activity-toolbar .at-count {
  font-size: 13px;
  font-weight: 600;
  color: var(--clr-heading);
  white-space: nowrap;
}

.activity-toolbar .at-sort {
  border: 1px solid rgba(15, 36, 84, 0.12);
  border-radius: 30px;
  padding: 7px 14px;
  font-size: 13px;
  color: var(--clr-heading);
  background: #fff;
  font-family: var(--font-primary);
  outline: none;
  cursor: pointer;
}

.activity-toolbar .at-view {
  display: flex;
  gap: 4px;
  background: var(--clr-bg-light, #f4f5f8);
  border-radius: 30px;
  padding: 3px;
}

.activity-toolbar .at-view button {
  border: none;
  background: transparent;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--clr-body);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.activity-toolbar .at-view button.active {
  background: var(--clr-primary);
  color: #fff;
}

/* ---------- Results ---------- */
.activity-results-wrap {
  flex: 1 1 auto;
  min-width: 0;
}

.activity-no-results {
  text-align: center;
  padding: 60px 20px;
  color: var(--clr-body);
  font-size: 16px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(15, 36, 84, 0.08);
}

/* ---------- Result cards (grid, uniform sizing) ---------- */
.activity-results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 30px;
  align-items: stretch;
}

.ac-card {
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(15, 36, 84, 0.07);
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ac-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 50px rgba(15, 36, 84, 0.16);
}

.ac-card-img {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--clr-bg-light, #f4f5f8);
  flex: 0 0 auto;
}

.ac-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.ac-card:hover .ac-card-img img {
  transform: scale(1.08);
}

.ac-card-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(15, 36, 84, 0.65);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 6px 12px;
  border-radius: 30px;
}

.ac-card-link {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--clr-heading);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.ac-card-link:hover {
  background: var(--clr-primary);
  color: #fff;
  transform: rotate(45deg);
}

.ac-card-body {
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}

.ac-card-location {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--clr-primary);
  font-weight: 600;
  margin-bottom: 10px;
}

.ac-card-title {
  font-family: var(--font-secondary);
  font-size: 19px;
  font-weight: 600;
  color: var(--clr-heading);
  margin: 0 0 12px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.7em;
}

.ac-card-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 13px;
  color: var(--clr-body);
  min-height: 18px;
  margin-bottom: 16px;
}

.ac-card-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.ac-card-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid rgba(15, 36, 84, 0.08);
}

.ac-card-price {
  font-family: var(--font-secondary);
  font-weight: 700;
  font-size: 18px;
  color: var(--clr-heading);
  white-space: nowrap;
}

.ac-card-price small {
  font-size: 11px;
  font-weight: 400;
  color: var(--clr-body);
  margin-left: 4px;
  text-transform: none;
}

.ac-card-price.request {
  font-size: 14px;
  font-weight: 500;
  color: var(--clr-body);
}

.ac-card-cta {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--clr-primary);
  white-space: nowrap;
  transition: gap 0.2s ease;
}

.ac-card-cta:hover {
  gap: 10px;
  color: var(--clr-heading);
}

/* List view: smaller image, more info per row */
.activity-results-grid.list-view {
  grid-template-columns: 1fr;
  gap: 14px;
}

.activity-results-grid.list-view .ac-card {
  flex-direction: row;
  align-items: stretch;
}

.activity-results-grid.list-view .ac-card-img {
  width: 150px;
  flex: 0 0 150px;
  aspect-ratio: auto;
}

.activity-results-grid.list-view .ac-card-tag {
  display: none;
}

.activity-results-grid.list-view .ac-card-body {
  flex: 1 1 auto;
  padding: 14px 18px;
}

.activity-results-grid.list-view .ac-card-title {
  min-height: 0;
  -webkit-line-clamp: 1;
  font-size: 17px;
  margin-bottom: 6px;
}

.activity-results-grid.list-view .ac-card-location {
  margin-bottom: 6px;
}

.activity-results-grid.list-view .ac-card-meta {
  flex-wrap: wrap;
  row-gap: 4px;
  margin-bottom: 10px;
  min-height: 0;
}

.activity-results-grid.list-view .ac-card-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.activity-results-grid.list-view .ac-card-chip {
  font-size: 11px;
  background: rgba(32, 149, 174, 0.1);
  color: var(--clr-primary);
  padding: 3px 10px;
  border-radius: 20px;
}

.activity-results-grid.list-view .ac-card-footer {
  border-top: none;
  padding-top: 0;
  margin-top: auto;
}

@media (max-width: 575.98px) {
  .activity-results-grid.list-view .ac-card {
    flex-direction: column;
  }

  .activity-results-grid.list-view .ac-card-img {
    width: 100%;
    aspect-ratio: 4 / 3;
  }

  .activity-results-grid.list-view .ac-card-footer {
    border-top: 1px solid rgba(15, 36, 84, 0.08);
    padding-top: 12px;
  }
}

/* ---------- Pagination ---------- */
.activity-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.activity-pagination .ap-nav,
.activity-pagination .ap-page {
  min-width: 38px;
  height: 38px;
  padding: 0 6px;
  border-radius: 50%;
  border: 1px solid rgba(15, 36, 84, 0.1);
  background: #fff;
  color: var(--clr-heading);
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.activity-pagination .ap-page.active {
  background: var(--clr-primary);
  border-color: var(--clr-primary);
  color: #fff;
}

.activity-pagination .ap-nav:hover:not(:disabled),
.activity-pagination .ap-page:hover:not(.active) {
  border-color: var(--clr-primary);
  color: var(--clr-primary);
}

.activity-pagination .ap-nav:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.activity-pagination .ap-ellipsis {
  color: var(--clr-body);
  padding: 0 4px;
}

/* ---------- Logo (Karnish Tourism) ----------
   style.css's mobile navbar is fixed at height:90px with 24px top+bottom
   padding on .logo-wrapper (48px), leaving only 42px for the logo itself —
   the vendor's own mobile logo-img rule (width:140px) was designed for a
   plain wordmark, not this circular badge logo, and overflowed the navbar.
   This file loads after style.css, so same-specificity rules here win. */
.karnish-logo {
  width: 84px;
  height: 84px;
  object-fit: contain;
}

@media (max-width: 991.98px) {
  .logo-wrapper {
    padding: 12px 16px;
  }

  .karnish-logo,
  .nav-scroll .karnish-logo {
    width: 56px;
    height: 56px;
  }
}
