/**
 * Homepage Shortcode Styles
 * HHB-49.5: [hhb_homepage] - Search form only
 * Property display handled by [hhb_properties_list] shortcode
 *
 * @package Holiday_Home_Booking
 * @since 2.0.0
 */

/* ==========================================================================
   Wrapper
   ========================================================================== */

.hhb-homepage-wrapper {
	max-width: 95%;
	margin: 0 auto;
	padding: 2rem 1rem;
}

/* ==========================================================================
   Search Form
   ========================================================================== */

.hhb-homepage-search {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	padding: 2rem;
	margin-bottom: 3rem;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.hhb-homepage-search-form {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 1.5rem;
	align-items: end;
}

.hhb-homepage-search-field {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.hhb-homepage-search-label {
	font-size: 0.875rem;
	font-weight: 600;
	color: #374151;
	margin: 0;
}

.hhb-homepage-search-input {
	width: 100%;
	padding: 0.75rem 1rem;
	border: 1px solid #d1d5db;
	border-radius: 8px;
	font-size: 1rem;
	transition: all 0.2s ease;
	background: #fff;
}

.hhb-homepage-search-input:focus {
	outline: none;
	border-color: #3b82f6;
	box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.hhb-homepage-search-input:hover {
	border-color: #9ca3af;
}

.hhb-homepage-search-button-field {
	align-self: flex-end;
}

.hhb-homepage-search-button {
	width: 100%;
	padding: 0.75rem 1.5rem;
	background: #3b82f6;
	color: #fff;
	border: none;
	border-radius: 8px;
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s ease;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
}

.hhb-homepage-search-button:hover {
	background: #2563eb;
	transform: translateY(-1px);
	box-shadow: 0 4px 8px rgba(59, 130, 246, 0.2);
}

.hhb-homepage-search-button:active {
	transform: translateY(0);
}

.hhb-homepage-search-button svg {
	width: 16px;
	height: 16px;
}

.hhb-homepage-results-count {
	margin-top: 1rem;
	padding-top: 1rem;
	border-top: 1px solid #e5e7eb;
	font-size: 0.875rem;
	color: #6b7280;
	text-align: center;
}

/* Mobile: 1 column */
@media (max-width: 767px) {
	.hhb-homepage-search-form {
		grid-template-columns: 1fr;
		gap: 1rem;
	}
	
	.hhb-homepage-search {
		padding: 1.5rem;
	}
}

/* ==========================================================================
   Property List Container
   ========================================================================== */

.hhb-homepage-list-container {
	min-height: 200px;
}

/* ==========================================================================
   Loading State
   ========================================================================== */

.hhb-homepage-list-container.loading {
	opacity: 0.6;
	pointer-events: none;
}

.hhb-homepage-search-button.loading {
	opacity: 0.7;
	cursor: not-allowed;
}

/* ==========================================================================
   Upgrade Notice
   ========================================================================== */

.hhb-upgrade-notice {
	background: #f9fafb;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	padding: 2rem;
	text-align: center;
}

.hhb-upgrade-notice h3 {
	margin: 0 0 1rem 0;
	color: #111827;
	font-size: 1.5rem;
}

.hhb-upgrade-notice p {
	margin: 0 0 1.5rem 0;
	color: #6b7280;
}

.hhb-upgrade-notice .button {
	display: inline-block;
	padding: 0.75rem 1.5rem;
	background: #3b82f6;
	color: #fff;
	text-decoration: none;
	border-radius: 8px;
	font-weight: 600;
	transition: all 0.2s ease;
}

.hhb-upgrade-notice .button:hover {
	background: #2563eb;
	transform: translateY(-1px);
}
