/**
 * @file
 * Photographers Category Listing Styles
 *
 * Styles for the category-based photographer directory pages
 * (Destination Photography, Elopement)
 * Design matches mockup specifications
 */

/* Main Container */
.photographers-category-listing {
  max-width: 1400px;
  margin: 0 auto;
  background: #fff;
}

/* Hero Section */
.photographers-category-listing .view-header {
  text-align: center;
  margin-bottom: 60px;
  padding: 0 20px;
}

.photographers-category-listing .hero-section {
  max-width: 1200px;
  margin: 0 auto;
}

/* Eyebrow Text - "WEDDING PHOTOS" */
.photographers-category-listing .eyebrow-text {
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 15px;
  color: #999;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Hero Subtitle - "THE DEFINITIVE GUIDE TO" */
.photographers-category-listing .hero-subtitle {
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 20px;
  color: #666;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Hero Title - Main Heading */
.photographers-category-listing .hero-title {
  font-size: 3rem;
  font-weight: 300;
  margin-bottom: 30px;
  color: #1a1a1a;
  line-height: 1.3;
  font-family: "Playfair Display", Georgia, serif;
  letter-spacing: -0.02em;
}

/* Hero Description */
.photographers-category-listing .hero-description {
  /* max-width: 800px; */
  margin: 0 auto;
}

.photographers-category-listing .hero-description p {
  font-size: 1rem;
  line-height: 1.8;
  color: #333;
  margin-bottom: 20px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-weight: 400;
}

.photographers-category-listing .hero-description p:last-child {
  margin-bottom: 0;
}

/* Exposed Filters Section */
.photographers-category-listing .view-filters {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 15px;
  margin: 0 auto 50px;
  padding: 0;
  max-width: 1200px;
  flex-wrap: wrap;
}

/* Filter Form */
.photographers-category-listing .view-filters form {
  display: flex;
  justify-content: right;
  align-items: flex-end;
  width: 100%;
  flex-wrap: wrap;
}

.photographers-category-listing .view-filters .form-item {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* Hide state filter wrapper initially */
#edit-state-wrapper {
  display: inline-block;
}

/* Location Dropdown */
.photographers-category-listing .view-filters select {
  padding: 12px 24px;
  border: 1px solid #ddd;
  background: #fff;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 200px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #1a1a1a;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 40px;
}

.photographers-category-listing .view-filters select:hover,
.photographers-category-listing .view-filters select:focus {
  border-color: #1a1a1a;
  outline: none;
}

/* Filter Buttons */
.photographers-category-listing .view-filters .form-actions {
  display: flex;
  gap: 15px;
  margin: 0;
}

.photographers-category-listing .view-filters button,
.photographers-category-listing .view-filters input[type="submit"] {
  padding: 12px 30px;
  border: 1px solid #1a1a1a;
  background: #fff;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-weight: 500;
  color: #1a1a1a;
}

.photographers-category-listing .view-filters button:hover,
.photographers-category-listing .view-filters input[type="submit"]:hover {
  /* background: #1a1a1a; */
  color: #fff;
}

/* Submit Button (FILTER BY) */
.photographers-category-listing .view-filters input[type="submit"].form-submit {
  background: #fff;
  /* color: #fff; */
  color: rgba(0, 0, 0, 1);
  border-color: #fff;;
}

.photographers-category-listing .view-filters input[type="submit"].form-submit:hover {
  /* background: #000; */
  border-color: #000;
}

/* Reset Button */
.photographers-category-listing .view-filters input[type="submit"][value="RESET"],
.photographers-category-listing .view-filters input[type="reset"] {
  background: #fff;
  color: #666;
  border-color: #ddd;
}

.photographers-category-listing .view-filters input[type="submit"][value="RESET"]:hover,
.photographers-category-listing .view-filters input[type="reset"]:hover {
  background: #f5f5f5;
  border-color: #999;
  color: #1a1a1a;
}

/* Filter Label */
.photographers-category-listing .view-filters label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #666;
  font-weight: 500;
  margin-bottom: 8px;
  display: block;
}

/* Content Grid - 2 Column Layout */
.photographers-category-listing .view-content {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  margin-bottom: 60px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

/* Individual Photographer Item - Card Structure */
.photographers-category-listing .photographer-item {
  background: #fff;
  border: 1px solid #e5e5e5;
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  text-align: center;
}

.photographers-category-listing .photographer-item:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

/* Photographer Card Image */
.photographers-category-listing .photographer-item .field--name-field-profile-photos {
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: #f5f5f5;
  position: relative;
}

.photographers-category-listing .photographer-item .field--name-field-profile-photos img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.photographers-category-listing .photographer-item:hover .field--name-field-profile-photos img {
  transform: scale(1.05);
}

/* Slick slider in photographer item */
.photographers-category-listing .photographer-item .field--name-field-profile-photos .slick-slider,
.photographers-category-listing .photographer-item .field--name-field-profile-photos .slick-list,
.photographers-category-listing .photographer-item .field--name-field-profile-photos .slick-track {
  height: 100%;
}

.photographers-category-listing .photographer-item .field--name-field-profile-photos .slick-slide {
  height: 100%;
}

.photographers-category-listing .photographer-item .field--name-field-profile-photos .slick-slide > div {
  height: 100%;
}

/* Profile content wrapper */
.photographers-category-listing .photographer-item .profile--type--photographer-profile {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Location Label */
.photographers-category-listing .photographer-item .field--name-photographer-location,
.photographers-category-listing .photographer-item .field--name-teaser_location_display {
  font-family: Lato;
  font-weight: 400;
  font-style: Regular;
  font-size: 11px;
  line-height: 20px;
  letter-spacing: 0.44px;
  text-align: center;
  vertical-align: middle;
  text-transform: uppercase;
  color: rgba(102, 102, 102, 1);
  margin: 20px 0 10px;
  padding: 0;
}

/* Photographer Name */
.photographers-category-listing .photographer-item .field--name-field-studio-name {
  font-family: Cormorant Garamond;
  font-weight: 400;
  font-style: Regular;
  font-size: 26px;
  line-height: 32.5px;
  letter-spacing: 0%;
  text-align: center;
  color: rgba(0, 0, 0, 1);
  margin: 10px 0;
}

.photographers-category-listing .photographer-item .field--name-field-studio-name a {
  color: #1a1a1a;
  text-decoration: none;
  transition: color 0.3s ease;
}

.photographers-category-listing .photographer-item .field--name-field-studio-name a:hover {
  color: #666;
}

/* Pagination Indicator (3/7 style) */
.photographers-category-listing .pagination-indicator {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 500;
}

/* Category Badge */
.photographer-category-badge {
  display: inline-block;
  padding: 5px 15px;
  background: #2f3a74;
  color: white;
  border-radius: 20px;
  font-size: 0.85rem;
  margin: 5px 5px 5px 0;
  font-weight: 500;
}

.photographer-category-badge.destination-marriage {
  background: #cc0000;
}

.photographer-category-badge.elopement {
  background: #2f3a74;
}

/* Empty State */
.photographers-category-listing .view-empty {
  text-align: center;
  padding: 60px 20px;
  background: #f8f8f8;
  border-radius: 8px;
  margin: 40px 0;
}

.photographers-category-listing .view-empty p {
  font-size: 1.125rem;
  color: #666;
  margin: 0;
}

/* Pager */
.photographers-category-listing .view-pager {
  margin-top: 40px;
  text-align: center;
}

.photographers-category-listing .pager {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.photographers-category-listing .pager li {
  display: inline-block;
}

.photographers-category-listing .pager a {
  font-family: Lato;
  font-weight: 400;
  font-style: Regular;
  font-size: 15px;
  line-height: 22.5px;
  letter-spacing: 0%;
  text-align: center;
  vertical-align: middle;
  color: rgba(51, 51, 51, 1);
}

/* .photographers-category-listing .pager a:hover {
  color: #fff;
} */

.photographers-category-listing .pager .is-active a {
  font-family: Lato;
  font-weight: 400;
  font-style: Regular;
  font-size: 15px;
  line-height: 22.5px;
  letter-spacing: 0%;
  text-align: center;
  vertical-align: middle;
  background: rgba(237, 237, 237, 1);
  color: rgba(51, 51, 51, 1);
}

/* Footer */
.photographers-category-listing .view-footer {
  margin-top: 40px;
  text-align: center;
}

.field--name-teaser_additional ul li::marker {
  content: "";
}

.photographers-category-listing .field--name-teaser_additional ul li a {
  font-family: Lato;
  font-weight: 400;
  font-style: Regular;
  font-size: 14px;
  line-height: 28px;
  letter-spacing: 0.56px;
  text-align: center;
  vertical-align: middle;
  text-transform: uppercase;
  color: rgba(102, 102, 102, 1);
}

.photographers-category-listing .field--name-teaser_additional ul li a:hover {
  text-decoration: underline;
  text-decoration-style: solid;
  text-decoration-thickness: 0%;
  text-decoration-skip-ink: auto;
}

.photographer-category-content .profile--type--photographer-profile {
  text-align: center;
  /* gap: 31px; */
}

.photographer-category-content .photographer-item{
  border: 1px solid #ccc;
  padding: 10px;
  position: relative;
}

#views-exposed-form-photographers-by-category-destination-photography .filter-by-wrapper.show {
  padding-left: 30px;
}
#views-exposed-form-photographers-by-category-destination-photography #select-location-button {
  border: 1px solid #ddd;
}

.photographer-item ul li, .field--name-field-studio-name {
    margin-top: 10px !important;
}

/* .photographers-category-listing .photographer-category-content .profile--type--photographer-profile.profile--view-mode--teaser form {
  bottom: 0;
  position: unset !important;
  right: 0;
} */

/* #views-exposed-form-photographers-by-category-destination-photography .js-form-type-select {
  width: 200px;
  height: 45px;
} */

/* Responsive Adjustments */
@media (max-width: 1200px) {
  .photographers-category-listing {
    padding: 50px 30px;
  }

  .photographers-category-listing .view-content {
    gap: 30px;
  }
}

@media (max-width: 992px) {
  .photographers-category-listing {
    padding: 40px 20px;
  }

  .photographers-category-listing .hero-title {
    font-size: 2.5rem;
  }

  .photographers-category-listing .view-content {
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .photographers-category-listing {
    padding: 30px 15px;
  }

  .photographers-category-listing .view-header {
    margin-bottom: 40px;
  }

  .photographers-category-listing .hero-title {
    font-size: 2rem;
  }

  .photographers-category-listing .hero-description p {
    font-size: 0.9375rem;
  }

  /* Single column on mobile */
  .photographers-category-listing .view-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  /* Mobile filter layout */
  .photographers-category-listing .view-filters {
    padding: 0 15px;
  }

  .photographers-category-listing .view-filters form {
    flex-direction: column;
    gap: 15px;
  }

  .photographers-category-listing .view-filters select {
    width: 100%;
    min-width: auto;
  }

  .photographers-category-listing .view-filters .form-actions {
    width: 100%;
    flex-direction: column;
  }

  .photographers-category-listing .view-filters button,
  .photographers-category-listing .view-filters input[type="submit"] {
    width: 100%;
  }
}

@media (max-width: 576px) {
  .photographers-category-listing {
    padding: 20px 15px;
  }

  .photographers-category-listing .view-header {
    margin-bottom: 30px;
  }

  .photographers-category-listing .eyebrow-text {
    font-size: 0.6875rem;
  }

  .photographers-category-listing .hero-subtitle {
    font-size: 0.75rem;
  }

  .photographers-category-listing .hero-title {
    font-size: 1.75rem;
  }

  .photographers-category-listing .hero-description p {
    font-size: 0.875rem;
    line-height: 1.6;
  }

  .photographers-category-listing .photographer-item .field--name-field-studio-name {
    font-size: 1.25rem;
  }

  .photographers-category-listing .view-content {
    gap: 25px;
  }
}
