/* airbnb-availability-checker.css */

.aac-wrapper {
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
	box-sizing: border-box;
	max-width: 100%;
	position: relative;
	z-index: 999999;
}

.aac-wrapper * {
	box-sizing: border-box;
}

.aac-form {
	display: flex;
	background: #fff;
	border-radius: 32px;
	box-shadow: 0 3px 12px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.08);
	border: 1px solid #ddd;
	padding: 8px;
	align-items: center;
	position: relative;
	transition: opacity 0.3s ease;
}

.aac-form.aac-loading {
	opacity: 0.7;
	pointer-events: none;
}

/* Layout variants */
.aac-layout-vertical .aac-form {
	flex-direction: column;
	border-radius: 12px;
	padding: 16px;
}

.aac-layout-horizontal .aac-form {
	flex-direction: row;
}

/* Field Groups */
.aac-field-group {
	padding: 8px 24px;
	position: relative;
	border-radius: 32px;
}

.aac-field-group:hover {
	background-color: #f7f7f7;
}

.aac-layout-horizontal .aac-field-group::after {
	content: "";
	position: absolute;
	right: 0;
	top: 15%;
	height: 70%;
	width: 1px;
	background-color: #ddd;
}
.aac-layout-horizontal .aac-field-group:last-child::after,
.aac-layout-horizontal .aac-field-group.aac-submit::after {
	display: none;
}

.aac-layout-vertical .aac-field-group {
	width: 100%;
	border-radius: 8px;
	margin-bottom: 8px;
	border: 1px solid #ddd;
}

/* Dates */
.aac-dates {
	display: flex;
	flex: 1;
}

.aac-field {
	display: flex;
	flex-direction: column;
	flex: 1;
}

.aac-field label, .aac-guests label {
	font-size: 12px;
	font-weight: 800;
	color: #222;
	margin-bottom: 2px;
	text-transform: uppercase;
}

.aac-datepicker {
	border: none;
	background: transparent;
	padding: 0;
	margin: 0;
	font-size: 16px; /* 16px prevents iOS Native Zoom */
	color: #717171;
	outline: none;
	width: 100%;
	cursor: pointer;
}

.aac-datepicker::placeholder {
	color: #717171;
}

/* Guests Toggle */
.aac-guests {
	flex: 1;
	cursor: pointer;
}

.aac-guest-selector-toggle {
	display: flex;
	justify-content: space-between;
	align-items: center;
	color: #717171;
	font-size: 14px;
}

/* Guests Dropdown */
.aac-guest-dropdown {
	display: none;
	position: absolute;
	top: 100%;
	right: 0;
	margin-top: 12px;
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 6px 16px rgba(0,0,0,0.12);
	padding: 16px;
	width: 300px;
	z-index: 99999;
	border: 1px solid #ebebeb;
}

.aac-guests.active .aac-guest-dropdown {
	display: block;
}

.aac-guest-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 16px 0;
	border-bottom: 1px solid #ebebeb;
}
.aac-guest-row:last-child {
	border-bottom: none;
}

.aac-guest-info strong {
	display: block;
	font-size: 16px;
	color: #222;
}

.aac-guest-info span {
	font-size: 14px;
	color: #717171;
}

.aac-guest-controls {
	display: flex;
	align-items: center;
}

.aac-guest-controls button {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	border: 1px solid #b0b0b0;
	background: transparent;
	color: #717171;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	padding: 0;
}
.aac-guest-controls button svg {
	width: 12px;
	height: 12px;
	stroke: currentColor;
	stroke-width: 5.3333;
}

.aac-guest-controls button:hover:not(:disabled) {
	border-color: #222;
	color: #222;
}

.aac-guest-controls button:disabled {
	opacity: 0.3;
	cursor: not-allowed;
}

.aac-count {
	width: 32px;
	text-align: center;
	font-size: 16px;
	color: #222;
}

/* Submit Button & Loader */
.aac-submit {
	padding: 0;
}

.aac-layout-horizontal .aac-submit {
	margin-left: 8px;
}

.aac-layout-vertical .aac-submit {
	border: none;
}

.aac-btn-submit {
	background: #ff385c;
	color: #fff;
	border: none;
	border-radius: 24px;
	padding: 14px 24px;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.2s ease;
	width: 100%;
	min-height: 48px;
}

.aac-btn-submit:hover {
	background: #d90b3e;
}

.aac-btn-loader {
	margin-left: 8px;
	display: flex;
	align-items: center;
}

.aac-spinner {
	animation: aac-rotate 2s linear infinite;
	width: 20px;
	height: 20px;
}

.aac-spinner .path {
	stroke: #fff;
	stroke-linecap: round;
	animation: aac-dash 1.5s ease-in-out infinite;
}

@keyframes aac-rotate {
	100% { transform: rotate(360deg); }
}

@keyframes aac-dash {
	0% { stroke-dasharray: 1, 150; stroke-dashoffset: 0; }
	50% { stroke-dasharray: 90, 150; stroke-dashoffset: -35; }
	100% { stroke-dasharray: 90, 150; stroke-dashoffset: -124; }
}

/* Results Container */
.aac-results-container {
	margin-top: 16px;
	padding: 16px;
	border-radius: 12px;
	text-align: center;
	font-size: 16px;
	animation: aac-fade-in 0.3s ease;
}

@keyframes aac-fade-in {
	from { opacity: 0; transform: translateY(-10px); }
	to { opacity: 1; transform: translateY(0); }
}

.aac-result-error {
	background: #fff8f6;
	border: 1px solid #ff385c;
	color: #ff385c;
	font-weight: 500;
}

.aac-result-success {
	background: #f0fdf4;
	border: 1px solid #22c55e;
	padding: 24px;
}

.aac-btn-whatsapp {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: #25D366;
	color: #fff;
	text-decoration: none;
	font-size: 18px;
	font-weight: 700;
	padding: 16px 32px;
	border-radius: 32px;
	transition: background 0.2s, transform 0.2s;
	box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.aac-btn-whatsapp:hover {
	background: #1EBE5D;
	transform: translateY(-2px);
	color: #fff;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
	.aac-layout-horizontal .aac-form {
		flex-direction: column;
		border-radius: 12px;
		padding: 16px;
	}
	
	.aac-layout-horizontal .aac-field-group {
		width: 100%;
		border-radius: 8px;
		margin-bottom: 8px;
		border: 1px solid #ddd;
	}
	
	.aac-layout-horizontal .aac-field-group::after {
		display: none;
	}
	
	.aac-layout-horizontal .aac-submit {
		margin-left: 0;
		border: none;
	}
	
	.aac-guest-dropdown {
		width: 100%;
		right: 0;
		left: 0;
	}

	/* Simple layout tweaks for minor mobile improvement */
	.aac-layout-horizontal .aac-dates {
		flex-direction: row; 
	}
	.aac-layout-horizontal .aac-dates .aac-field:first-child {
		border-right: 1px solid #ddd;
	}
}
