/* Hotel Rental Core — front-end styles for widgets (cards, grids, booking form) */

.hrc-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}

.hrc-card {
	background: #fff;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 2px 16px rgba(20, 20, 20, 0.06);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
	display: flex;
	flex-direction: column;
}
.hrc-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 12px 28px rgba(20, 20, 20, 0.12);
}

.hrc-card-img-link { position: relative; display: block; aspect-ratio: 4/3; overflow: hidden; }
.hrc-card-img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s ease; }
.hrc-card:hover .hrc-card-img { transform: scale(1.06); }

.hrc-card-badge {
	position: absolute;
	top: 12px;
	left: 12px;
	background: rgba(20, 20, 20, 0.75);
	color: #fff;
	font-size: 12px;
	font-weight: 600;
	padding: 4px 10px;
	border-radius: 999px;
	letter-spacing: 0.02em;
}
.hrc-badge-available { background: #2e7d32; }
.hrc-badge-unavailable { background: #c62828; }

.hrc-card-body { padding: 20px; flex: 1; display: flex; flex-direction: column; gap: 10px; }
.hrc-card-title { margin: 0; font-size: 19px; font-weight: 700; line-height: 1.3; }
.hrc-card-title a { color: inherit; text-decoration: none; }

.hrc-card-meta { display: flex; flex-wrap: wrap; gap: 12px; font-size: 13px; color: #6b6b6b; }

.hrc-card-amenities { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.hrc-card-amenities li {
	font-size: 12px;
	background: #F1F5F1;
	color: #3a3a3a;
	padding: 4px 10px;
	border-radius: 999px;
}

.hrc-card-footer { margin-top: auto; display: flex; align-items: center; justify-content: space-between; padding-top: 8px; }
.hrc-card-price { font-size: 20px; font-weight: 700; color: #2e7d32; }
.hrc-card-price small { font-size: 12px; font-weight: 400; color: #8a8a8a; }

.hrc-card-btn {
	display: inline-block;
	background: #2e7d32;
	color: #fff;
	font-weight: 600;
	font-size: 14px;
	padding: 10px 18px;
	border-radius: 8px;
	text-decoration: none;
	transition: opacity 0.2s ease;
}
.hrc-card-btn:hover { opacity: 0.88; color: #fff; }

.hrc-empty { padding: 40px; text-align: center; color: #888; }

/* Responsive grid fallback (in case Elementor responsive controls aren't set) */
@media (max-width: 1024px) {
	.hrc-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
	.hrc-grid { grid-template-columns: 1fr; }
}

/* Booking form */
.hrc-form { display: flex; flex-direction: column; gap: 16px; max-width: 640px; }
.hrc-form-row { display: flex; flex-direction: column; gap: 6px; }
.hrc-form-row-half { flex-direction: row; gap: 16px; }
.hrc-form-row-half > div { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.hrc-form label { font-size: 13px; font-weight: 600; color: #444; }
.hrc-form input,
.hrc-form select,
.hrc-form textarea {
	background: #F7F7F7;
	border: 1px solid #E3E3E3;
	border-radius: 8px;
	padding: 12px 14px;
	font-size: 14px;
	width: 100%;
	box-sizing: border-box;
}
.hrc-form input:focus,
.hrc-form select:focus,
.hrc-form textarea:focus {
	outline: none;
	border-color: #2e7d32;
}
.hrc-form-submit {
	background: #2e7d32;
	color: #fff;
	border: none;
	padding: 14px 24px;
	border-radius: 8px;
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
	transition: opacity 0.2s ease;
}
.hrc-form-submit:hover { opacity: 0.9; }
.hrc-form-submit:disabled { opacity: 0.6; cursor: not-allowed; }
.hrc-form-message { font-size: 14px; padding: 10px 0; display: none; }
.hrc-form-message.hrc-success { display: block; color: #2e7d32; }
.hrc-form-message.hrc-error { display: block; color: #c62828; }

@media (max-width: 640px) {
	.hrc-form-row-half { flex-direction: column; }
}
