/* =========================================================
 * Single Location Page (single-tv_location.php)
 * ========================================================= */

.tv-sloc {
  background: #f9f9f9;
  font-family: inherit;
  padding-bottom: 80px;
}

/* 1. NEW HEADER LAYOUT */
.tv-sloc__header {
  background: #fff;
  padding: 40px 0;
  border-bottom: 1px solid #eee;
  box-shadow: 0 4px 20px rgba(0,0,0,0.03);
  text-align: left;
}

.tv-sloc__header-inner {
  margin: 0 auto;
}

.tv-sloc__header-media {
  margin-bottom: 32px;
  width: 100%;
}

.tv-sloc__logo {
  width: 100%;
  height: clamp(250px, 40vw, 400px);
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}

.tv-sloc__title-new {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  color: #0b5c37;
  margin: 0 0 8px;
  line-height: 1.2;
}

.tv-sloc__subtitle-new {
  font-size: 16px;
  color: #666;
  margin: 0 0 12px;
}

.tv-sloc__status-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 4px;
  color: #fff;
  margin-bottom: 24px;
}
.tv-sloc__status-badge.is-open { background: #22c55e; }
.tv-sloc__status-badge.is-closed { background: #ef4444; }

.tv-sloc__header-stats-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
  padding: 16px 0;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
}

.tv-sloc__stats-left {
  display: flex;
  gap: 24px;
}

.tv-sloc__stat-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
}

.tv-sloc__stat-item:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -12px;
  top: 10%;
  height: 80%;
  width: 1px;
  background: #eee;
}

.tv-sloc__stat-lbl {
  font-size: 12px;
  color: #888;
}

.tv-sloc__stat-v {
  font-size: 14px;
  font-weight: 700;
  color: #1a1a1a;
}

.tv-sloc__phone-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 800;
  color: #1a1a1a;
  text-decoration: none;
}

.tv-sloc__phone-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: #FFA827;
  color: #fff;
  border-radius: 50%;
}

.tv-sloc__header-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.tv-sloc__btn-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #f5f5f5;
  color: #0b5c37;
  padding: 12px 16px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.tv-sloc__btn-action:hover {
  background: #e8e8e8;
  color: #0a4a2c;
}

.tv-sloc__btn-action svg {
  color: #0b5c37;
}

.tv-sloc__header-rating {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
}

.tv-sloc__rating-text {
  font-size: 14px;
  color: #666;
  font-weight: 500;
}

@media (max-width: 640px) {
  .tv-sloc__header-stats-row {
    flex-direction: column;
    align-items: flex-start;
  }
  .tv-sloc__stats-left {
    flex-wrap: wrap;
    row-gap: 16px;
  }
}

/* 3. MAIN CONTENT */
.tv-sloc__main {
  margin-top: 50px;
}

.tv-sloc__main-inner {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
}

@media (max-width: 900px) {
  .tv-sloc__main-inner {
    grid-template-columns: 1fr;
  }
}

/* Left Column: Content Editor */
.tv-sloc__content {
  background: #fff;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.04);
  /* Basic styling for WordPress editor content */
  line-height: 1.6;
  color: #333;
}

.tv-sloc__content h2, .tv-sloc__content h3, .tv-sloc__content h4 {
  color: #1a1a1a;
  margin-top: 30px;
  margin-bottom: 16px;
  font-weight: 700;
}

.tv-sloc__content img {
  border-radius: 8px;
  height: auto;
  max-width: 100%;
}

.tv-sloc__content .wp-block-gallery {
  margin-top: 24px;
  margin-bottom: 24px;
}

.tv-sloc__empty-content {
  text-align: center;
  padding: 40px 20px;
  color: #666;
}
.tv-sloc__empty-content h3 {
  color: #FFA827;
}

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

/* Right Column: Sidebar */
.tv-sloc__sidebar-sticky {
  position: sticky;
  top: 100px; /* Account for sticky headers if any */
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.tv-sloc__box {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
  overflow: hidden;
}

.tv-sloc__box-head {
  padding: 20px 24px;
  background: #fafafa;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.tv-sloc__box-head h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  color: #1a1a1a;
  text-transform: uppercase;
}

.tv-sloc__status {
  font-size: 10px;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 4px;
  color: #fff;
}
.tv-sloc__status.is-open { background: #0b5c37; }
.tv-sloc__status.is-closed { background: #d32f2f; }

.tv-sloc__box-body {
  padding: 24px;
}

.tv-sloc__box--booking p {
  font-size: 14px;
  color: #666;
  margin-bottom: 20px;
}

.tv-sloc__btn {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 14px 20px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  transition: all 0.3s ease;
  text-align: center;
}

.tv-sloc__btn--primary {
  background: #FFA827;
  color: #1a1a1a;
}
.tv-sloc__btn--primary:hover {
  background: #e08f1b;
}

.tv-sloc__btn--outline {
  background: transparent;
  color: #1a1a1a;
  border: 2px solid #eee;
}
.tv-sloc__btn--outline:hover {
  border-color: #1a1a1a;
}

.tv-sloc__hotline {
  margin-top: 20px;
  text-align: center;
}
.tv-sloc__hotline span {
  display: block;
  font-size: 13px;
  color: #888;
  margin-bottom: 4px;
}
.tv-sloc__hotline a {
  display: block;
  font-size: 24px;
  font-weight: 900;
  color: #1a1a1a;
  text-decoration: none;
}
.tv-sloc__hotline a:hover {
  color: #FFA827;
}

/* Map Box */
.tv-sloc__map-wrap {
  width: 100%;
  height: 180px;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 16px;
  background: #eee;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tv-sloc__map-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #888;
  text-decoration: none;
  width: 100%;
  height: 100%;
  transition: background 0.3s;
}
.tv-sloc__map-placeholder:hover {
  background: #e0e0e0;
  color: #333;
}
