/* Tour Carousel Styles */

/* Tour Carousel Section */
.tour-carousel-section {
  background: rgba(0, 0, 0, 0.1);
  padding: 60px 0;
  overflow: visible;
}

.tour-carousel__header {
  text-align: center;
  margin-bottom: 50px;
  padding: 0 20px;
}

.tour-carousel__title {
  font-family: "Unbounded", sans-serif;
  font-size: clamp(24px, 4vw, 32px);
  font-weight: 400;
  color: #ffffff;
  margin: 0 0 16px;
  letter-spacing: 0.02em;
}

.tour-carousel__subtitle {
  font-size: 18px;
  color: var(--accent);
  font-weight: 400;
  margin: 0;
  opacity: 0.9;
}

/* Tour Carousel Container */
.tour-carousel {
  position: relative;
  max-width: 100%;
  margin: 0 auto;
}

.tour-carousel__container {
  overflow: hidden;
  position: relative;
  margin-bottom: 50px;
  width: 100%;
}

.tour-carousel__track {
  display: flex;
  transition: transform 0.5s ease;
  gap: 20px;
  padding: 0 20px;
  width: fit-content;
}

/* Tour Carousel Cards */
.tour-carousel__card {
  flex: 0 0 320px;
  max-width: 320px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  min-height: 400px;
  display: flex;
  flex-direction: column;
}

.tour-carousel__card:hover {
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.04);
  transform: translateY(-4px);
}

.tour-carousel__card-image {
  position: relative;
  height: 250px;
  overflow: hidden;
}

.tour-carousel__card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.tour-carousel__card:hover .tour-carousel__card-image img {
  transform: scale(1.05);
}

.tour-carousel__card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.1) 0%,
    rgba(0, 0, 0, 0.3) 50%,
    rgba(0, 0, 0, 0.7) 100%
  );
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  color: white;
}

.tour-carousel__card-duration {
  font-family: "Unbounded", sans-serif;
  font-size: 11px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
  display: block;
}

.tour-carousel__card-title {
  font-family: "Unbounded", sans-serif;
  font-size: 24px;
  font-weight: 400;
  color: #ffffff;
  margin: 0 0 8px;
  line-height: 1.2;
  letter-spacing: -0.3px;
}

.tour-carousel__card-subtitle {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 400;
  margin: 0;
  line-height: 1.4;
}

.tour-carousel__card-content {
  padding: 20px;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tour-carousel__btn {
  width: 100%;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.8);
  padding: 14px 20px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: "Nunito", sans-serif;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
  text-decoration: none;
}

.tour-carousel__btn:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}

.tour-carousel__btn svg {
  transition: transform 0.3s ease;
}

.tour-carousel__btn:hover svg {
  transform: translateX(2px);
}

/* Carousel Navigation */
.tour-carousel__nav {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  z-index: 10;
  pointer-events: none;
}

.tour-carousel__nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
  pointer-events: auto;
}

.tour-carousel__nav-btn:hover {
  background: rgba(0, 0, 0, 0.5);
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-50%) scale(1.05);
}

.tour-carousel__nav-btn--prev {
  left: 20px;
}

.tour-carousel__nav-btn--next {
  right: 20px;
}

.tour-carousel__nav-btn:disabled {
  opacity: 0.5;
  cursor: pointer;
  transform: translateY(-50%);
}

.tour-carousel__nav-btn:disabled:hover {
  transform: translateY(-50%) scale(1.05);
  background: rgba(0, 0, 0, 0.4);
  border-color: rgba(255, 255, 255, 0.4);
  color: rgba(255, 255, 255, 0.7);
}

/* Carousel Dots */
.tour-carousel__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 30px;
  padding: 20px;
  visibility: visible;
  opacity: 1;
  width: 100%;
  box-sizing: border-box;
}

.tour-carousel__dot {
  width: 30px;
  height: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.3);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  display: block;
  visibility: visible;
  opacity: 1;
  flex-shrink: 0;
  min-width: 30px;
}

.tour-carousel__dot:hover {
  background: rgba(255, 255, 255, 0.5);
  transform: scaleY(1.5);
}

.tour-carousel__dot.active {
  background: var(--accent);
  width: 40px;
  transform: scaleY(1.2);
}

/* Special styling for different tour types */
.tour-carousel__card--tokyo {
  border-left: 4px solid var(--accent);
}

.tour-carousel__card--osaka {
  border-left: 4px solid #FF6B35;
}

.tour-carousel__card--kyoto {
  border-left: 4px solid #96CEB4;
}

.tour-carousel__card--kobe {
  border-left: 4px solid #45B7D1;
}

.tour-carousel__card--nara {
  border-left: 4px solid #4ECDC4;
}

/* Program Modal - Minimalist Design */
.program-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.program-modal.active {
  display: flex;
}

.program-modal__backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(12px);
}

.program-modal__container {
  position: relative;
  background: rgba(10, 10, 10, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  max-width: 700px;
  width: 100%;
  max-height: 85vh;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(20px);
}

.program-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(15, 15, 15, 0.8);
  backdrop-filter: blur(10px);
}

.program-modal__title {
  font-family: "Unbounded", sans-serif;
  font-size: 18px;
  font-weight: 400;
  color: #ffffff;
  margin: 0;
  letter-spacing: -0.2px;
}

.program-modal__close {
  width: 32px;
  height: 32px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.program-modal__close:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--accent);
  color: var(--accent);
  transform: scale(1.05);
}

.program-modal__content {
  padding: 20px;
  max-height: calc(85vh - 70px);
  overflow-y: auto;
  color: #ffffff;
  background: rgba(10, 10, 10, 0.9);
  backdrop-filter: blur(5px);
}

/* Modal Content Styles - Minimalist */
.modal-city-title {
  font-family: "Unbounded", sans-serif;
  font-size: 22px;
  font-weight: 400;
  color: #ffffff;
  margin: 0 0 6px;
  line-height: 1.3;
  letter-spacing: -0.3px;
}

.modal-city-subtitle {
  font-size: 15px;
  color: var(--accent);
  font-weight: 400;
  margin: 0 0 16px;
  opacity: 0.9;
}

.modal-city-summary {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.5;
  font-size: 14px;
  margin: 0 0 20px;
  font-weight: 400;
}

.modal-highlights {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
}

.modal-highlights li {
  color: rgba(255, 255, 255, 0.75);
  font-size: 13px;
  margin-bottom: 6px;
  padding-left: 16px;
  position: relative;
  font-weight: 400;
  line-height: 1.4;
}

.modal-highlights li::before {
  content: '•';
  position: absolute;
  left: 0;
  top: 0;
  font-size: 10px;
  color: var(--accent);
  font-weight: 400;
}

.modal-program-day {
  margin-bottom: 24px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.modal-program-day:last-child {
  margin-bottom: 0;
  border-bottom: none;
}

.modal-program-day__title {
  font-family: "Unbounded", sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: #ffffff;
  margin: 0 0 12px;
  line-height: 1.3;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.modal-program-day__description {
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  line-height: 1.4;
  margin: 0 0 16px;
  font-style: italic;
}

.modal-schedule {
  margin-top: 12px;
}

.modal-schedule-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}

.modal-schedule-item:last-child {
  margin-bottom: 0;
  border-bottom: none;
}

.modal-schedule-time {
  font-family: "Unbounded", sans-serif;
  font-size: 11px;
  font-weight: 400;
  color: var(--accent);
  background: rgba(0, 0, 0, 0.3);
  padding: 4px 8px;
  border-radius: 4px;
  white-space: nowrap;
  flex-shrink: 0;
  min-width: 60px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Стили для обычных карточек времени (не в модальном окне) */
.schedule-time {
  font-family: "Unbounded", sans-serif;
  font-size: 11px;
  font-weight: 400;
  color: var(--accent);
  background: rgba(0, 0, 0, 0.3);
  padding: 4px 8px;
  border-radius: 4px;
  white-space: nowrap;
  flex-shrink: 0;
  min-width: 60px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.modal-schedule-activity {
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  line-height: 1.5;
  font-weight: 400;
  flex: 1;
}

.modal-schedule-activity strong {
  color: #ffffff;
  font-weight: 500;
  display: block;
  margin-bottom: 4px;
  font-size: 14px;
}

.modal-additional-info {
  margin-top: 12px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 6px;
  border-left: 2px solid var(--accent);
}

.modal-additional-info p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 11px;
  line-height: 1.4;
  margin: 0;
}

.modal-additional-info strong {
  color: #ffffff;
  font-weight: 500;
}

/* Responsive Design */
@media (max-width: 1440px) {
  .tour-carousel__card {
    flex: 0 0 300px;
    max-width: 300px;
  }
}

@media (max-width: 1024px) {
  .tour-carousel__card {
    flex: 0 0 280px;
    max-width: 280px;
  }
  
  .tour-carousel__nav-btn {
    width: 35px;
    height: 35px;
  }
  
  .tour-carousel__nav-btn--prev {
    left: 10px;
  }
  
  .tour-carousel__nav-btn--next {
    right: 10px;
  }
}

@media (max-width: 768px) {
  .tour-carousel-section {
    padding: 40px 0;
  }
  
  .tour-carousel__header {
    margin-bottom: 30px;
    padding: 0 16px;
  }
  
  .tour-carousel__title {
    font-size: clamp(20px, 5vw, 28px);
  }
  
  .tour-carousel__track {
    padding: 0 16px;
  }
  
  .tour-carousel__card {
    flex: 0 0 280px;
    max-width: 280px;
    min-height: 350px;
  }
  
  .tour-carousel__card-image {
    height: 200px;
  }
  
  .tour-carousel__card-title {
    font-size: 20px;
  }
  
  .tour-carousel__card-subtitle {
    font-size: 13px;
  }
  
  .tour-carousel__nav-btn {
    width: 35px;
    height: 35px;
  }
  
  .tour-carousel__nav-btn--prev {
    left: 5px;
  }
  
  .tour-carousel__nav-btn--next {
    right: 5px;
  }
  
  .program-modal__container {
    max-height: 90vh;
    margin: 10px;
    border-radius: 8px;
  }
  
  .program-modal__header {
    padding: 14px 18px;
  }
  
  .program-modal__content {
    padding: 18px;
    max-height: calc(90vh - 65px);
  }
  
  .modal-city-title {
    font-size: 20px;
  }
  
  .modal-schedule-item {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
  }
  
  .modal-schedule-time {
    min-width: auto;
    font-size: 12px;
    padding: 5px 10px;
    background: rgba(0, 0, 0, 0.3);
  }
}

@media (max-width: 480px) {
  .tour-carousel-section {
    padding: 30px 0;
  }
  
  .tour-carousel__header {
    margin-bottom: 25px;
    padding: 0 12px;
  }
  
  .tour-carousel__track {
    padding: 0 12px;
  }
  
  .tour-carousel__card {
    flex: 0 0 260px;
    max-width: 260px;
    min-height: 300px;
  }
  
  .tour-carousel__card-image {
    height: 180px;
  }
  
  .tour-carousel__card-overlay {
    padding: 16px;
  }
  
  .tour-carousel__card-title {
    font-size: 18px;
  }
  
  .tour-carousel__card-subtitle {
    font-size: 12px;
  }
  
  .tour-carousel__card-content {
    padding: 16px;
  }
  
  .tour-carousel__btn {
    padding: 12px 16px;
    font-size: 13px;
  }
  
  .tour-carousel__nav-btn {
    width: 30px;
    height: 30px;
  }
  
  .tour-carousel__nav-btn--prev {
    left: 2px;
  }
  
  .tour-carousel__nav-btn--next {
    right: 2px;
  }
  
  .tour-carousel__dots {
    margin-top: 20px;
    gap: 6px;
  }
  
  .tour-carousel__dot {
    width: 25px;
    height: 2px;
  }
  
  .tour-carousel__dot.active {
    width: 35px;
  }
  
  .program-modal__container {
    margin: 8px;
    border-radius: 8px;
  }
  
  .program-modal__header {
    padding: 12px 16px;
  }
  
  .program-modal__title {
    font-size: 16px;
  }
  
  .program-modal__close {
    width: 30px;
    height: 30px;
  }
  
  .program-modal__content {
    padding: 16px;
    max-height: calc(90vh - 55px);
  }
  
  .modal-city-title {
    font-size: 18px;
  }
  
  .modal-city-subtitle {
    font-size: 14px;
  }
  
  .modal-city-summary {
    font-size: 14px;
  }
  
  .modal-highlights li {
    font-size: 13px;
  }
  
  .modal-program-day {
    padding: 16px 0;
    margin-bottom: 20px;
  }
  
  .modal-program-day__title {
    font-size: 16px;
  }
  
  .modal-program-day__description {
    font-size: 13px;
  }
  
  .modal-schedule-item {
    padding: 10px 0;
    margin-bottom: 12px;
  }
  
  .modal-schedule-time {
    font-size: 11px;
    padding: 4px 8px;
    background: rgba(0, 0, 0, 0.3);
  }
  
  .modal-schedule-activity {
    font-size: 13px;
  }
  
  .modal-schedule-activity strong {
    font-size: 14px;
  }
}