/* =====================================================
   COMPONENTS.CSS – CARDS, TABS, SLIDERS, PACKAGE TABLES, ACCORDION

   Purpose:
   - Styles for reusable interface components
   - Gold card design system (cards, tabs, option selections)
   - Sliders for guest counts
   - Result box styling
   - Package tables & mobile package cards
   - Accordion for mobile layouts

   Usage:
   - Include after global.css
   - Safe for active/hover states and responsive adjustments

   Sections:
   1. Gold design system
   2. Tabs
   3. Date options
   4. Options grid
   5. Sliders
   6. Result boxes
   7. Package tables
   8. Mobile package cards & accordions
===================================================== */

.gold-card,
.tab-btn,
.date-btn,
.option-card {
  border: 2px solid #d4af37;
  border-radius: 10px;
  padding: 14px;
  background: #fff;
  color: #333;
  cursor: pointer;
  transition: all 0.25s ease;
  text-align: center;
}

.gold-card:hover,
.tab-btn:hover,
.date-btn:hover,
.option-card:hover {
  transform: translateY(-2px);
  background: #fff7e6;
  border-color: #C19A6B;
}

.gold-card.is-active,
.tab-btn.is-active,
.date-btn.is-active,
.option-card.is-active,
.option-card:has(input:checked) {
  background: linear-gradient(135deg, #b8860b, #d4af37);
  color: #fff !important;
  border-color: #b8860b;
  box-shadow: 0 8px 20px rgba(184,134,11,0.25);
}

/* TABS */
.tabs { display: flex; gap: 12px; margin-bottom: 20px; }
.tab-btn { flex: 1; font-weight: 600; transition: all 0.25s ease; }
.tab-btn:hover { background: #fff7e6; border-color: #C19A6B; transform: translateY(-2px); }

/* Tab panels */
.estimator-tab { display: none; }
.estimator-tab.is-active { display: block; }

/* DATE OPTIONS */
.date-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 15px;
}
.date-btn { color: #333; } /* unselected */
.date-btn.is-active { background: linear-gradient(135deg, #b8860b, #d4af37); color: #fff; border-color: #b8860b; }

/* OPTIONS GRID */
.options-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.option-card { position: relative; }
.option-card input { display: none; }
.option-card.popular::after {
  content: "Most Popular";
  position: absolute;
  top: -12px;
  right: 12px;
  background-color: #b9975b;
  color: #fff;
  font-size: 0.7rem;
  padding: 3px 6px;
  border-radius: 4px;
  z-index: 10;
}

/* SLIDERS */
.guest-slider,
#guestCount { width: 100%; margin: 12px 0; height: 12px; border-radius: 6px; accent-color: #d4af37; }

/* RESULT BOX */
.result-box {
  background: #fff8e7;
  border: 2px solid #d4af37;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  margin-top: 25px;
}
.result-box h2 { font-size: 2.2rem; color: #b8860b; margin-bottom: 10px; }
.result-box p { font-size: 0.9rem; margin: 4px 0; }
.result-box .total-note { font-size: 1rem; color: #555; }

/* PACKAGE TABLES */
.table-responsive { width: 100%; overflow-x: auto; }
.package-table { width: 100%; border-collapse: collapse; table-layout: fixed; min-width: 700px; }
.package-table th,
.package-table td { width: 25%; padding: 12px; text-align: center; border: 1px solid #d4af37; word-wrap: break-word; }
.package-table th { background: #fff8e7; font-weight: bold; }
.package-table th:first-child,
.package-table td:first-child { position: sticky; left: 0; background: #fff8e7; z-index: 2; text-align: left; }
.package-table tbody tr:hover { background-color: #fffaf2; }

/* MOBILE PACKAGE CARDS */
.mobile-package-cards { display: none; }
@media (max-width: 768px) {
  .table-responsive { display: none; }
  .mobile-package-cards { display: block; }

  /* ACCORDION */
  .accordion-item { margin-bottom: 12px; border-radius: 12px; overflow: hidden; border: 1px solid #eee; background: #fff; }
  .accordion-header { width: 100%; text-align: left; padding: 16px; font-size: 1rem; font-weight: 600; background: #fff; border: none; cursor: pointer; position: relative; }
  .accordion-header::after { content: "▼"; position: absolute; right: 16px; transition: transform 0.3s ease; }
  .accordion-item.active .accordion-header::after { transform: rotate(180deg); }
  .accordion-content { max-height: 0; overflow: hidden; padding: 0 16px; transition: all 0.3s ease; }
  .accordion-item.active .accordion-content { max-height: 500px; padding: 12px 16px 16px; }
  .accordion-header.featured { background: linear-gradient(135deg, #b8860b, #d4af37); color: #fff; }
  .accordion-header.featured .badge { background: #fff; color: #b8860b; font-size: 0.85rem; padding: 3px 8px; border-radius: 10px; margin-left: 8px; }
}
/* ========================================
   EYEBROW LABEL (No Surprises, etc.)
======================================== */
.included-eyebrow {
  font-size: 0.75rem;          /* small, refined */
  font-weight: 600;
  letter-spacing: 1.5px;       /* spaced-out caps look */
  text-transform: uppercase;
  color: #1aa3a3;              /* your teal */
  margin-bottom: 8px;
  display: block;
}
/* ========================================
   EYEBROW LABEL (No Surprises, etc.)
======================================== */
.included-eyebrow {
  font-size: 0.75rem;          /* small, refined */
  font-weight: 600;
  letter-spacing: 1.5px;       /* spaced-out caps look */
  text-transform: uppercase;
  color: #1aa3a3;              /* your teal */
  margin-bottom: 8px;
  display: block;
}
