/* Smoobu Connect – Frontend-Styles
 * Bewusst zurückhaltend gehalten, damit es sich an dein Theme anpasst.
 */

.smoobu-apartments {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 1rem;
	margin: 1rem 0;
}

.smoobu-apartment {
	border: 1px solid rgba(0, 0, 0, 0.1);
	border-radius: 8px;
	padding: 1rem;
}

.smoobu-apartment__name {
	margin: 0 0 0.25rem;
	font-size: 1.1rem;
}

.smoobu-apartment__location {
	margin: 0;
	opacity: 0.7;
	font-size: 0.9rem;
}

.smoobu-availability {
	width: 100%;
	border-collapse: collapse;
	margin: 1rem 0;
}

.smoobu-availability th,
.smoobu-availability td {
	padding: 0.5rem 0.75rem;
	border-bottom: 1px solid rgba(0, 0, 0, 0.08);
	text-align: left;
}

.smoobu-availability tr.is-booked {
	opacity: 0.5;
}

.smoobu-availability tr.is-available td:nth-child(2) {
	color: #1a7f37;
	font-weight: 600;
}

.smoobu-notice {
	padding: 0.75rem 1rem;
	border-radius: 6px;
	margin: 1rem 0;
}

.smoobu-notice--error {
	background: #fde8e8;
	color: #9b1c1c;
}

.smoobu-notice--info {
	background: #eef2ff;
	color: #3730a3;
}

/* --- Kalender ------------------------------------------------------ */

.smoobu-calendar__loading {
	padding: 1rem;
	opacity: 0.7;
}

.smoobu-calendar__nav {
	display: flex;
	justify-content: space-between;
	margin-bottom: 0.75rem;
}

.smoobu-calendar__nav button {
	background: transparent;
	border: 1px solid rgba(0, 0, 0, 0.15);
	border-radius: 6px;
	padding: 0.35rem 0.8rem;
	cursor: pointer;
}

.smoobu-calendar__nav button:hover {
	background: rgba(0, 0, 0, 0.04);
}

.smoobu-calendar__months {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 1.5rem;
}

.smoobu-month__label {
	font-weight: 600;
	text-align: center;
	margin-bottom: 0.5rem;
	text-transform: capitalize;
}

.smoobu-month table {
	width: 100%;
	border-collapse: collapse;
	table-layout: fixed;
}

.smoobu-month th {
	font-size: 0.75rem;
	font-weight: 600;
	opacity: 0.6;
	padding: 0.25rem 0;
	text-align: center;
}

.smoobu-day {
	height: 3rem;
	text-align: center;
	vertical-align: middle;
	border-radius: 6px;
	position: relative;
}

.smoobu-day__num {
	display: block;
	font-size: 0.9rem;
	line-height: 1;
}

.smoobu-day__price {
	display: block;
	font-size: 0.65rem;
	opacity: 0.7;
	margin-top: 2px;
}

.smoobu-day.is-available {
	cursor: pointer;
	background: #e8f5ec;
	color: #14532d;
}

.smoobu-day.is-available:hover {
	background: #c9ebd4;
}

.smoobu-day.is-booked {
	background: #f3f4f6;
	color: #9ca3af;
	text-decoration: line-through;
}

.smoobu-day.is-past {
	color: #d1d5db;
}

.smoobu-day.is-selected {
	background: #2563eb;
	color: #fff;
}

.smoobu-day.is-range {
	background: #bfdbfe;
	color: #1e3a8a;
}

/* --- Formular ------------------------------------------------------ */

.smoobu-form {
	max-width: 640px;
	margin: 1.5rem 0;
}

.smoobu-form__title {
	margin-top: 0;
}

.smoobu-form__row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem;
	margin-bottom: 1rem;
}

.smoobu-form label {
	display: block;
}

.smoobu-form label > span {
	display: block;
	font-size: 0.85rem;
	font-weight: 600;
	margin-bottom: 0.25rem;
}

.smoobu-form input,
.smoobu-form textarea {
	width: 100%;
	padding: 0.5rem 0.65rem;
	border: 1px solid rgba(0, 0, 0, 0.2);
	border-radius: 6px;
	box-sizing: border-box;
}

.smoobu-form__full {
	display: block;
	margin-bottom: 1rem;
}

.smoobu-form__consent {
	display: flex;
	align-items: flex-start;
	gap: 0.5rem;
	margin-bottom: 1rem;
	font-size: 0.85rem;
}

.smoobu-form__consent input {
	width: auto;
	margin-top: 0.2rem;
}

.smoobu-form__hp {
	position: absolute;
	left: -9999px;
	height: 0;
	overflow: hidden;
}

.smoobu-form__submit {
	background: #2563eb;
	color: #fff;
	border: 0;
	border-radius: 6px;
	padding: 0.7rem 1.4rem;
	font-size: 1rem;
	cursor: pointer;
}

.smoobu-form__submit:hover {
	background: #1d4ed8;
}

.smoobu-form__submit:disabled {
	opacity: 0.6;
	cursor: default;
}

.smoobu-form__message {
	margin-top: 1rem;
	padding: 0;
}

.smoobu-form__message.is-success {
	padding: 0.75rem 1rem;
	border-radius: 6px;
	background: #e8f5ec;
	color: #14532d;
}

.smoobu-form__message.is-error {
	padding: 0.75rem 1rem;
	border-radius: 6px;
	background: #fde8e8;
	color: #9b1c1c;
}

@media ( max-width: 480px ) {
	.smoobu-form__row {
		grid-template-columns: 1fr;
	}
}

/* --- Zusammenfassung (Preis & Mindestaufenthalt) ------------------ */

.smoobu-summary {
	margin-top: 1rem;
}

.smoobu-calendar__summary {
	border-top: 1px solid rgba(0, 0, 0, 0.08);
	padding-top: 1rem;
}

.smoobu-summary__hint {
	opacity: 0.7;
	font-size: 0.9rem;
}

.smoobu-summary__nights {
	font-size: 0.95rem;
	margin-bottom: 0.25rem;
}

.smoobu-summary__total {
	font-size: 1.15rem;
}

.smoobu-summary__total strong {
	margin-left: 0.25rem;
}

.smoobu-summary__note {
	font-size: 0.75rem;
	opacity: 0.65;
	margin-top: 0.25rem;
}

.smoobu-summary__warn {
	background: #fff7ed;
	color: #9a3412;
	border: 1px solid #fed7aa;
	border-radius: 6px;
	padding: 0.5rem 0.75rem;
	margin-bottom: 0.5rem;
	font-size: 0.9rem;
}
