/* =========================================
   Wedding Planner Plugin - Frontend CSS
   ========================================= */

:root {
  --wp-primary:    #e91e8c;
  --wp-secondary:  #c0392b;
  --wp-gradient:   linear-gradient(135deg, #c0392b, #e91e8c);
  --wp-dark:       #2c2c2c;
  --wp-light:      #f9f0f4;
  --wp-white:      #ffffff;
  --wp-text:       #444;
  --wp-border:     #e8d5e0;
  --wp-shadow:     0 4px 20px rgba(233, 30, 140, .15);
  --wp-radius:     12px;
  --wp-transition: .3s ease;
  /* Star / rating colour */
  --wp-star:       #f59e0b;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---- Search Section ---- */
.wp-wedding-search-section {
  position: relative;
  padding: 80px 20px;
  text-align: center;
  overflow: hidden;
}

.wp-wedding-search-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Cpath d='M30 5 L35 20 L50 20 L38 29 L43 44 L30 35 L17 44 L22 29 L10 20 L25 20Z' fill='rgba(255,255,255,.05)'/%3E%3C/svg%3E");
  pointer-events: none;
}

.search-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.search-title {
  color: #fff;
  font-size: clamp(1.6rem, 4vw, 2.5rem);
  margin-bottom: 12px;
  font-weight: 700;
}

.search-subtitle {
  color: rgba(255, 255, 255, .85);
  font-size: 1.1rem;
  margin-bottom: 36px;
}

.vendor-search-form {
  background: #fff;
  border-radius: var(--wp-radius);
  padding: 24px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, .2);
}

.search-fields {
  display: flex;
  gap: 16px;
  align-items: flex-end;
  flex-wrap: wrap;
}

.search-field {
  flex: 1;
  min-width: 200px;
  text-align: left;
}

.search-field label {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  color: #666;
  margin-bottom: 6px;
}

.search-field select,
.search-field input[type="text"] {
  width: 100%;
  padding: 3px 8px;
  border: 2px solid var(--wp-border);
  border-radius: 8px;
  font-size: 1rem;
  color: var(--wp-dark);
  transition: border-color var(--wp-transition);
  background: #fff;
}

.search-field select:focus,
.search-field input[type="text"]:focus {
  border-color: var(--wp-primary);
  outline: none;
}

.search-btn-wrap {
  flex: 0 0 auto;
}

.btn-search {
  width: 100%;
  padding: 12px 32px;
  background: var(--wp-gradient);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity var(--wp-transition);
  white-space: nowrap;
}

.btn-search:hover {
  opacity: .9;
}

/* ---- Section Title ---- */
.section-title {
  text-align: center;
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: var(--wp-dark);
  margin-bottom: 36px;
  font-weight: 700;
  position: relative;
  padding-bottom: 12px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--wp-gradient);
  border-radius: 2px;
}

/* ---- Vendor Grid ---- */
.wp-wedding-vendor-section,
.wp-wedding-slider-section {
  padding: 60px 0;
}

.vendor-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.vendor-grid.columns-2 {
  grid-template-columns: repeat(2, 1fr);
}

.vendor-grid.columns-3 {
  grid-template-columns: repeat(3, 1fr);
}

.vendor-grid.columns-4 {
  grid-template-columns: repeat(4, 1fr);
}

/* ---- Vendor Card ---- */
.vendor-card {
  background: #fff;
  border-radius: var(--wp-radius);
  box-shadow: 0 2px 12px rgba(0, 0, 0, .08);
  overflow: hidden;
  transition: transform var(--wp-transition), box-shadow var(--wp-transition);
  position: relative;
}

.vendor-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--wp-shadow);
}

.vendor-card.featured-vendor {
  border: 2px solid var(--wp-primary);
}

.featured-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  background: var(--wp-gradient);
  color: #fff;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: .75rem;
  font-weight: 600;
}

/* ---- Vendor Card Slider ---- */
.vendor-card-slider {
  position: relative;
  width: 100%;
  height: 210px;
  overflow: hidden;
  border-radius: var(--wp-radius) var(--wp-radius) 0 0;
  background: #f0e6ee;
}

.vcard-slides {
  display: flex;
  height: 100%;
  transition: none;
}

.vcard-slide {
  display: none;
  width: 100%;
  height: 100%;
  flex-shrink: 0;
}

.vcard-slide.active {
  display: block;
}

.vcard-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--wp-transition);
}

.vendor-card:hover .vcard-slide.active img {
  transform: scale(1.04);
}

/* Prev / Next arrows on card */
.vcard-prev,
.vcard-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,.85);
  border: none;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  opacity: 0;
  transition: opacity var(--wp-transition);
  font-size: .75rem;
  color: var(--wp-primary);
  padding: 0;
}

.vcard-prev { left: 8px; }
.vcard-next { right: 8px; }

.vendor-card:hover .vcard-prev,
.vendor-card:hover .vcard-next {
  opacity: 1;
}

.vcard-prev:hover,
.vcard-next:hover {
  background: var(--wp-primary);
  color: #fff;
}

/* Dots on card */
.vcard-dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 5px;
  z-index: 5;
}

.vcard-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,.55);
  cursor: pointer;
  transition: background var(--wp-transition), transform var(--wp-transition);
}

.vcard-dot.active {
  background: #fff;
  transform: scale(1.3);
}

/* ---- Card Meta Row (rating + price) ---- */
.vendor-card-meta-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 8px 0 14px;
  flex-wrap: wrap;
}

/* ---- Rating Badge — beautiful pill card ---- */
.vendor-card-rating {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: linear-gradient(135deg, #fff8e1, #fffde7);
  border: 1.5px solid #fcd34d;
  border-radius: 30px;
  padding: 4px 10px 4px 8px;
  box-shadow: 0 2px 6px rgba(245, 158, 11, .18);
}

.vendor-card-rating .rating-stars {
  display: inline-flex;
  align-items: center;
  gap: 1px;
  line-height: 1;
}

.vendor-card-rating .rating-stars i {
  font-size: .75rem;
  color: var(--wp-star);
  -webkit-text-stroke: 0;
  filter: drop-shadow(0 1px 1px rgba(245,158,11,.3));
}

.vendor-card-rating .rating-score {
  font-size: .82rem;
  font-weight: 700;
  color: #92400e;
  margin-left: 2px;
  letter-spacing: -.2px;
}

/* Dark badge variant: shown when rating >= 4 */
.vendor-card-rating.top-rated {
  background: linear-gradient(135deg, #f59e0b, #f97316);
  border-color: #f59e0b;
}

.vendor-card-rating.top-rated .rating-stars i {
  color: #fff;
  filter: none;
}

.vendor-card-rating.top-rated .rating-score {
  color: #fff;
}

.vendor-card-price {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: .82rem;
  font-weight: 700;
  color: var(--wp-primary);
  background: var(--wp-light);
  border-radius: 30px;
  padding: 4px 10px;
  border: 1.5px solid var(--wp-border);
}

.vendor-card-price i {
  font-size: .72rem;
}

.vendor-card-body {
  padding: 16px;
}

.vendor-category {
  font-size: .78rem;
  color: var(--wp-primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .5px;
}

.vendor-category i {
  margin-right: 4px;
}

.vendor-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--wp-dark);
  margin: 8px 0 4px;
}

.vendor-name a {
  color: inherit;
  text-decoration: none;
}

.vendor-name a:hover {
  color: var(--wp-primary);
}

.vendor-city {
  font-size: .85rem;
  color: #888;
  margin: 0 0 8px;
}

.vendor-city i {
  color: var(--wp-primary);
  margin-right: 4px;
}

.vendor-excerpt {
  font-size: .875rem;
  color: #666;
  margin-bottom: 14px;
  line-height: 1.5;
}

.vendor-card-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.btn-action {
  flex: 1;
  padding: 8px 10px;
  border-radius: 6px;
  font-size: .8rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  transition: all var(--wp-transition);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.btn-call {
  background: #e8f5e9;
  color: #388e3c;
}

.btn-call:hover {
  background: #388e3c;
  color: #fff;
}

.btn-whatsapp {
  background: #e8f5e9;
  color: #25d366;
}

.btn-whatsapp:hover {
  background: #25d366;
  color: #fff;
}

.btn-details {
  background: var(--wp-light);
  color: var(--wp-primary);
}

.btn-details:hover {
  background: var(--wp-gradient);
  color: #fff;
}

/* ---- Category Grid ---- */
.wp-wedding-categories {
  padding: 60px 0;
}

.category-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
}

.category-grid.columns-4 {
  grid-template-columns: repeat(4, 1fr);
}

.category-grid.columns-5 {
  grid-template-columns: repeat(5, 1fr);
}

.category-grid.columns-7 {
  grid-template-columns: repeat(7, 1fr);
}

.category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  background: #fff;
  border-radius: var(--wp-radius);
  box-shadow: 0 2px 10px rgba(0, 0, 0, .07);
  text-decoration: none;
  transition: all var(--wp-transition);
  border: 2px solid transparent;
  text-align: center;
}

.category-card:hover {
  border-color: var(--wp-primary);
  transform: translateY(-3px);
  box-shadow: var(--wp-shadow);
}

.cat-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--wp-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  transition: all var(--wp-transition);
}

.cat-icon i {
  font-size: 1.5rem;
  color: var(--wp-primary);
}

.category-card:hover .cat-icon {
  background: var(--wp-gradient);
}

.category-card:hover .cat-icon i {
  color: #fff;
}

.cat-name {
  font-size: .9rem;
  font-weight: 700;
  color: var(--wp-dark);
  margin: 0 0 4px;
}

.cat-count {
  font-size: .78rem;
  color: #999;
}

/* ---- Swiper Slider ---- */
.vendor-swiper {
  padding-bottom: 50px !important;
  overflow: hidden;
}

.vendor-swiper .swiper-button-prev,
.vendor-swiper .swiper-button-next {
  color: var(--wp-primary);
  background: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .15);
}


 select {
  background-color: #9b701f!important;
 }


.vendor-swiper .swiper-button-prev::after,
.vendor-swiper .swiper-button-next::after {
  font-size: 14px;
  font-weight: 700;
}

.vendor-swiper .swiper-pagination-bullet-active {
  background: var(--wp-primary);
}

/* ---- Listing Page ---- */
.listing-page-header {
  background: linear-gradient(135deg, #c0392b, #e91e8c);
  padding: 36px 0;
  color: #fff;
}

.listing-page-header .page-title {
  font-size: 2rem;
  margin: 0;
  font-weight: 700;
  line-height: 1.2;
}

.listing-filter-bar {
  background: #fff;
  border-radius: var(--wp-radius);
  padding: 20px 24px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .08);
  margin: 28px 0;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.vendor-filter-form {
  flex: 1;
}

.filter-row {
  display: flex;
  gap: 12px;
  align-items: flex-end;
  flex-wrap: wrap;
}

.filter-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.filter-field label {
  font-size: .8rem;
  font-weight: 600;
  color: #666;
}

.filter-field select {
  padding: 10px 14px;
  border: 2px solid var(--wp-border);
  border-radius: 8px;
  font-size: .9rem;
}

.btn-filter {
  padding: 10px 24px;
  background: linear-gradient(135deg, #c0392b, #e91e8c);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity var(--wp-transition);
  white-space: nowrap;
}

.btn-filter:hover {
  opacity: .88;
}

/* Clear filter × button */
.btn-filter-clear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: #fce4ec;
  color: #c62828;
  text-decoration: none;
  font-size: .9rem;
  transition: all var(--wp-transition);
  vertical-align: middle;
  margin-left: 6px;
  border: 1.5px solid #f8bbd0;
}

.btn-filter-clear:hover {
  background: #c62828;
  color: #fff;
  border-color: #c62828;
}

/* Filter fields inline row */
.filter-btn-wrap {
  display: flex;
  align-items: flex-end;
  gap: 6px;
}

.result-count {
  font-size: .875rem;
  color: #888;
  white-space: nowrap;
}

.no-vendors-found {
  text-align: center;
  padding: 80px 20px;
}

.no-vendors-icon {
  font-size: 4rem;
  color: #ddd;
  margin-bottom: 16px;
}

.no-vendors-found h3 {
  font-size: 1.5rem;
  color: #888;
  margin-bottom: 12px;
}

.btn-browse {
  display: inline-block;
  padding: 12px 28px;
  background: var(--wp-gradient);
  color: #fff;
  border-radius: 25px;
  text-decoration: none;
  margin-top: 16px;
}

.wp-wedding-listing-page {
  padding-bottom: 60px;
}

.wedding-pagination-wrap {
  text-align: center;
  margin-top: 40px;
}

.wedding-pagination-wrap .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 2px solid var(--wp-border);
  text-decoration: none;
  color: var(--wp-dark);
  font-weight: 600;
  margin: 0 3px;
  transition: all var(--wp-transition);
}

.wedding-pagination-wrap .page-numbers.current,
.wedding-pagination-wrap .page-numbers:hover {
  background: var(--wp-gradient);
  color: #fff;
  border-color: transparent;
}

/* ---- Single Vendor Hero Slider ---- */
.vendor-hero-slider {
  position: relative;
  width: 100%;
  height: 480px;
  overflow: hidden;
  background: #1a1a1a;
}

.vhs-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.vhs-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity .7s ease;
  z-index: 1;
}

.vhs-slide.active {
  opacity: 1;
  z-index: 2;
}

.vhs-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,.15), rgba(0,0,0,.65));
  display: flex;
  align-items: flex-end;
  padding-bottom: 40px;
  z-index: 3;
}

.vhs-overlay .container {
  width: 100%;
}

.vendor-hero-title {
  color: #fff;
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  margin: 8px 0;
}

.vendor-hero-meta {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  align-items: center;
}

.vendor-hero-meta span {
  color: rgba(255,255,255,.9);
  font-size: .9rem;
}

.vendor-hero-meta span i {
  color: #ffc107;
  margin-right: 4px;
}

.hero-rating {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: #ffc107 !important;
  font-weight: 600;
}

.hero-rating i {
  color: #ffc107 !important;
  font-size: .9rem;
}

.vendor-hero-slider .breadcrumb {
  color: rgba(255,255,255,.75);
  margin-bottom: 8px;
}

.vendor-hero-slider .breadcrumb a {
  color: rgba(255,255,255,.75);
  text-decoration: none;
}

/* Slider nav */
.vhs-prev,
.vhs-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(255,255,255,.2);
  border: 2px solid rgba(255,255,255,.5);
  color: #fff;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  transition: background var(--wp-transition);
  padding: 0;
}

.vhs-prev { left: 20px; }
.vhs-next { right: 20px; }

.vhs-prev:hover,
.vhs-next:hover {
  background: var(--wp-primary);
  border-color: var(--wp-primary);
}

/* Dots */
.vhs-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.vhs-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,.45);
  cursor: pointer;
  transition: background var(--wp-transition), transform var(--wp-transition);
  border: none;
}

.vhs-dot.active {
  background: #fff;
  transform: scale(1.3);
}

.vendor-detail-container {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 28px;
  padding: 36px 20px;
}

.vendor-section {
  background: #fff;
  border-radius: var(--wp-radius);
  padding: 28px;
  margin-bottom: 24px;
}

.section-heading {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--wp-dark);
  margin: 0 0 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--wp-light);
}

.section-heading i {
  color: var(--wp-primary);
  margin-right: 8px;
}

/* Contact Bar */
.vendor-contact-bar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.contact-btn {
  flex: 1;
  min-width: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 12px;
  border-radius: var(--wp-radius);
  text-decoration: none;
  transition: all var(--wp-transition);
  text-align: center;
}

.contact-btn i {
  font-size: 1.4rem;
  margin-bottom: 4px;
}

.contact-btn span {
  font-weight: 700;
  font-size: .9rem;
}

.contact-btn small {
  font-size: .75rem;
  opacity: .8;
}

.btn-call {
  background: #e8f5e9;
  color: #388e3c;
}

.btn-call:hover {
  background: #388e3c;
  color: #fff;
}

.btn-whatsapp {
  background: #e8f5e9;
  color: #25d366;
}

.btn-whatsapp:hover {
  background: #25d366;
  color: #fff;
}

.btn-email {
  background: #e3f2fd;
  color: #1976d2;
}

.btn-email:hover {
  background: #1976d2;
  color: #fff;
}

.btn-website {
  background: var(--wp-light);
  color: var(--wp-primary);
}

.btn-website:hover {
  background: var(--wp-gradient);
  color: #fff;
}

/* Gallery */
.vendor-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
}

.vendor-gallery-grid a {
  display: block;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  aspect-ratio: 4/3;
}

.vendor-gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--wp-transition);
}

.vendor-gallery-grid a:hover img {
  transform: scale(1.05);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(233, 30, 140, .6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--wp-transition);
}

.gallery-overlay i {
  color: #fff;
  font-size: 1.5rem;
}

.vendor-gallery-grid a:hover .gallery-overlay {
  opacity: 1;
}

/* Services */
.services-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}

.services-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .9rem;
  color: var(--wp-text);
}

.services-list li i {
  color: var(--wp-primary);
  flex-shrink: 0;
}

/* Location */
.location-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.vendor-address p {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 12px;
  font-size: .9rem;
  color: var(--wp-text);
}

.vendor-address i {
  color: var(--wp-primary);
  width: 16px;
  flex-shrink: 0;
  margin-top: 2px;
}

.vendor-address a {
  color: var(--wp-primary);
  text-decoration: none;
}

.vendor-map iframe {
  border-radius: 8px;
  width: 100%;
}

/* Enquiry Form */
.wp-wedding-enquiry-form {}

.wp-wedding-enquiry-form h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--wp-dark);
  margin-bottom: 20px;
}

.enquiry-form .form-group {
  margin-bottom: 16px;
}

.enquiry-form label {
  display: block;
  font-size: .875rem;
  font-weight: 600;
  color: #555;
  margin-bottom: 6px;
}

.enquiry-form .required {
  color: var(--wp-primary);
}

.enquiry-form input,
.enquiry-form textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--wp-border);
  border-radius: 8px;
  font-size: 1rem;
  color: var(--wp-dark);
  transition: border-color var(--wp-transition);
  font-family: inherit;
}

.enquiry-form input:focus,
.enquiry-form textarea:focus {
  border-color: var(--wp-primary);
  outline: none;
}

.enquiry-form textarea {
  resize: vertical;
}

.btn-submit {
  width: 100%;
  padding: 14px;
  background: var(--wp-gradient);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity var(--wp-transition);
}

.btn-submit:hover {
  opacity: .9;
}

.form-response {
  margin-bottom: 12px;
  padding: 12px 16px;
  border-radius: 8px;
  display: none;
  font-weight: 500;
}

.form-response.success {
  background: #e8f5e9;
  color: #388e3c;
  display: block;
}

.form-response.error {
  background: #fce4ec;
  color: #c62828;
  display: block;
}

/* Sidebar */
.sidebar-card {
  background: #fff;
  border-radius: var(--wp-radius);
  padding: 20px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .08);
  margin-bottom: 20px;
}

.sidebar-card h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--wp-dark);
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--wp-light);
}

.quick-info-list {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
}

.quick-info-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--wp-light);
  font-size: .875rem;
  color: var(--wp-text);
}

.quick-info-list li i {
  color: var(--wp-primary);
  width: 16px;
}

.quick-info-list li a {
  color: var(--wp-primary);
  text-decoration: none;
}

.sidebar-action-btns {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sidebar-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: .9rem;
  transition: all var(--wp-transition);
}

.sidebar-btn.btn-call {
  background: #e8f5e9;
  color: #388e3c;
}

.sidebar-btn.btn-call:hover {
  background: #388e3c;
  color: #fff;
}

.sidebar-btn.btn-whatsapp {
  background: #e8f5e9;
  color: #25d366;
}

.sidebar-btn.btn-whatsapp:hover {
  background: #25d366;
  color: #fff;
}

.sidebar-btn.btn-enquiry {
  background: var(--wp-gradient);
  color: #fff;
}

.related-vendor-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.related-vendor-list li {
  border-bottom: 1px solid var(--wp-light);
}

.related-vendor-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  text-decoration: none;
  color: var(--wp-dark);
  transition: color var(--wp-transition);
}

.related-vendor-item:hover {
  color: var(--wp-primary);
}

.related-vendor-item img {
  width: 50px;
  height: 50px;
  border-radius: 8px;
  object-fit: cover;
}

.related-vendor-item span {
  font-size: .875rem;
  font-weight: 500;
}

/* Sidebar Enquiry Card */
.sidebar-enquiry-card {
  position: sticky;
  top: 20px;
}

.sidebar-enquiry-card .wp-wedding-enquiry-form h3 {
  font-size: 1.1rem;
  margin-bottom: 16px;
}

.sidebar-enquiry-card .enquiry-form input,
.sidebar-enquiry-card .enquiry-form textarea {
  padding: 10px 12px;
  font-size: .9rem;
}

.sidebar-enquiry-card .enquiry-form textarea {
  min-height: 80px;
}

/* No vendors */
.no-vendors {
  text-align: center;
  padding: 40px;
  color: #888;
  font-size: 1rem;
}

/* =========================================
   Responsive
   ========================================= */
@media (max-width: 1024px) {
  .vendor-detail-container {
    grid-template-columns: 1fr 300px;
  }

  .vendor-grid.columns-4 {
    grid-template-columns: repeat(3, 1fr);
  }

  .category-grid.columns-7 {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 768px) {

  .vendor-detail-container {
    grid-template-columns: 1fr;
  }

  .vendor-hero-slider {
    height: 300px;
  }

  .vendor-grid.columns-3,
  .vendor-grid.columns-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .category-grid.columns-4,
  .category-grid.columns-5 {
    grid-template-columns: repeat(3, 1fr);
  }

  .search-fields {
    flex-direction: column;
  }

  .search-field {
    min-width: 100%;
  }

  .vendor-contact-bar {
    gap: 8px;
  }

  .contact-btn {
    min-width: 80px;
    padding: 12px 8px;
  }

  .location-wrap {
    grid-template-columns: 1fr;
  }

  .services-list {
    grid-template-columns: 1fr;
  }

  .listing-filter-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-row {
    flex-direction: column;
  }
}

@media (max-width: 480px) {

  .vendor-grid.columns-2,
  .vendor-grid.columns-3,
  .vendor-grid.columns-4 {
    grid-template-columns: 1fr;
  }

  .category-grid.columns-3,
  .category-grid.columns-4,
  .category-grid.columns-5,
  .category-grid.columns-7 {
    grid-template-columns: repeat(2, 1fr);
  }

  .vendor-hero-slider {
    height: 260px;
  }

  .vendor-contact-bar {
    flex-direction: column;
  }
}

/* =========================================
   WoodMart Theme Compatibility
   (Keeps plugin styles isolated so WoodMart
    global resets do not break the plugin UI)
   ========================================= */

/* Buttons — WoodMart forces its own button styles; re-assert plugin styles */
.wp-wedding-search-section .btn-search,
.wp-wedding-listing-page .btn-filter,
.wp-wedding-vendor-section .btn-action,
.wp-wedding-slider-section .btn-action,
.wp-wedding-single-vendor .btn-submit,
.wp-wedding-single-vendor .contact-btn,
.wp-wedding-single-vendor .sidebar-btn {
  font-family: inherit;
  letter-spacing: normal;
  text-transform: none;
  border-radius: 8px;
}

/* WoodMart sets select height via its own CSS; override for plugin selects */
.wp-wedding-search-section select,
.wp-wedding-listing-page select {
  height: auto !important;
  line-height: normal !important;
  padding: 10px 14px !important;
  border-radius: 8px !important;
  background-image: none !important;      /* remove WoodMart arrow SVG */
  -webkit-appearance: auto !important;
  appearance: auto !important;
}

/* Input / Textarea */
.wp-wedding-enquiry-form input,
.wp-wedding-enquiry-form textarea {
  border-radius: 8px !important;
  box-shadow: none !important;
  background: #fff !important;
}

/* WoodMart content area sometimes sets max-width on images inside the loop */
.vendor-card-slider img,
.vendor-gallery-grid img,
.related-vendor-item img,
.vendor-hero-slider .vhs-slide {
  max-width: none !important;
}

/* WoodMart lazy-load wrapper can add extra padding */
.vendor-card-slider .vcard-slide a,
.vendor-card-slider .vcard-slide img {
  display: block !important;
  height: 100% !important;
  width: 100% !important;
}

/* Ensure Font Awesome icons load correctly (WoodMart bundles its own) */
.wp-wedding-search-section .fas,
.wp-wedding-search-section .far,
.wp-wedding-search-section .fab,
.wp-wedding-vendor-section .fas,
.wp-wedding-vendor-section .far,
.wp-wedding-vendor-section .fab,
.wp-wedding-listing-page .fas,
.wp-wedding-listing-page .far,
.wp-wedding-single-vendor .fas,
.wp-wedding-single-vendor .far,
.wp-wedding-single-vendor .fab {
  font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands", FontAwesome !important;
}

/* WoodMart product grid sometimes leaks padding into custom CPT grids */
.vendor-grid .vendor-card,
.swiper-slide .vendor-card {
  padding: 0 !important;          /* reset any WoodMart product-item padding */
  margin: 0 !important;
}

/* Fix WoodMart removing link decoration on hover for our cards */
.vendor-card .vendor-name a:hover,
.related-vendor-item:hover {
  text-decoration: none !important;
}

/* --wp-gradient shorthand used throughout plugin; ensure it resolves */
.btn-search,
.btn-filter,
.btn-submit,
.btn-browse,
.sidebar-btn.btn-enquiry,
.featured-badge,
.listing-page-header,
.section-title::after,
.cat-icon,
.category-card:hover .cat-icon,
.vendor-swiper .swiper-pagination-bullet-active {
  --wp-gradient: linear-gradient(135deg, #c0392b, #e91e8c);
}

.btn-search,
.btn-filter,
.btn-submit,
.btn-browse,
.sidebar-btn.btn-enquiry {
  background: var(--wp-gradient);
  background-image: linear-gradient(135deg, #c0392b, #e91e8c);
}

.listing-page-header {
  background: linear-gradient(135deg, #c0392b, #e91e8c);
}

.section-title::after,
.category-card:hover .cat-icon {
  background: linear-gradient(135deg, #c0392b, #e91e8c);
}

/* ---- City taxonomy label in admin sidebar (visual clarity) ---- */
/* (no frontend effect — just ensures the city tag style on cards) */
.vendor-city-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: .78rem;
  color: #666;
  background: #f5f5f5;
  border-radius: 20px;
  padding: 2px 8px;
  margin-top: 4px;
}


/* =========================================
   Vendor Extra Fields: Experience, Languages
   (card level — only shown when admin fills them)
   ========================================= */

.vendor-experience,
.vendor-languages {
  font-size: .82rem;
  color: #666;
  margin: 3px 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.vendor-experience i,
.vendor-languages i {
  color: var(--wp-primary);
  width: 14px;
  flex-shrink: 0;
}

/* =========================================
   Highlights Section — single vendor page
   (Experience / Specialization / Languages)
   ========================================= */

.vendor-highlights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.highlight-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--wp-light);
  border-radius: 10px;
  padding: 16px 18px;
  border-left: 4px solid var(--wp-primary);
  transition: box-shadow var(--wp-transition);
}

.highlight-item:hover {
  box-shadow: var(--wp-shadow);
}

.highlight-icon {
  width: 42px;
  height: 42px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(233, 30, 140, .15);
}

.highlight-icon i {
  color: var(--wp-primary);
  font-size: 1rem;
}

.highlight-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.highlight-label {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: #999;
}

.highlight-value {
  font-size: .95rem;
  font-weight: 600;
  color: var(--wp-dark);
  line-height: 1.4;
}

@media (max-width: 480px) {
  .vendor-highlights-grid {
    grid-template-columns: 1fr;
  }
}
