/* Global Defaults */
body {
  font-family: 'Segoe UI', sans-serif;
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

section {
  border-bottom: 1px solid #ccc;
  background-color: #f9f9f9;
}

a {
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Loader */
#loader {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: #872a17;
  font-size: 2rem;
  font-weight: bold;
  z-index: 10000;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

#loader.fade-out {
  opacity: 0;
  visibility: hidden;
}

.message,
.nav-link,
.lang-select {
  font-family: 'Courier New', monospace;
  color: #872a17;
}

.message {
  display: flex;
  justify-content: center;
  margin: 5%;
}

.spinner {
  width: 60px;
  height: 60px;
  margin-bottom: 20px;
  border: 6px solid #ddd;
  border-top: 6px solid #872a17;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0); }
  100% { transform: rotate(360deg); }
}

.loading-text {
  font-size: 1.5rem;
}

/* Navigation */
.nav-link {
  margin-left: 1.5rem;
  font-size: 20px;
  font-weight: bold;
}

.nav-link:hover {
  text-decoration: underline;
}

.lang-select {
  margin-left: 1.5rem;
  font-size: 20px;
  font-weight: bold;
  background: white;
  border: none;
}

.lang-select:hover,
.lang-select:focus {
  border-color: #5e1c10;
  outline: none;
}

/* Header */
header,
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: white;
  border-bottom: 4px solid #872a17;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 100px;
  cursor: pointer;
  color: #872a17;
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 10001;
}

.site-logo {
  position: absolute;
  top: 1rem;
  left: 3rem;
  display: flex;
  align-items: center;
  max-width: 10em;
  width: 160px;
  height: auto;
}

.site-nav {
  max-width: 1200px;
  margin: auto;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 1rem;
  flex-wrap: wrap;
}

/* Main Section */
#main-section {
  padding: 60px 20px;
  background: #f9f9f9;
  text-align: center;
}

#main-section h2 {
  color: #842319;
  font-family: 'Courier New', monospace;
  font-size: 36px;
  margin-bottom: 20px;
}

#main-section-p {
  margin: 16px auto;
  line-height: 1.6;
  font-size: 16px;
  color: #555;
  max-width: 1200px;
}

#main-section a {
  color: #0056b3;
  text-decoration: underline;
  transition: color 0.2s ease;
}

#main-section a:hover {
  color: #842319;
  text-decoration: none;
}

/* Ripped Section */
.ripped-section {
  display: flex;
  position: relative;
  width: 100%;
  height: 400px;
  overflow: hidden;
  color: white;
  font-family: 'Courier New', monospace;
  font-size: 20px;
  text-shadow: 2px 2px 5px black;
  margin-top: 40px;
}

.left-container, .right-img {
  width: 51%;
  height: 100%;
  object-fit: cover;
}

.left-img {
  width: 100%;
  height: 100%;
  filter: brightness(75%);
  clip-path: polygon(0 0, 100% 0, 95% 100%, 0% 100%);
}

.right-img {
  clip-path: polygon(5% 0, 100% 0, 100% 100%, 0% 100%);
  margin-left: -2%;
  z-index: 0;
}

.left-text {
  position: absolute;
  top: 50%;
  left: 10%;
  transform: translateY(-50%);
  z-index: 2;
  max-width: 35%;
}

.ripped-mask {
  position: absolute;
  left: 49%;
  width: 2%;
  height: 100%;
  background: no-repeat center/cover;
  z-index: 3;
  pointer-events: none;
}

/* Tours Section */
.tours,
.guides {
  width: 100%;
  background: url('img/tiles.jpg') no-repeat center/cover;
  padding: 60px 20px;
  box-sizing: border-box;
}

.tours h2,
.guides h2 {
  font-size: 36px;
  color: white;
  text-align: center;
  text-shadow: 2px 2px 5px black;
  margin-bottom: 40px;
}

.tour-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
}

.tour-card {
  background: rgba(255,255,255,0.95);
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.2);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: center;
}

.tour-card h3 {
  font-family: 'Courier New', monospace;
  font-size: 20px;
  color: #842319;
  margin-bottom: 16px;
}

.tour-description p {
  font-size: 16px;
  line-height: 1.6;
  color: #000;
  margin: 10px 0;
}

.tour-price {
  font-weight: bold;
  font-size: 16px;
  margin-top: 16px;
}

.tour-discount {
  font-size: 14px;
  color: #444;
  font-style: italic;
}

/* Signup Section */
.signup-section {
  padding: 60px 20px;
  background: #f9f9f9;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.signup-container {
  display: flex;
  flex-wrap: wrap;
  max-width: 1200px;
  width: 95%;
  gap: 40px;
  justify-content: space-between;
  padding: 20px;
}

.event-list {
  flex: 1;
  max-width: 300px;
}

.event-list h3 {
  color: #842319;
  font-size: 20px;
  margin-bottom: 20px;
  font-weight: bold;
}

.event-item {
  cursor: pointer;
  margin-bottom: 14px;
  padding: 10px 14px;
  font-size: 15px;
  color: #333;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fff;
  transition: 0.2s ease;
}

.event-item:hover {
  background: #f5f5f5;
  color: #842319;
  border-color: #842319;
}

.signup-info {
  flex: 2;
}

.signup-info h2 {
  color: #842319;
  font-size: 26px;
  margin-bottom: 15px;
}

.signup-info p {
  font-size: 16px;
  line-height: 1.6;
  color: #555;
}

/* Feedbakc */
.swiper-box h2 {
  color: #842319;
  text-align: center;
}

.feedback-swiper {
  position: relative;
  padding: 0 48px;
  max-width: 900px;
  margin: 0 auto;
}

.feedback-swiper .swiper-button-prev,
.feedback-swiper .swiper-button-next {
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  color: #842319;
  z-index: 10;
}

.feedback-swiper .swiper-button-prev {
  left: -32px;
}

.feedback-swiper .swiper-button-next {
  right: -32px;
}

.feedback-swiper .swiper-pagination-bullet {
  background-color: #ccc;
  opacity: 1;
}

.feedback-swiper .swiper-pagination-bullet-active {
  background-color: #842319;
}

:root {
  --swiper-theme-color: #842319;
}

/* Guides */
.guide-row {
  display: flex;
  max-width: 1000px;
  margin: 0 auto 40px;
  background: rgba(255,255,255,0.9);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}

.guide-row h2 {
  text-shadow: none;
}

.guide-image,
.guide-description {
  width: 50%;
}

.guide-image {
  background: #eee;
  display: flex;
  align-items: center;
  justify-content: center;
}

.guide-image img {
  max-width: 100%;
  display: block;
}

.guide-description {
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.guide-description h2 {
  font-size: 24px;
  color: #872a17;
  margin-top: 0;
}

.guide-description p {
  white-space: pre-wrap;
  line-height: 1.5;
}

/* Modal */
.modal,
.event-modal {
  display: none;
  position: fixed;
  justify-content: center;
  align-items: center;
  background: rgba(0,0,0,0.5);
  z-index: 9999;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  overflow: auto;
}

.modal-content {
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  width: 90%;
  max-width: 500px;
  max-height: 80vh;
  position: relative;
  overflow-y: auto;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.close-btn,
.close-event-btn {
  background: none;
  border: none;
  font-weight: bold;
  color: #842319;
  cursor: pointer;
  font-size: 24px;
}

.close-btn:hover {
  color: #000;
}

/* Registration Form */
#registrationForm {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

#registrationForm input,
#registrationForm select {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 15px;
}

#registrationForm button {
  padding: 12px;
  background: #842319;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s;
}

#registrationForm button:hover {
  background-color: #a83223;
}

/* Footer */
.site-footer {
  background-color: #1f1f1f;
  padding: 2rem 1rem;
  text-align: center;
  color: white;
  font-size: 16px;
}

.site-footer a {
  margin-top: 10px;
  text-decoration: underline;
  color: white;
}

.footer-logo {
  width: 125px;
  margin-bottom: 1rem;
}

.footer-partner-logo {
  width: 180px;
  margin: 1rem 0;
}

.footer-social a {
  margin: 0 10px;
  color: white;
  font-size: 20px;
}

/* Mobile Adjustments */
@media (max-width: 1000px) {
  .menu-toggle {
    display: block;
  }

  .site-nav {
    display: none;
    flex-direction: column;
    justify-content: center;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    padding: 1rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    gap: 10px;
  }

  .site-nav.active {
    display: flex;
  }

  .site-nav .nav-link,
  .site-nav .lang-select,
  .nav-link,
  .lang-select {
    font-size: 56px;
    margin: 0.5rem 0;
    margin-left: 1rem;
  }

  .site-logo {
    max-width:  none;
    height: auto;
    position: absolute;
    left: 50%;
    top: 170px;
    width: 300px;
    transform: translate(-50%, -50%);
  }

  .footer-logo {
    height: auto;
    width: 45%;
  }

  .message {
    font-size: 50px;
    margin-top: 400px;
  }

  .loading-text {
    font-size: 48px;
  }

  .spinner {
    width: 250px;
    height: 250px;
  }

  .site-footer {
    font-size: 35px;
    padding-bottom: 5em;
  }

  .footer-social a {
    font-size: 50px;
  }

  .footer-partner-logo {
    width: 180px;
    height: auto;
  }

  .ripped-section {
    flex-direction: column;
    height: auto;
  }

  .left-container,
  .left-img,
  .right-img,
  .ripped-mask {
    width: 100%;
    height: 600px;
    clip-path: none;
    margin: 0;
  }

  .left-text {
    position: absolute;
    top: 300px;
    left: 0%;
    transform: none;
    max-width: 100%;
    padding: 10px;
    text-align: center;
  }

  .left-text h2,
  .tours h2,
  .guides h2,
  .guide-description h2,
  #main-section h2 {
    font-size: 56px;
  }

  .ripped-mask {
    display: none;
  }

  .tour-card {
    padding: 20px;
  }

  .tour-card h3,
  .signup-container h3 {
    font-size: 46px;
  }

  .tour-card p,
  .guide-description p {
    font-size: 40px;
  }

  .tour-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .signup-container {
    flex-direction: column;
    padding: 0 20px;
  }

  .signup-container p,
  #main-section-p {
    font-size: 20px;
    padding: 0 10px;
  }
  
  .event-item {
    font-size: 40px;
    height: 170px;
  }

  .event-list,
  .signup-info {
    max-width: 100%;
    width: 100%;
  }

  .event-list p {
    font-size: 40px;
  }

  .signup-section h2 {
    font-size: 48px;
  }

  .signup-section h3 {
    font-size: 46px;
  }

  .feedback-swiper {
    padding: 0 24px;
  }

  .feedback-swiper .swiper-button-prev {
    left: -16px;
  }

  .feedback-swiper .swiper-button-next {
    right: -16px;
  }

  .swiper-box p {
    font-size: 36px;
  }

  .guide-row {
    flex-direction: column;
  }

  .guide-image,
  .guide-description,
  .guide-image img {
    width: 100%;
    max-width: none;
  }

  .guide-description p {
    margin-right: 10px;
  }

  header {
    padding: 80px;
  }

  .modal-content {
    padding: 20px;
    max-width: 80%;
  }

  .modal-content p {
    font-size: 36px;
  }

  .modal-content span {
    font-size: 48px;
  }

  #registrationForm label {
    font-size: 36px;
  }

  #registrationForm input,
  #registrationForm select,
  #registrationForm button {
    font-size: 50px;
  }
}