@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;600;700&display=swap");

/* ============================================================================
   CSS CUSTOM PROPERTIES (VARIABLES)
   ============================================================================ */

:root {
  /* Colors */
  --color-primary: #bb6c51;
  --color-text: #7C837C;
  --color-accent: #A5ACA4;
  --color-light: #f5f4f0;
  --color-white: #ffffff;
  --color-dark: #333;
  --color-background-gradient-start: #fcfbf7;
  --color-background-gradient-end: #f1f2f1;
  --color-separator: #a0a79f;
  --color-link-hover: #bb6c51;
  --color-form-bg: #f8f9fa;
  --color-footer-text: #cdd2cd;
  --color-tooltip-bg: #444;
  --color-error: red;

  /* Fonts */
  --font-primary: "Maven Pro", sans-serif;
  --font-secondary: "Cormorant Garamond", serif;

  /* Spacing */
  --section-spacing: 40px;
  --border-radius: 8px;
  --border-radius-large: 12px;
  --border-radius-button: 30px;

  /* Sizes */
  --hero-arrow-bottom: 150px;
  --hero-arrow-bottom-mobile: 40px;
  --hero-arrow-size: 48px;
  --hero-button-bottom: 100px;
  --hero-button-bottom-mobile: 40px;
  --event-card-height: 250px;
  --map-height: 300px;
  --icon-size: 1.2rem;
}

/* ============================================================================
   GENERAL / BODY STYLES
   ============================================================================ */

body {
  font-family: var(--font-primary);
  background: linear-gradient(135deg, var(--color-background-gradient-start), var(--color-background-gradient-end));
  color: var(--color-text);
  overflow-x: hidden;
  margin: 0;
}

/* ============================================================================
   HERO SECTION
   ============================================================================ */

.hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  height: 100vh;
  background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)) center/cover;
  color: var(--color-light);
  position: relative;
}

.hero img {
  max-width: 80%;
  height: auto;
  margin-bottom: 10px;
  animation: fadeIn 2s;
  opacity: 0;
  transition: opacity 0.3s ease-in;
}

.hero img.loaded {
  opacity: 1;
}

.hero p {
  font-size: 24px;
  color: var(--color-light);
  animation: fadeIn 3s;
}

/* Hero - Down Arrow Animation */
.down-arrow {
  position: absolute;
  bottom: var(--hero-arrow-bottom);
  font-size: var(--hero-arrow-size);
  cursor: pointer;
  color: var(--color-white);
  animation: bounce 2s infinite;
}

@keyframes bounce {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(10px);
  }
}

/* ============================================================================
   COUNTDOWN SECTION
   ============================================================================ */

#countdown-section {
  padding: var(--section-spacing);
  border-radius: var(--border-radius-large);
  text-align: center;
}

.countdown-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(15px, 3vw, 25px);
  flex-wrap: nowrap;
  width: 100%;
}

.countdown-number {
  font-size: clamp(3rem, 6vw, 8rem);
  font-family: var(--font-secondary);
  color: var(--color-accent);
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.2);
  font-variant-numeric: tabular-nums;
}

.separator {
  font-size: clamp(2rem, 5vw, 6rem);
  color: var(--color-accent);
}

.countdown-label {
  font-size: clamp(1rem, 1.5vw, 1.8rem);
  margin-top: 8px;
  font-family: var(--font-secondary);
}

.countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.countdown-message {
  font-size: 0.9rem;
  margin-top: 30px;
  margin-bottom: 10px;
}

.countdown-message:last-of-type {
  margin-top: 10px;
}

/* ============================================================================
   MAP SECTION
   ============================================================================ */

.container-fluid.map-wrapper {
  margin: 0;
  padding: 0;
  width: 100vw;
  overflow: hidden;
}

.map-container {
  width: 100vw;
  height: var(--map-height);
  margin: 0;
  padding: 0;
  border-radius: 0;
}

/* ============================================================================
   EVENTS SECTION
   ============================================================================ */

.event-card {
  background-size: cover;
  background-position: center;
  border-radius: var(--border-radius);
  overflow: hidden;
  position: relative;
  height: var(--event-card-height);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.event-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

/* Overlay Styling */
.overlay {
  background: rgba(0, 0, 0, 0.5);
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  color: var(--color-white);
  font-family: var(--font-primary);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

/* Content Section */
.card-content {
  margin-bottom: auto;
}

.event-time {
  font-size: 1.4rem;
  font-weight: 400;
  margin-bottom: 6px;
  color: var(--color-white);
}

.event-location {
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--color-white);
}

/* Button Section */
.card-details .btn-outline-light {
  color: var(--bs-btn-hover-color);
  background-color: var(--bs-btn-hover-bg);
  border-color: var(--bs-btn-hover-border-color);
  border-radius: var(--border-radius-button);
}

/* Icons */
.icon {
  font-size: var(--icon-size);
  margin-right: 6px;
  vertical-align: middle;
}

/* ============================================================================
   SECTION SEPARATORS
   ============================================================================ */

.separator-line {
  flex-grow: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--color-separator), transparent);
  margin: 0 15px;
}

.section-separator {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: var(--section-spacing) 0;
}

/* ============================================================================
   FORM CONTROLS
   ============================================================================ */

.form-control {
  background-color: var(--color-form-bg);
}

/* ============================================================================
   MAP POPUP (EXTERNAL LIBRARY OVERRIDES)
   ============================================================================ */

.mapboxgl-popup-content {
  border-radius: var(--border-radius-large);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.map-marker-popup {
  font-family: var(--font-secondary);
  display: flex;
  flex-direction: column;
  padding: 10px;
  font-size: 14px;
}

.map-marker-popup p {
  color: var(--color-text);
  margin: 0;
  padding-bottom: 5px;
}

.map-marker-popup a {
  outline: 0 !important;
}

/* ============================================================================
   FOOTER SECTION
   ============================================================================ */

footer {
  background-color: var(--color-dark);
  color: var(--color-white);
  padding: 20px 0;
  text-align: center;
}

footer img {
  max-width: 120px;
  margin: 0 auto;
}

.footer-logo-wrapper {
  margin-bottom: 15px;
}

.footer-logo {
  max-height: 40px;
  max-width: 150px;
  margin: 0 auto;
  opacity: 0;
  transition: opacity 0.3s ease-in;
}

.footer-logo.loaded {
  opacity: 1;
}

.footer-content {
  margin-top: 15px;
}

.footer-tagline {
  font-size: 0.9rem;
  color: var(--color-footer-text);
}

.footer-environment {
  font-size: 0.7rem;
  color: var(--color-footer-text);
  margin: 10px 10px;
}

.footer-iban-container {
  font-size: 0.7rem;
  color: var(--color-footer-text);
  margin: 5px 10px;
  position: relative;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}

.footer-iban-text {
  margin: 0;
  text-decoration: none;
  color: inherit;
}

.footer-iban-value {
  color: var(--color-accent);
  text-decoration: none;
}

#copy-button .fa-copy {
  color: var(--color-accent);
}

/* ============================================================================
   ANIMATIONS
   ============================================================================ */

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s ease-out, transform 1s ease-out;
}

.fade-in-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================================
   TYPOGRAPHY
   ============================================================================ */

h1 {
  font-family: var(--font-secondary);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.5;
  text-align: center;
}

/* ============================================================================
   CONFIRMATION SECTION
   ============================================================================ */

#confirmation-section ul {
  margin: 0;
  padding: 0;
}

#confirmation-section ul li {
  margin-bottom: 10px;
}

#confirmation-section ul li a {
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

#confirmation-section ul li a:hover {
  color: var(--color-link-hover);
}

#confirmation-section, #playlist-section, #confirmation-section h1, #playlist-section h1 {
  text-align: left;
}

#formContainer iframe {
  border: 1px solid var(--color-accent);
  border-radius: var(--border-radius);
}

.confirmation-contacts {
  list-style: none;
  padding: 0;
  font-size: 1rem;
}

.confirmation-deadline {
  font-size: 0.9rem;
  margin-top: 15px;
}

/* ============================================================================
   PLAYLIST SECTION
   ============================================================================ */

.playlist-description {
  font-size: 0.9rem;
}

.playlist-embed {
  border-radius: var(--border-radius-large);
}

/* ============================================================================
   ACCOMMODATION SECTION
   ============================================================================ */

.accommodation-description {
  text-align: center;
  font-size: 0.9rem;
  margin-top: 0;
}

/* ============================================================================
   GALLERY / SWIPER SECTION
   ============================================================================ */

.swiper {
  width: 100%;
  height: 100%;
  margin: 20px 0 20px;
}

.swiper-slide img {
  aspect-ratio: 1 / 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============================================================================
   BUTTONS
   ============================================================================ */

.scroll-button {
  background: none;
  color: var(--color-white);
  border: 2px solid var(--color-white);
  border-radius: var(--border-radius-button);
  padding: 10px 25px;
  font-size: 1.2rem;
  font-family: var(--font-secondary);
  text-transform: uppercase;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: background-color 0.3s, color 0.3s;
}

/* Hover effect */
.scroll-button:hover {
  background-color: var(--color-white);
  color: var(--color-primary);
}

.hero-button {
  position: absolute;
  bottom: var(--hero-button-bottom);
  text-align: center;
}

#copy-button {
  background: none;
  border: none;
  margin-left: 4px;
  cursor: pointer;
  font-size: 0.7rem;
  position: relative;
}

#copy-tooltip {
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--color-tooltip-bg);
  color: var(--color-white);
  font-size: 0.7rem;
  padding: 5px 10px;
  border-radius: 5px;
  display: none;
  white-space: nowrap;
}

/* ============================================================================
   LOGO
   ============================================================================ */

.logo-menu {
  max-height: 60px;
  max-width: 200px;
  margin: 0 auto;
  opacity: 0;
  transition: opacity 0.3s ease-in;
}

.logo-menu.loaded {
  opacity: 1;
}

/* ============================================================================
   MEDIA QUERIES - TABLET (max-width: 768px)
   ============================================================================ */

@media (max-width: 768px) {
  .down-arrow {
    bottom: var(--hero-arrow-bottom-mobile);
  }

  .event-time,
  .event-location {
    font-size: 1.2rem;
  }

  #confirmation-section,
  #playlist-section,
  #confirmation-section h1,
  #playlist-section h1 {
    text-align: center;
  }

  .scroll-button {
    font-size: 1rem;
    padding: 8px 20px;
  }

  .hero-button {
    bottom: var(--hero-button-bottom-mobile);
  }
}

/* ============================================================================
   MEDIA QUERIES - MOBILE (max-width: 576px)
   ============================================================================ */

@media (max-width: 576px) {
  .countdown-number {
    font-size: clamp(2rem, 5vw, 3rem);
  }

  .separator {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
  }

  .event-time,
  .event-location {
    font-size: 1rem;
  }
}

