/* SwissNS Public Booking Form */
.swissns-booking {
	--swissns-primary: #1a5f7a;
	--swissns-primary-dark: #134559;
	--swissns-border: #e5e7eb;
	--swissns-muted: #6b7280;
	max-width: 960px;
	margin: 0 auto;
	font-family: inherit;
}

.swissns-booking--widget {
	max-width: 100%;
}

.swissns-booking__title {
	margin: 0 0 8px;
	font-size: 1.75rem;
}

.swissns-booking__description {
	color: var(--swissns-muted);
	margin-bottom: 24px;
}

.swissns-booking__grid {
	display: grid;
	grid-template-columns: 1fr 320px;
	gap: 24px;
	align-items: start;
}

@media (max-width: 768px) {
	.swissns-booking__grid {
		grid-template-columns: 1fr;
	}
}

.swissns-booking__sidebar-col {
	position: relative;
	align-self: start;
	min-height: 1px;
}

.swissns-booking__sidebar {
	width: 100%;
}

@media (min-width: 769px) {
	.swissns-booking__sidebar.is-fixed {
		position: fixed;
		z-index: 30;
	}

	.swissns-booking__sidebar.is-bottom {
		position: absolute;
		top: auto;
		bottom: 0;
		left: 0;
		right: 0;
	}

	.swissns-summary {
		max-height: calc(100vh - var(--swissns-sticky-top, 30px));
		overflow-y: auto;
		overscroll-behavior: contain;
	}
}

.swissns-field {
	margin-bottom: 16px;
}

.swissns-booking__panel {
	padding: 20px;
	border-radius: 14px;
	background: #fcfdfe;
	border: 1px solid var(--swissns-border);
}

.swissns-field label,
.swissns-label {
	display: block;
	font-weight: 600;
	margin-bottom: 6px;
	font-size: 0.92rem;
}

.swissns-input,
.swissns-booking select.swissns-input,
.swissns-booking textarea.swissns-input {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid var(--swissns-border);
	border-radius: 8px;
	font: inherit;
	box-sizing: border-box;
	background: #f8fafc;
	transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.swissns-input:focus,
.swissns-booking select.swissns-input:focus,
.swissns-booking textarea.swissns-input:focus {
	outline: none;
	border-color: var(--swissns-primary);
	background: #fff;
	box-shadow: 0 0 0 3px rgba(26, 95, 122, 0.12);
}

.swissns-input.is-invalid,
.swissns-booking select.swissns-input.is-invalid,
.swissns-booking textarea.swissns-input.is-invalid,
.swissns-booking .flatpickr-input.is-invalid {
	border-color: #dc2626;
	background: #fef2f2;
	box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.swissns-input.is-invalid:focus,
.swissns-booking select.swissns-input.is-invalid:focus,
.swissns-booking textarea.swissns-input.is-invalid:focus,
.swissns-booking .flatpickr-input.is-invalid:focus {
	border-color: #dc2626;
	background: #fff;
	box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.14);
}

.swissns-field.is-invalid > label {
	color: #991b1b;
}

.swissns-field-group h3 {
	margin: 20px 0 12px;
	font-size: 1rem;
	font-weight: 600;
}

.swissns-details-group {
	margin-top: 8px;
}

.swissns-booking .flatpickr-input.form-control.input,
.swissns-booking input.flatpickr-input {
	background: #f8fafc;
}

.swissns-booking .flatpickr-input.form-control.input:focus,
.swissns-booking input.flatpickr-input:focus {
	background: #fff;
}

.swissns-guests-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 12px;
}

@media (max-width: 600px) {
	.swissns-guests-grid {
		grid-template-columns: 1fr;
	}
}

.swissns-guests-group .swissns-label {
	display: block;
	font-weight: 600;
	margin-bottom: 8px;
}

.swissns-billing-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 12px;
}

.swissns-billing-grid .swissns-field--full {
	grid-column: 1 / -1;
}

.swissns-billing-grid .swissns-field--country-postcode {
	grid-column: 1 / -1;
	display: grid;
	grid-template-columns: 1.35fr 1fr;
	gap: 12px;
}

.swissns-billing-grid .swissns-field--country-postcode > .swissns-field {
	margin-bottom: 0;
}

@media (max-width: 600px) {
	.swissns-billing-grid {
		grid-template-columns: 1fr;
	}

	.swissns-billing-grid .swissns-field--country-postcode {
		grid-template-columns: 1fr;
	}
}

.swissns-wc-checkout-notice {
	margin-bottom: 24px;
	padding: 14px 16px;
	border-radius: 8px;
	background: #ecfdf5;
	border: 1px solid #a7f3d0;
	color: #065f46;
}

.swissns-wc-checkout-notice__payment {
	display: grid;
	gap: 8px;
	margin: 12px 0 0;
	padding: 12px 0 0;
	border-top: 1px solid #a7f3d0;
}

.swissns-wc-checkout-notice__payment > div {
	display: flex;
	justify-content: space-between;
	gap: 16px;
}

.swissns-wc-checkout-notice__payment dt {
	margin: 0;
	font-weight: 600;
}

.swissns-wc-checkout-notice__payment dd {
	margin: 0;
	text-align: right;
}

.swissns-wc-checkout-notice__hold {
	margin: 12px 0 0;
	padding-top: 12px;
	border-top: 1px solid #a7f3d0;
	font-size: 0.92em;
}

body.swissns-wc-checkout .woocommerce-billing-fields,
body.swissns-wc-checkout .woocommerce-shipping-fields,
body.swissns-wc-checkout .woocommerce-additional-fields,
body.swissns-wc-checkout #customer_details {
	display: none !important;
}

.swissns-summary {
	background: #f8fafc;
	border: 1px solid var(--swissns-border);
	border-radius: 12px;
	padding: 20px;
}

.swissns-summary h3 {
	margin: 0 0 10px;
}
.swissns-summary__rules > *{
	display:block;
	margin-bottom:5px;
}
.swissns-summary__rules li{
	list-style-type:none;
	margin-bottom:5px;
}
.swissns-summary__rules {
	margin: 14px 0 14px;
	padding-bottom: 12px;
	border-bottom: 1px dashed var(--swissns-border);
	font-size: 14px;
	line-height: 1.45;
	color: var(--swissns-muted);
}

.swissns-summary-error {
	padding: 12px 14px;
	border-radius: 8px;
	background: #fef2f2;
	border: 1px solid #fecaca;
	color: #991b1b;
	font-size: 0.92rem;
	line-height: 1.45;
}

.swissns-summary-list {
	margin: 0;
}

.swissns-summary-list dt {
	font-size: 0.85rem;
	color: var(--swissns-muted);
	margin-top: 8px;
}

.swissns-summary-list dd {
	margin: 2px 0 0;
	font-weight: 600;
}

.swissns-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	padding: 12px 16px;
	border: 0;
	border-radius: 8px;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
	margin-top: 16px;
}

.swissns-btn--primary {
	background: var(--swissns-primary);
	color: #fff;
}

.swissns-btn--primary:hover:not(:disabled) {
	background: var(--swissns-primary-dark);
}

.swissns-btn:disabled {
	opacity: 0.55;
	cursor: not-allowed;
}

.swissns-service-item {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	padding: 8px 0;
	border-bottom: 1px solid var(--swissns-border);
}

.swissns-service-item:last-child { border-bottom: 0; }

.swissns-muted { color: var(--swissns-muted); }

.swissns-error { color: #b91c1c; }

.swissns-booking__message {
	margin-top: 20px;
	padding: 14px 16px;
	border-radius: 8px;
}

.swissns-toast {
	position: fixed;
	left: 50%;
	bottom: 24px;
	z-index: 100000;
	display: flex;
	align-items: flex-start;
	gap: 12px;
	width: min(480px, calc(100vw - 32px));
	margin: 0;
	padding: 14px 16px;
	border-radius: 12px;
	box-shadow: 0 12px 40px rgba(15, 23, 42, 0.18);
	transform: translateX(-50%) translateY(calc(100% + 32px));
	opacity: 0;
	transition: transform 0.28s ease, opacity 0.28s ease;
	pointer-events: none;
}

.swissns-toast.is-visible {
	transform: translateX(-50%) translateY(0);
	opacity: 1;
	pointer-events: auto;
}

.swissns-toast__text {
	flex: 1;
	margin: 0;
	line-height: 1.45;
}

.swissns-toast__close {
	flex: 0 0 auto;
	border: 0;
	background: transparent;
	color: inherit;
	font-size: 1.35rem;
	line-height: 1;
	cursor: pointer;
	padding: 0 0 0 4px;
	opacity: 0.75;
}

.swissns-toast__close:hover,
.swissns-toast__close:focus {
	opacity: 1;
	outline: none;
}

body.swissns-booking-is-busy {
	overflow: hidden;
}

.swissns-booking-overlay {
	position: fixed;
	inset: 0;
	z-index: 99998;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	background: rgba(15, 23, 42, 0.42);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
	opacity: 0;
	transition: opacity 0.2s ease;
	pointer-events: none;
}

.swissns-booking-overlay.is-visible {
	opacity: 1;
	pointer-events: auto;
}

.swissns-booking-overlay__panel {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 14px;
	min-width: min(320px, calc(100vw - 48px));
	padding: 24px 28px;
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 20px 50px rgba(15, 23, 42, 0.22);
	text-align: center;
}

.swissns-booking-overlay__text {
	margin: 0;
	font-weight: 600;
	color: #0f172a;
}

.swissns-booking-overlay__spinner {
	width: 34px;
	height: 34px;
	border: 3px solid #dbeafe;
	border-top-color: var(--swissns-primary, #1a5f7a);
	border-radius: 50%;
	animation: swissns-spin 0.8s linear infinite;
}

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

.swissns-booking__message.is-success {
	background: #ecfdf5;
	color: #065f46;
	border: 1px solid #a7f3d0;
}

.swissns-booking__message.is-error {
	background: #fef2f2;
	color: #991b1b;
	border: 1px solid #fecaca;
}

.swissns-notice {
	padding: 12px;
	background: #fff7ed;
	border: 1px solid #fed7aa;
	border-radius: 8px;
}

.swissns-properties-list {
	display: grid;
	gap: 32px;
}

.swissns-properties {
	max-width: 1200px;
	margin: 0 auto;
}

.swissns-properties-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 24px;
}

.swissns-property-card {
	margin: 0;
	padding-bottom: 0;
	border-bottom: 0;
}

.swissns-property-card__link {
	display: flex;
	flex-direction: column;
	width: 100%;
	padding: 0;
	border: 1px solid var(--swissns-border);
	border-radius: 14px;
	overflow: hidden;
	background: #fff;
	cursor: pointer;
	text-align: left;
	font: inherit;
	color: inherit;
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.swissns-property-card__link:hover,
.swissns-property-card__link:focus {
	box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
	transform: translateY(-2px);
	outline: none;
}

.swissns-property-card__media {
	position: relative;
	display: block;
	aspect-ratio: 4 / 3;
	background: #f3f4f6;
	overflow: hidden;
}

.swissns-property-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.swissns-property-card__placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	color: var(--swissns-muted);
	font-size: 0.95rem;
}

.swissns-property-card__body {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 18px;
}

.swissns-property-card__title {
	font-size: 1.2rem;
	font-weight: 700;
	line-height: 1.3;
}

.swissns-property-card__excerpt {
	color: var(--swissns-muted);
	font-size: 0.95rem;
	line-height: 1.5;
}

.swissns-property-card__cta {
	margin-top: 4px;
	font-weight: 600;
	color: var(--swissns-primary);
}

.swissns-properties-single {
	margin-top: 0;
}

.swissns-properties-back {
	display: inline-flex;
	align-items: center;
	margin-bottom: 20px;
	padding: 8px 0;
	border: 0;
	background: none;
	color: var(--swissns-primary);
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}

.swissns-properties-back:hover,
.swissns-properties-back:focus {
	color: var(--swissns-primary-dark);
	text-decoration: underline;
	outline: none;
}

.swissns-property-gallery {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 12px;
}

.swissns-property-gallery__item {
	padding: 0;
	border: 2px solid transparent;
	border-radius: 8px;
	overflow: hidden;
	cursor: pointer;
	background: none;
	width: 72px;
	height: 72px;
	transition: border-color 0.15s ease, transform 0.15s ease;
}

.swissns-property-gallery__item:hover,
.swissns-property-gallery__item:focus-visible {
	border-color: var(--swissns-primary);
	outline: none;
}

.swissns-property-gallery__item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.swissns-property-gallery__hero {
	margin-bottom: 20px;
	border-radius: 12px;
	overflow: hidden;
}

.swissns-property-gallery__hero img {
	width: 100%;
	height: auto;
	display: block;
	max-height: 420px;
	object-fit: cover;
}

body.swissns-gallery-lightbox-open {
	overflow: hidden;
}

.swissns-gallery-lightbox {
	position: fixed;
	inset: 0;
	z-index: 100000;
}

.swissns-gallery-lightbox__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, 0.88);
}

.swissns-gallery-lightbox__dialog {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 100%;
	padding: 48px 72px;
	box-sizing: border-box;
}

.swissns-gallery-lightbox__figure {
	margin: 0;
	max-width: min(1200px, 100%);
	max-height: calc(100vh - 96px);
}

.swissns-gallery-lightbox__image {
	display: block;
	max-width: 100%;
	max-height: calc(100vh - 96px);
	width: auto;
	height: auto;
	margin: 0 auto;
	border-radius: 8px;
}

.swissns-gallery-lightbox__close,
.swissns-gallery-lightbox__nav {
	position: absolute;
	border: 0;
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
	cursor: pointer;
	line-height: 1;
}

.swissns-gallery-lightbox__close {
	top: 16px;
	right: 16px;
	width: 44px;
	height: 44px;
	border-radius: 999px;
	font-size: 28px;
}

.swissns-gallery-lightbox__nav {
	top: 50%;
	transform: translateY(-50%);
	width: 48px;
	height: 48px;
	border-radius: 999px;
	font-size: 32px;
}

.swissns-gallery-lightbox__nav--prev {
	left: 16px;
}

.swissns-gallery-lightbox__nav--next {
	right: 16px;
}

.swissns-gallery-lightbox__close:hover,
.swissns-gallery-lightbox__nav:hover {
	background: rgba(255, 255, 255, 0.22);
}

@media (max-width: 768px) {
	.swissns-gallery-lightbox__dialog {
		padding: 56px 16px;
	}

	.swissns-gallery-lightbox__nav {
		width: 40px;
		height: 40px;
		font-size: 26px;
	}
}

.swissns-property-videos {
	margin-bottom: 24px;
}

.swissns-property-videos h3 {
	margin: 0 0 12px;
	font-size: 1.1rem;
}

.swissns-property-video {
	margin-bottom: 16px;
}

.swissns-property-video h4 {
	margin: 0 0 8px;
	font-size: 1rem;
}

.swissns-property-video__embed {
	position: relative;
	padding-bottom: 56.25%;
	height: 0;
	overflow: hidden;
	border-radius: 12px;
	background: #000;
}

.swissns-property-video__embed iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

body.swissns-wc-checkout #customer_details,
body.swissns-wc-checkout .col2-set,
body.swissns-wc-checkout .woocommerce-billing-fields,
body.swissns-wc-checkout .woocommerce-shipping-fields,
body.swissns-wc-checkout .woocommerce-additional-fields,
body.swissns-wc-checkout .woocommerce-account-fields,
body.swissns-wc-checkout .woocommerce-form-login,
body.swissns-wc-checkout .wc-block-checkout__billing-fields,
body.swissns-wc-checkout .wp-block-woocommerce-checkout-billing-address-block {
	display: none !important;
}

body.swissns-wc-checkout form.checkout,
body.swissns-wc-checkout form.woocommerce-checkout {
	display: block !important;
}

body.swissns-wc-checkout #order_review_heading,
body.swissns-wc-checkout #order_review,
body.swissns-wc-checkout .woocommerce-checkout-review-order {
	float: none !important;
	width: 100% !important;
	max-width: 720px;
	margin-left: auto !important;
	margin-right: auto !important;
}

.swissns-property-video__file {
	width: 100%;
	border-radius: 12px;
}
