/* ==========================================================================
   ONLINE SEVA BOOKING - TOTAL REDESIGN (CLEAN, ROYAL & EFFORTLESS)
   Matching booking_process.html perfectly (No Clutter, Luxury Temple Theme)
   Divyakshetra Hariharapura
   ========================================================================== */

:root {
  --temple-maroon: #6b0f1a;
  --temple-maroon-dark: #4a0810;
  --temple-gold: #d4af37;
  --temple-gold-dark: #b8860b;
  --temple-gold-light: #fae4be;
  --temple-cream: #faf6f0;
  --temple-card-bg: #fffdf8;
  --temple-dark: #2d1515;
  --temple-muted: #71717a;
}

body.body-pattern {
  background-color: var(--temple-cream) !important;
  color: var(--temple-dark);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  margin: 0;
  padding: 0;
}

/* Global Container */
.hr-seva-page-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 15px 60px 15px;
  width: 100%;
}

/* =========================================================
   1. HERO RED BANNER (Exact Match to booking_process.html)
   ========================================================= */
.hr-reserve-hero {
  background: radial-gradient(circle at top, #88141d 0%, #600a10 65%, #46060b 100%);
  border: 1.8px solid #b8860b;
  border-radius: 28px;
  padding: 34px 24px 28px 24px;
  text-align: center;
  color: #ffffff;
  position: relative;
  box-shadow: 0 16px 36px rgba(70, 6, 11, 0.32);
  width: 100%;
  margin: 15px auto 24px auto;
  overflow: hidden;
}

.hr-om-symbol {
  font-family: 'Cinzel', 'Playfair Display', serif;
  color: #ffd700;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  margin-bottom: 5px;
}

.hr-reserve-title {
  font-family: 'Playfair Display', serif;
  font-size: 2.35rem;
  font-weight: 800;
  color: #fffdfa;
  letter-spacing: 0.3px;
  margin: 0 0 6px 0;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.hr-reserve-subtitle {
  font-size: 0.76rem;
  font-weight: 700;
  color: #ffd54f;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.hr-reserve-meta-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.38);
  border: 1px solid rgba(255, 213, 79, 0.45);
  border-radius: 30px;
  padding: 6px 22px;
  font-size: 0.86rem;
  color: #fffaea;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}

.hr-hero-shree-watermark {
  position: absolute;
  right: 22px;
  bottom: 10px;
  font-size: 1.45rem;
  color: rgba(255, 213, 79, 0.18);
  font-family: 'Cinzel', serif;
  font-weight: 700;
  pointer-events: none;
  letter-spacing: 1px;
}

/* =========================================================
   2. SINGLE STREAMLINED CONTROL PILL (Date & Search)
   ========================================================= */
.hr-seva-control-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin: 0 auto 22px auto;
  padding: 12px 28px;
  background: #ffffff;
  border-radius: 50px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
  border: 1.5px solid var(--temple-gold-light);
  gap: 20px;
  flex-wrap: wrap;
}

.hr-control-group {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.hr-control-label {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--temple-maroon);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0;
  white-space: nowrap;
}

.hr-date-input {
  border: 1.5px solid #dfd2c4;
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--temple-maroon);
  background: #fdfbf7;
  outline: none;
  transition: all 0.2s;
}

.hr-date-input:focus {
  border-color: var(--temple-maroon);
  background: #ffffff;
}

.hr-quick-dates {
  display: flex;
  gap: 6px;
}

.hr-pill-btn {
  background: #f7f1e7;
  color: var(--temple-maroon);
  border: 1px solid #dfd2c4;
  border-radius: 20px;
  font-size: 11.5px;
  font-weight: 600;
  padding: 4px 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.hr-pill-btn:hover, .hr-pill-btn.active {
  background: var(--temple-maroon);
  color: #ffffff;
  border-color: var(--temple-maroon);
}

.hr-control-divider {
  width: 1px;
  height: 32px;
  background: #ebd9c5;
}

.hr-search-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 280px;
}

.hr-search-icon {
  position: absolute;
  left: 14px;
  color: #a1a1aa;
  font-size: 14px;
}

.hr-search-input {
  width: 100%;
  padding: 8px 36px 8px 38px;
  border: 1.5px solid #dfd2c4;
  border-radius: 25px;
  font-size: 0.88rem;
  background: #fdfbf7;
  outline: none;
  transition: all 0.2s;
}

.hr-search-input:focus {
  border-color: var(--temple-maroon);
  background: #ffffff;
}

.hr-clear-btn {
  position: absolute;
  right: 12px;
  background: transparent;
  border: none;
  color: #999;
  cursor: pointer;
  font-size: 13px;
}

/* =========================================================
   3. SANNIDHI DEITY SWITCHER TABS (Clean Horizontal Bar)
   ========================================================= */
.hr-sannidhi-tabs-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 2px 14px 2px;
  margin-bottom: 24px;
  scrollbar-width: thin;
  scrollbar-color: var(--temple-gold-light) transparent;
}

.hr-sannidhi-tabs-bar::-webkit-scrollbar {
  height: 4px;
}

.hr-sannidhi-tabs-bar::-webkit-scrollbar-thumb {
  background: var(--temple-gold-light);
  border-radius: 4px;
}

.hr-tab-capsule {
  white-space: nowrap;
  background: #ffffff;
  border: 1.5px solid #ebd9c5;
  color: #4a3427;
  padding: 8px 18px;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.hr-tab-capsule:hover {
  border-color: var(--temple-maroon);
  color: var(--temple-maroon);
  transform: translateY(-1px);
}

.hr-tab-capsule.active {
  background: var(--temple-maroon);
  color: #ffffff;
  border-color: var(--temple-maroon);
  box-shadow: 0 4px 12px rgba(107, 15, 26, 0.25);
}

.hr-tab-badge {
  background: rgba(212, 175, 55, 0.25);
  color: inherit;
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 12px;
}

.hr-tab-capsule.active .hr-tab-badge {
  background: #d4af37;
  color: #4a0810;
  font-weight: 800;
}

/* =========================================================
   4. SANNIDHI CARD (Exact Match to hr-bldg-card in booking_process.html)
   ========================================================= */
.hr-sannidhi-card {
  background: #ffffff;
  border: 1.5px solid var(--temple-gold-light);
  border-radius: 20px;
  box-shadow: 0 6px 20px rgba(140, 28, 19, 0.04);
  margin-bottom: 28px;
  padding: 24px;
  transition: all 0.3s ease;
  scroll-margin-top: 100px;
}

.hr-sannidhi-card:hover {
  box-shadow: 0 10px 28px rgba(140, 28, 19, 0.08);
  border-color: #d4af37;
}

/* Sannidhi Top Presentation */
.hr-sannidhi-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 0 auto 16px auto;
  text-align: left;
}

.hr-sannidhi-top-left {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 1;
  min-width: 0;
}

.hr-sannidhi-thumb-wrap {
  width: 140px;
  height: 100px;
  border-radius: 14px;
  border: 3px solid #d4af37;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
  flex-shrink: 0;
  background: #ffffff;
  transition: all 0.3s ease;
}

.hr-sannidhi-card:hover .hr-sannidhi-thumb-wrap {
  transform: scale(1.02);
  box-shadow: 0 8px 22px rgba(140, 28, 19, 0.15);
}

.hr-sannidhi-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.hr-sannidhi-card:hover .hr-sannidhi-thumb {
  transform: scale(1.05);
}

.hr-sannidhi-info {
  flex: 1;
  min-width: 0;
}

.hr-sannidhi-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  color: #b48c36;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.hr-sannidhi-name {
  font-family: 'Playfair Display', serif;
  font-weight: 800;
  font-size: 1.35rem;
  color: #2d1515;
  letter-spacing: 0.3px;
  margin: 0 0 6px 0;
  text-transform: uppercase;
  line-height: 1.3;
}

.hr-sannidhi-desc {
  color: #71717a;
  font-size: 0.88rem;
  margin: 0;
  line-height: 1.5;
}

.hr-sannidhi-actions {
  flex-shrink: 0;
}

.hr-btn-select-all {
  background: #f7f1e7;
  color: var(--temple-maroon);
  border: 1.5px solid #ebd9c5;
  border-radius: 20px;
  padding: 6px 16px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.hr-btn-select-all:hover {
  background: var(--temple-maroon);
  color: #ffffff;
  border-color: var(--temple-maroon);
}

/* Sannidhi Divider with Title (Exact Match to hr-bldg-rooms-header) */
.hr-sevas-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 20px auto 18px auto;
  width: 100%;
}

.hr-sevas-line {
  flex: 1;
  height: 1.5px;
  background: #fae4be;
}

.hr-sevas-title {
  font-size: 0.78rem;
  font-weight: 800;
  color: #6b0f1a;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

/* =========================================================
   5. SEVA CARDS GRID (Clean, Balanced 3-Column / 2-Column Grid)
   ========================================================= */
.hr-sevas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 18px;
  margin: 0 auto;
}

.hr-seva-card {
  background: #fffdf8;
  border: 1.5px solid #fae4be;
  border-radius: 14px;
  padding: 18px 20px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.25s ease;
  cursor: pointer;
  user-select: none;
  position: relative;
}

.hr-seva-card:hover {
  transform: translateY(-3px);
  border-color: #d4af37;
  box-shadow: 0 8px 20px rgba(140, 28, 19, 0.08);
}

.hr-seva-card.selected {
  background: linear-gradient(135deg, #fffcf6 0%, #fff4e5 100%);
  border: 2px solid var(--temple-maroon);
  box-shadow: 0 8px 24px rgba(107, 15, 26, 0.14);
}

.hr-seva-card-top {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 12px;
}

.hr-seva-avatar {
  width: 54px;
  height: 54px;
  border-radius: 10px;
  border: 1.5px solid #fae4be;
  overflow: hidden;
  flex-shrink: 0;
  background: #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.hr-seva-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hr-seva-card-body {
  flex: 1;
  min-width: 0;
}

.hr-seva-card-name {
  font-family: 'Playfair Display', serif;
  font-weight: 800;
  font-size: 1.02rem;
  color: #3b1114;
  margin: 0 0 4px 0;
  line-height: 1.3;
}

.hr-seva-card.selected .hr-seva-card-name {
  color: var(--temple-maroon);
}

.hr-seva-card-desc {
  font-size: 0.8rem;
  color: #71717a;
  margin: 0;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Seva Card Bottom Action */
.hr-seva-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #fae4be;
}

.hr-seva-price-box {
  display: flex;
  flex-direction: column;
}

.hr-seva-price-label {
  font-size: 0.68rem;
  font-weight: 700;
  color: #a1a1aa;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hr-seva-price-val {
  font-weight: 800;
  font-size: 1.25rem;
  color: #2d1515;
}

.hr-seva-btn-add {
  background: #ffffff;
  color: var(--temple-maroon);
  border: 1.5px solid var(--temple-maroon);
  border-radius: 25px;
  padding: 5px 16px;
  font-size: 0.8rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  pointer-events: none;
}

.hr-seva-card:hover .hr-seva-btn-add {
  background: #faede9;
}

.hr-seva-card.selected .hr-seva-btn-add {
  background: var(--temple-maroon);
  color: #ffffff;
  border-color: var(--temple-maroon);
  box-shadow: 0 2px 8px rgba(107, 15, 26, 0.25);
}

/* Hidden Form Checkbox */
.seva-item-checkbox {
  display: none;
}

/* Empty Search */
.hr-no-results {
  text-align: center;
  padding: 40px 20px;
  background: #ffffff;
  border-radius: 16px;
  border: 1.5px solid #fae4be;
  margin-bottom: 24px;
}

/* =========================================================
   6. STICKY BOTTOM CART BAR (Exact Match to Guru Seva)
   ========================================================= */
.guru-sticky-bar {
  position: sticky;
  bottom: 15px;
  z-index: 999;
  background: #FFFFFF;
  border: 2px solid #D4AF37;
  border-radius: 40px;
  padding: 12px 28px;
  box-shadow: 0 12px 36px rgba(139, 26, 26, 0.22);
  width: 100%;
}

.guru-btn-proceed {
  background: linear-gradient(135deg, #8B1A1A 0%, #5B0E0E 100%);
  color: #FFFFFF !important;
  border: 1px solid #F1C40F;
  border-radius: 30px;
  padding: 10px 24px;
  font-weight: 700;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.2s ease;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(139, 26, 26, 0.3);
  text-decoration: none;
  white-space: nowrap;
}

.guru-btn-proceed:hover {
  transform: scale(1.02);
  box-shadow: 0 6px 18px rgba(139, 26, 26, 0.4);
  background: linear-gradient(135deg, #A01F1F 0%, #6E1414 100%);
}

.guru-badge-count {
  background: #F1C40F;
  color: #5B0E0E;
  font-weight: 800;
  font-size: 12px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* =========================================================
   7. RESPONSIVE
   ========================================================= */
@media (max-width: 991px) {
  .hr-sannidhi-top {
    flex-direction: column;
    align-items: flex-start;
  }
  .hr-sannidhi-actions {
    width: 100%;
  }
  .hr-btn-select-all {
    width: 100%;
    text-align: center;
  }
  .hr-sevas-grid {
    grid-template-columns: 1fr;
  }
  .hr-seva-control-pill {
    border-radius: 20px;
    padding: 16px;
    flex-direction: column;
    align-items: stretch;
  }
  .hr-search-wrapper {
    width: 100%;
  }
  .guru-sticky-bar {
    border-radius: 20px;
    padding: 12px 16px;
    flex-direction: column;
    gap: 10px;
  }
  .guru-btn-proceed {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 767px) {
  .hr-reserve-title {
    font-size: 1.6rem;
  }
  .hr-sannidhi-top-left {
    flex-direction: column;
    align-items: flex-start;
  }
  .hr-sannidhi-thumb-wrap {
    width: 100%;
    height: 140px;
  }
}