/* =========================================================
 * [tv_locations] - Hệ thống Cơ sở
 * ========================================================= */

.tv-loc {
  background: #f9f9f9;
  font-family: inherit;
}

/* ---- Header ---- */
.tv-loc__header {
  background:
    radial-gradient(circle at 50% 35%, rgba(255, 255, 255, 0.06), transparent 30%),
    linear-gradient(180deg, rgba(50, 0, 0, 0.6) 0%, rgba(25, 0, 0, 0.88) 100%),
    #660000;
  padding: 80px 0 60px;
  color: #fff;
}

.tv-loc__header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
}

@media (max-width: 768px) {
  .tv-loc__header-inner {
    flex-direction: column;
    text-align: center;
  }
}

.tv-loc__header-content {
  flex: 1;
  max-width: 600px;
}

.tv-loc__title {
  color: #FFA827;
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 900;
  margin: 0 0 16px;
  line-height: 1.2;
}

.tv-loc__desc {
  font-size: 16px;
  line-height: 1.6;
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
}

.tv-loc__btn-club {
  display: inline-flex;
  align-items: center;
  padding: 14px 32px;
  border: 2px solid #FFA827;
  border-radius: 99px;
  background: transparent;
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.tv-loc__btn-club:hover {
  background: #FFA827;
  color: #1a1a1a;
}

/* ---- Sticky Tabs ---- */
.tv-loc__tabs-wrap {
  background: #FFA827;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.tv-loc__tabs {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
}

.tv-loc__tabs::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

.tv-loc__tabs li {
  flex-shrink: 0;
}

.tv-loc__tab {
  display: block;
  padding: 16px 20px;
  color: #1a1a1a;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  border-bottom: 3px solid transparent;
  transition: all 0.2s ease;
  opacity: 0.7;
}

.tv-loc__tab:hover {
  opacity: 1;
}

.tv-loc__tab.is-active {
  opacity: 1;
  border-bottom-color: #660000;
}

/* ---- Content / Lists ---- */
.tv-loc__content {
  padding: 50px 0 80px;
}

.tv-loc__group {
  margin-bottom: 60px;
  scroll-margin-top: 80px; /* Offset cho sticky tabs */
}

.tv-loc__group-title {
  color: #888;
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 24px;
}

.tv-loc__list {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

/* ---- Card ---- */
.tv-loc-card {
  display: flex;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(0,0,0,0.05);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.tv-loc-card:hover {
  box-shadow: 0 12px 32px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}

@media (max-width: 900px) {
  .tv-loc-card {
    flex-direction: column-reverse;
  }
}

/* -- Card Body -- */
.tv-loc-card__body {
  flex: 1;
  padding: 40px;
  display: flex;
  flex-direction: column;
}

@media (max-width: 600px) {
  .tv-loc-card__body {
    padding: 24px;
  }
}

.tv-loc-card__title {
  font-size: 28px;
  font-weight: 800;
  color: #1a1a1a;
  margin: 0 0 8px;
  line-height: 1.25;
}

.tv-loc-card__subtitle {
  font-size: 16px;
  color: #666;
  margin: 0 0 16px;
}

.tv-loc-card__meta-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.tv-loc-card__status {
  padding: 4px 10px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 800;
  color: #fff;
}

.tv-loc-card__status.is-open { background: #0b5c37; }
.tv-loc-card__status.is-closed { background: #d32f2f; }

.tv-loc-card__hours {
  font-size: 13px;
  font-weight: 600;
  color: #888;
}

/* -- Card Stats -- */
.tv-loc-card__stats {
  display: flex;
  gap: 24px;
  margin-bottom: 30px;
  padding-bottom: 24px;
  border-bottom: 1px solid #eee;
}

.tv-loc-card__stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
}

.tv-loc-card__stat:not(:last-child)::after {
  content: '';
  position: absolute;
  right: -12px;
  top: 50%;
  transform: translateY(-50%);
  height: 24px;
  width: 1px;
  background: #eee;
}

.tv-loc-card__stat-label {
  font-size: 12px;
  color: #888;
}

.tv-loc-card__stat-val {
  font-size: 15px;
  font-weight: 800;
  color: #1a1a1a;
}

/* -- Card Actions -- */
.tv-loc-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 30px;
}

.tv-loc-card__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  background: #f5f5f5;
  border-radius: 6px;
  color: #333;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
}

.tv-loc-card__btn:hover {
  background: #e0e0e0;
}

.tv-loc-card__btn--primary {
  background: rgba(11, 92, 55, 0.1);
  color: #0b5c37;
}

.tv-loc-card__btn--primary:hover {
  background: rgba(11, 92, 55, 0.2);
}

/* -- Phone -- */
.tv-loc-card__phone {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 16px;
}

.tv-loc-card__phone a {
  color: #1a1a1a;
  text-decoration: none;
}

.tv-loc-card__phone a:hover {
  color: #FFA827;
}

/* -- Card Media -- */
.tv-loc-card__media {
  width: 40%;
  flex-shrink: 0;
  position: relative;
}

@media (max-width: 900px) {
  .tv-loc-card__media {
    width: 100%;
    padding-top: 50%;
  }
}

.tv-loc-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tv-loc-card__img--placeholder {
  background: #eee;
}
