/* ===================================================================
   CUSTOMER MARKETPLACE STYLING (mydharmshala.com)
   Spiritual Sanctum & Modern Travel Aggregator Aesthetic
   =================================================================== */

.market-header {
  background: linear-gradient(180deg, #1c1917 0%, #2e1a12 50%, #451a03 100%);
  color: white;
  padding: 48px 24px 60px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(69, 26, 3, 0.2);
}

.market-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(234, 179, 8, 0.12) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.7;
}

.market-header-content {
  max-width: 1140px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  text-align: center;
}

.market-title {
  font-family: var(--font-serif);
  font-size: 42px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.market-title span {
  color: var(--gold-400);
}

.market-subtitle {
  font-size: 16px;
  color: #fed7aa;
  max-width: 650px;
  margin: 0 auto 32px;
  font-weight: 400;
}

/* Holy Shrines Quick Bar */
.shrine-pills-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.shrine-pill {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(254, 215, 170, 0.3);
  color: #ffedd5;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 6px;
}

.shrine-pill:hover, .shrine-pill.active {
  background: var(--gold-500);
  color: var(--stone-900);
  border-color: var(--gold-400);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(234, 179, 8, 0.3);
}

/* Aggregator Search Widget */
.search-widget-card {
  background: #ffffff;
  border-radius: var(--radius-xl);
  padding: 16px 24px;
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-subtle);
  display: grid;
  grid-template-columns: 1.8fr 1.2fr 1.2fr 1.2fr 1fr;
  gap: 16px;
  align-items: center;
  max-width: 1080px;
  margin: 0 auto -90px;
  position: relative;
  z-index: 10;
  color: var(--text-primary);
  text-align: left;
}

.search-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.search-field label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--stone-500);
  letter-spacing: 0.5px;
}

.search-field input, .search-field select {
  border: 1px solid var(--stone-200);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  font-size: 14px;
  color: var(--stone-900);
  outline: none;
  transition: var(--transition-fast);
  background: var(--stone-50);
}

.search-field input:focus, .search-field select:focus {
  border-color: var(--saffron-500);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(221, 107, 32, 0.15);
}

/* Main Container */
.market-main {
  max-width: 1200px;
  margin: 110px auto 60px;
  padding: 0 24px;
}

/* Filter Sub-bar */
.market-controls-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
}

.filter-tags {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-chip {
  background: white;
  border: 1px solid var(--stone-300);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  color: var(--stone-700);
  cursor: pointer;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 6px;
}

.filter-chip.active {
  background: var(--saffron-100);
  border-color: var(--saffron-500);
  color: var(--saffron-800);
}

/* Dharmshala Cards Grid */
.dharmshala-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 28px;
}

.dharmshala-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-subtle);
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.dharmshala-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: var(--saffron-300);
}

.card-img-wrapper {
  position: relative;
  height: 210px;
  overflow: hidden;
  background: var(--stone-800);
}

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

.dharmshala-card:hover .card-img-wrapper img {
  transform: scale(1.05);
}

.card-shrine-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(12, 10, 9, 0.85);
  backdrop-filter: blur(4px);
  color: var(--gold-300);
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  letter-spacing: 0.5px;
}

.card-trust-verified {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #15803d;
  color: white;
  font-size: 10px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 4px;
}

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

.card-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 6px;
}

.card-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--stone-900);
  line-height: 1.3;
}

.card-rating {
  background: var(--gold-400);
  color: var(--stone-900);
  font-weight: 800;
  font-size: 12px;
  padding: 2px 7px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 2px;
}

.card-location {
  font-size: 13px;
  color: var(--stone-500);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.card-rules-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.rule-chip {
  background: var(--stone-100);
  color: var(--stone-700);
  font-size: 11px;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 4px;
}

.card-footer {
  margin-top: auto;
  border-top: 1px solid var(--stone-100);
  padding-top: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-price-block .from-label {
  font-size: 11px;
  color: var(--stone-500);
  display: block;
}

.card-price-block .price-val {
  font-size: 20px;
  font-weight: 800;
  color: var(--stone-900);
}

.card-price-block .price-val span {
  font-size: 12px;
  font-weight: 400;
  color: var(--stone-500);
}

/* Category Selection Drawer */
.category-selection-card {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--stone-50);
  transition: var(--transition-fast);
}

.category-selection-card:hover {
  background: white;
  border-color: var(--saffron-400);
}

.category-selection-card.selected {
  background: var(--saffron-50);
  border-color: var(--saffron-500);
  box-shadow: 0 0 0 2px rgba(221, 107, 32, 0.2);
}

/* Booking Voucher Preview */
.voucher-box {
  background: #fdfbf7;
  border: 2px dashed #fbd38d;
  border-radius: var(--radius-lg);
  padding: 20px;
  margin: 16px 0;
  position: relative;
}

.voucher-header {
  border-bottom: 1px solid #feebc8;
  padding-bottom: 12px;
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
