



/* =======================================
   MODAL OVERLAY + CONTAINER
======================================= */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 10000;
	
	
}

.modal-content {
    /*background: white;
    padding: 40px;
    border-radius: 10px;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    text-align: center;
    position: fixed;
    top: 4%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    padding-bottom: 100px;*/
	
	width: 100%;
    max-width: 546px;
  padding: 40px 24px 100px;
    border-radius: 10px;
    text-align: center;
    background: white;
    overflow-y: auto;
    position: fixed;
    top: 4%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    max-height: 90vh;
    padding-bottom: 100px;
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 20px;
    cursor: pointer;
}

body.modal-open {
    overflow: hidden;
}



.error-message{
	color: darkred;
	font-size: 1.3em; 
}


/* =======================================
   BOOKING DATE + ACCOMMODATION
======================================= */
.travel-input-container {
    /*width: 320px;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);*/
    background: white;
}

.option-container {
    display: flex;
    gap: 10px;
}

.option-button {
    flex: 1;
    padding: 10px;
    border: 1px solid #136ca2;
    border-radius: 4px;
    background-color: white;
    cursor: pointer;
    text-align: center;
    transition: 0.3s;
}

.option-button.active {
    background-color: #136ca2;
    color: white;
}

.input-group {
    flex-direction: column;
}

.input-group input {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 100%;
    margin-top: 10px;
}

#travelRangeWrapper {
    display: none;
}

#travelRangeGroup {
    display: flex;
    gap: 10px;
}

#addAccommodation {
    width: 100%;
    padding: 10px;
    border: 1px solid #136ca2;
    border-radius: 4px;
    background-color: white;
    cursor: pointer;
    text-align: center;
    transition: 0.3s;
    font-size: 14px;
    font-weight: bold;
    margin-top: 10px;
}

#addAccommodation:hover {
    background-color: #ff7e47;
    color: white;
    border-color: #ff7e47;
}

#accommodationCitySelect {
    width: 100%;
    padding: 12px 14px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background-color: white;
    color: #333;
    appearance: none;
    cursor: pointer;
    transition: border-color 0.3s, box-shadow 0.3s;
    margin-top: 8px;
    background-image: url('data:image/svg+xml;utf8,<svg fill="%23136ca2" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 18px 18px;
}

#accommodationCitySelect:focus {
    border-color: #136ca2;
    box-shadow: 0 0 0 2px rgba(19, 108, 162, 0.2);
    outline: none;
}
#accommodationCitySelect {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.clear-accommodation {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  font-size: 18px;
  color: #999;
}
.accommodation-group {
  position: relative;
}




.suggestions {
    display: none;
    position: absolute;
    background: white;
    border: 1px solid #ccc;
    max-width: 300px;
    z-index: 1000;
}

#event-modal .suggestion-item {
    padding: 10px;
    cursor: pointer;
}

#event-modal .suggestion-item:hover {
    background: #f0f0f0;
}

#event-modal ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

#event-modal .time-option {
    list-style: none;
}


/* =======================================
   PARTICIPANTS SECTION
======================================= */
.participants-container {
    width: 100%;
    margin-top: 10px;
    display: none;
}

#event-modal .participant {
    display: flex;
    padding: 8px;
    background: white;
    border-radius: 4px;
    border: 1px solid #ccc;
    margin-bottom: 8px;
    transition: 0.3s;
    /*width: 100%;*/

}



.modal-content > * {
  padding-inline: 12px;
  box-sizing: border-box;
}


.modal-inner {
  padding-inline: 12px;
  max-width: 600px;
  margin-inline: auto;
  box-sizing: border-box;
}

.modal-product-title {
	margin-bottom: 16px;
	font-size: 18px;
	color: #136ca2;
	text-align: center;
}



#event-modal .participant-two {
    flex-direction: column;
}

#event-modal .participant-left {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 120px;
}

#event-modal .participant-label {
    font-size: 14px;
    font-weight: bold;
    white-space: normal;
    word-wrap: break-word;
}

#event-modal .participant-full {
    width: 100%;
    text-align: left;
    font-size: 14px;
    font-weight: bold;
    padding-bottom: 5px;
}

#event-modal .participant-bottom {
    display: flex;
    align-items: center;
    width: 100%;
}

#event-modal .participant-left select {
    padding: 5px;
    font-size: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: white;
    cursor: pointer;
    width: 100px;
}

/* =======================================
   PARTICIPANT CONTROLS
======================================= */
#event-modal .quantity-controls {
    display: flex;
    align-items: center;
    gap: 5px;
    width: 100px;
}

#event-modal .quantity-btn {
    padding: 5px 10px;
    border: none;
    background: #136ca2;
    color: white;
    cursor: pointer;
    border-radius: 4px;
    transition: 0.3s;
}

#event-modal .quantity-btn:hover {
    background: #ff7e47;
}

#event-modal .quantity-input {
    width: 35px;
    text-align: center;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 3px;
}

#event-modal .remove-btn {
    background: none;
    border: none;
    color: red;
    font-size: 18px;
    cursor: pointer;
    transition: 0.3s;
    padding: 0px 10px 0px 14px;
    margin-left: 6px;
}

#event-modal .remove-btn:hover {
    color: darkred;
}

/* =======================================
   ADD PARTICIPANT BUTTONS
======================================= */
#event-modal .add-participant-buttons {
    display: flex;
    gap: 5px;
    justify-content: space-between;
    margin-top: 10px;
}

#event-modal .add-participant-buttons button {
    flex: 1;
    padding: 8px;
    border: 1px solid #136ca2;
    border-radius: 4px;
    background-color: #136ca2;
    color: white;
    cursor: pointer;
    text-align: center;
    transition: 0.3s;
    font-size: 12px;
    font-weight: bold;
}

#event-modal .add-participant-buttons button:hover {
    background-color: #ff7e47;
    border-color: #ff7e47;
}

/* =======================================
   TIME SELECTION + SPINNER
======================================= */
#event-modal .time-hint {
    font-size: 14px;
    color: #d9534f;
    margin-bottom: 10px;
    font-weight: bold;
    text-align: center;
}

#event-modal .time-option {
    padding: 10px;
    border: 1px solid #ccc;
    margin-bottom: 5px;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s, border-color 0.3s;
	color: white;
	background-color: #136ca2;
}

#event-modal .time-option:hover {
    background-color: #f26122; /* ganz leichtes Grün */
}


#event-modal .time-option.selected {
    background-color: #4CAF50; /* frisches Grün */
    color: white;
    border-color: #4CAF50;
}



.time-option.loading {
    pointer-events: none;
    opacity: 0.6;
}

.loading-spinner {
    display: inline-block;
    width: 12px;
    height: 12px;
    border: 2px solid #ccc;
    border-top: 2px solid #000;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* =======================================
   MODAL BUTTONS
======================================= */
.modal-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    padding-bottom: 326px;
}

.modal-buttons .btn {
    background-color: #136ca2;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 16px 20px;
    font-size: 17px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.modal-buttons .btn:hover {
    background-color: #ff7e47;
    transform: translateY(-2px);
}



@media (max-width: 646px) {
  .modal-content {
    padding: 24px 16px 80px;
  }

  #event-modal .add-participant-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .modal-buttons {
    flex-direction: column;
    gap: 10px;
  }

  .modal-buttons .btn {
    width: 100%;
  }
}


/* auswahl der toursprache */
.language-button.selected {
    background-color: #4CAF50;
    color: white;
}

.language-button.blocked {
    background-color: #ff6b6b;
    color: white;
}

.time-description-box {
	margin: 10px 0 20px;
	padding: 10px;
	background: #f9f9f9;
	border-left: 4px solid #ccc;
	font-size: 14px;
	line-height: 1.5;
	color: #333;
}

.time-option.selected-time {
	background-color: #4CAF50 !important;
	border: 2px solid #4CAF50 !important;
}


.product-description-box {
	margin-top: 20px;
	padding: 10px;
	background: #f9f9f9;
	border-radius: 6px;
	color: #444;
	font-size: 0.95em;
}
.time-description {
	font-size: 0.9em;
	color: white;
	margin-top: 4px;
}

.custom-checkbox {
    width: 22px;
    height: 22px;
    border: 2px solid #ccc;
    border-radius: 4px;
    display: inline-block;
    position: relative;
    transition: 0.3s;
}

#package-options h3 small {
    font-weight: normal;
    font-size: 0.9em;
    color: #999;
}


.package-option {
    padding: 8px;
    background: white;
    border-radius: 4px;
    border: 1px solid #ccc;
    margin-bottom: 8px;
    transition: 0.3s;
    cursor: pointer;
}

.package-option:hover {
    border-color: #ff7e47;
    background-color: #fff7f2;
}

.package-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.package-checkbox {
    display: none;
}

.package-checkbox:checked + .custom-checkbox {
    border-color: #28a745;
    background-color: #e6f4ec;
}



.package-checkbox:checked + .custom-checkbox::after {
    content: '✓';
    color: #28a745; /* ✅ schönes sattes Grün */
    font-size: 16px;
    position: absolute;
    top: 0;
    left: 4px;
}


.package-name {
    flex: 1;
    font-weight: bold;
}

.package-price {
    color: #ff7e47;
    font-weight: bold;
}

.package-description {
	margin-top: 8px;
	font-size: 0.9em;
	color: #444;
}



#transfer-options h3 small {
    font-weight: normal;
    font-size: 0.9em;
    color: #999;
}


.transfer-option {
    padding: 8px;
    background: white;
    border-radius: 4px;
    border: 1px solid #ccc;
    margin-bottom: 8px;
    transition: 0.3s;
    cursor: pointer;
}

.transfer-option:hover {
    border-color: #ff7e47;
    background-color: #fff7f2;
}

.transfer-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.transfer-checkbox {
    display: none;
}

.transfer-checkbox:checked + .custom-checkbox {
    border-color: #28a745;
    background-color: #e6f4ec;
}



.transfer-checkbox:checked + .custom-checkbox::after {
    content: '✓';
    color: #28a745; /* ✅ schönes sattes Grün */
    font-size: 16px;
    position: absolute;
    top: 0;
    left: 4px;
}


.transfer-name {
    flex: 1;
    font-weight: bold;
}

.transfer-price {
    color: #ff7e47;
    font-weight: bold;
}

.transfer-description {
	margin-top: 8px;
	font-size: 0.9em;
	color: #444;
}


.hidden {
	display: none;
}

.toggle-description-link {
	display: inline-block;
	margin-top: 10px;
	cursor: pointer;
	font-weight: bold;
	color: #ff7e47;
	text-decoration: underline;
}






#service-options h3 small {
    font-weight: normal;
    font-size: 0.9em;
    color: #999;
}

.service-option {
    padding: 8px;
    background: white;
    border-radius: 4px;
    border: 1px solid #ccc;
    margin-bottom: 8px;
    transition: 0.3s;
    cursor: pointer;
}

.service-option:hover {
    border-color: #ff7e47;
    background-color: #fff7f2;
}

.service-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.service-checkbox {
    display: none;
}

.custom-checkbox {
    width: 22px;
    height: 22px;
    border: 2px solid #ccc;
    border-radius: 4px;
    display: inline-block;
    position: relative;
    transition: 0.3s;
}

.service-checkbox:checked + .custom-checkbox {
    border-color: #28a745;
    background-color: #e6f4ec;
}

.service-checkbox:checked + .custom-checkbox::after {
    content: '✓';
    color: #28a745;
    font-size: 16px;
    position: absolute;
    top: 0;
    left: 4px;
}

.service-name {
    flex: 1;
    font-weight: bold;
}

.service-price {
    color: #ff7e47;
    font-weight: bold;
}

.service-description {
    margin-top: 8px;
    font-size: 0.9em;
    color: #444;
}

.toggle-description-link {
    display: inline-block;
    margin-top: 10px;
    cursor: pointer;
    font-weight: bold;
    color: #ff7e47;
    text-decoration: underline;
}

.hidden {
    display: none;
}


#time-selection-hint.highlight {
	animation: shake 0.3s ease-in-out 3;
	color: red;
	font-weight: bold;
}

@keyframes shake {
	0%   { transform: translateX(0); }
	25%  { transform: translateX(-5px); }
	50%  { transform: translateX(5px); }
	75%  { transform: translateX(-5px); }
	100% { transform: translateX(0); }
}

