/* NexVaca frontend stylesheet */

.nexvaca-booking,
.nexvaca-search {
	max-width: 720px;
	margin: 0 auto;
	padding: 8px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.nexvaca-booking-title {
	margin: 0 0 16px;
	font-size: 24px;
}

.nexvaca-booking-form {
	background: #fff;
	border: 1px solid #e2e6ea;
	border-radius: 10px;
	padding: 20px;
}

.nexvaca-booking-form p {
	margin: 0 0 14px;
}

.nexvaca-booking-form label {
	display: block;
	margin-bottom: 4px;
	font-weight: 600;
	font-size: 14px;
}

.nexvaca-required {
	color: #b32d2e;
}

.nexvaca-name-fields {
	display: flex;
	gap: 12px;
}

.nexvaca-name-fields p {
	flex: 1 1 0;
}

@media (max-width: 480px) {
	.nexvaca-name-fields {
		flex-direction: column;
		gap: 0;
	}
}

.nexvaca-required-hint {
	font-size: 12px;
	color: #646970;
	margin: 8px 0 0 !important;
}

.nexvaca-field-error {
	display: block;
	margin-top: 5px;
	padding: 10px 14px;
	border-radius: 6px;
	background: #d63638;
	color: #fff;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.4;
}

.nexvaca-activities {
	margin: 0 0 18px;
	padding: 14px;
	border: 1px solid #e2e6ea;
	border-radius: 8px;
}

.nexvaca-activities legend {
	padding: 0 6px;
	font-weight: 700;
}

.nexvaca-activity-option {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 4px 12px;
	padding: 10px 0;
	border-bottom: 1px solid #eef1f4;
}

.nexvaca-activity-option:last-child {
	border-bottom: 0;
}

.nexvaca-activity-option small {
	grid-column: 1;
	color: #646970;
}

.nexvaca-activity-option select {
	grid-column: 2;
	grid-row: 1 / span 2;
	min-width: 130px;
	padding: 7px;
	border: 1px solid #c9d1d9;
	border-radius: 6px;
}

.nexvaca-price-line {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	margin: 0 0 14px;
	padding: 10px 0;
	border-top: 1px solid #eef1f4;
	font-size: 14px;
}

.nexvaca-booking-form input[type="text"],
.nexvaca-booking-form input[type="email"],
.nexvaca-booking-form input[type="tel"],
.nexvaca-booking-form input[type="date"],
.nexvaca-booking-form input[type="number"],
.nexvaca-booking-form select,
.nexvaca-booking-form textarea {
	width: 100%;
	box-sizing: border-box;
	padding: 8px 10px;
	border: 1px solid #c9d1d9;
	border-radius: 6px;
	font-size: 14px;
}

.nexvaca-booking-form input::placeholder,
.nexvaca-booking-form textarea::placeholder {
	color: #9aa4b0;
	opacity: 1;
}

.nexvaca-button {
	display: inline-block;
	background: #0a7a4b;
	color: #fff;
	border: 0;
	border-radius: 6px;
	padding: 10px 18px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
}

.nexvaca-button:hover {
	background: #08603b;
}

.nexvaca-button:disabled {
	opacity: 0.6;
	cursor: wait;
}

/* Notices */
.nexvaca-booking-notice {
	padding: 14px 16px;
	border-radius: 8px;
	margin-bottom: 16px;
	font-size: 14px;
	line-height: 1.5;
}

.nexvaca-booking-notice-error {
	background: #1e3a5f;
	color: #fff;
	border: 1px solid #152d4d;
}

.nexvaca-booking-notice-success {
	background: #e0f0e6;
	color: #08603b;
	border: 1px solid #cbe8d6;
}

/* Room options */
.nexvaca-room-option {
	display: flex;
	flex-direction: column;
	gap: 2px;
	border: 1px solid #e2e6ea;
	border-radius: 8px;
	padding: 12px;
	margin-bottom: 10px;
	cursor: pointer;
}

.nexvaca-room-option-name {
	font-weight: 700;
}

.nexvaca-room-option-meta {
	font-size: 13px;
	color: #646970;
}

/* Unit property summary */
.nexvaca-property-summary {
	display: flex;
	flex-direction: column;
	gap: 4px;
	border: 1px solid #e2e6ea;
	border-radius: 8px;
	padding: 14px;
	margin-bottom: 10px;
	background: #fafbfc;
}

.nexvaca-property-summary-name {
	font-size: 17px;
	font-weight: 700;
	color: #1e3a5f;
}

.nexvaca-property-summary-address {
	font-size: 13px;
	color: #646970;
}

.nexvaca-property-summary-phone {
	font-size: 13px;
	color: #646970;
}

.nexvaca-property-summary-phone a {
	color: #1e3a5f;
	text-decoration: none;
}

.nexvaca-property-summary-phone a:hover {
	text-decoration: underline;
}

.nexvaca-property-summary-rate {
	font-size: 14px;
	font-weight: 600;
	margin-top: 4px;
}

.nexvaca-property-summary-fee {
	font-size: 12px;
	font-weight: 600;
	color: #3c434a;
}

.nexvaca-policy {
	margin-top: 8px;
}

.nexvaca-policy summary {
	display: inline-block;
	font-size: 13px;
	color: #1e3a5f;
	text-decoration: underline;
	cursor: pointer;
}

.nexvaca-policy-body {
	margin-top: 6px;
	font-size: 13px;
	line-height: 1.5;
	color: #3c434a;
	border-left: 3px solid #d7e2ee;
	padding-left: 10px;
}

.nexvaca-itinerary-link {
	margin: 4px 0 0;
}

.nexvaca-itinerary-trigger {
	padding: 0;
	border: 0;
	background: transparent;
	color: #1e3a5f;
	font-size: 13px;
	font-weight: 600;
	text-decoration: underline;
	cursor: pointer;
}

.nexvaca-experience-card {
	display: flex;
	flex-direction: column;
	max-width: 760px;
	margin: 24px auto;
	overflow: hidden;
	border: 1px solid #e2e6ea;
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 12px 32px rgba(10, 42, 67, 0.1);
}

.nexvaca-experience-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 24px;
}

.nexvaca-experience-grid .nexvaca-experience-card {
	max-width: none;
	margin: 0;
}

.nexvaca-experience-booking {
	width: 100%;
	margin-top: 20px;
	padding-top: 16px;
	border-top: 1px solid #e2e6ea;
}

.nexvaca-experience-booking label {
	display: block;
	margin: 0 0 10px;
	color: #1e3a5f;
	font-size: 13px;
	font-weight: 600;
}

.nexvaca-experience-booking input,
.nexvaca-experience-booking select {
	display: block;
	box-sizing: border-box;
	width: 100%;
	margin-top: 4px;
	padding: 9px;
	border: 1px solid #c9d1d9;
	border-radius: 6px;
	background: #fff;
}

.nexvaca-experience-total {
	color: #0a7a4b;
	font-weight: 700;
}

.nexvaca-experience-card-image {
	width: min(100%, 300px);
	height: 250px;
	flex: 0 0 250px;
	margin: 0 auto;
}

.nexvaca-experience-card-image img {
	width: 100%;
	height: 100%;
	min-height: 0;
	object-fit: cover;
}

.nexvaca-experience-card-body {
	display: flex;
	flex: 1;
	flex-direction: column;
	align-items: flex-start;
	padding: 24px;
}

.nexvaca-experience-card-eyebrow {
	color: #0e95a8;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
}

.nexvaca-experience-card h3 {
	margin: 6px 0 10px;
	color: #0a2a43;
	font-size: 22px;
}

.nexvaca-experience-card-teaser {
	margin: 0 0 18px;
	color: #5d6b78;
	line-height: 1.6;
}

.nexvaca-experience-card-price {
	display: flex;
	align-items: baseline;
	gap: 6px;
	margin: 0 0 16px;
	color: #0e95a8;
}

.nexvaca-experience-card-price strong {
	font-size: 24px;
	font-weight: 800;
	line-height: 1;
}

.nexvaca-experience-card-price span {
	color: #5d6b78;
	font-size: 13px;
	font-weight: 500;
}

.nexvaca-experience-card-facts {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 16px;
	margin: 0 0 18px;
	color: #5d6b78;
	font-size: 13px;
}

.nexvaca-experience-card-facts span {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.nexvaca-experience-card-facts b {
	color: #0a2a43;
	font-size: 11px;
	letter-spacing: .06em;
	text-transform: uppercase;
}

.nexvaca-experience-more {
	padding: 0;
	border: 0;
	background: transparent;
	color: #f16521;
	font-weight: 700;
	text-decoration: underline;
	cursor: pointer;
}

.nexvaca-experience-modal-meta {
	margin-top: 18px;
	color: #5d6b78;
	font-size: 13px;
}

.nexvaca-itinerary-modal-close {
	background: #0a7a4b;
	color: #fff;
}

@media (max-width: 600px) {
	.nexvaca-experience-card-image {
		width: 100%;
		height: min(250px, 80vw);
		flex-basis: min(250px, 80vw);
	}

	.nexvaca-experience-card-image img {
		height: 190px;
		min-height: 0;
	}
}

.nexvaca-modal-open {
	overflow: hidden;
}

.nexvaca-itinerary-modal[hidden] {
	display: none;
}

.nexvaca-itinerary-modal {
	position: fixed;
	inset: 0;
	z-index: 2147483647 !important;
	display: grid;
	place-items: center;
	padding: 20px;
}

.nexvaca-experience-modal {
	position: fixed !important;
	inset: 0 !important;
	z-index: 2147483647 !important;
	display: grid !important;
}

.nexvaca-experience-modal[hidden] {
	display: none !important;
}

.nexvaca-experience-modal .nexvaca-itinerary-modal-backdrop {
	position: absolute !important;
	inset: 0 !important;
	z-index: 0 !important;
}

.nexvaca-experience-modal .nexvaca-itinerary-modal-panel {
	position: relative !important;
	z-index: 1 !important;
}

dialog.nexvaca-experience-dialog {
	width: min(680px, calc(100vw - 32px));
	max-height: calc(100vh - 32px);
	margin: auto;
	padding: 24px;
	border: 0;
	border-radius: 14px;
	background: #fff;
	color: #1f2d3a;
	box-shadow: 0 24px 80px rgba(0, 0, 0, .35);
	z-index: 2147483647;
}

dialog.nexvaca-experience-dialog::backdrop {
	background: rgba(6, 32, 47, .78);
}

.nexvaca-itinerary-modal-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(13, 29, 48, 0.66);
}

.nexvaca-itinerary-modal-panel {
	position: relative;
	width: min(680px, 100%);
	max-height: min(760px, calc(100vh - 40px));
	overflow-y: auto;
	box-sizing: border-box;
	padding: 22px;
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 18px 60px rgba(13, 29, 48, 0.3);
	margin-top: 5%;
}

@media (max-width: 600px) {
	.nexvaca-itinerary-modal {
		display: block;
		padding: 0;
	}

	.nexvaca-itinerary-modal-panel {
		position: fixed;
		top: 15%;
		left: 20px;
		right: 20px;
		width: auto;
		max-height: calc(85vh - 20px);
		margin: 0;
		padding-top: 25px;
	}
}

.nexvaca-itinerary-modal-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 16px;
}

.nexvaca-itinerary-modal-head h2 {
	margin: 0;
	font-size: 24px;
	color: #1e3a5f;
}

.nexvaca-itinerary-modal-close {
	width: 34px;
	height: 34px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #eef3f8;
	color: #1e3a5f;
	font-size: 25px;
	line-height: 1;
	cursor: pointer;
}

.nexvaca-itinerary-page {
	max-width: 720px;
	margin: 0 auto;
	padding: 8px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.nexvaca-itinerary-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.nexvaca-itinerary-day {
	border: 1px solid #e2e6ea;
	border-radius: 8px;
	margin-bottom: 12px;
	padding: 14px 16px;
}

.nexvaca-itinerary-day h3 {
	margin: 0 0 8px;
	font-size: 17px;
	color: #1e3a5f;
}

.nexvaca-itinerary-day p:last-child {
	margin-bottom: 0;
}

/* Card payment */
.nexvaca-payment-note {
	font-size: 13px;
	color: #1e3a5f;
	background: #eef3f8;
	border: 1px solid #d7e2ee;
	border-radius: 8px;
	padding: 10px 12px;
}

.nexvaca-pay-summary {
	font-size: 15px;
	font-weight: 600;
}

.nexvaca-pay-total {
	color: #0a7a4b;
}

.nexvaca-card-element {
	border: 1px solid #c9d1d9;
	border-radius: 6px;
	padding: 12px;
	margin-bottom: 12px;
	background: #fff;
	min-height: 42px;
}

.nexvaca-stripe-error {
	display: none;
	background: #fbeaea;
	color: #b32d2e;
	border: 1px solid #f5c6c7;
	border-radius: 8px;
	padding: 10px 12px;
	margin-bottom: 12px;
	font-size: 13px;
	line-height: 1.5;
}

/* Success / availability */
.nexvaca-booking-success {
	text-align: center;
	padding: 24px;
}

.nexvaca-booking-success-note {
	margin: 10px 0;
	padding: 12px 14px;
	background: #e0f0e6;
	color: #08603b;
	border: 1px solid #cbe8d6;
	border-radius: 8px;
	font-size: 14px;
}

.nexvaca-booking-success-warn {
	background: #fff3d6;
	color: #8a5a00;
	border-color: #f0dca8;
}

.nexvaca-availability-results {
	list-style: none;
	margin: 16px 0 0;
	padding: 0;
}

.nexvaca-availability-results li {
	padding: 10px 0;
	border-bottom: 1px solid #e2e6ea;
	display: flex;
	justify-content: space-between;
	gap: 10px;
}

/* Search grid */
.nexvaca-search-results {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 16px;
	margin-top: 20px;
}

.nexvaca-property-card {
	border: 1px solid #e2e6ea;
	border-radius: 10px;
	overflow: hidden;
	background: #fff;
}

.nexvaca-property-card img {
	width: 100%;
	height: 150px;
	object-fit: cover;
	display: block;
}

.nexvaca-property-card-body {
	padding: 12px;
}

.nexvaca-property-card h3 {
	margin: 0 0 6px;
	font-size: 16px;
}

.nexvaca-property-card p {
	margin: 0 0 10px;
	font-size: 13px;
	color: #646970;
}

.nexvaca-pagination {
	display: flex;
	gap: 6px;
	margin-top: 20px;
	justify-content: center;
}

.nexvaca-pagination .current {
	font-weight: 700;
	text-decoration: underline;
}
