/* RateHawk Hotel Search & UI Styling */

:root {
	--rh-primary: #4f46e5;
	--rh-primary-hover: #4338ca;
	--rh-secondary: #06b6d4;
	--rh-dark: #0f172a;
	--rh-light: #f8fafc;
	--rh-border: #e2e8f0;
	--rh-radius: 12px;
	--rh-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

.rh-search-container {
	font-family: 'Inter', system-ui, -apple-system, sans-serif;
	max-width: 1100px;
	margin: 20px auto;
	color: #334155;
}

.rh-search-form {
	background: #ffffff;
	padding: 24px;
	border-radius: var(--rh-radius);
	box-shadow: var(--rh-shadow);
	border: 1px solid var(--rh-border);
}

.rh-form-grid {
	display: grid;
	grid-template-columns: 2fr 2fr 1.5fr 1.5fr;
	gap: 16px;
	align-items: end;
}

@media (max-width: 900px) {
	.rh-form-grid {
		grid-template-columns: 1fr;
	}
}

.rh-form-field label {
	display: flex;
	align-items: center;
	gap: 6px;
	font-weight: 600;
	font-size: 13px;
	color: #475569;
	margin-bottom: 8px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.rh-input, .rh-select {
	width: 100%;
	padding: 12px 16px;
	border: 1px solid var(--rh-border);
	border-radius: 8px;
	font-size: 14px;
	outline: none;
	transition: all 0.2s ease;
	background: #f8fafc;
}

.rh-input:focus, .rh-select:focus {
	border-color: var(--rh-primary);
	background: #fff;
	box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

.rh-btn-toggle {
	display: flex;
	justify-content: space-between;
	align-items: center;
	cursor: pointer;
	text-align: left;
}

/* Autocomplete Dropdown */
.rh-field-destination {
	position: relative;
}

.rh-autocomplete-dropdown {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	background: #fff;
	border-radius: 8px;
	box-shadow: var(--rh-shadow);
	border: 1px solid var(--rh-border);
	z-index: 100;
	max-height: 250px;
	overflow-y: auto;
	margin-top: 4px;
}

.rh-auto-item {
	padding: 12px 16px;
	cursor: pointer;
	border-bottom: 1px solid #f1f5f9;
	transition: background 0.15s ease;
}

.rh-auto-item:hover {
	background: #edf2f7;
}

/* Popover Guests Selector */
.rh-field-guests {
	position: relative;
}

.rh-guests-popover {
	position: absolute;
	top: 100%;
	left: 0;
	width: 320px;
	background: #fff;
	border-radius: var(--rh-radius);
	box-shadow: var(--rh-shadow);
	border: 1px solid var(--rh-border);
	padding: 20px;
	z-index: 100;
	margin-top: 8px;
}

.rh-room-card {
	border: 1px solid var(--rh-border);
	padding: 12px;
	border-radius: 8px;
	margin-bottom: 12px;
	background: #fafafa;
}

.rh-room-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 10px;
	font-size: 14px;
}

.rh-btn-remove-room {
	background: none;
	border: none;
	font-size: 18px;
	color: #ef4444;
	cursor: pointer;
}

.rh-guest-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 10px;
	font-size: 13px;
}

.rh-counter {
	display: flex;
	align-items: center;
	gap: 10px;
}

.rh-counter-btn {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	border: 1px solid var(--rh-border);
	background: #fff;
	cursor: pointer;
	font-weight: bold;
}

.rh-children-ages-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
	margin-top: 6px;
}

.rh-extra-selectors {
	display: flex;
	gap: 10px;
	margin-bottom: 10px;
}

.rh-btn-search, .rh-btn-primary {
	background: var(--rh-primary);
	color: #fff;
	border: none;
	padding: 13px 24px;
	border-radius: 8px;
	font-weight: 600;
	cursor: pointer;
	width: 100%;
	transition: background 0.2s ease;
	display: inline-flex;
	justify-content: center;
	align-items: center;
	gap: 8px;
}

.rh-btn-search:hover, .rh-btn-primary:hover {
	background: var(--rh-primary-hover);
}

.rh-btn-secondary {
	background: #e2e8f0;
	color: #334155;
	border: none;
	padding: 8px 16px;
	border-radius: 6px;
	font-weight: 600;
	cursor: pointer;
}

/* Hotel Results Cards */
.rh-results-area {
	margin-top: 30px;
}

.rh-hotel-card {
	display: flex;
	background: #fff;
	border-radius: var(--rh-radius);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
	border: 1px solid var(--rh-border);
	margin-bottom: 20px;
	overflow: hidden;
}

@media (max-width: 768px) {
	.rh-hotel-card {
		flex-direction: column;
	}
}

.rh-hotel-img img {
	width: 260px;
	height: 100%;
	object-fit: cover;
}

.rh-hotel-info {
	padding: 20px;
	flex: 1;
}

.rh-hotel-title {
	font-size: 18px;
	margin: 0 0 6px 0;
	color: var(--rh-dark);
}

.rh-stars {
	color: #f59e0b;
}

.rh-hotel-amenities {
	display: flex;
	gap: 12px;
	margin-top: 15px;
	font-size: 12px;
	color: #10b981;
}

.rh-hotel-pricing {
	padding: 20px;
	background: #f8fafc;
	border-left: 1px solid var(--rh-border);
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: flex-end;
	min-width: 180px;
}

.rh-price-val {
	font-size: 24px;
	font-weight: 800;
	color: var(--rh-primary);
}

.rh-price-tag {
	font-size: 11px;
	color: #64748b;
	margin-bottom: 12px;
}

/* Modal Overlay */
.rh-modal-overlay {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(15, 23, 42, 0.7);
	backdrop-filter: blur(4px);
	display: flex;
	justify-content: center;
	align-items: center;
	z-index: 9999;
}

.rh-modal-content {
	background: #fff;
	border-radius: 16px;
	width: 90%;
	max-width: 850px;
	max-height: 90vh;
	overflow-y: auto;
	position: relative;
	box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.rh-modal-close {
	position: absolute;
	top: 15px;
	right: 20px;
	background: none;
	border: none;
	font-size: 28px;
	cursor: pointer;
	color: #64748b;
}

.rh-spin {
	animation: rh-rotate 1s linear infinite;
}

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