/*
 * tobalt-nuoma public styles
 * Author: Tobalt — https://tobalt.lt
 *
 * Theme-agnostic. Selectors are namespaced under .tobalt-nuoma-* so the
 * stylesheet can ride on any active theme without colliding.
 */

.tobalt-nuoma-search,
.tobalt-nuoma-submit,
.tobalt-nuoma-dispute,
.tobalt-nuoma-rules,
.tobalt-nuoma-property {
	font-family: inherit;
	color: inherit;
	line-height: 1.5;
}

/* ---------- search ---------- */
.tobalt-nuoma-search__form {
	display: grid;
	grid-template-columns: 1fr 200px auto;
	gap: 0.5rem;
	margin-bottom: 1.5rem;
	align-items: end;
}
@media (max-width: 720px) {
	.tobalt-nuoma-search__form { grid-template-columns: 1fr; }
}
.tobalt-nuoma-search__form input,
.tobalt-nuoma-search__form select {
	padding: 0.55rem 0.7rem;
	border: 1px solid #d1d5db;
	border-radius: 6px;
	font-size: 1rem;
	width: 100%;
	box-sizing: border-box;
}
.tobalt-nuoma-search__form button {
	padding: 0.55rem 1.1rem;
	background: #111827;
	color: #fff;
	border: 0;
	border-radius: 6px;
	font-size: 1rem;
	cursor: pointer;
}
.tobalt-nuoma-search__form button:hover { background: #1f2937; }

.tobalt-nuoma-search__results {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 1rem;
}
.tobalt-nuoma-card { margin: 0; padding: 0; }
.tobalt-nuoma-card__link {
	display: block;
	text-decoration: none;
	color: inherit;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	padding: 1rem;
	background: #fff;
	transition: box-shadow .15s, border-color .15s;
}
.tobalt-nuoma-card__link:hover {
	border-color: #9ca3af;
	box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.tobalt-nuoma-card__head {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 0.5rem;
}
.tobalt-nuoma-card__title { margin: 0; font-size: 1.05rem; }
.tobalt-nuoma-card__score {
	font-size: 0.95rem;
	color: #15803d;
	white-space: nowrap;
}
.tobalt-nuoma-card__score strong { font-size: 1.25rem; }
.tobalt-nuoma-card__meta {
	display: flex;
	gap: 0.75rem;
	color: #6b7280;
	font-size: 0.85rem;
	margin-top: 0.35rem;
}
.tobalt-nuoma-card__badges {
	list-style: none;
	margin: 0.6rem 0 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
}
.tobalt-nuoma-search__pagination {
	margin-top: 1.5rem;
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
}
.tobalt-nuoma-search__pagination a,
.tobalt-nuoma-search__pagination span {
	padding: 0.35rem 0.7rem;
	border: 1px solid #d1d5db;
	border-radius: 4px;
	text-decoration: none;
}
.tobalt-nuoma-search__pagination .current {
	background: #111827; color: #fff; border-color: #111827;
}

/* ---------- badges ---------- */
.tobalt-nuoma-badge {
	display: inline-block;
	padding: 0.15rem 0.55rem;
	border-radius: 999px;
	font-size: 0.78rem;
	font-weight: 600;
	background: #f3f4f6;
	color: #111827;
	border: 1px solid #e5e7eb;
}
.tobalt-nuoma-badge--patikimas             { background: #dcfce7; color: #14532d; border-color: #86efac; }
.tobalt-nuoma-badge--velavusi-uzstata      { background: #fef3c7; color: #78350f; border-color: #fcd34d; }
.tobalt-nuoma-badge--slaptos-islaidos      { background: #fee2e2; color: #7f1d1d; border-color: #fca5a5; }
.tobalt-nuoma-badge--prasta-komunikacija   { background: #fee2e2; color: #7f1d1d; border-color: #fca5a5; }
.tobalt-nuoma-badge--gincas                { background: #ede9fe; color: #4c1d95; border-color: #c4b5fd; }

/* ---------- submit form ---------- */
.tobalt-nuoma-submit__form {
	display: grid;
	gap: 1.1rem;
	max-width: 720px;
}
.tobalt-nuoma-submit__title { margin: 0 0 0.4rem; }
.tobalt-nuoma-submit__intro { color: #4b5563; margin-bottom: 1rem; }
.tobalt-nuoma-rating {
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	padding: 0.7rem 1rem;
	margin: 0;
}
.tobalt-nuoma-rating legend { font-weight: 600; padding: 0 0.4rem; }
.tobalt-nuoma-rating__row {
	display: flex;
	gap: 0.3rem;
	flex-wrap: wrap;
	margin-top: 0.4rem;
}
.tobalt-nuoma-rating__option { cursor: pointer; }
.tobalt-nuoma-rating__option input { position: absolute; opacity: 0; pointer-events: none; }
.tobalt-nuoma-rating__option span {
	display: inline-block;
	min-width: 2.2rem;
	text-align: center;
	padding: 0.4rem 0.6rem;
	border: 1px solid #d1d5db;
	border-radius: 4px;
	background: #fff;
	font-weight: 500;
	user-select: none;
}
.tobalt-nuoma-rating__option input:checked + span {
	background: #111827;
	color: #fff;
	border-color: #111827;
}
.tobalt-nuoma-rating__option input:focus-visible + span {
	outline: 2px solid #2563eb; outline-offset: 2px;
}

.tobalt-nuoma-field { display: grid; gap: 0.3rem; }
.tobalt-nuoma-field span { font-weight: 600; font-size: 0.95rem; }
.tobalt-nuoma-field input,
.tobalt-nuoma-field select,
.tobalt-nuoma-field textarea {
	padding: 0.5rem 0.7rem;
	border: 1px solid #d1d5db;
	border-radius: 6px;
	font-size: 1rem;
	font-family: inherit;
}
.tobalt-nuoma-grid-2 {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.8rem;
}
@media (max-width: 600px) { .tobalt-nuoma-grid-2 { grid-template-columns: 1fr; } }
.tobalt-nuoma-submit__legal { font-size: 0.85rem; color: #6b7280; }
.tobalt-nuoma-submit__btn {
	padding: 0.7rem 1.4rem;
	background: #15803d;
	color: #fff;
	border: 0;
	border-radius: 6px;
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
	justify-self: start;
}
.tobalt-nuoma-submit__btn:hover { background: #166534; }
.tobalt-nuoma-submit__btn[disabled] { opacity: 0.5; cursor: progress; }

.tobalt-nuoma-submit__feedback { min-height: 1.3rem; }
.tobalt-nuoma-submit__feedback--ok    { color: #14532d; background: #dcfce7; padding: 0.6rem 0.8rem; border-radius: 6px; }
.tobalt-nuoma-submit__feedback--error { color: #7f1d1d; background: #fee2e2; padding: 0.6rem 0.8rem; border-radius: 6px; }

/* ---------- single property ---------- */
.tobalt-nuoma-property { max-width: 920px; margin: 0 auto; padding: 1.5rem 1rem; }
.tobalt-nuoma-property__head {
	border-bottom: 1px solid #e5e7eb;
	padding-bottom: 1rem;
	margin-bottom: 1.5rem;
}
.tobalt-nuoma-property__title { margin: 0 0 0.25rem; }
.tobalt-nuoma-property__city { margin: 0 0 0.6rem; color: #6b7280; }
.tobalt-nuoma-property__score {
	display: flex;
	align-items: baseline;
	gap: 0.5rem;
	margin: 0.6rem 0;
}
.tobalt-nuoma-property__score strong { font-size: 2.25rem; line-height: 1; color: #15803d; }
.tobalt-nuoma-property__score-suffix { color: #6b7280; }
.tobalt-nuoma-property__score-label { color: #6b7280; font-size: 0.92rem; }
.tobalt-nuoma-property__score-empty { color: #6b7280; }
.tobalt-nuoma-property__badges {
	list-style: none; margin: 0.4rem 0; padding: 0;
	display: flex; flex-wrap: wrap; gap: 0.35rem;
}
.tobalt-nuoma-button {
	display: inline-block;
	padding: 0.55rem 1.1rem;
	background: #111827;
	color: #fff !important;
	text-decoration: none;
	border-radius: 6px;
	font-weight: 600;
}
.tobalt-nuoma-button:hover { background: #1f2937; }

.tobalt-nuoma-review-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.tobalt-nuoma-review {
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	padding: 1rem;
	background: #fff;
}
.tobalt-nuoma-review__head {
	display: flex; gap: 1rem; align-items: baseline;
	margin-bottom: 0.5rem;
}
.tobalt-nuoma-review__overall strong { font-size: 1.4rem; color: #15803d; }
.tobalt-nuoma-review__period { color: #6b7280; font-size: 0.9rem; }
.tobalt-nuoma-review__body { margin: 0.4rem 0; white-space: pre-wrap; }
.tobalt-nuoma-review__foot {
	display: flex; gap: 0.6rem; flex-wrap: wrap;
	color: #6b7280; font-size: 0.85rem;
	border-top: 1px dashed #e5e7eb;
	padding-top: 0.6rem;
}

/* ---------- rules + dispute ---------- */
.tobalt-nuoma-rules h3,
.tobalt-nuoma-dispute h3 { margin-top: 1.4rem; }
.tobalt-nuoma-rules__updated,
.tobalt-nuoma-dispute__notice { color: #6b7280; font-size: 0.9rem; }
