/* ============================================================
   LPD Holidays — self-contained presentation
   Brand: magenta #ff0086, dark #023649, panel #F0F3F4
   Nothing here relies on theme classes.
   ============================================================ */

/* ---- Listing grid ---- */
.lpd-hgrid {
	display: grid;
	gap: 28px;
	grid-template-columns: repeat(3, 1fr);
	margin: 0 0 2rem;
}
.lpd-hgrid--1 { grid-template-columns: 1fr; }
.lpd-hgrid--2 { grid-template-columns: repeat(2, 1fr); }
.lpd-hgrid--3 { grid-template-columns: repeat(3, 1fr); }
.lpd-hgrid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) {
	.lpd-hgrid, .lpd-hgrid--2, .lpd-hgrid--3, .lpd-hgrid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
	.lpd-hgrid, .lpd-hgrid--2, .lpd-hgrid--3, .lpd-hgrid--4 { grid-template-columns: 1fr; }
}

.lpd-hcard {
	position: relative;
	display: block;
	min-height: 360px;
	border-radius: 8px;
	overflow: hidden;
	background-color: #023649;
	background-size: cover;
	background-position: center;
	color: #fff;
	box-shadow: 0 2px 6px rgba(0, 0, 0, .08);
	transition: transform .2s ease, box-shadow .2s ease;
}
.lpd-hcard:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(0, 0, 0, .16); }
.lpd-hcard::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(29deg, rgba(0, 0, 0, .78) 0%, rgba(0, 0, 0, .05) 100%);
	z-index: 1;
}
.lpd-hcard__link {
	position: absolute;
	inset: 0;
	z-index: 4;
	text-indent: -9999px;
	overflow: hidden;
}
.lpd-hcard__dates {
	position: absolute;
	top: 18px;
	right: 0;
	z-index: 2;
	background: #ff0086;
	color: #fff;
	font-size: .82rem;
	font-weight: 600;
	padding: 6px 16px;
	border-radius: 5px 0 0 5px;
}
.lpd-hcard__body {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 2;
	padding: 24px;
}
.lpd-hcard__msg {
	margin: 0 0 8px;
	font-size: .92rem;
	line-height: 1.35;
	color: rgba(255, 255, 255, .9);
}
.lpd-hcard__title {
	margin: 0 0 8px;
	color: #fff;
	font-weight: 800 !important;
	font-size: 1.4rem;
	line-height: 1.15;
}
.lpd-hcard__price { margin: 0 0 2px; font-size: 1.15rem; }
.lpd-hcard__deposit { margin: 0 0 16px; font-size: .8rem; color: rgba(255, 255, 255, .85); }
.lpd-hcard__deposit bdi, .lpd-hcard__deposit .amount { color: #fff; font-weight: 700; }
.lpd-hcard__price .lpd-from {
	font-size: .72rem;
	text-transform: uppercase;
	letter-spacing: .05em;
	opacity: .85;
	margin-right: .3rem;
}
.lpd-hcard__price .amount,
.lpd-hcard__price bdi { color: #fff; font-weight: 800; }
.lpd-hcard__btn {
	display: inline-block;
	background: #ff0086;
	color: #fff;
	font-weight: 700;
	padding: 10px 22px;
	border-radius: 5px;
	transition: transform .15s ease;
}
.lpd-hcard:hover .lpd-hcard__btn { transform: scale(1.04); }

/* ---- Single holiday: banner + meta ---- */
.lpd-holiday-banner {
	background: linear-gradient(90deg, #ff0086, #dc0576);
	color: #fff;
	border-radius: 6px;
	padding: .9rem 1.25rem;
	margin: 0 0 1.35rem;
}
.lpd-holiday-banner p { margin: 0; font-weight: 700 !important; }

.lpd-holiday-meta { margin: .5rem 0 1.25rem; }
.lpd-holiday-meta .lpd-label { font-weight: 700; color: #023649; }
.lpd-holiday-dates { margin: 0 0 .35rem; color: #023649; }
.lpd-holiday-fromprice { margin: 0; font-size: 1.5rem; color: #023649; }
.lpd-holiday-fromprice .lpd-from {
	font-size: .8rem;
	text-transform: uppercase;
	letter-spacing: .04em;
	color: #7a7a85;
	margin-right: .4rem;
}
.lpd-holiday-fromprice .amount,
.lpd-holiday-fromprice bdi { color: #ff0086; font-weight: 800 !important; }
.lpd-holiday-deposit { margin: .4rem 0 0; color: #7a7a85; font-size: .92rem; }
.lpd-holiday-deposit bdi, .lpd-holiday-deposit .amount { color: #023649; font-weight: 700; }

/* Hide any breadcrumb rendered on holiday pages (theme/Divi duplicate). */
.lpd-holiday .woocommerce-breadcrumb { display: none; }

/* ---- Single holiday: two-column layout ----
   Floated (not grid/flex) so the left column (gallery + tabs) flows
   independently — the booking form growing never pushes the tabs down. */
.lpd-single::after { content: ""; display: table; clear: both; }
.lpd-single__gallery,
.lpd-single__tabs,
.lpd-single__booking { box-sizing: border-box; }
.lpd-single__gallery { min-width: 0; margin: 0 0 24px; }
.lpd-single__gallery img { border-radius: 8px; }
.lpd-single__tabs { min-width: 0; margin-top: 24px; }
.lpd-single__tabs .lpd-tabs { margin: 0; } /* remove the component's own top margin here */

/* Booking column — a branded card so it stands out (not sticky: the wizard grows) */
.lpd-single__booking {
	min-width: 0;
	background: #fff;
	border: 1px solid #eceef1;
	border-top: 5px solid #ff0086;
	border-radius: 10px;
	padding: 28px 30px 32px;
	box-shadow: 0 12px 34px rgba(2, 54, 73, .09);
	margin-bottom: 28px; /* space before the tabs when stacked on mobile */
}
.lpd-single__booking .lpd-announce { margin-top: 0; }

@media (min-width: 981px) {
	.lpd-single__gallery,
	.lpd-single__tabs { float: left; width: 58%; }
	.lpd-single__tabs { clear: left; }
	.lpd-single__gallery { margin-bottom: 0; }
	.lpd-single__booking { float: right; width: 38%; margin-bottom: 0; }
}

.lpd-announce {
	background: #ff0086;
	color: #fff;
	font-weight: 700;
	padding: 10px 16px;
	border-radius: 5px;
	margin: 0 0 16px;
	font-size: .95rem;
}
.lpd-single .woocommerce-breadcrumb {
	font-size: .82rem;
	color: #7a7a85;
	margin: 0 0 10px;
	text-transform: none;
}
.lpd-single .woocommerce-breadcrumb a { color: #7a7a85; text-decoration: none; }
.lpd-single .woocommerce-breadcrumb a:hover { color: #ff0086; }
.lpd-single__title {
	font-weight: 800 !important;
	color: #023649;
	font-size: 2rem;
	line-height: 1.12;
	margin: 0 0 .5rem;
}
.lpd-single__message { color: #55555f; margin: 0 0 1rem; font-size: 1.02rem; }
.lpd-single__booking .lpd-holiday-meta { margin: 0 0 1.25rem; }
.lpd-single__journey { margin-top: .25rem; }

/* Gallery fills its column (override WooCommerce's default ~48% width) */
.lpd-single__gallery .woocommerce-product-gallery {
	width: 100% !important;
	float: none !important;
	margin: 0 !important;
}
.lpd-single__gallery .woocommerce-product-gallery__wrapper,
.lpd-single__gallery .woocommerce-product-gallery__image { width: 100%; }
.lpd-single__gallery .woocommerce-product-gallery__image img { width: 100%; }
/* Trim the space the slider leaves before the thumbnails / tabs */
.lpd-single__gallery .flex-viewport,
.lpd-single__gallery .woocommerce-product-gallery__wrapper { margin-bottom: 0 !important; }

/* Thumbnails under the slider: 6 columns, tight gaps */
.lpd-single__gallery .flex-control-thumbs {
	display: grid !important;
	grid-template-columns: repeat(6, 1fr);
	gap: 6px;
	margin: 8px 0 0 !important;
	padding: 0;
	list-style: none;
	overflow: hidden;
}
.lpd-single__gallery .flex-control-thumbs li {
	width: auto !important;
	margin: 0 !important;
	padding: 0 !important;
	float: none !important;
	list-style: none;
}
.lpd-single__gallery .flex-control-thumbs img {
	width: 100%;
	height: auto;
	display: block;
	border-radius: 4px;
	opacity: .7;
	cursor: pointer;
	transition: opacity .15s ease;
}
.lpd-single__gallery .flex-control-thumbs img:hover,
.lpd-single__gallery .flex-control-thumbs img.flex-active { opacity: 1; }

/* Anchor offset so the CTA "Book" link doesn't hide the booking under a fixed header */
#lpd-book { scroll-margin-top: 190px; }

/* ---- Full-width call-to-action band ---- */
.lpd-cta {
	margin-top: 52px;
	background: #023649;
	border-radius: 10px;
	padding: 52px 32px;
	text-align: center;
	color: #fff;
}
.lpd-cta__inner { max-width: 700px; margin: 0 auto; }
.lpd-cta h2 {
	color: #fff;
	font-weight: 800 !important;
	margin: 0 0 .6rem;
	font-size: 2rem;
	line-height: 1.15;
}
.lpd-cta p { color: rgba(255, 255, 255, .85); margin: 0 0 1.6rem; font-size: 1.05rem; }
.lpd-cta__btn {
	display: inline-block;
	background: #ff0086;
	color: #fff;
	font-weight: 700;
	padding: 14px 34px;
	border-radius: 5px;
	text-decoration: none;
	transition: transform .15s ease;
}
.lpd-cta__btn:hover { transform: scale(1.05); color: #fff; }

/* ---- Custom tabs component ---- */
.lpd-tabs { margin: 32px 0; }
.lpd-tabs__nav { display: flex; flex-wrap: wrap; gap: 8px; }
.lpd-tabs__btn {
	background: #f0f3f4;
	border: none;
	padding: 12px 24px;
	border-radius: 5px;
	font-weight: 600;
	color: #023649;
	cursor: pointer;
	transition: background .2s ease, color .2s ease;
}
.lpd-tabs__btn:hover { background: #e3e8ea; }
.lpd-tabs__btn.is-active { background: #ff0086; color: #fff; }

.lpd-tabs__items { margin-top: 16px; }
.lpd-tabs__acc { display: none; }
.lpd-tabs__panel {
	display: none;
	background: #f0f3f4;
	border-radius: 5px;
	padding: 30px 32px;
}
.lpd-tabs__panel.is-active { display: block; }
.lpd-tabs__panel > *:first-child { margin-top: 0; }
.lpd-tabs__heading { margin: 0 0 .75rem; color: #023649; font-weight: 800 !important; }

@media (max-width: 980px) {
	.lpd-tabs__nav { display: none; }
	.lpd-tabs__item { margin-bottom: 8px; }
	.lpd-tabs__acc {
		display: flex;
		align-items: center;
		justify-content: space-between;
		width: 100%;
		background: #ff0086;
		color: #fff;
		border: none;
		padding: 15px 18px;
		border-radius: 5px;
		font-weight: 600;
		font-size: 1rem;
		cursor: pointer;
	}
	.lpd-tabs__acc-icon {
		width: 9px;
		height: 9px;
		border-right: 2px solid #fff;
		border-bottom: 2px solid #fff;
		transform: rotate(45deg);
		transition: transform .2s ease;
	}
	.lpd-tabs__acc.is-active .lpd-tabs__acc-icon { transform: rotate(-135deg); }
	.lpd-tabs__panel { margin-top: 8px; }
	.lpd-tabs__heading { display: none; } /* the accordion header already shows the title */
}

/* ---- My Account → Bookings ---- */
.lpd-bookings-table { width: 100%; }
.lpd-bookings-table th { color: #023649; font-weight: 700; }
.lpd-booking-actions { white-space: nowrap; }
.lpd-booking-actions .lpd-inline-form { display: inline-block; margin: 0 6px 6px 0; }
.lpd-booking-actions .button { margin: 0 6px 6px 0; }
.lpd-btn-secondary { background: #023649 !important; color: #fff !important; }
.lpd-btn-secondary:hover { background: #012531 !important; }
.lpd-paid-notice { display: inline-block; color: #7a7a85; font-size: .9rem; font-style: italic; }

.lpd-edit-section { margin: 0 0 2.25rem; padding: 0 0 1.5rem; border-bottom: 1px solid #eceef1; }
.lpd-edit-section:last-child { border-bottom: none; }
.lpd-edit-section h4 { color: #023649; font-weight: 700; margin: 0 0 .6rem; font-size: 1.1rem; }

/* Add-traveller form: define the brand vars the shared traveller styles rely on
   (they're otherwise only set on the checkout/product wrappers). */
.lpd-add-traveller-form {
	--lpd-pink: #ff0086;
	--lpd-dark: #023649;
	--lpd-panel: #f0f3f4;
	--lpd-border: #e8e8e8;
}
.lpd-add-traveller-form .lpd-text-field {
	display: flex;
	flex-direction: column;
	gap: .4rem;
	margin: 0 0 1.15rem;
	max-width: 340px;
}
.lpd-add-traveller-form .lpd-text-field > label { font-weight: 600; color: #023649; }
.lpd-add-traveller-form .lpd-select {
	width: 100%;
	max-width: none;
	padding-right: 42px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' stroke='%23ff0086' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 16px center;
}
.lpd-add-traveller-form .lpd-traveller { margin-top: 1rem; }
.lpd-add-traveller-form .lpd-traveller-fields .input-text { background: #fff; }

.lpd-extend-intro { color: #55555f; }
.lpd-dates-preview { margin: .25rem 0 1rem; color: #ff0086; font-weight: 600; min-height: 1.1em; }
.lpd-extend-form { max-width: 480px; }
.lpd-extend-form .lpd-text-field { display: flex; flex-direction: column; gap: .35rem; margin: 0 0 1.1rem; }
.lpd-extend-form .lpd-text-field label { font-weight: 600; color: #023649; }
.lpd-extend-form .lpd-text-field input {
	height: 55px;
	padding: 0 16px;
	background: #fff;
	border: 1px solid #e8e8e8;
	border-radius: 5px;
	font-size: 1rem;
	max-width: 220px;
}
.lpd-extend-form .lpd-text-field input:focus {
	outline: none;
	border-color: #ff0086;
	box-shadow: 0 0 0 3px rgba(255, 0, 134, .12);
}
