/* booking_core front end. Colours follow the Lanturan palette; override via the custom properties. */
.bc-villas,
.bc-booking {
	--bc-ink: #15100c;
	--bc-stone: #6f6355;
	--bc-sand: #f6f0e7;
	--bc-clay: #a9713c;
	--bc-line: #e4dacb;
	--bc-booked: #e9e4dd;
	--bc-radius: 14px;
	color: var(--bc-ink);
}

/* Listing */
.bc-villas {
	display: grid;
	gap: 24px;
	grid-template-columns: repeat(var(--bc-cols, 3), minmax(0, 1fr));
	margin: 2rem 0;
}
@media (max-width: 900px) {
	.bc-villas { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
	.bc-villas { grid-template-columns: 1fr; }
}
.bc-villa-card {
	position: relative;
	background: #fff;
	border-radius: 10px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	box-shadow: 0 2px 10px rgba(21, 16, 12, .12);
	transition: box-shadow .2s, transform .2s;
}
.bc-villa-card:hover { box-shadow: 0 8px 24px rgba(21, 16, 12, .18); transform: translateY(-2px); }
.bc-villa-card__media { display: block; aspect-ratio: 4 / 3; background: var(--bc-sand); overflow: hidden; }
.bc-villa-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s; }
.bc-villa-card:hover .bc-villa-card__media img { transform: scale(1.04); }
.bc-villa-card__placeholder { display: block; width: 100%; height: 100%; background: linear-gradient(135deg, var(--bc-sand), var(--bc-line)); }
.bc-villa-card__body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.bc-villa-card__title { margin: 0; font-family: inherit; font-size: 1.15rem; font-weight: 700; line-height: 1.25; }
.bc-villa-card__title a { color: inherit; text-decoration: none; }
/* Whole card is clickable through the title link. */
.bc-villa-card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.bc-villa-card__title a:focus-visible { outline: none; }
.bc-villa-card:has(.bc-villa-card__title a:focus-visible) { outline: 2px solid var(--bc-clay); outline-offset: 2px; }
.bc-villa-card__meta { margin: 0; color: var(--bc-stone); font-size: .9rem; }
.bc-rating { display: flex; align-items: center; gap: 8px; margin: 4px 0 0; font-size: .85rem; line-height: 1.2; }
.bc-rating__score { display: inline-flex; align-items: center; justify-content: center; min-width: 30px; height: 30px; padding: 0 4px; border-radius: 6px 6px 6px 0; background: var(--bc-ink); color: #fff; font-weight: 700; font-size: .9rem; }
.bc-rating__text { display: flex; flex-direction: column; color: var(--bc-stone); }
.bc-rating__text strong { color: var(--bc-ink); font-weight: 500; }
.bc-deal { align-self: flex-start; margin: 2px 0 0; padding: 3px 8px; border-radius: 4px; background: #1f7a3a; color: #fff; font-size: .8rem; font-weight: 600; }
.bc-villa-card__footer { margin-top: auto; padding-top: 6px; text-align: right; }
.bc-price { margin: 0; display: flex; align-items: baseline; justify-content: flex-end; flex-wrap: wrap; gap: 4px 8px; }
.bc-price__unit { color: var(--bc-stone); font-size: .85rem; }
.bc-price__regular { color: #c0392b; font-size: .9rem; }
.bc-price__now { font-size: 1.2rem; font-weight: 700; }
.bc-villa-card__cta { color: var(--bc-clay); font-weight: 600; text-decoration: none; }
.bc-villa-card .screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.bc-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 0 24px;
	border: 0;
	border-radius: 999px;
	background: var(--bc-ink);
	color: #fff;
	font: inherit;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
	transition: background .15s;
}
.bc-button:hover, .bc-button:focus-visible { background: var(--bc-clay); color: #fff; }
.bc-button[disabled] { opacity: .6; cursor: wait; }

/* Booking */
.bc-booking {
	margin: 3rem 0;
	padding: 24px;
	background: var(--bc-sand);
	border-radius: var(--bc-radius);
	scroll-margin-top: 96px;
}
.bc-booking__title { margin: 0 0 16px; }
.bc-calendar { position: relative; min-height: 120px; background: #fff; border-radius: 12px; padding: 16px; }
.bc-cal__nav { position: absolute; top: 12px; left: 12px; right: 12px; display: flex; justify-content: space-between; pointer-events: none; }
.bc-cal__arrow {
	pointer-events: auto;
	width: 36px; height: 36px;
	border: 1px solid var(--bc-line);
	border-radius: 50%;
	background: #fff;
	font-size: 20px; line-height: 1;
	cursor: pointer;
	color: var(--bc-ink);
}
.bc-cal__arrow[disabled] { opacity: .3; cursor: default; }
.bc-cal__months { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
@media (max-width: 640px) {
	.bc-cal__months { grid-template-columns: 1fr; }
	.bc-cal__month + .bc-cal__month { display: none; }
}
.bc-cal__title { text-align: center; font-weight: 600; line-height: 36px; margin-bottom: 8px; }
.bc-cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.bc-cal__dow { text-align: center; font-size: .75rem; color: var(--bc-stone); padding: 4px 0; text-transform: uppercase; }
.bc-day {
	aspect-ratio: 1;
	min-height: 36px;
	border: 0;
	border-radius: 8px;
	background: transparent;
	color: var(--bc-ink);
	font: inherit;
	font-size: .95rem;
	cursor: pointer;
	padding: 0;
}
.bc-day:hover:not([disabled]) { background: var(--bc-sand); }
.bc-day:focus-visible { outline: 2px solid var(--bc-clay); outline-offset: 1px; }
.bc-day { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; line-height: 1.1; }
.bc-day__price { font-size: .62rem; color: var(--bc-stone); font-weight: 400; }
.bc-day.is-start .bc-day__price, .bc-day.is-end .bc-day__price { color: #fff; }
.bc-total { display: inline-block; margin-left: 4px; padding: 2px 8px; border-radius: 6px; background: #fff; }
.bc-day.is-today { font-weight: 700; }
.bc-day.is-past { color: #c4bbb0; cursor: default; }
.bc-day.is-booked { background: var(--bc-booked); color: #a39888; text-decoration: line-through; cursor: not-allowed; }
.bc-day.is-booked.is-endable { cursor: pointer; text-decoration: none; color: var(--bc-ink); background: repeating-linear-gradient(135deg, var(--bc-booked) 0 4px, #fff 4px 8px); }
.bc-day.is-in-range { background: #ead9c6; border-radius: 0; }
.bc-day.is-start, .bc-day.is-end { background: var(--bc-clay); color: #fff; text-decoration: none; }

.bc-legend { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: .85rem; color: var(--bc-stone); margin: 10px 0 0; }
.bc-legend__swatch { display: inline-block; width: 14px; height: 14px; border-radius: 4px; margin-left: 8px; }
.bc-legend__swatch:first-child { margin-left: 0; }
.bc-legend__swatch--booked { background: var(--bc-booked); }
.bc-legend__swatch--selected { background: var(--bc-clay); }
.bc-selection { min-height: 1.5em; margin: 12px 0 0; font-weight: 600; }
.bc-selection--warn { color: #9b2c1d; }
.bc-link { background: none; border: 0; padding: 0; color: var(--bc-clay); text-decoration: underline; cursor: pointer; font: inherit; font-weight: 400; }

.bc-form { margin-top: 20px; }
.bc-form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; }
@media (max-width: 600px) { .bc-form__grid { grid-template-columns: 1fr; } }
.bc-field { margin: 0; display: flex; flex-direction: column; gap: 6px; }
.bc-field label { font-size: .9rem; font-weight: 600; }
.bc-field input, .bc-field select {
	min-height: 46px;
	padding: 0 12px;
	border: 1px solid var(--bc-line);
	border-radius: 10px;
	background: #fff;
	font: inherit;
	color: var(--bc-ink);
	width: 100%;
	box-sizing: border-box;
}
.bc-field input:focus, .bc-field select:focus { outline: 2px solid var(--bc-clay); outline-offset: 0; border-color: transparent; }
.bc-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.bc-form__actions { margin: 18px 0 0; }
.bc-message { margin-top: 14px; }
.bc-message:empty { display: none; }
.bc-message--success { padding: 12px 16px; border-radius: 10px; background: #e3f1e4; color: #1d4d22; }
.bc-message--error { padding: 12px 16px; border-radius: 10px; background: #f8e1dc; color: #7a2216; }
.bc-notice { color: var(--bc-stone); }

/* Villa photo gallery: uniform tiles (full image opens in the lightbox). */
.single-villa .wp-block-gallery.has-nested-images.is-cropped figure.wp-block-image:not(#individual-image) { aspect-ratio: 4 / 3; }
.single-villa .wp-block-gallery.has-nested-images { margin: 2rem 0; }
.single-villa .wp-block-gallery.bc-gallery.is-collapsed > figure.wp-block-image:nth-of-type(n+7) { display: none; }
.bc-gallery__more { margin: -1rem 0 2rem; text-align: center; }
.bc-button--ghost { background: transparent; color: #15100c; border: 1px solid #15100c; }
.bc-button--ghost:hover, .bc-button--ghost:focus-visible { background: #15100c; color: #fff; }
