.lanes-booking-modal {
	position: fixed;
	inset: 0;
	background: rgba(0,0,0,0.75);
	z-index: 99999;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.lanes-booking-modal.active {
	display: flex;
}

.lanes-booking-modal-content {
	color: #fff;
	width: 100%;
	max-width: 850px;
	max-height: 90vh;
	overflow-y: auto;
	padding: 30px;
	position: relative;
	backdrop-filter: blur(8px);
}

.lanes-booking-close {
	position: absolute;
	top: 15px;
	right: 15px;
	background: none;
	border: 0;
	color: #fff;
	font-size: 32px;
	cursor: pointer;
}

.lanes-form-row {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 20px;
	margin-bottom: 20px;
}

.lanes-field label {
	display: block;
	margin-bottom: 8px;
	color: var(--theme-palette-color-2);
    font-size: 0.8rem;
    text-transform: uppercase;
}

.lanes-field input,
.lanes-field select {
	width: 100%;
	border: 1px solid #444;
	background-color: #00000080 !important;
	color: #fff;
}

.lanes-hidden {
	display: none !important;
}

.lanes-slots-picker {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.lanes-slot-btn input {
	display: none;
}

.lanes-slot-btn span {
	display: inline-block;
	padding: 10px 16px;
	border: 1px solid #555;
	cursor: pointer;
	min-width: 88px;
}
.lanes-slot-btn:not(.is-reserved) span:hover {
	border-color: var(--theme-palette-color-2);
	color: var(--theme-palette-color-2);
}

.lanes-slot-btn input:checked + span {
	border-color: #EC2426;
	color: #EC2426;
}

.lanes-slot-btn.is-reserved span {
	opacity: 0.35;
	cursor: not-allowed;
}

.lanes-booking-summary {
	position: relative;
	border: 1px solid #333;
	padding: 20px;
	margin-bottom: 20px;
	background: #0a0a0ac7;
}

.lanes-booking-summary ul {
	list-style: none;
	padding: 0;
	margin: 0;
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 10px;
}

.lanes-booking-summary  .sm-itm > strong {
    font-size: 0.65rem;
	text-transform: uppercase;
	color: var(--theme-palette-color-2);
	display: block;
	position: relative;
	top: 7px;
}

.lanes-submit-booking {
	background: var(--theme-palette-color-1);
}

#lanes-booking-message {
	margin-top: 15px;
	font-weight: 600;
}

#lanes-booking-message.success {
	color: #5fd36a;
}

#lanes-booking-message.error {
	color: #EC2426;
}

.price-overview {
    position: absolute;
    top: 19px;
    right: 20px;
    font-weight: 600;
    font-size: 1.5em;
}


.price-overview::after,
.additional-price::after {
  content: var(--riyal-sign);
  display: inline-block;
  position: absolute;
  top: 2px;
  left: -22px;
  width: 1rem;
}

.price-overview > span {
  color: var(--theme-palette-color-1);
}

.lanes-additional-services-wrap {
	margin-bottom: 20px;
}

.lanes-toggle-additional-services {
	display: inline-block;
	margin-bottom: 12px;
	color: #EC2426;
	font-weight: 600;
	text-decoration: none;
}

.lanes-additional-services {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 10px;
	padding: 15px;
	border: 1px solid #333;
}

.lanes-additional-service-item {
	display: flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
}

.additional-services-summary {
	margin-top: 20px;
}

.additional-service {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid #545454;
  padding: 5px 0;
}

.additional-price::after {
  width: 0.8rem;
  left: -17px;
}

.additional-price {
  position: relative;
  color: var(--theme-palette-color-1);
  font-weight: 600;
}

.booking-confirmation-message {
  padding: 15px 25px 1px;
  background: #124212;
  border-radius: var(--lanes-radius);
  margin-bottom: 10px;
  border: 1px solid green;
}

.lanes-confirmation-note {
	color: #a9aba4;
	font-style: italic;
}



.lanes-confirmation-actions {
	display: flex;
	justify-content: center;
	gap: 12px;
	flex-wrap: wrap;
}

.lanes-confirmation-actions button {
	padding: 12px 20px;
	cursor: pointer;
}


#lanes-booking-form .price-overview,
#lanes-booking-form .additional-price {
  display: none;
}



.services-explorer {
  margin: 0 auto;
  padding: 40px 0 40px;
  width: min(var(--wp--style--global--content-size), calc(100% - 40px));
}

.services-category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  row-gap: 50px;
}

.service-category-card {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	background-color: oklch(13% 0 0);
	border: 1px solid oklch(26% 0 0);
	border-radius: var(--lanes-radius);
	cursor: pointer;
	transition: border-color 0.25s ease, border-width 0.25s ease, transform 0.25s ease, background 0.25s ease;
}
.service-category-card:hover {
  border-color: var(--theme-palette-color-1);
}


.service-category-card.is-active {
  position: relative;
  border-color: var(--theme-palette-color-1);
  border-bottom-width: 12px;
  transform: translateY(-3px);
}
/*.service-category-card.is-active::after {
  content: "";
  position: absolute;
  width: 100%;
  bottom: -26px;
  height: 22px;
  background: var(--theme-palette-color-1);
}*/

.service-category-card img {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}
.service-category-card-text {
  padding: 15px;
}
.service-category-card-text h4 {
  line-height: 1.2em;
}
.category-card-button {
  padding: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.view-services-arrow {
  width: 40px;
  height: 40px;
  background: var(--theme-palette-color-1);
  border-radius: var(--lanes-b-radius);
  content: url(data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20fill%3D%22%23fff%22%20class%3D%22bi%20bi-arrow-right-short%22%20viewBox%3D%220%200%2016%2016%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20d%3D%22M4%208a.5.5%200%200%201%20.5-.5h5.793L8.146%205.354a.5.5%200%201%201%20.708-.708l3%203a.5.5%200%200%201%200%20.708l-3%203a.5.5%200%200%201-.708-.708L10.293%208.5H4.5A.5.5%200%200%201%204%208%22%2F%3E%3C%2Fsvg%3E);
  padding: 5px;
  transition: transform 0.25s ease;
}
html[dir="rtl"] .view-services-arrow {
	scale: -1 1;
}

.service-category-card:hover .view-services-arrow,
.service-category-card.is-active .view-services-arrow {
  transform: rotate(90deg);
}

/* Expansion panel inserted dynamically inside the grid */
.services-expansion-panel {
  --open-height: auto; /* Custom property to control open height */
  grid-column: 1 / -1;
  overflow: hidden;
  height: 0;
  opacity: 0;
  margin-top: -28px;
  padding: 10px 0 0;
  border-top: 1px solid var(--theme-palette-color-1);
  transform: translateY(15px);
  transition: max-height 0.35s ease, opacity 0.25s ease, transform 1s ease;
}

.services-expansion-panel.is-open {
  height: var(--open-height);
  max-height: none; /* Allow it to expand fully */
  opacity: 1;
  transform: translateY(0);
}


/* Tablet */
@media (max-width: 1024px) {
  .services-category-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile stacked */
@media (max-width: 767px) {
  .services-category-grid {
    grid-template-columns: 1fr;
  }

  .service-category-card {
    min-height: 130px;
  }



}




@media (max-width: 768px) {
	.lanes-additional-services {
		grid-template-columns: 1fr;
	}
	
	.lanes-form-row,
	.lanes-booking-summary ul {
		grid-template-columns: 1fr;
	}
	
	.lanes-booking-modal-content {
		padding: 20px;
	}
	
	.lanes-booking-close {
		top: 10px;
	}
	
	.lanes-booking-modal-content h3 {
		font-size: 1.5em;
	}
	
	.lanes-booking-summary h4 {
		margin-right: 100px;
		font-size: 1.2em;
	}
	
	.additional-service {
		font-size: 0.9rem;
	}
}
