.event-detail-modal {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  font-family: var(--font-secondary);
}

.event-detail-modal-content {
  background-color: #fff;
  width: 95%;
  max-width: 1200px;
  max-height: 600px;
  display: flex;
  /* border-radius: 6px; */
  overflow: hidden;
  font-family: var(--font-secondary);
}

/* Left Gallery */
.event-gallery-column {
  flex: 0 0 40%; /* left column size */
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px; /* space between big image and row of thumbs */
  padding: 12px;
}

.main-event-image {
  width: 100%;
  max-width: 380px; /* control main image size */
  aspect-ratio: 4 / 5;
  overflow: hidden;
  /* border-radius: 10px; */
  background: #f5f5f5;
}

.main-event-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* border-radius: 10px; */
  display: block;
}

.thumbnail-gallery {
  display: flex;
  justify-content: center; /* center thumbnails under big image */
  gap: 12px;
  width: 100%;
  max-width: 380px; /* align with big image width */
  overflow-x : auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none; 
}

.thumbnail {
  /* flex: 1; */
  flex: 0 0 calc(25% - 8px);
    scroll-snap-align: start; 
  max-width: 100px; /* keeps thumbs smaller */
  aspect-ratio: 1 / 1; /* square thumbs */
  cursor: pointer;
  border-radius: 6px;
  overflow: hidden;
  transition: transform 0.2s ease, border 0.2s ease;
}

.thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  /* border-radius: 6px; */
}

.thumbnail:hover {
  transform: scale(1.05);
}

.thumbnail.active img {
  border: 2px solid var(--clr-purple, #6c3bd0);
}

/* Right Info Column */
.event-info-column {
  flex: 1.2;
  padding: 2rem;
  position: relative;
  overflow-y: auto;
  color: #111;
}

.event-title {
  font-family: var(--font-primary);
  font-size: clamp(1.5rem, 5vw, 2.2rem);
  margin: 0 4rem 1rem 0;
  text-transform: uppercase;
  font-weight: 700;
}

.modal-close-btn {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  font-weight: bold;
  font-size: 1.2rem;
  color: #000;
  cursor: pointer;
  font-family: var(--font-primary);
  line-height: 1;
}

.event-meta {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.event-info-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: #111;
  line-height: 1.1;
  letter-spacing: 0.02em;
}

.event-info-item img {
  width: 16px;
  margin-top: 3px;
}

/* Layout: description left, price+stepper stacked right */
.description-price-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
}

.event-description-col {
  flex: 2; /* take more space */
}

.event-price-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
}

.event-price {
  font-size: 1.6rem;
  font-weight: 700;
}

.quantity-stepper {
  display: flex;
  align-items: center;
}

/* Stepper buttons */
.stepper-btn,
.quantity-input {
  height: 42px;
  border: 1px solid #ccc;
}

.stepper-btn {
  width: 42px;
  font-size: 1.2rem;
  font-weight: bold;
  cursor: pointer;
  color: #fff;
}

.stepper-btn.minus {
  background: var(--clr-purple);
}

.stepper-btn.plus {
  background: var(--clr-yellow);
  color: #000;
}

.quantity-input {
  width: 64px;
  text-align: center;
  font-weight: 600;
  border-left: none;
  border-right: none;
}

/* Booking Form */
#reserve-spot-modal .form-group legend {
  position: absolute;
  top: 0.4rem;
  background-color: #fff;
  padding: 0 0.5rem;
  font-family: var(--font-primary);
  font-size: 1rem;
  font-weight: bold;
  text-transform: uppercase;
  color: #111;
}

fieldset input,
fieldset select,
fieldset textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 0.95rem;
}

.event-booking-form .form-group {
  border: 1px solid #ccc;
  /* padding: 2rem 1.5rem 1.5rem;
  margin: 1.5rem 0; */
  padding: 1rem;
  margin: 1rem 0;
  position: relative;
}
.event-booking-form legend {
  font-weight: bold;
  font-size: 0.9rem;
  padding: 0 0.5rem;
  margin-left: 1rem;
  background: #fff;
  position: absolute;
  top: 0;
  transform: translateY(-50%);
}
.slot-chooser,
.ticket-chooser {
  display: flex;
  gap: 1rem;
}
.slot-chooser label,
.ticket-chooser label {
  border: 1px solid #ccc;
  padding: 0.75rem 1.25rem;
  cursor: pointer;
  font-weight: 500;
}
.slot-chooser input,
.ticket-chooser input {
  display: none;
}
.slot-chooser input:checked + label,
.ticket-chooser input:checked + label {
  background: #000;
  color: #fff;
  border-color: #000;
}

/* Personal Details */
.form-row {
  margin-top: 1rem;
}
/* .form-row input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ccc;
  font-size: 1rem;
} */

/* Phone Input Split */
.phone-input {
  display: flex;
  align-items: center;
  border: 1px solid #ccc;
}
.phone-input .country-code {
  font-weight: bold;
  padding: 0 0.75rem;
  background: #f5f5f5;
  border-right: 1px solid #ccc;
}
.phone-input input {
  flex: 1;
  border: none;
  padding: 0.75rem;
  font-size: 1rem;
}

.event-description-col p, .event-info-item span{
  font-weight: 300;
  font-size: 1.125rem;
  line-height: 1;
  letter-spacing: 0.02em;
  color: black;
}

/* Submit Button */
.submit-button {
  width: 45%;
  display : block;
  margin : 0 auto;
  text-align: center;
  background-color: #fff;
  color: #111;
  border: 1px solid #111;
  padding: 0.8rem 2.5rem;
  font-family: var(--font-primary);
  font-weight: bold;
  text-transform: uppercase;
  font-size: 1.3rem;
  cursor: pointer;
  transition: all 0.2s;
  border-radius: 0;
  margin-top :1rem;
}

.submit-button:hover {
  background-color: #111;
  color: #fff;
}

/* =================================================== */
/* --- Event Modal - Time Slot Chooser Styles --- */
/* =================================================== */
#reserve-spot-modal .slot-chooser {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

#reserve-spot-modal .slot-chooser-title {
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 1.5rem;
  text-transform: uppercase;
  margin: 0;
}

#reserve-spot-modal .modal-slot-options {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0.75rem;
  /* margin-top: 1.2rem; */
}

#reserve-spot-modal .modal-slot-options input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

#reserve-spot-modal .event-form-title {
  font-weight: 700;
  color: #111;
  font-family: var(--font-primary);
  line-height: 1;
  letter-spacing: 0.04em;
  font-size: 1.5rem;
}

#reserve-spot-modal .modal-slot-options label:hover {
  background-color: #f0f0f0;
}


#reserve-spot-modal .slot-available {
  display: none;
}

/* --- Scrollbar Styles --- */
.event-info-column::-webkit-scrollbar {
  width: 5px;
}
.event-info-column::-webkit-scrollbar-track {
  background: #eee;
}
.event-info-column::-webkit-scrollbar-thumb {
  background-color: #111;
}
.event-info-column::-webkit-scrollbar-button {
  display: none;
}
.event-info-column {
  scrollbar-width: thin;
  scrollbar-color: #111 #eee;
}

/* =================================================== */
/* --- Mobile Responsive Styles for Modal --- */
/* =================================================== */
@media (max-width: 768px) {
  #reserve-spot-modal .event-form-title {
    font-size: 1.25rem;
  }
  .event-detail-modal-content {
    flex-direction: column;
    max-height: 90vh;
    overflow-y: auto;
  }
  .form-control input, .form-control textarea, .form-control select {
    font-size : 0.8rem !important;
  }
  .event-gallery-column {
    flex: 0 0 auto;
  }

  .event-info-column {
    overflow-y: visible;
  }

  .description-price-wrapper {
    flex-direction: column;
    gap: 1.5rem;
  }
  #reserve-spot-modal .event-price-col {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }

  #reserve-spot-modal .event-price {
    font-size: 1.5rem;
    color : #000;
  }

  /* --- Responsive Stepper --- */
  .stepper-btn,
  .quantity-input {
    height: 38px;
  }

  .stepper-btn {
    width: 38px;
    font-size: 1.1rem;
  }

  .quantity-input {
    width: 50px;
  }
  
  /* --- Responsive Submit Button --- */
  .submit-button {
      font-size: 1rem;
      padding: 0.8rem 1.5rem;
  }

  .main-event-image,
  .thumbnail-gallery {
    max-width: none;
  }
/* 
  .thumbnail-gallery {
    display: grid;
    grid-template-rows: repeat(2, 1fr);
    grid-auto-flow: column;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 10px; 
    scrollbar-width: none; 
    -ms-overflow-style: none;
    padding : 0 1rem;
  }

  .thumbnail-gallery::-webkit-scrollbar {
    display: none; 
  }
  
  .thumbnail {
    width: 42vw;
    scroll-snap-align: start;
    aspect-ratio: 1 / 1;
    cursor: pointer;
    overflow: hidden;
  } */
     .thumbnail-gallery {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 4px;
        overflow-x: hidden;
        scroll-snap-type: none;
        justify-content: sspace-between;
        padding-inline: 1.0625rem; 
    }

    .thumbnail img {
        /* Make the image fill its grid cell */
        width: 100%;
        height: 100%;
        
        /* This maintains the 160x200 proportion at any size */
        aspect-ratio: 160 / 200;
        
        /* This prevents the image from being stretched or squished */
        object-fit: cover;
    }

    .thumbnail-gallery::-webkit-scrollbar {
        display: none;
    }
  }

    .event-description-col p {
      font-family:var(--font-secondary);
      font-weight: 300;
      font-size: 1.2rem;
      line-height: 1;
      letter-spacing: 0.04em;
    }

    .event-info-item span{
      font-weight: 400;
      font-size: 1.4rem;
      line-height: 1;
      letter-spacing: 0.02em;

    }


/* --- Slot Chooser Styles --- */


/* 2. Style the label to look like a button */
#reserve-spot-modal .modal-slot-options label {
  display: inline-block;
  border: 1px solid #ccc;
  padding: 0.625rem 1.25rem;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s ease;
  font-weight: 400;
  font-size: 1rem;
  font-family: var(--font-secondary);
}
#reserve-spot-modal .modal-slot-options input[type="radio"]:checked + label {
  background-color: #fff;
  color: #000;
  border-color: #111;
  margin-top : 0.5px;
}
@media (max-width: 768px) {
  #reserve-spot-modal .modal-slot-options {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  #reserve-spot-modal .modal-slot-options label {
    font-size: 0.9rem;
    border-radius: 0.279rem; 
    padding: 0.349rem 0.698rem;
    font-size: 0.7rem;
    white-space: nowrap;
  }
  #reserve-spot-modal .modal-slot-options::-webkit-scrollbar {
    display: none; 
  }
}

/* Desktop flower - bottom left blue */
@media (min-width: 769px) {
    #reserve-spot-modal .event-detail-modal-content {
        position: relative;
    }
    
    #reserve-spot-modal .event-gallery-column::before {
        content: '';
        position: absolute;
        width: 200px;
        height: 188px;
        opacity: 0.7;
        bottom: 0;
        left: -60px;
        transform: rotate(10deg);
        z-index: 0;
        pointer-events: none;
        background-image: url("/static/assets/static/blue.351bfb4e703e.png");
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
    }
    
    /* Ensure content stays above flower */
    #reserve-spot-modal .main-event-image,
    #reserve-spot-modal .thumbnail-gallery {
        position: relative;
        z-index: 1;
    }
}

/* Mobile flowers */
@media (max-width: 768px) {   
    
    /* Bottom left blue flower */
    #reserve-spot-modal .event-flower-bottom-left {
        position: absolute;
        width: 30vw;
        max-width: 120px;
        height: auto;
        aspect-ratio: 1 / 0.93;
        opacity: 0.8;
        bottom: -10%;
        left: -10%;
        transform: rotate(15deg);
        z-index: 1;
        pointer-events: none;
        background-image: url("/static/assets/static/blue.351bfb4e703e.png");
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
    }
    

}

/* Mobile flowers */
@media (max-width: 768px) {
    #reserve-spot-modal .event-detail-modal-content {
        position: relative;
    }
    
    #reserve-spot-modal .event-header-mobile {
        position: relative;
        overflow: visible;
    }
    
    /* Top left grey flower - attach to header instead */
    #reserve-spot-modal .event-flower-top-right{
        position: absolute;
        width: 170px;
        height: 160px;
        opacity: 0.7;
        top: 78px;
        right: -45px;
        transform: rotate(76.34deg);
        z-index: 1;
        pointer-events: none;
        background-image: url("/static/assets/static/green.c3ae4e5bbc2e.png");
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
    }
    
    /* Bottom left blue flower - attach to modal content, not info column */
    #reserve-spot-modal .event-flower-bottom-left {
        position: fixed;
        width: 30vw;
        max-width: 120px;
        height: auto;
        aspect-ratio: 1 / 0.93;
        opacity: 0.7;
        bottom: 13%;
        left: -1%;
        transform: rotate(-179deg);
        z-index: 1;
        pointer-events: none;
        background-image: url("/static/assets/static/yellow.24f22e4d1296.png");
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
    }
    
    /* Bottom right blue flower - attach to modal content, not info column */
    #reserve-spot-modal .event-flower-bottom-right {
        position: fixed;
        width: 30vw;
        max-width: 120px;
        height: auto;
        aspect-ratio: 1 / 0.93;
        opacity: 0.7;
        bottom: 9%;
        right: -1%;
        transform: rotate(-176deg);
        z-index: 1;
        pointer-events: none;
        background-image: url("/static/assets/static/blue.351bfb4e703e.png");
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
    }
    
    /* Ensure these don't affect info column overflow */
    #reserve-spot-modal .event-info-column {
        overflow-y: auto;
        overflow-x: visible;
    }
}
