/*********** page r�servation ***********/
/* Popup de detail d'un logement */
#popup_logement span {font-weight: bold;}
#popup_logement #plan_logement {width: 100%;}

/*@media(max-width:991.98px) {
	#popup_logement img {width: 100%;}
}*/

.step {display: flex; flex-direction: column;}

  /* ================= global ================= */
  @media(max-width:767.98px) {
	#sd-cmp {display: none;}
	#reservation {padding-top: 30px; padding-left: 15px; padding-right: 15px;}
	.reservation-column.step {display: none;}
	footer {display: none !important;}
	#mobile_buttons {position: fixed; bottom: 0px; z-index: 2; display: flex; width: 100%; gap: 0.25rem; padding-left: 15px; padding-right: 15px; box-sizing: border-box;}
	#mobile_buttons > div {flex: 1;}
	#mobile_buttons .right {margin-left: auto;}
	#mobile_buttons .right .btn {background-color: var(--color-secondary); color: var(--color-bg);}
	#mobile_buttons .btn {width: 100%;}


	.fa-caret-right {padding-left: 5px; color: #FFFFFF;}
	.fa-caret-left {padding-right: 5px; color: #000000;}
	#mobile_buttons #retour {display: none;}
	#mobile_buttons .button_popup_devis {display: none;}
  }

  .no-result {color: var(--color-secondary); font-weight: bold; text-align: center; margin-bottom: 50px;}
  .is-invalid ~ span, div:has(select.is-invalid) ~ span {
	color: var(--color-secondary);
  }

  /* restauration */
  #cocooking_disabled {color: var(--color-secondary); display: none;}
  #gardenresto_disabled {color: var(--color-secondary); display: none;}

  /* logements */
  .result-reservation__card.selected {background-color: var(--color-accent);}
  .outofstock img { opacity: 0.4; }
  .dernier_disponible {color: var(--color-secondary);}
  .disponible {color: var(--green);}
  .complet, .complet a {color: var(--primary_color);}
  .complet a:hover {color: var(--link_color_hover);}
  .pmr {margin-left: auto;}
  .pmr .fas {color: var(--color-secondary); font-size: 1.6rem; padding-right: 0; margin-top: -3px;}

  /* ================= Section Reservation ================= */
  .reservation-wrapper {
	padding: 0;
  }

  .reservation-badge {
	display: inline-block;
	background-color: var(--color-primary);
	color: white;
	padding: 0.5rem 1.5rem;
	border-radius: 20px;
	font-family: var(--font-text);
	font-size: 14px;
	font-weight: 500;
	margin-bottom: 1.5rem;
  }

  .reservation-title {
	font-family: var(--font-title);
	font-size: 48px;
	font-weight: 600;
	line-height: 1.2;
	color: var(--color-text);
	margin: 0 0 2rem 0;
  }

  .reservation-title-highlight {
	color: var(--color-secondary);
  }

  .reservation-date {
	color: #404f65;
	font-size: 20px;
	font-family: var(--font-text);
	font-weight: 500;
	line-height: 30px;
	margin: 0 0 3rem 0;
  }

  .reservation-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 2rem;
  }

  .reservation-column {
	display: flex;
	flex-direction: column;
	gap: 1rem;
  }

  .reservation-column-title {
	color: var(--color-secondary);
	font-family: var(--font-title);
	font-size: 18px;
	font-weight: 600;
	margin: 0 0 0.5rem 0;
  }

  .reservation-column-title--spacer {
	margin-top: 2rem;
  }

  .reservation-column-block {
	display: flex;
	flex-direction: column;
	gap: 1rem;
  }

  .reservation-option {
	margin-bottom: 1rem;
  }

  .reservation-radio {
	position: absolute;
	opacity: 0;
  }

  .reservation-label {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	cursor: pointer;
	position: relative;
	padding-left: 2rem;


  }

  .reservation-label::before {
	content: "";
	position: absolute;
	left: 0;
	width: 20px;
	height: 20px;
	border: 2px solid #d5dae1;
	border-radius: 50%;
	background-color: white;

  }

  .reservation-radio:checked + .reservation-label::before {
	border-color: var(--color-primary);
  }

  .reservation-radio:checked + .reservation-label::after {
	content: "";
	position: absolute;
	left: 7px;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background-color: var(--color-primary);
  }

  .reservation-label-text {
	display: inline-block;
	font-family: var(--font-text);
	font-size: 14px;
	font-weight: 500;
	color: var(--color-text);
  }

  .reservation-info-btn {
	width: 20px;
	min-width: 20px;
	height: 20px;
	border-radius: 50%;
	border: 1px solid #d5dae1;
	background-color: white;
	color: var(--color-text);
	font-size: 12px;
	font-weight: 600;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	transition: all 0.2s;
  }

  .reservation-info-btn:hover {
	background-color: var(--color-accent);
	border-color: var(--color-primary);
  }

  .reservation-advantages {
	margin-top: 1.5rem;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	align-items: flex-start;
  }

  .reservation-section-title {
	color: var(--color-secondary);
	font-family: var(--font-title);
	font-size: 16px;
	font-weight: 600;
	margin: 0 0 1rem 0;
  }

  .reservation-advantage-item {
	background-color: #e6ffee;
	padding: 0.75rem 1rem;
	border-radius: 8px;
	font-family: var(--font-text);
	font-size: 14px;
	font-weight: 500;
	color: var(--color-text);
	margin-bottom: 0.5rem;
	display: inline-block;
  }
  /* modif */
  .reservation-advantage-items {
	background-color: #fff5f5;
	padding: 0.75rem 1rem;
	border-radius: 8px;
	font-family: var(--font-text);
	font-size: 14px;
	font-weight: 500;
	color: var(--color-text);
	margin-bottom: 0.5rem;
	display: inline-block;
  }

  .reservation-dates-list {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
  }

  .reservation-checkbox-wrapper {
	display: flex;
	align-items: center;
	cursor: pointer;
  }

  .reservation-checkbox {
	width: 16px;
	height: 18px;
	margin-right: 0.75rem;
	cursor: pointer;
	accent-color: var(--color-primary);
  }

  .reservation-date-label {
	display: inline-block;
	background-color: #f8f9fa;
	padding: 0.75rem 1rem;
	border-radius: 20px;
	font-family: var(--font-text);
	font-size: 14px;
	font-weight: 500;
	color: var(--color-text);
	transition: all 0.2s;
  }
  .reservation-date-label.basse-saison {
	background-color: #e6ffee;
  }
  .reservation-date-label.selected-range {
	background-color: #fff5f5 !important;
  }
  .reservation-checkbox:checked ~ .reservation-date-label:not(.basse-saison) {
	background-color: var(--color-accent);
  }

  .reservation-participants-list {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	align-items: flex-start;
  }

  .reservation-participant-row {
	display: flex;
	align-items: center;
  }

  .reservation-quantity {
	position: relative;
	width: 83px;
  }

  .reservation-quantity-select,
  .reservation-quantity-select-large {
    width: 70px;
    height: 44px;
    padding: 8px 14px;
	cursor: pointer;
	font-size: 18px;
    font-family: var(--font-text);
    font-weight: 500;
    border: 1px solid #d5dae1;
    border-radius: 8px;
	background: white url('data:image/svg+xml;utf8,<svg fill="%232a3342" height="20" viewBox="0 0 20 20" width="20" xmlns="http://www.w3.org/2000/svg"><path d="M7.293 7.293a1 1 0 011.414 0L10 8.586l1.293-1.293a1 1 0 111.414 1.414l-2 2a1 1 0 01-1.414 0l-2-2a1 1 0 010-1.414z"/></svg>') no-repeat right 12px center/18px 18px;
    color: #2a3342;
    box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.05);
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    transition: border-color 0.2s;
  }
  .reservation-quantity-select::-ms-expand, .reservation-quantity-select-large::-ms-expand {
	display: none;
  }
  .reservation-quantity-select:focus, .reservation-quantity-select-large:focus {
	border-color: var(--color-primary);
	outline: none;
  }

  .reservation-participant-label {
	display: inline-block;
	background-color: var(--color-accent);
	padding: 0.75rem 1rem;
	border-radius: 20px;
	font-family: var(--font-text);
	font-size: 14px;
	font-weight: 500;
	color: var(--color-text);
  }

  .reservation-hebergement-options,
  .reservation-restauration-options {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
  }

  .reservation-radio-option {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	cursor: pointer;
	position: relative;
	padding-left: 2rem;
  }

  .reservation-radio-input {
	position: absolute;
	opacity: 0;
  }

  .reservation-radio-option::before {
	content: "";
	position: absolute;
	left: 0;
	width: 20px;
	height: 20px;
	border: 2px solid #d5dae1;
	border-radius: 50%;
	background-color: white;
  }

  .reservation-radio-input:checked ~ .reservation-radio-option::before,
  .reservation-radio-input:checked
	+ .reservation-radio-label
	+ .reservation-info-btn::before {
	border-color: var(--color-primary);
  }

  .reservation-radio-option:has(.reservation-radio-input:checked)::before {
	border-color: var(--color-primary);
  }

  .reservation-radio-option:has(.reservation-radio-input:checked)::after {
	content: "";
	position: absolute;
	left: 7px;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background-color: var(--color-primary);
  }

  .reservation-radio-label {
	display: inline-block;
	background-color: var(--color-accent);
	padding: 0.75rem 1rem;
	border-radius: 20px;
	font-family: var(--font-text);
	font-size: 14px;
	font-weight: 500;
	color: var(--color-text);
  }

  /*----------- Responsive Design ---------------*/

  @media (max-width: 1200px) {
	.reservation-grid {
	  grid-template-columns: repeat(2, 1fr);
	  gap: 2rem;
	}
  }

  @media (max-width: 580px) {
    .reservation-grid {
	  grid-template-columns: repeat(2, 1fr);
	}

	.reservation-title {
	  font-size: 32px;
	}

	.reservation-date {
	  font-size: 16px;
	}

	.reservation-grid {
	  grid-template-columns: 1fr;
	  gap: 2.5rem;
	}

	.reservation-column-title--spacer {
	  margin-top: 1.5rem;
	}
  }


  /* ================= Section RESERVATION RESULT ================= */

  /* Composant principal */
  .result-reservation {
	width: 100%;
	padding: 2rem 0;
  }

  /* Header */
  .result-reservation__header {
	margin-bottom: 0rem;
  }

  .result-reservation-title {
	display: flex;
	align-items: center;
	gap: 0.75rem;
  }

  .result-reservation__title {
	font-size: 30px;
	font-weight: 400;
	line-height: 38px;
	color: var(--color-text);
	/*margin-left: 2rem;*/
	margin-bottom: 0;
	margin-top: 0;
  }

  .result-reservation__subtitle {
	font-size: 20px;
	font-weight: 500;
	line-height: 30px;
	color: var(--color-text);
	margin-bottom: 0.5rem;
	/*margin-left: 2rem;*/
	margin-top: 0.5rem;
  }

  .result-reservation__highlight {
	color: var(--color-secondary);
  }

  .result-reservation__guarantee {
	font-size: 16px;
	font-weight: 500;
	line-height: 24px;
	color: #404f65;
	margin-top: 0.5rem;
	/*margin-left: 2rem;*/
  }

  .result-reservation__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 1.5rem;
	width: 100%;
  }

  .result-reservation__card {
	background: var(--color-bg);
	border-radius: 8px;
	box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	padding:10px;
  }

  .result-reservation__card:hover {
	transform: translateY(-4px);
	box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.15);
  }

  .result-reservation__image {
	width: 100%;
	height: auto;
	aspect-ratio: 299/281;
	object-fit: cover;
	border-radius: 10px;
	padding: 0;
  }

  .result-reservation__content {
	padding: 0 17px 17px;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	flex-grow: 1;
  }

  .result-reservation__card-title {
	font-size: 20px;
	font-weight: 500;
	line-height: 30px;
	color: var(--color-primary);
	padding-top: 0.5rem;
	height: 95px;
	display: flex;
	align-items: center;
	gap: 0.5em;
	justify-content: space-between;
  }

  .result-reservation__availability {
	display: flex;
	align-items: center;
	font-size: 16px;
	font-weight: 500;
	line-height: 24px;
	color: rgba(214, 39, 57, 0.8);
	margin: 0;
  }

  .result-reservation__pricing {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	margin-top: 0.5rem;
  }

  .result-reservation__price-line {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 16px;
	font-weight: 500;
	line-height: 24px;
	color: #404f65;
  }

  .result-reservation__price-line--total {
	font-weight: 700;
	margin-top: 0.25rem;
	padding-top: 0.5rem;
	border-top: 1px solid rgba(0, 0, 0, 0.1);
  }

  .result-reservation__button {
	width: 100%;
	max-width: 224px;
	margin: 1rem auto 0;
	padding: 16px 28px;
	background: rgba(214, 39, 57, 0.8);
	border: none;
	border-radius: 6px;
	color: white;
	font-size: 18px;
	font-weight: 500;
	line-height: 28px;
	font-family: var(--font-text);
	cursor: pointer;
	box-shadow: 0px 1px 2px rgba(105, 81, 255, 0.05);
	transition: background-color 0.3s ease, transform 0.2s ease;
  }

  .result-reservation__button:hover {
	background: rgba(214, 39, 57, 1);
	transform: scale(1.02);
  }

  .result-reservation__button:active {
	transform: scale(0.98);
  }

  /*----------- Responsive Design ---------------*/

  @media (max-width: 1024px) {
	.result-reservation__grid {
	  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	  gap: 1.25rem;
	}

	.result-reservation__title {
	  font-size: 26px;
	  line-height: 34px;
	}

	.result-reservation__subtitle {
	  font-size: 18px;
	  line-height: 28px;
	}
  }

  @media (max-width: 768px) {
	.result-reservation {
	  padding: 0 0 1.5rem 0;
	}

	.result-reservation__header {
	  margin-bottom: 2rem;
	}

	.result-reservation__title {
	  font-size: 22px;
	  line-height: 30px;
	}

	.result-reservation__subtitle {
	  font-size: 16px;
	  line-height: 24px;
	}

	.result-reservation__guarantee {
	  font-size: 14px;
	  line-height: 20px;
	}

	.result-reservation__grid {
	  grid-template-columns: 1fr;
	  gap: 1rem;
	}

	.result-reservation__card-title {
	  font-size: 18px;
	  line-height: 26px;
	}

	.result-reservation__availability,
	.result-reservation__price-line {
	  font-size: 14px;
	  line-height: 20px;
	}

	.result-reservation__button {
	  font-size: 16px;
	  padding: 14px 24px;
	}
  }

  @media (max-width: 480px) {
	.result-reservation__title {
	  font-size: 20px;
	  line-height: 28px;
	}

	.result-reservation__subtitle {
	  font-size: 14px;
	  line-height: 22px;
	}

	.result-reservation__content {
	  padding: 0 12px 12px;
	}

	.result-reservation__image {
	  padding: 0;
	}
  }