/* TopRent Public Styles */

/* ---- Property Grid ---- */
.toprent-properties-grid {
	display: grid;
	grid-template-columns: repeat( auto-fill, minmax( 280px, 1fr ) );
	gap: 24px;
	margin: 24px 0;
}

/* ---- Property Card ---- */
.toprent-property-card {
	border: 1px solid #e2e2e2;
	border-radius: 6px;
	overflow: hidden;
	background: #fff;
	box-shadow: 0 2px 6px rgba( 0,0,0,.06 );
	transition: box-shadow .2s;
}

.toprent-property-card:hover {
	box-shadow: 0 4px 14px rgba( 0,0,0,.12 );
}

.toprent-card-image img {
	width: 100%;
	height: 200px;
	object-fit: cover;
	display: block;
}

.toprent-card-body {
	padding: 16px;
}

.toprent-card-title {
	font-size: 1.1em;
	margin: 0 0 6px;
}

.toprent-card-title a {
	text-decoration: none;
	color: inherit;
}

.toprent-card-location {
	color: #666;
	font-size: .9em;
	margin: 0 0 8px;
}

.toprent-card-specs {
	list-style: none;
	margin: 0 0 10px;
	padding: 0;
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	font-size: .85em;
	color: #555;
}

.toprent-card-price {
	font-size: 1.1em;
	color: #2c3e50;
	margin: 8px 0 12px;
}

/* ---- Property Details Section ---- */
.toprent-property-details {
	background: #f7f9fc;
	border: 1px solid #dce3ec;
	border-radius: 6px;
	padding: 20px 24px;
	margin: 24px 0;
}

.toprent-property-details h3 {
	margin-top: 0;
}

.toprent-specs {
	list-style: none;
	padding: 0;
	margin: 0;
	display: grid;
	grid-template-columns: repeat( auto-fill, minmax( 200px, 1fr ) );
	gap: 8px;
}

.toprent-specs li {
	padding: 4px 0;
}

/* ---- Booking Form ---- */
.toprent-booking-form {
	background: #fff;
	border: 1px solid #dce3ec;
	border-radius: 6px;
	padding: 28px;
	margin: 32px 0;
	max-width: 600px;
}

.toprent-booking-form h3 {
	margin-top: 0;
	margin-bottom: 20px;
	font-size: 1.3em;
}

.toprent-form-row {
	margin-bottom: 16px;
}

.toprent-form-row label {
	display: block;
	margin-bottom: 4px;
	font-weight: 600;
	font-size: .9em;
}

.toprent-form-row input[type="text"],
.toprent-form-row input[type="email"],
.toprent-form-row input[type="tel"],
.toprent-form-row input[type="number"],
.toprent-form-row input[type="date"],
.toprent-form-row textarea,
.toprent-form-row select {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #ccd3db;
	border-radius: 4px;
	font-size: 1em;
	box-sizing: border-box;
}

.toprent-form-row textarea {
	resize: vertical;
	min-height: 80px;
}

.toprent-form-row .toprent-date-pair {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}

/* ---- Availability Notice ---- */
.toprent-availability-notice {
	padding: 10px 14px;
	border-radius: 4px;
	margin-bottom: 14px;
	font-size: .95em;
	display: none;
}

.toprent-availability-notice.available {
	background: #d4edda;
	color: #155724;
	border: 1px solid #c3e6cb;
}

.toprent-availability-notice.unavailable {
	background: #f8d7da;
	color: #721c24;
	border: 1px solid #f5c6cb;
}

/* ---- Buttons ---- */
.toprent-btn {
	display: inline-block;
	padding: 10px 20px;
	border-radius: 4px;
	font-size: 1em;
	font-weight: 600;
	cursor: pointer;
	border: none;
	text-decoration: none;
	text-align: center;
}

.toprent-btn-primary {
	background-color: #2c7be5;
	color: #fff;
}

.toprent-btn-primary:hover {
	background-color: #1a68d1;
	color: #fff;
}

.toprent-btn-primary:disabled {
	opacity: .65;
	cursor: default;
}

/* ---- Messages ---- */
.toprent-message {
	padding: 12px 16px;
	border-radius: 4px;
	margin-top: 14px;
	font-size: .95em;
}

.toprent-message.success {
	background: #d4edda;
	color: #155724;
}

.toprent-message.error {
	background: #f8d7da;
	color: #721c24;
}

.toprent-no-results {
	color: #666;
	font-style: italic;
}
