/*
 * professional-listing.css
 * Compiled from:
 *   frontend-nextjs/src/views/pages/ProfessionalListingPage/Sections/ProfessionalBanner/_professional-banner.scss
 *   frontend-nextjs/src/views/pages/ProfessionalListingPage/Sections/ProfessionalListing/_professional-list.scss
 *   frontend-nextjs/src/components/sections/SubscribeCta/_subscribe_cta.scss (--small variant)
 *
 * Variables resolved:
 *   $secondary      = #19263a
 *   $primary        = #e78125
 *   $white          = #ffffff
 *   $color_shark    = #232528
 *   $color_raven    = #7b7c7e
 *   $font-secondary = "DM Serif Display"
 */

/* ============================================================
   PROFESSIONAL BANNER WRAP
   Source: _professional-banner.scss .professional-banner-wrap
   ============================================================ */
.professional-banner-wrap {
  background: #19263a;
  padding: 100px 0 80px;
}

@media (max-width: 767px) {
  .professional-banner-wrap {
    padding: 60px 0 50px;
  }
}

/* Category selector row — "Premium  Architect ↓" */
.professional-banner-wrap .select-category {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 30px;
  gap: 12px;
}

@media (max-width: 767px) {
  .professional-banner-wrap .select-category {
    flex-wrap: wrap;
    gap: 8px;
  }
}

.professional-banner-wrap .select-category > span {
  font-size: 42px;
  line-height: 115%;
  color: #ffffff;
  font-family:
    "DM Serif Display",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

@media (max-width: 1024px) {
  .professional-banner-wrap .select-category > span {
    font-size: 30px;
  }
}

@media (max-width: 767px) {
  .professional-banner-wrap .select-category > span {
    font-size: 18px;
    width: 100%;
    text-align: center;
  }
}

/* Native <select> styled to match the React select component */
.professional-banner-wrap .select-category .gp-cat-select {
  font-size: 42px;
  line-height: 1.2;
  color: #ffffff;
  font-family:
    "DM Serif Display",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  background: transparent;
  border: 0;
  outline: 0;
  cursor: pointer;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg stroke='%23ffffff' fill='none' stroke-width='2' viewBox='0 0 24 24' stroke-linecap='round' stroke-linejoin='round' width='32' height='32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0 center;
  background-size: 32px;
}

@media (max-width: 1024px) {
  .professional-banner-wrap .select-category .gp-cat-select {
    font-size: 30px;
  }
}

@media (max-width: 767px) {
  .professional-banner-wrap .select-category .gp-cat-select {
    font-size: 18px;
    background-size: 20px;
  }
}

.professional-banner-wrap .select-category .gp-cat-select option {
  color: #232528;
  background: #ffffff;
  font-family: sans-serif;
  font-size: 16px;
}

/* Location selector — "📍 Rajkot" orange button */
.professional-banner-wrap .select-location {
  display: flex;
  justify-content: center;
  padding-bottom: 94px;
}

@media (max-width: 767px) {
  .professional-banner-wrap .select-location {
    padding-bottom: 40px;
  }
}

.professional-banner-wrap .select-location .gp-city-select {
  background: #e78125;
  border: 0;
  border-radius: 5px;
  color: #ffffff;
  font-size: 24px;
  font-weight: 500;
  padding: 8px 16px 8px 40px;
  cursor: pointer;
  outline: 0;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image:
    url("data:image/svg+xml,%3Csvg stroke='%23ffffff' fill='none' stroke-width='2' viewBox='0 0 24 24' stroke-linecap='round' stroke-linejoin='round' width='20' height='20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z'%3E%3C/path%3E%3Ccircle cx='12' cy='10' r='3'%3E%3C/circle%3E%3C/svg%3E"),
    none;
  background-repeat: no-repeat, no-repeat;
  background-position:
    left 10px center,
    right 0 center;
  background-size: 18px, 0;
  min-width: 140px;
}

@media (max-width: 991px) {
  .professional-banner-wrap .select-location .gp-city-select {
    font-size: 20px;
  }
}

@media (max-width: 767px) {
  .professional-banner-wrap .select-location .gp-city-select {
    font-size: 16px;
  }
}

.professional-banner-wrap .select-location .gp-city-select option {
  color: #232528;
  background: #ffffff;
  font-family: sans-serif;
  font-size: 16px;
}

/* Premium professional logo cards */
.professional-banner-wrap .banner-logo-list ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  list-style: none;
  padding: 0;
  margin: 0;
}

.professional-banner-wrap .banner-logo-list ul li {
  width: 459px;
  padding: 0 28px;
}

@media (max-width: 991px) {
  .professional-banner-wrap .banner-logo-list ul li {
    padding: 0 15px;
    width: 50%;
  }
}

@media (max-width: 767px) {
  .professional-banner-wrap .banner-logo-list ul li {
    width: 100%;
    margin-bottom: 20px;
    padding: 0;
  }
}

.professional-banner-wrap .banner-logo-list .banner-logo-box {
  width: 100%;
  height: 299px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border-radius: 8px;
  overflow: hidden;
}

@media (max-width: 767px) {
  .professional-banner-wrap .banner-logo-list .banner-logo-box {
    height: auto;
    padding: 20px;
  }
}

.professional-banner-wrap .banner-logo-list .banner-logo-box img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* ============================================================
   PROFESSIONAL LISTING WRAP
   Source: _professional-list.scss .professional-listing-wrap
   ============================================================ */
.professional-listing-wrap {
  padding: 75px 0;
}

@media (max-width: 767px) {
  .professional-listing-wrap {
    padding-bottom: 40px;
  }
}

.professional-listing-wrap .title-search {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 49px;
}

@media (max-width: 767px) {
  .professional-listing-wrap .title-search {
    padding-bottom: 20px;
    flex-wrap: wrap;
  }
}

.professional-listing-wrap .title-search h2 {
  font-size: 42px;
  line-height: 115%;
  font-weight: 400;
  color: #19263a;
  font-family:
    "DM Serif Display",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  text-transform: capitalize;
  margin: 0;
}

@media (max-width: 767px) {
  .professional-listing-wrap .title-search h2 {
    font-size: 24px;
    width: 100%;
    padding-bottom: 15px;
  }
}

/* Search toggle */
.professional-listing-wrap .search {
  position: relative;
  width: 50px;
  min-width: 50px;
  height: 36px;
  transition: width 0.3s ease-in-out;
  flex-shrink: 0;
}

.professional-listing-wrap .search.active {
  width: 320px;
}

@media (max-width: 767px) {
  .professional-listing-wrap .search {
    width: 100%;
    height: auto;
  }
}

.professional-listing-wrap .search button {
  border: 0;
  background: transparent;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #232528;
  font-size: 24px;
  position: absolute;
  right: 0;
  top: 50%;
  margin-top: -18px;
  z-index: 2;
  cursor: pointer;
}

@media (max-width: 767px) {
  .professional-listing-wrap .search button {
    font-size: 20px;
    width: 30px;
    height: 30px;
    right: 5px;
  }
}

.professional-listing-wrap .search-input {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.3s ease-in-out;
}

@media (max-width: 767px) {
  .professional-listing-wrap .search-input {
    position: static;
    transform: none;
    width: 100%;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
}

.professional-listing-wrap .search-input .form-control {
  padding-right: 40px;
}

.professional-listing-wrap .search-input.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Professional card grid */
.professional-list ul {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -15px;
  list-style: none;
  padding: 0;
  width: 100%;
}

.professional-list ul li {
  width: 33.33%;
  padding: 0 15px 30px;
  flex: 1 1 auto;
  max-width: 500px;
  box-sizing: border-box;
}

@media (max-width: 991px) {
  .professional-list ul li {
    width: 50%;
  }
}

@media (max-width: 767px) {
  .professional-list ul li {
    width: 100%;
    padding-bottom: 12px;
  }
}

.professional-list ul li.w-100 {
  width: 100%;
  max-width: none;
  flex: none;
}

.professional-list-box {
  border: 1px solid rgba(123, 124, 126, 0.2);
  border-radius: 4px;
  padding: 25px 29px;
  height: 100%;
  display: block;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.3s ease-in-out;
}

.professional-list-box:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

@media (max-width: 767px) {
  .professional-list-box {
    display: flex;
    padding: 12px;
  }
}

.professional-list-box .img {
  width: 100%;
  height: 190px;
  overflow: hidden;
  border-radius: 4px;
  margin-bottom: 24px;
}

.professional-list-box .img img {
  width: 100%;
  height: 100%;
  max-width: none;
  display: block;
  object-fit: cover;
}

@media (max-width: 767px) {
  .professional-list-box .img {
    margin-bottom: 0;
    width: 60px;
    height: 60px;
    margin-right: 15px;
    flex-shrink: 0;
  }
}

.professional-list-box .txt {
  flex: 1;
}

.professional-list-box h4 {
  font-size: 22px;
  line-height: 116%;
  font-weight: 500;
  color: #232528;
  padding-bottom: 6px;
  margin: 0;
}

@media (max-width: 767px) {
  .professional-list-box h4 {
    font-size: 16px;
  }
}

.professional-list-box .tag {
  font-size: 16px;
  line-height: 150%;
  font-weight: 500;
  color: #7b7c7e;
}

@media (max-width: 767px) {
  .professional-list-box .tag {
    font-size: 12px;
  }
}

/* Pagination */
.professional-list .pagination-container {
  margin-bottom: 30px;
  margin-top: 16px;
  text-align: center;
  width: 100%;
}

.professional-list .pagination-container .wrapper {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.pagination-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(123, 124, 126, 0.3);
  border-radius: 4px;
  background: #ffffff;
  color: #232528;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

.pagination-button:hover {
  background: #e78125;
  color: #ffffff;
  border-color: #e78125;
}

.pagination-button.active {
  background: #19263a;
  color: #ffffff;
  border-color: #19263a;
  pointer-events: none;
}

.pagination-button.disabled {
  opacity: 0.4;
  pointer-events: none;
  cursor: default;
}

.pagination-ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: #7b7c7e;
  font-size: 14px;
}

/* Subscribe small (inline inside listing) */
.professional-list .subscribe-banner--small {
  width: 100%;
  margin-top: 8px;
}

/* Flex column so subscribe + pagination stack */
.professional-list {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Loading skeleton for listing */
.professional-list .skeleton-loader {
  width: 100%;
  margin-bottom: 12px;
}

/* ============================================================
   HOME DESIGNS SLIDER ARROWS
   Source: professionals.css / _full_block_slider.scss .block-slider-arrow
   These are NOT in blog.css so must be included here for the listing page.
   ============================================================ */
.home-design-white-section .block-slider-arrow {
  position: absolute;
  width: 48px;
  height: 48px;
  top: 50%;
  margin-top: -24px;
  font-size: 24px;
  background: #e78125;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  box-shadow: 0px 10px 16px #eed3b9;
  border-radius: 100%;
  transition: all 0.3s ease-in-out;
  cursor: pointer;
}

.home-design-white-section .block-slider-arrow:hover {
  background: #c9671a;
}

.home-design-white-section .block-slider-arrow--left {
  left: -4px;
}

.home-design-white-section .block-slider-arrow--right {
  right: -4px;
}

@media (max-width: 1440px) {
  .home-design-white-section .block-slider-arrow--left {
    left: 10px;
  }
  .home-design-white-section .block-slider-arrow--right {
    right: 10px;
  }
}

@media (max-width: 767px) {
  .home-design-white-section .block-slider-arrow {
    display: none;
  }
}

.home-design-white-section .block-slider-arrow.swiper-button-disabled {
  opacity: 0;
  pointer-events: none;
}

/* Home Designs swiper on listing page */
/* .home-design-white-section .gp-homedesigns-listing-swiper {
  overflow: hidden;
} */

/* Quick-link CTA wrap */
.quick-link-cta-wrap {
  display: flex;
  flex-direction: column;
}
.pem .gp-select-selected {
  background-color: transparent;
  padding: 16px 65px 16px 0px;
  font-size: 42px;
  color: white;
  box-shadow: none;
}

.professional-banner-wrap .gp-custom-select .gp-select-chevron {
  color: white;
}

/* Z-index management: lift parent row when dropdown is open */
.professional-banner-wrap .select-category.gp-row-open,
.professional-banner-wrap .select-location.gp-row-open {
  position: relative;
  z-index: 10001;
}

.professional-banner-wrap .select-category {
  position: relative;
  z-index: 2;
}

.professional-banner-wrap .select-location {
  position: relative;
  z-index: 1;
}

@media (max-width: 1024px) {
  .pem .gp-select-selected {
    font-size: 30px;
  }
}

@media (max-width: 767px) {
  .pem .gp-select-selected {
    font-size: 18px;
    padding: 8px 40px 8px 0;
  }
}
