/* ============================================================
   Amar — Երկարաժամկետ զեղչեր (price tiers)
   ============================================================ */

/* ---------- Listing էջի աղյուսակ ---------- */
.tier-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.tier-card {
  position: relative;
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: 16px;
  padding: 18px 16px 16px;
  text-align: center;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.tier-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(31, 77, 61, .10);
  border-color: var(--sand);
}

.tier-card.tier-best {
  border-color: var(--rust);
  background: linear-gradient(180deg, #FFF8F3 0%, var(--white) 100%);
}

.tier-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: #A34B1E;
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 11px;
  border-radius: 999px;
  white-space: nowrap;
  letter-spacing: .02em;
}

.tier-range {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted-text, #5C6159);
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 6px;
}

.tier-price {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--pine);
  line-height: 1.15;
}
.tier-price small {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  color: var(--muted-text, #5C6159);
}

.tier-save {
  margin-top: 6px;
  font-size: 12px;
  color: #A34B1E;
  font-weight: 600;
}

/* ---------- Booking էջի teaser ---------- */
.tier-teaser {
  background: linear-gradient(135deg, #F4F9F6 0%, #FFF9F4 100%);
  border: 1.5px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 18px;
}

.tier-teaser-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 14.5px;
  color: var(--pine);
  margin-bottom: 12px;
}
.tier-teaser-head i {
  font-size: 20px;
  color: #A34B1E;
}

.tier-teaser-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}
.tier-teaser-row::-webkit-scrollbar { height: 4px; }
.tier-teaser-row::-webkit-scrollbar-thumb {
  background: var(--sand);
  border-radius: 4px;
}

.tier-chip {
  flex: 1 0 108px;
  min-width: 108px;
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 10px 8px;
  text-align: center;
  transition: border-color .15s, transform .15s;
}
.tier-chip.has-discount { border-color: #E8C9AF; }
.tier-chip.active {
  border-color: var(--pine);
  background: var(--pine-soft);
  transform: translateY(-2px);
}

.tc-days {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--muted-text, #5C6159);
  text-transform: uppercase;
  letter-spacing: .03em;
}
.tc-price {
  font-family: var(--font-display);
  font-size: 15.5px;
  font-weight: 700;
  color: var(--pine);
  margin-top: 3px;
  white-space: nowrap;
}
.tc-price small {
  font-family: var(--font-body);
  font-size: 10.5px;
  font-weight: 500;
  color: var(--muted-text, #5C6159);
}
.tc-disc {
  font-size: 11px;
  font-weight: 700;
  color: #A34B1E;
  margin-top: 2px;
}
.tc-total {
  font-size: 11px;
  color: var(--muted-text, #5C6159);
  margin-top: 3px;
  white-space: nowrap;
}

/* ---------- Դինամիկ upsell ---------- */
.tier-upsell {
  margin-top: 12px;
  background: var(--white);
  border: 1.5px solid #E8C9AF;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.tier-upsell i {
  font-size: 20px;
  color: #A34B1E;
  flex-shrink: 0;
}
.tier-upsell b { color: var(--pine); }
.tier-upsell .up-save {
  color: #A34B1E;
  font-weight: 700;
}
.tier-upsell button {
  margin-left: auto;
  background: #A34B1E;
  color: #fff;
  border: 0;
  border-radius: 9px;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-body);
  white-space: nowrap;
}
.tier-upsell button:hover { background: #8F3F18; }

/* ---------- Summary-ի զեղչի տողը ---------- */
.bk-line.bk-discount {
  color: #A34B1E;
  font-size: 13.5px;
}
.bk-line.bk-discount b { color: #A34B1E; }

/* ---------- Mobile ---------- */
@media (max-width: 640px) {
  .tier-grid { grid-template-columns: repeat(2, 1fr); }
  .tier-price { font-size: 19px; }
  .tier-teaser { padding: 13px; }
  .tier-upsell { font-size: 13px; }
  .tier-upsell button { margin-left: 0; width: 100%; margin-top: 6px; }
}
