.booked-widget {
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  background: #ffffff;
  padding: 20px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
}

.booked-widget__shell,
.booked-widget__ranges {
  display: grid;
  gap: 14px;
}

.booked-widget__shell {
  position: relative;
}

.booked-widget__header h3,
.booked-widget__header p,
.booked-widget__card h4 {
  margin: 0;
}

.booked-widget__subtitle {
  color: #475569;
}

.booked-widget__card {
  background: #f8fafc;
  border-radius: 16px;
  padding: 16px;
}

.booked-widget__calendar {
  display: grid;
  gap: 16px;
}

.booked-widget__calendar-toolbar {
  display: grid;
  grid-template-columns: 40px 1fr 40px;
  align-items: center;
  gap: 10px;
}

.booked-widget__calendar-heading {
  color: #0f172a;
  font-size: 18px;
  font-weight: 700;
  text-align: center;
}

.booked-widget__calendar-nav {
  width: 40px;
  height: 40px;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  background: #ffffff;
  color: #0f172a;
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

.booked-widget__months {
  display: grid;
  grid-template-columns: repeat(var(--booked-month-count, 2), minmax(0, 1fr));
  gap: 18px;
}

.booked-widget__month {
  display: grid;
  gap: 10px;
}

.booked-widget__month-title {
  margin: 0;
  color: #0f172a;
  font-size: 15px;
  font-weight: 700;
  text-transform: capitalize;
}

.booked-widget__calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}

.booked-widget__weekday {
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  padding: 4px 0;
  text-align: center;
}

.booked-widget__day {
  aspect-ratio: 1;
  border: 1px solid #dbe3ea;
  border-radius: 8px;
  background: #ffffff;
  color: #0f172a;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  min-width: 0;
  opacity: 1;
  padding: 0;
  position: relative;
}

.booked-widget__day--empty {
  border: 0;
  background: transparent;
  cursor: default;
}

.booked-widget__day--free:hover {
  border-color: #0f766e;
  box-shadow: inset 0 0 0 1px #0f766e;
}

.booked-widget__day:disabled.booked-widget__day--free {
  cursor: default;
}

.booked-widget__day:disabled.booked-widget__day--free:hover {
  border-color: #dbe3ea;
  box-shadow: none;
}

.booked-widget__day--too-short {
  cursor: not-allowed;
}

.booked-widget__day--too-short::before,
.booked-widget__day--too-short::after {
  left: 50%;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  transform: translate(-50%, 6px);
  transition: opacity 140ms ease, transform 140ms ease, visibility 140ms ease;
  visibility: hidden;
  z-index: 30;
}

.booked-widget__day--too-short::before {
  background: #45403d;
  border: 2px solid #292522;
  border-radius: 7px;
  bottom: calc(100% + 10px);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.18);
  color: #ffffff;
  content: attr(data-tooltip);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.25;
  max-width: min(300px, calc(100vw - 32px));
  padding: 16px 20px;
  text-align: center;
  white-space: normal;
  width: max-content;
}

.booked-widget__day--too-short::after {
  background: #45403d;
  border-bottom: 2px solid #292522;
  border-right: 2px solid #292522;
  bottom: calc(100% + 2px);
  content: "";
  height: 16px;
  transform: translate(-50%, 6px) rotate(45deg);
  width: 16px;
}

.booked-widget__day--too-short:hover::before {
  animation: booked-tooltip-pop 180ms ease both;
  opacity: 1;
  transform: translate(-50%, 0);
  visibility: visible;
}

.booked-widget__day--too-short:hover::after {
  opacity: 1;
  transform: translate(-50%, 0) rotate(45deg);
  visibility: visible;
}

.booked-widget__day--period.booked-widget__day--free:not(.booked-widget__day--selected):not(.booked-widget__day--in-range) {
  border-color: color-mix(in srgb, var(--booked-period-color) 50%, #dbe3ea 50%);
  background: color-mix(in srgb, var(--booked-period-color) 16%, #ffffff 84%);
}

.booked-widget__day--period.booked-widget__day--free:not(.booked-widget__day--selected):not(.booked-widget__day--in-range):not(.booked-widget__day--too-short):hover {
  border-color: var(--booked-period-color);
  box-shadow: inset 0 0 0 1px var(--booked-period-color);
}

.booked-widget__day--too-short.booked-widget__day--free:hover {
  border-color: #dbe3ea;
  box-shadow: none;
}

.booked-widget__day--too-short.booked-widget__day--period:hover {
  border-color: color-mix(in srgb, var(--booked-period-color) 50%, #dbe3ea 50%);
}

.booked-widget__day--selected {
  border-color: #0f766e;
  background: #0f766e;
  color: #ffffff;
}

.booked-widget__day--in-range {
  border-color: #99f6e4;
  background: #ccfbf1;
  color: #134e4a;
}

@keyframes booked-tooltip-pop {
  from {
    opacity: 0;
    transform: translate(-50%, 8px) scale(0.96);
  }

  to {
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
  }
}

.booked-widget__day--booked,
.booked-widget__day--option,
.booked-widget__day--past {
  cursor: not-allowed;
}

.booked-widget__day--booked {
  border-color: #fecaca;
  background: #fee2e2;
  color: #991b1b;
  text-decoration: line-through;
}

.booked-widget__day--option {
  border-color: #fde68a;
  background: #fef3c7;
  color: #92400e;
}

.booked-widget__day--past {
  border-color: #e2e8f0;
  background: #f1f5f9;
  color: #94a3b8;
}

.booked-widget__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.booked-widget__legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #475569;
  font-size: 13px;
  font-weight: 600;
}

.booked-widget__legend-dot {
  width: 12px;
  height: 12px;
  border: 1px solid #dbe3ea;
  border-radius: 999px;
  background: #ffffff;
}

.booked-widget__legend-dot--booked {
  border-color: #fecaca;
  background: #fee2e2;
}

.booked-widget__legend-dot--option {
  border-color: #fde68a;
  background: #fef3c7;
}

.booked-widget__legend-dot--period {
  border-color: color-mix(in srgb, var(--booked-period-color) 50%, #dbe3ea 50%);
  background: color-mix(in srgb, var(--booked-period-color) 25%, #ffffff 75%);
}

.booked-widget__range {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #e2e8f0;
}

.booked-widget__range:last-child {
  border-bottom: 0;
}

.booked-widget__feedback {
  min-height: 20px;
  color: #991b1b;
}

.booked-widget--error,
.booked-widget__loading,
.booked-widget__empty {
  color: #475569;
}

.booked-heading {
  --booked-heading-line: currentColor;
  --booked-heading-accent: #8f6a4f;
  --booked-heading-soft: color-mix(in srgb, currentColor 16%, transparent);
  align-items: center;
  color: inherit;
  display: grid;
  font-size: 34px;
  gap: 18px;
  line-height: 1.18;
  margin-block: 28px;
  position: relative;
}

.booked-heading__text {
  color: inherit;
  font-size: inherit;
  font-weight: 400;
  letter-spacing: 0;
  line-height: inherit;
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
  position: relative;
  text-transform: uppercase;
}

.booked-heading--align-left {
  justify-items: start;
  text-align: left;
}

.booked-heading--align-center {
  justify-items: center;
  text-align: center;
}

.booked-heading--align-right {
  justify-items: end;
  text-align: right;
}

.booked-heading--line-ticks,
.booked-heading--long-lines,
.booked-heading--short-lines,
.booked-heading--double-lines,
.booked-heading--split-line {
  grid-template-columns: minmax(28px, 1fr) auto minmax(28px, 1fr);
}

.booked-heading__line {
  background: var(--booked-heading-line);
  display: none;
  height: 1px;
  min-width: 0;
  opacity: 0.72;
  width: 100%;
}

.booked-heading--line-ticks .booked-heading__line,
.booked-heading--long-lines .booked-heading__line,
.booked-heading--short-lines .booked-heading__line,
.booked-heading--split-line .booked-heading__line {
  display: block;
}

.booked-heading--line-ticks .booked-heading__text,
.booked-heading--long-lines .booked-heading__text,
.booked-heading--short-lines .booked-heading__text,
.booked-heading--double-lines .booked-heading__text,
.booked-heading--split-line .booked-heading__text {
  grid-column: 2;
}

.booked-heading--line-ticks .booked-heading__text {
  border-inline: 1px solid var(--booked-heading-line);
  padding-inline: 30px;
}

.booked-heading--long-lines .booked-heading__text {
  padding-inline: 24px;
}

.booked-heading--short-lines {
  grid-template-columns: minmax(42px, 120px) auto minmax(42px, 120px);
  justify-content: center;
}

.booked-heading--short-lines .booked-heading__text {
  padding-inline: 18px;
}

.booked-heading--double-lines .booked-heading__line {
  border-block: 1px solid var(--booked-heading-line);
  background: transparent;
  display: block;
  height: 8px;
  opacity: 0.64;
}

.booked-heading--double-lines .booked-heading__text {
  padding-inline: 24px;
}

.booked-heading--split-line .booked-heading__line--before {
  justify-self: end;
  transform: translateY(-10px);
  width: min(100%, 220px);
}

.booked-heading--split-line .booked-heading__line--after {
  justify-self: start;
  transform: translateY(10px);
  width: min(100%, 220px);
}

.booked-heading--split-line .booked-heading__text {
  padding-inline: 26px;
}

.booked-heading--corner-lines .booked-heading__text,
.booked-heading--brackets .booked-heading__text,
.booked-heading--boxed .booked-heading__text {
  padding: 12px 26px;
}

.booked-heading--corner-lines .booked-heading__text {
  background:
    linear-gradient(var(--booked-heading-line), var(--booked-heading-line)) left top / 42px 1px no-repeat,
    linear-gradient(var(--booked-heading-line), var(--booked-heading-line)) left top / 1px 22px no-repeat,
    linear-gradient(var(--booked-heading-line), var(--booked-heading-line)) right bottom / 42px 1px no-repeat,
    linear-gradient(var(--booked-heading-line), var(--booked-heading-line)) right bottom / 1px 22px no-repeat;
}

.booked-heading--brackets .booked-heading__text {
  border-inline: 1px solid var(--booked-heading-line);
}

.booked-heading--underline .booked-heading__text {
  border-bottom: 1px solid var(--booked-heading-line);
  padding-bottom: 12px;
}

.booked-heading--overline .booked-heading__text {
  border-top: 1px solid var(--booked-heading-line);
  padding-top: 12px;
}

.booked-heading--marker .booked-heading__text {
  background: linear-gradient(transparent 54%, color-mix(in srgb, var(--booked-heading-accent) 28%, transparent) 54%);
  display: inline-block;
  padding-inline: 5px;
}

.booked-heading--ribbon .booked-heading__text {
  background: var(--booked-heading-line);
  color: #ffffff;
  display: inline-block;
  padding: 10px 26px;
}

.booked-heading--ribbon .booked-heading__text::before,
.booked-heading--ribbon .booked-heading__text::after {
  border-block: 0.7em solid transparent;
  content: "";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.booked-heading--ribbon .booked-heading__text::before {
  border-right: 0.55em solid var(--booked-heading-line);
  right: 100%;
}

.booked-heading--ribbon .booked-heading__text::after {
  border-left: 0.55em solid var(--booked-heading-line);
  left: 100%;
}

.booked-heading--boxed .booked-heading__text {
  border: 1px solid var(--booked-heading-line);
}

.booked-heading--plain .booked-heading__text {
  max-width: 100%;
}

.booked-refresh-indicator {
  align-items: center;
  background: color-mix(in srgb, Canvas 88%, transparent);
  border: 1px solid color-mix(in srgb, currentColor 16%, transparent);
  border-radius: 999px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
  color: inherit;
  display: inline-flex;
  font-size: 12px;
  font-weight: 600;
  gap: 7px;
  line-height: 1;
  padding: 7px 10px;
  position: absolute;
  right: 10px;
  top: 10px;
  z-index: 2;
}

.booked-refresh-indicator__spinner {
  animation: booked-refresh-spin 780ms linear infinite;
  border: 2px solid color-mix(in srgb, currentColor 22%, transparent);
  border-top-color: currentColor;
  border-radius: 999px;
  flex: 0 0 auto;
  height: 12px;
  width: 12px;
}

@keyframes booked-refresh-spin {
  to {
    transform: rotate(360deg);
  }
}

.booked-gite-info {
  display: grid;
  gap: 18px;
}

.booked-gite-info__title,
.booked-gite-info__section-title,
.booked-gite-info__group-title,
.booked-gite-info__technical-description p,
.booked-gite-info__note {
  margin: 0;
}

.booked-gite-info__title {
  color: #0f172a;
  font-size: 28px;
  line-height: 1.2;
}

.booked-gite-info__section-title {
  color: #0f172a;
  font-size: 20px;
  line-height: 1.25;
}

.booked-gite-info__technical-description {
  color: #334155;
  display: grid;
  font-size: 16px;
  gap: 10px;
  line-height: 1.6;
}

.booked-gite-info__layout,
.booked-gite-info__section,
.booked-gite-info__group,
.booked-gite-info__group-content {
  display: grid;
  gap: 12px;
}

.booked-gite-info__section {
  gap: 16px;
}

.booked-gite-info__group {
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 14px;
}

.booked-gite-info__group:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.booked-gite-info__group-title {
  color: #1e293b;
  font-size: 16px;
  line-height: 1.3;
}

.booked-gite-info__items {
  display: grid;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding-left: 0;
}

.booked-gite-info__item {
  align-items: center;
  color: #334155;
  display: flex;
  gap: 8px;
  line-height: 1.45;
}

.booked-gite-info__item::before {
  background: currentColor;
  border-radius: 999px;
  content: "";
  flex: 0 0 auto;
  height: 5px;
  margin-left: 5px;
  width: 5px;
}

.booked-gite-info__item--bed::before {
  content: none;
}

.booked-gite-info__bed-icon {
  flex: 0 0 auto;
  height: 22px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
  width: 22px;
}

.booked-gite-info__item-dimensions {
  color: #64748b;
  font-size: 14px;
  line-height: 1.5;
}

.booked-gite-info__note {
  color: #64748b;
  font-size: 14px;
  line-height: 1.5;
}

.booked-accordion__details {
  border-bottom: 1px solid #e5e7eb;
  color: #263238;
}

.booked-accordion__summary {
  align-items: center;
  background: #fff;
  color: #27272a;
  cursor: pointer;
  display: flex;
  font-size: 19px;
  font-weight: 700;
  justify-content: space-between;
  line-height: 1.35;
  list-style: none;
  min-height: 48px;
  padding: 10px 24px 10px 26px;
}

.booked-accordion__title {
  flex: 1 1 auto;
}

.booked-accordion__icon {
  align-items: center;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 0.95em;
  justify-content: center;
  margin-right: 12px;
  min-width: 1.25em;
}

.booked-accordion__summary::-webkit-details-marker {
  display: none;
}

.booked-accordion__summary::marker {
  content: "";
}

.booked-accordion__summary::after {
  border-color: #a9adb1;
  border-style: solid;
  border-width: 0 4px 4px 0;
  content: "";
  flex: 0 0 auto;
  height: 11px;
  margin-left: 18px;
  transform: rotate(-45deg);
  transition: transform 220ms ease;
  width: 11px;
}

.booked-accordion__details--open > .booked-accordion__summary::after,
.booked-accordion__details--closing > .booked-accordion__summary::after {
  transform: rotate(45deg);
}

.booked-accordion {
  background: #fff;
  border: 1px solid #e5e7eb;
  display: grid;
  gap: 0;
}

.booked-accordion + .booked-accordion {
  border-top: 0;
  margin-block-start: 0 !important;
}

.booked-gite-info__layout--accordion .booked-gite-info__section-title {
  padding: 18px 30px 0;
}

.booked-accordion .booked-accordion__details:last-child {
  border-bottom: 0;
}

.booked-accordion__panel {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 280ms ease, opacity 180ms ease;
}

.booked-accordion__details--open > .booked-accordion__panel {
  max-height: none;
  opacity: 1;
}

.booked-accordion__details--closing > .booked-accordion__panel {
  max-height: 0;
  opacity: 0;
}

.booked-accordion__content,
.booked-gite-info__panel .booked-gite-info__group-content {
  color: #6b4747;
  font-size: 21px;
  gap: 18px;
  line-height: 1.6;
  padding: 28px 40px 52px;
}

.booked-accordion__content > :first-child {
  margin-top: 0;
}

.booked-accordion__content > :last-child {
  margin-bottom: 0;
}

.booked-gite-info__panel .booked-gite-info__items {
  gap: 12px;
}

.booked-gite-info__panel .booked-gite-info__item {
  color: inherit;
  font-size: inherit;
}

.booked-gite-info__panel .booked-gite-info__item::before {
  content: none;
}

.booked-gite-info__layout--cards {
  gap: 18px;
}

.booked-gite-info__section-title--cards {
  margin-top: 4px;
}

.booked-gite-info__cards {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(var(--booked-card-columns, 3), minmax(0, 1fr));
}

.booked-gite-info__card {
  border: 1px solid #dbe3ea;
  border-radius: 8px;
  display: grid;
  gap: 12px;
  padding: 16px;
}

.booked-gite-info__card .booked-gite-info__group-title {
  font-size: 24px;
  line-height: 1.25;
}

.booked-gite-info__card .booked-gite-info__item {
  font-size: 17px;
  line-height: 1.45;
}

.booked-gite-info__loading,
.booked-gite-info__empty {
  color: #475569;
}

.booked-gallery {
  display: block;
  max-width: none;
  width: 100%;
}

.booked-gallery--fixed {
  margin-inline: auto;
  max-width: var(--booked-gallery-max-width, 1200px);
}

.booked-gallery--full {
  max-width: none;
}

.booked-gallery__grid {
  display: grid;
  gap: var(--booked-gallery-gap, 16px);
}

.booked-gallery__featured {
  aspect-ratio: 3 / 1;
  display: grid;
  gap: var(--booked-gallery-gap, 16px);
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 1fr);
}

.booked-gallery__featured-side {
  display: grid;
  gap: var(--booked-gallery-gap, 16px);
  grid-auto-rows: minmax(0, 1fr);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  min-height: 0;
  min-width: 0;
}

.booked-gallery[data-featured-side-count="1"] .booked-gallery__featured-side {
  grid-template-columns: 1fr;
}

.booked-gallery[data-columns="1"] .booked-gallery__grid {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

.booked-gallery[data-columns="2"] .booked-gallery__grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.booked-gallery[data-columns="3"] .booked-gallery__grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.booked-gallery[data-columns="4"] .booked-gallery__grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.booked-gallery[data-columns="5"] .booked-gallery__grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.booked-gallery[data-columns="6"] .booked-gallery__grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.booked-gallery__item {
  display: grid;
  gap: 8px;
  margin: 0;
  min-width: 0;
}

.booked-gallery__item--featured-main,
.booked-gallery__item--featured-side {
  display: block;
  min-height: 0;
  position: relative;
}

.booked-gallery__item--featured-main .booked-gallery__media,
.booked-gallery__item--featured-side .booked-gallery__media {
  aspect-ratio: auto;
  height: 100%;
}

.booked-gallery__item--featured-main .booked-gallery__caption,
.booked-gallery__item--featured-side .booked-gallery__caption {
  background: rgba(15, 23, 42, 0.74);
  color: #ffffff;
  left: 12px;
  margin: 0;
  padding: 7px 9px;
  position: absolute;
  right: 12px;
  top: 12px;
  z-index: 2;
}

.booked-gallery__media {
  appearance: none;
  aspect-ratio: var(--booked-gallery-ratio, 4 / 3);
  background: #f1f5f9;
  border: 0;
  border-radius: 0;
  color: inherit;
  cursor: default;
  display: block;
  min-width: 0;
  overflow: hidden;
  padding: 0;
  position: relative;
  width: 100%;
}

.booked-gallery__media::after {
  background: rgba(0, 0, 0, var(--booked-gallery-hover-dim-opacity, 0));
  content: "";
  inset: 0;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  transition: opacity 240ms ease;
  z-index: 1;
}

.booked-gallery--has-active-media .booked-gallery__media:not(.booked-gallery__media--active)::after {
  opacity: 1;
}

button.booked-gallery__media {
  cursor: zoom-in;
}

.booked-gallery__media:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

.booked-gallery__media > .booked-gallery__image {
  display: block;
  height: 100%;
  inset: 0;
  max-width: none;
  object-fit: cover;
  position: absolute;
  transition: transform 220ms ease;
  width: 100%;
}

button.booked-gallery__media:hover .booked-gallery__image {
  transform: scale(1.035);
}

.booked-gallery__count-button {
  align-items: center;
  background: rgba(255, 255, 255, 0.94);
  border-radius: 999px;
  bottom: 18px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.18);
  color: #1f2937;
  display: inline-flex;
  font-size: 15px;
  font-weight: 500;
  gap: 9px;
  line-height: 1;
  padding: 13px 18px;
  position: absolute;
  right: 18px;
  z-index: 2;
}

.booked-gallery__count-button::before {
  background: currentColor;
  box-shadow:
    5px 0 0 currentColor,
    10px 0 0 currentColor,
    0 5px 0 currentColor,
    5px 5px 0 currentColor,
    10px 5px 0 currentColor,
    0 10px 0 currentColor,
    5px 10px 0 currentColor,
    10px 10px 0 currentColor;
  content: "";
  flex: 0 0 auto;
  height: 3px;
  width: 3px;
}

.booked-gallery__caption {
  color: #475569;
  font-size: 14px;
  line-height: 1.35;
  margin: 0;
}

.booked-gallery__loading,
.booked-gallery__empty {
  color: #475569;
}

.booked-gallery-lightbox-is-open {
  overflow: hidden;
}

.booked-gallery-lightbox {
  align-items: center;
  background: rgba(15, 23, 42, 0.86);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 32px;
  position: fixed;
  z-index: 100001;
}

.booked-gallery-lightbox__dialog {
  display: grid;
  gap: 14px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  max-height: 100%;
  max-width: min(1180px, 100%);
  width: 100%;
}

.booked-gallery-lightbox__image {
  align-self: center;
  display: block;
  grid-column: 2;
  max-height: calc(100vh - 132px);
  max-width: 100%;
  object-fit: contain;
  width: 100%;
}

.booked-gallery-lightbox__caption {
  color: #ffffff;
  font-size: 15px;
  grid-column: 2;
  line-height: 1.4;
  text-align: center;
}

.booked-gallery-lightbox__close,
.booked-gallery-lightbox__nav {
  appearance: none;
  background: rgba(255, 255, 255, 0.92);
  border: 0;
  border-radius: 999px;
  color: #0f172a;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  line-height: 1;
  padding: 12px 14px;
}

.booked-gallery-lightbox__close:focus-visible,
.booked-gallery-lightbox__nav:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 3px;
}

.booked-gallery-lightbox__close {
  grid-column: 2;
  justify-self: end;
}

.booked-gallery-lightbox__nav {
  align-self: center;
  grid-row: 2;
}

.booked-gallery-lightbox__nav--previous {
  grid-column: 1;
}

.booked-gallery-lightbox__nav--next {
  grid-column: 3;
}

.booked-gallery-masonry-overlay {
  background: #ffffff;
  color: #1f2937;
  inset: 0;
  overflow-y: auto;
  padding: 84px 8vw 56px;
  position: fixed;
  z-index: 100000;
}

.booked-gallery-masonry-overlay__header {
  align-items: center;
  background: rgba(255, 255, 255, 0.96);
  display: flex;
  inset: 0 0 auto;
  min-height: 64px;
  padding: 12px 24px;
  position: fixed;
  z-index: 1;
}

.booked-gallery-masonry-overlay__back {
  appearance: none;
  align-items: center;
  background: transparent;
  border: 0;
  color: inherit;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-size: 20px;
  gap: 12px;
  line-height: 1.2;
  padding: 8px 4px;
}

.booked-gallery-masonry-overlay__back::before {
  border-color: currentColor;
  border-style: solid;
  border-width: 0 0 2px 2px;
  content: "";
  height: 13px;
  transform: rotate(45deg);
  width: 13px;
}

.booked-gallery-masonry-overlay__back:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

.booked-gallery-masonry-overlay__grid {
  column-count: 2;
  column-gap: 24px;
  margin-inline: auto;
  max-width: 1800px;
}

.booked-gallery-masonry-overlay__item {
  break-inside: avoid;
  display: block;
  margin: 0 0 24px;
}

.booked-gallery-masonry-overlay__media {
  appearance: none;
  background: #f1f5f9;
  border: 0;
  cursor: zoom-in;
  display: block;
  overflow: hidden;
  padding: 0;
  width: 100%;
}

.booked-gallery-masonry-overlay__media:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

.booked-gallery-masonry-overlay__image {
  display: block;
  height: auto;
  max-width: none;
  transition: transform 220ms ease;
  width: 100%;
}

.booked-gallery-masonry-overlay__media:hover .booked-gallery-masonry-overlay__image {
  transform: scale(1.025);
}

.booked-gallery-masonry-overlay__caption {
  color: #475569;
  font-size: 14px;
  line-height: 1.35;
  margin-top: 8px;
}

.booked-booking-card {
  --booked-booking-card-border-color: color-mix(in srgb, currentColor 28%, transparent);
  --booked-booking-card-muted-color: color-mix(in srgb, currentColor 68%, transparent);
  --booked-booking-card-radius: var(--wp--custom--border-radius, 0);
  color: inherit;
  position: sticky;
  top: 24px;
  z-index: 10;
}

.admin-bar .booked-booking-card {
  top: 56px;
}

.booked-booking-card__panel {
  display: grid;
  gap: 20px;
  padding: 24px;
  position: relative;
}

.booked-booking-card__title,
.booked-booking-card__total {
  color: inherit;
  font-size: 1.25em;
  font-weight: inherit;
  letter-spacing: 0;
  line-height: 1.2;
  margin: 0;
}

.booked-booking-card__total {
  font-size: 1.4em;
}

.booked-booking-card__fields {
  border: 1px solid var(--booked-booking-card-border-color);
  border-radius: var(--booked-booking-card-radius);
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
}

.booked-booking-card__field,
.booked-booking-card__popover-field {
  appearance: none;
  background: transparent;
  border: 0;
  color: inherit;
  cursor: pointer;
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 14px 16px;
  text-align: left;
}

.booked-booking-card__field--arrival,
.booked-booking-card__popover-field:first-child {
  border-right: 1px solid var(--booked-booking-card-border-color);
}

.booked-booking-card__field:focus,
.booked-booking-card__popover-field:focus {
  box-shadow: none;
  outline: 2px solid currentColor;
  outline-offset: -2px;
}

.booked-booking-card__field-label {
  color: inherit;
  display: block;
  font-size: 0.75em;
  font-weight: inherit;
  line-height: 1.15;
  text-transform: uppercase;
}

.booked-booking-card__field-value {
  color: inherit;
  display: block;
  font-size: 1.1em;
  font-weight: 400;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.booked-booking-card__field .booked-booking-card__field-value:empty,
.booked-booking-card__popover-field .booked-booking-card__field-value:empty {
  color: var(--booked-booking-card-muted-color);
}

.booked-booking-card__travelers {
  border-top: 1px solid var(--booked-booking-card-border-color);
  display: grid;
  gap: 6px;
  grid-column: 1 / -1;
  padding: 14px 16px;
}

.booked-booking-card__travelers-row {
  align-items: center;
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr 64px;
}

.booked-booking-card__travelers-input {
  border: 0;
  font: inherit;
  font-size: 1em;
  min-width: 0;
  padding: 0;
  text-align: right;
}

.booked-booking-card__primary {
  cursor: pointer;
  font: inherit;
  font-size: 1em;
  line-height: 1.15;
  padding: 16px 20px;
  text-align: center;
  width: 100%;
}

.booked-booking-card__primary:disabled {
  cursor: wait;
  opacity: 0.7;
}

.booked-booking-card__small-note {
  color: inherit;
  font-size: 0.95em;
  line-height: 1.25;
  margin: -6px auto 0;
  max-width: 430px;
  text-align: center;
}

.booked-booking-card__feedback,
.booked-booking-card__popover-feedback,
.booked-booking-card__modal-feedback {
  color: var(--booked-booking-card-error-color, currentColor);
  font-size: 0.875em;
  min-height: 20px;
}

.booked-booking-card__popover-feedback {
  align-items: center;
  display: flex;
  justify-content: center;
  min-height: 3em;
  text-align: center;
}

.booked-booking-card__popover {
  background: var(--wp--preset--color--base, Canvas);
  border: 1px solid var(--booked-booking-card-border-color);
  border-radius: var(--booked-booking-card-radius);
  box-shadow: var(--booked-booking-card-dialog-shadow, none);
  color: inherit;
  display: grid;
  gap: 22px;
  left: 50%;
  max-height: calc(100vh - 48px);
  max-width: min(980px, calc(100vw - 48px));
  overflow: auto;
  padding: 32px 40px;
  position: fixed;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 900px;
  z-index: 10000;
}

.booked-booking-card__popover-header {
  align-items: start;
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(260px, 1fr) minmax(420px, 0.95fr);
}

.booked-booking-card__popover-intro {
  display: grid;
  gap: 10px;
}

.booked-booking-card__popover-intro h3,
.booked-booking-card__popover-intro p {
  margin: 0;
}

.booked-booking-card__popover-intro h3 {
  color: inherit;
  font-size: 1.5em;
  font-weight: inherit;
  line-height: 1.1;
}

.booked-booking-card__popover-intro p {
  color: var(--booked-booking-card-muted-color);
  font-size: 1em;
  line-height: 1.32;
  max-width: 360px;
}

.booked-booking-card__popover-fields {
  border: 1px solid var(--booked-booking-card-border-color);
  border-radius: var(--booked-booking-card-radius);
  display: grid;
  grid-template-columns: 1fr 1fr;
  justify-self: end;
  max-width: 486px;
  overflow: hidden;
  width: 100%;
}

.booked-booking-card__popover-field {
  min-height: 64px;
  padding: 12px 42px 12px 16px;
  position: relative;
}

.booked-booking-card__popover-fields .booked-booking-card__field-value {
  color: inherit;
  font-size: 1em;
}

.booked-booking-card__field-clear {
  color: inherit;
  font-size: 1.5em;
  font-weight: 400;
  line-height: 1;
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
}

.booked-booking-card__popover-actions {
  align-items: center;
  display: flex;
  gap: 18px;
  justify-content: flex-end;
}

.booked-booking-card__text-button,
.booked-booking-card__close-button,
.booked-booking-card__modal-close {
  cursor: pointer;
  font: inherit;
}

.booked-booking-card__text-button {
  background: transparent;
  border: 0;
  color: inherit;
  font-size: 1em;
  padding: 10px 0;
}

.booked-booking-card__close-button {
  cursor: pointer;
  font: inherit;
  font-size: 1em;
  padding: 13px 22px;
}

.booked-booking-card__modal-overlay {
  align-items: center;
  background: color-mix(in srgb, CanvasText 42%, transparent);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 24px;
  position: fixed;
  z-index: 10001;
}

.booked-booking-card__modal {
  background: var(--wp--preset--color--base, Canvas);
  border: 1px solid var(--booked-booking-card-border-color);
  border-radius: var(--booked-booking-card-radius);
  box-shadow: var(--booked-booking-card-dialog-shadow, none);
  color: inherit;
  display: grid;
  gap: 18px;
  max-width: min(520px, 100%);
  padding: 32px;
  position: relative;
  width: 520px;
}

.booked-booking-card__modal-close {
  background: transparent;
  border: 0;
  color: inherit;
  font-size: 2em;
  line-height: 1;
  position: absolute;
  right: 18px;
  top: 14px;
}

.booked-booking-card__modal-title,
.booked-booking-card__modal-summary {
  margin: 0;
}

.booked-booking-card__modal-title {
  color: inherit;
  font-size: 1.5em;
  line-height: 1.15;
  padding-right: 36px;
}

.booked-booking-card__modal-summary {
  color: var(--booked-booking-card-muted-color);
  font-size: 1em;
}

.booked-booking-card__modal-form {
  display: grid;
  gap: 14px;
}

.booked-booking-card__modal-form label {
  display: grid;
  gap: 6px;
  font-weight: inherit;
}

.booked-booking-card__modal-form input {
  border: 1px solid var(--booked-booking-card-border-color);
  border-radius: var(--booked-booking-card-radius);
  font: inherit;
  padding: 12px 14px;
}

@media (max-width: 720px) {
  .booked-widget__months {
    grid-template-columns: 1fr;
  }

  .booked-gite-info__cards {
    grid-template-columns: 1fr;
  }

  .booked-gallery[data-columns="3"] .booked-gallery__grid,
  .booked-gallery[data-columns="4"] .booked-gallery__grid,
  .booked-gallery[data-columns="5"] .booked-gallery__grid,
  .booked-gallery[data-columns="6"] .booked-gallery__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .booked-gallery__featured {
    aspect-ratio: auto;
    grid-template-columns: 1fr;
  }

  .booked-gallery__item--featured-main .booked-gallery__media {
    aspect-ratio: var(--booked-gallery-ratio, 4 / 3);
    height: auto;
  }

  .booked-gallery__item--featured-side .booked-gallery__media {
    aspect-ratio: 4 / 3;
    height: auto;
  }

  .booked-gallery-lightbox {
    padding: 18px;
  }

  .booked-gallery-lightbox__dialog {
    gap: 10px;
    grid-template-columns: 1fr 1fr;
  }

  .booked-gallery-lightbox__close,
  .booked-gallery-lightbox__image,
  .booked-gallery-lightbox__caption {
    grid-column: 1 / -1;
  }

  .booked-gallery-lightbox__image {
    max-height: calc(100vh - 154px);
  }

  .booked-gallery-lightbox__nav {
    grid-row: auto;
    justify-self: stretch;
  }

  .booked-gallery-lightbox__nav--previous {
    grid-column: 1;
  }

  .booked-gallery-lightbox__nav--next {
    grid-column: 2;
  }

  .booked-gallery-masonry-overlay {
    padding: 76px 20px 32px;
  }

  .booked-gallery-masonry-overlay__header {
    min-height: 58px;
    padding-inline: 18px;
  }

  .booked-gallery-masonry-overlay__grid {
    column-gap: 16px;
  }

  .booked-gallery-masonry-overlay__item {
    margin-bottom: 16px;
  }

  .booked-booking-card__panel {
    gap: 18px;
    padding: 22px 18px;
  }

  .booked-booking-card__title,
  .booked-booking-card__total {
    font-size: 1.25em;
  }

  .booked-booking-card__total {
    font-size: 1.4em;
  }

  .booked-booking-card__fields,
  .booked-booking-card__popover-fields {
    grid-template-columns: 1fr;
  }

  .booked-booking-card__field--arrival,
  .booked-booking-card__popover-field:first-child {
    border-bottom: 1px solid var(--booked-booking-card-border-color);
    border-right: 0;
  }

  .booked-booking-card__field-value {
    font-size: 1.05em;
  }

  .booked-booking-card__primary {
    font-size: 1em;
    padding: 15px 18px;
  }

  .booked-booking-card__small-note {
    font-size: 0.95em;
  }

  .booked-booking-card__popover {
    border-radius: var(--booked-booking-card-radius);
    gap: 20px;
    max-height: calc(100vh - 24px);
    max-width: calc(100vw - 20px);
    padding: 24px 18px;
    width: calc(100vw - 20px);
  }

  .booked-booking-card__popover-intro h3 {
    font-size: 1.4em;
  }

  .booked-booking-card__popover-intro p {
    font-size: 1em;
  }

  .booked-booking-card__popover-header {
    grid-template-columns: 1fr;
  }

  .booked-booking-card__popover-fields {
    justify-self: stretch;
    margin-top: 0;
    max-width: none;
    width: 100%;
  }

  .booked-booking-card__popover-actions {
    justify-content: space-between;
  }

  .booked-booking-card__modal {
    padding: 28px 20px;
  }
}

@media (max-width: 480px) {
  .booked-gallery[data-columns] .booked-gallery__grid {
    grid-template-columns: 1fr;
  }

  .booked-gallery__featured-side,
  .booked-gallery-masonry-overlay__grid {
    grid-template-columns: 1fr;
  }

  .booked-gallery__featured-side {
    display: grid;
  }

  .booked-gallery-masonry-overlay__grid {
    column-count: 1;
  }

  .booked-gallery__count-button {
    bottom: 12px;
    font-size: 14px;
    max-width: calc(100% - 24px);
    padding: 11px 14px;
    right: 12px;
  }
}
