/* ==== Киносалон страница ==== */

.cinema-area {
  padding: 60px 0;
}

.cinema-header {
  text-align: center;
  margin-bottom: 40px;
}

.cinema-header .section-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--primary-color);
}

.cinema-filters {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 20px;
}

.filter-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.filter-group label {
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 6px;
  color: var(--title-color);
}

.filter-group input,
.filter-group select {
  height: 42px;
  padding: 6px 10px;
  border: 1px solid var(--primary-color);
  border-radius: 8px;
  font-size: 15px;
  color: var(--title-color);
}

.filter-btn {
  background: var(--primary-color);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 18px;
  cursor: pointer;
  font-weight: 600;
  transition: 0.3s ease;
}

.filter-btn:hover {
  background: var(--secondary-color);
}

/* --- Карти със събития --- */
.cinema-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.cinema-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
}

.cinema-card:hover {
  transform: translateY(-6px);
}

.cinema-thumb {
  width: 100%;
  height: 240px;
  overflow: hidden;
  border-radius: 10px 10px 0 0;
  background: #000;
  position: relative;
}

.cinema-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.6s ease;
}

.cinema-card:hover .cinema-thumb img {
  transform: scale(1.05);
}


.cinema-content {
  padding: 18px 20px 25px;
}

.cinema-content h3 {
  font-size: 20px;
  color: var(--title-color);
  margin-bottom: 6px;
}

.cinema-meta {
  color: #777;
  font-size: 14px;
  margin-bottom: 10px;
}

.cinema-desc {
  font-size: 15px;
  color: var(--text-color);
  margin-bottom: 16px;
}

.cinema-cta {
  display: flex;
  justify-content: flex-start;
  gap: 10px;
}

.btn-details,
.btn-book {
  padding: 8px 14px;
  font-size: 14px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-details {
  background: transparent;
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
}

.btn-details:hover {
  background: var(--primary-color);
  color: #fff;
}

.btn-book {
  background: var(--secondary-color);
  color: #fff;
}

.btn-book:hover {
  background: var(--primary-color);
}

/* ==== Интерактивна схема на залата ==== */
.event-details {
  padding: 60px 0;
}

.event-header {
  text-align: center;
  margin-bottom: 40px;
}

.event-header .section-title {
  font-size: 32px;
  color: var(--primary-color);
}

.event-date {
  color: #777;
  font-weight: 600;
  margin-top: 10px;
}

.event-desc {
  max-width: 800px;
  margin: 0 auto;
  color: var(--text-color);
  font-size: 16px;
  line-height: 26px;
}

/* Схема на залата */
.seat-map-wrapper {
  text-align: center;
  margin-top: 40px;
}

.screen {
  width: 100%;
  background: var(--secondary-color);
  color: #fff;
  font-weight: 700;
  padding: 10px;
  border-radius: 8px;
  margin-bottom: 20px;
}

.seat-map {
  display: inline-block;
  background: #f8fdfb;
  border: 1px solid #dceee8;
  padding: 25px;
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.seat-row {
  display: flex;
  justify-content: center;
  margin-bottom: 10px;
}

.seat {
  width: 34px;
  height: 34px;
  background: var(--primary-color);
  margin: 5px;
  border-radius: 6px;
  cursor: pointer;
  position: relative;
  transition: background 0.3s ease, transform 0.2s;
}

.seat:hover {
  transform: scale(1.05);
}

.seat.booked {
  background: #ccc;
  cursor: not-allowed;
}

.seat.selected {
  background: var(--secondary-color);
}

.seat.available {
  background: var(--primary-color);
}

.seat-legend {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 20px 0 10px;
  font-size: 15px;
}

.seat-legend .seat {
  width: 20px;
  height: 20px;
  margin-right: 6px;
  border-radius: 4px;
}

.seat-actions {
  margin-top: 25px;
}

.btn-confirm {
  background: var(--primary-color);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 12px 22px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s ease;
}

.btn-confirm:hover {
  background: var(--secondary-color);
}

/* ===== Двуколонно оформление за детайлна страница ===== */

.event-flex {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 40px;
}

.event-info {
  flex: 1 1 55%;
}

.event-poster {
  flex: 0 0 35%;
  text-align: right;
}

.event-poster img {
  width: 100%;
  max-width: 350px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.event-title {
  font-size: 32px;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.event-date {
  color: #666;
  font-weight: 600;
  margin-bottom: 16px;
}

.event-desc {
  font-size: 16px;
  line-height: 26px;
  color: var(--text-color);
  margin-bottom: 30px;
}

/* ===== Избор на места ===== */
.seat-map-wrapper {
  margin-top: 10px;
}

.seat-map {
  margin-top: 10px;
}

.seat-map-wrapper h3 {
  font-size: 20px;
  color: var(--title-color);
  margin-bottom: 12px;
  font-weight: 700;
}

.screen {
  background: var(--secondary-color);
  color: #fff;
  font-weight: bold;
  padding: 8px;
  margin: 10px 0 20px;
  border-radius: 8px;
}

.seat-row {
  display: flex;
  justify-content: center;
  margin-bottom: 8px;
}

.seat {
  width: 32px;
  height: 32px;
  background: var(--primary-color);
  border-radius: 6px;
  margin: 4px;
  cursor: pointer;
  transition: 0.2s ease;
}

.seat:hover {
  transform: scale(1.05);
}

.seat.booked {
  background: #ccc;
  cursor: not-allowed;
}

.seat.selected {
  background: var(--secondary-color);
}

.seat-legend {
  display: flex;
  justify-content: center;
  gap: 16px;
  font-size: 14px;
  margin: 15px 0;
}

.seat-legend .seat {
  width: 18px;
  height: 18px;
  margin-right: 6px;
}

.btn-confirm {
  background: var(--primary-color);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 20px;
  font-weight: 600;
  cursor: pointer;
}

.btn-confirm:hover {
  background: var(--secondary-color);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .event-flex {
    flex-direction: column-reverse;
    align-items: center;
    text-align: center;
  }

  .event-poster {
    text-align: center;
  }

  .event-poster img {
    max-width: 280px;
  }
}


/* ===== Реалистична схема за кино ===== */

.cinema-layout {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.cinema-layout .seat-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  position: relative;
  transform-origin: center;
}

.cinema-layout .seat-row:nth-child(1) { transform: scale(0.9) translateY(8px); }
.cinema-layout .seat-row:nth-child(2) { transform: scale(0.95); }
.cinema-layout .seat-row:nth-child(3) { transform: scale(1.0); }
.cinema-layout .seat-row:nth-child(4) { transform: scale(1.05); }
.cinema-layout .seat-row:nth-child(5) { transform: scale(1.1) }
.cinema-layout .seat-row:nth-child(6) { transform: scale(1.2) }
.cinema-layout .seat-row:nth-child(7) { transform: scale(1.3) }

.row-label {
  font-size: 13px;
  color: #555;
  font-weight: 600;
  width: 20px;
  text-align: center;
}

.seat {
  width: 26px;
  height: 26px;
  background: var(--primary-color);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s ease;
}

.seat.booked {
  background: #d0d0d0;
  cursor: not-allowed;
}

.seat.selected {
  background: var(--secondary-color);
}

.seat:hover:not(.booked) {
  transform: scale(1.15);
}

/* редовете да имат усещане за извит салон */
.cinema-layout .seat-row:nth-child(1) { margin-left: 40px; margin-right: 40px; }
.cinema-layout .seat-row:nth-child(2) { margin-left: 30px; margin-right: 30px; }
.cinema-layout .seat-row:nth-child(3) { margin-left: 20px; margin-right: 20px; }
.cinema-layout .seat-row:nth-child(4) { margin-left: 10px; margin-right: 10px; }
.cinema-layout .seat-row:nth-child(5) { margin-left: 0; margin-right: 0; }

/* ===== Легенда за местата ===== */

.seat-legend {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 25px;
  font-size: 15px;
  font-weight: 500;
  color: var(--title-color);
  margin: 25px 0 10px;
}

.seat-legend span {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Цветове на местата */
.seat.available {
  background-color: #007a63; /* зелено */
}

.seat.selected {
  background-color: #ff9800; /* оранжево */
}

.seat.booked {
  background-color: #c5c5c5; /* сиво */
}

/* Малките квадратчета в легендата */
.seat-legend .seat {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  margin: 0;
}

/* ==== Панел с избраните билети ==== */
.ticket-summary {
  background: #fff;
  border: 1px solid #e2e2e2;
  border-radius: 12px;
  padding: 20px 24px;
  margin-top: 25px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.ticket-summary h4 {
  font-size: 18px;
  margin-bottom: 15px;
  color: var(--title-color);
  font-weight: 700;
}

.selected-tickets {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.ticket-card {
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 12px 15px;
  font-size: 15px;
  position: relative;
  background: #fafafa;
}

.ticket-card .remove {
  position: absolute;
  top: 8px;
  right: 10px;
  color: #888;
  cursor: pointer;
  font-size: 18px;
  transition: 0.2s;
}

.ticket-card .remove:hover {
  color: #e53935;
}

.ticket-card .price {
  font-weight: 600;
  margin-top: 6px;
}

.total-summary {
  border-top: 1px solid #ddd;
  padding-top: 12px;
  font-size: 16px;
  color: var(--title-color);
}

.btn-purchase {
  display: block;
  width: 100%;
  margin-top: 15px;
  background: #0078d7;
  color: #fff;
  border: none;
  padding: 10px 14px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease;
}

.btn-purchase:hover {
  background: #005fa3;
}

.empty-msg {
  font-size: 14px;
  color: #777;
  text-align: center;
  margin: 10px 0;
}

/* === Дясна колона с плакат и билети === */
.event-right {
  flex: 0 0 35%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.event-poster {
  margin-bottom: 20px;
}

.ticket-summary {
  width: 100%;
  max-width: 320px;
}



