/* Concert grid + detail page. All classes are ks- prefixed to stay isolated
   from style.css and the Mobirise theme rules. */

.ks-concerts-section {
  padding: 3rem 0 4rem;
}

.ks-concerts-heading {
  margin-bottom: 0.5rem;
}

.ks-concerts-intro {
  margin-bottom: 2.5rem;
  color: #6b6b6b;
}

.ks-concert-grid {
  display: flex;
  flex-wrap: wrap;
  margin-left: -12px;
  margin-right: -12px;
}

.ks-concert-col {
  padding: 12px;
  width: 100%;
}

@media (min-width: 768px) {
  .ks-concert-col {
    width: 50%;
  }
}

@media (min-width: 992px) {
  .ks-concert-col {
    width: 33.3333%;
  }
}

.ks-concert-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.ks-concert-card:hover,
.ks-concert-card:focus {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
  text-decoration: none;
  color: inherit;
}

.ks-concert-card:focus-visible {
  outline: 3px solid #149dcc;
  outline-offset: 3px;
}

.ks-concert-media {
  position: relative;
  padding: 10px 10px 0;
}

.ks-concert-media img {
  display: block;
  width: 100%;
  height: 460px;
  object-fit: cover;
  border-radius: 10px;
  background: #f1f1f1;
}

.ks-price-badge {
  position: absolute;
  right: 22px;
  bottom: 14px;
  padding: 6px 14px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
}

.ks-status-badge {
  position: absolute;
  left: 22px;
  top: 22px;
  padding: 5px 12px;
  border-radius: 6px;
  background: #bf2150;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.ks-concert-body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  padding: 18px 22px 24px;
}

.ks-concert-title {
  margin: 0 0 14px;
  font-size: 1.35rem;
  font-weight: 700;
  color: #bf2150;
  line-height: 1.25;
}

.ks-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 14px;
  color: #7a7a7a;
  font-size: 0.95rem;
}

.ks-meta-row span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.ks-meta-row i {
  color: #149dcc;
}

.ks-concert-excerpt {
  margin: 0;
  color: #149dcc;
  font-size: 0.95rem;
  line-height: 1.55;
}

.ks-concerts-empty {
  padding: 3rem 1rem;
  text-align: center;
  color: #6b6b6b;
}

/* ── Detail page ───────────────────────────────────────────────────────── */

.ks-concert-detail {
  padding: 2.5rem 0 4rem;
}

.ks-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 1.5rem;
  color: #149dcc;
  font-weight: 600;
}

.ks-detail-panel {
  background: #fff;
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}

.ks-detail-poster {
  display: block;
  width: 100%;
  border-radius: 10px;
  background: #f1f1f1;
}

.ks-detail-title {
  margin: 1.5rem 0 1rem;
  font-size: 1.9rem;
  font-weight: 700;
  color: #bf2150;
}

.ks-detail-description {
  color: #149dcc;
  font-size: 1rem;
  line-height: 1.7;
}

.ks-detail-description a {
  color: #bf2150;
  text-decoration: underline;
}

.ks-detail-sidebar {
  background: #fff;
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}

.ks-detail-sidebar h2 {
  margin: 0 0 20px;
  font-size: 1.15rem;
  font-weight: 700;
}

.ks-detail-fact {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid #ededed;
}

.ks-detail-fact:last-of-type {
  border-bottom: none;
}

.ks-detail-fact i {
  width: 22px;
  margin-top: 3px;
  color: #149dcc;
  font-size: 1.1rem;
  text-align: center;
}

.ks-detail-fact-label {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8a8a8a;
}

.ks-detail-fact-value {
  margin: 2px 0 0;
  color: #149dcc;
}

.ks-btn-calendar,
.ks-btn-tickets {
  display: block;
  width: 100%;
  margin-top: 18px;
  padding: 14px 20px;
  border: none;
  border-radius: 100px;
  background: #101010;
  color: #fff;
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: box-shadow 0.25s ease, opacity 0.25s ease;
}

.ks-btn-calendar:hover,
.ks-btn-tickets:hover {
  color: #fff;
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.ks-btn-tickets.ks-is-disabled {
  background: #9a9a9a;
  pointer-events: none;
  opacity: 0.8;
}

.ks-tickets-box {
  margin-top: 22px;
  padding: 18px;
  border-radius: 14px;
  background: #f5f5f5;
}

.ks-tickets-box .ks-btn-tickets:first-child {
  margin-top: 0;
}

/* ── Checkout ──────────────────────────────────────────────────────────── */

.ks-alert {
  margin-bottom: 1.5rem;
  padding: 14px 18px;
  border-radius: 10px;
  font-weight: 600;
}

.ks-alert-success {
  background: #e6f6ec;
  color: #1d6b3a;
}

.ks-alert-error {
  background: #fdeaee;
  color: #a3163c;
}

.ks-checkout-form {
  background: #fff;
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}

.ks-form-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid #ededed;
}

.ks-form-row-block {
  display: block;
}

.ks-form-row label {
  margin: 0;
  font-weight: 600;
}

.ks-form-price {
  margin-left: 10px;
  color: #8a8a8a;
  font-weight: 400;
}

.ks-form-row input[type="number"] {
  width: 90px;
  padding: 8px 10px;
  border: 1px solid #d6d6d6;
  border-radius: 8px;
  text-align: center;
}

.ks-form-row input[type="text"],
.ks-form-row textarea {
  width: 100%;
  max-width: 320px;
  padding: 8px 12px;
  border: 1px solid #d6d6d6;
  border-radius: 8px;
}

.ks-form-row-block textarea {
  max-width: 100%;
  margin-top: 8px;
}

.ks-discount-status {
  margin: 8px 0 0;
  font-size: 0.9rem;
}

.ks-discount-status.is-valid {
  color: #1d6b3a;
}

.ks-discount-status.is-invalid {
  color: #a3163c;
}

.ks-form-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 18px 0 0;
  font-weight: 400;
}

.ks-checkout-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 2px solid #101010;
  font-size: 1.2rem;
}

.ks-btn-secondary {
  background: #fff;
  border: 2px solid #101010;
  color: #101010;
}

.ks-btn-secondary:hover {
  color: #101010;
}

.ks-btn-tickets[disabled] {
  opacity: 0.6;
  pointer-events: none;
}

@media (max-width: 767px) {
  .ks-detail-sidebar {
    margin-top: 24px;
  }

  /* Posters are portrait: show the whole artwork instead of a cropped strip. */
  .ks-concert-media img {
    height: auto;
    max-height: 50vh;
    object-fit: contain;
  }
}
