/* ==========================================================================
   Besser Adventures — Front-end Styles
   Mobile-first. Base font/color rely on the parent theme (Twenty Twenty-Five).
   ========================================================================== */

/* --------------------------------------------------------------------------
   Layout helpers
   -------------------------------------------------------------------------- */
.ba-main {
	padding: 1.5rem 1rem 3rem;
}

.ba-container {
	max-width: 860px;
	margin: 0 auto;
}

/* --------------------------------------------------------------------------
   Breadcrumb
   -------------------------------------------------------------------------- */
.ba-breadcrumb {
	font-size: 0.875rem;
	color: #666;
	margin-bottom: 1.25rem;
}
.ba-breadcrumb a {
	color: inherit;
	text-decoration: underline;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.ba-btn {
	display: inline-block;
	padding: 0.5rem 1.1rem;
	border-radius: 6px;
	font-size: 0.9rem;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
	transition: opacity 0.15s;
}
.ba-btn:hover { opacity: 0.85; }

.ba-btn-primary  { background: #1a6fbf; color: #fff; }
.ba-btn-secondary { background: #e8f0fa; color: #1a4c8a; }
.ba-btn-ghost        { background: transparent; border: 1.5px solid #bbb; color: #333; }
.ba-btn-booked-active { background: #1a7a3c; color: #fff; }
.ba-btn-small    { padding: 0.3rem 0.75rem; font-size: 0.8rem; }

/* --------------------------------------------------------------------------
   Badges
   -------------------------------------------------------------------------- */
.ba-badge {
	display: inline-block;
	padding: 0.2em 0.65em;
	border-radius: 999px;
	font-size: 0.75rem;
	font-weight: 700;
	background: #e0e0e0;
	color: #444;
	vertical-align: middle;
}
.ba-badge--scheduled { background: #d4edda; color: #155724; }
.ba-badge--alt       { background: #fff3cd; color: #856404; }
.ba-badge--suggested { background: #e2e3e5; color: #383d41; }
.ba-badge--shortlisted { background: #cce5ff; color: #004085; }
.ba-badge--rejected  { background: #f8d7da; color: #721c24; }
.ba-badge--cat       { background: #f0e6ff; color: #5a0fa8; }
.ba-badge--booked    { background: #d1e7dd; color: #0a3622; font-weight: 800; }

/* --------------------------------------------------------------------------
   Trip archive
   -------------------------------------------------------------------------- */
.ba-trips-archive .ba-page-title {
	margin-bottom: 1.5rem;
}

.ba-trip-card {
	display: flex;
	gap: 1rem;
	border: 1px solid #e0e0e0;
	border-radius: 10px;
	overflow: hidden;
	margin-bottom: 1.25rem;
	background: #fff;
}
.ba-trip-card__thumb img {
	width: 140px;
	height: 140px;
	object-fit: cover;
	display: block;
}
.ba-trip-card__body {
	padding: 1rem;
	flex: 1;
}
.ba-trip-card__title {
	font-size: 1.2rem;
	margin: 0 0 0.35rem;
}
.ba-trip-card__dates {
	font-size: 0.85rem;
	color: #666;
	margin: 0 0 0.5rem;
}
.ba-trip-card__excerpt {
	font-size: 0.9rem;
	color: #444;
	margin: 0 0 0.75rem;
}

/* --------------------------------------------------------------------------
   Trip single / itinerary
   -------------------------------------------------------------------------- */
.ba-trip-header {
	margin-bottom: 2rem;
}
.ba-trip-header__cover img {
	width: 100%;
	max-height: 320px;
	object-fit: cover;
	border-radius: 10px;
	margin-bottom: 1rem;
}
.ba-trip-header__title { margin: 0 0 0.25rem; }
.ba-trip-header__dates { color: #666; font-size: 0.9rem; margin: 0 0 1rem; }

.ba-trip-actions {
	display: flex;
	gap: 0.5rem;
	margin-bottom: 1.5rem;
}

.ba-itinerary h2 { margin-bottom: 1rem; }

.ba-day-list {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.ba-day-card {
	display: flex;
	align-items: center;
	gap: 1rem;
	border: 1px solid #e0e0e0;
	border-radius: 10px;
	padding: 1rem;
	background: #fff;
}
.ba-day-card__meta {
	min-width: 80px;
	text-align: center;
}
.ba-day-card__number {
	display: block;
	font-weight: 700;
	font-size: 1rem;
}
.ba-day-card__date {
	display: block;
	font-size: 0.75rem;
	color: #666;
}
.ba-day-card__content {
	flex: 1;
}
.ba-day-card__title {
	margin: 0 0 0.25rem;
	font-size: 1rem;
}
.ba-day-card__summary {
	margin: 0 0 0.5rem;
	font-size: 0.875rem;
	color: #555;
}
.ba-day-card__counts {
	display: flex;
	gap: 0.4rem;
	flex-wrap: wrap;
}
.ba-day-card__link {
	flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   Day single
   -------------------------------------------------------------------------- */
.ba-day-header { margin-bottom: 1.5rem; }
.ba-day-header__title { margin-bottom: 0.25rem; }
.ba-day-header__meta {
	display: flex;
	gap: 1rem;
	font-size: 0.875rem;
	color: #666;
}
.ba-day-actions { margin-bottom: 1.5rem; }
.ba-idea-actions { display: flex; gap: 0.5rem; align-items: center; margin-bottom: 1.25rem; flex-wrap: wrap; }

.ba-section { margin-bottom: 2.5rem; }
.ba-section h2 { margin-bottom: 0.75rem; }
.ba-section__sub { font-size: 0.85rem; color: #777; font-weight: 400; }

.ba-empty { color: #888; font-style: italic; }

/* --------------------------------------------------------------------------
   Idea lists
   -------------------------------------------------------------------------- */
.ba-idea-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
}
.ba-idea-list--scheduled { counter-reset: idea-counter; }
.ba-idea-list--scheduled .ba-idea-item::before {
	counter-increment: idea-counter;
	content: counter(idea-counter);
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 2rem;
	height: 2rem;
	border-radius: 50%;
	background: #1a6fbf;
	color: #fff;
	font-weight: 700;
	font-size: 0.85rem;
	flex-shrink: 0;
}

.ba-idea-item {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	background: #fafafa;
	border: 1px solid #e8e8e8;
	border-radius: 8px;
	padding: 0.75rem 1rem;
}
.ba-idea-item__body { flex: 1; }
.ba-idea-item__title {
	margin: 0 0 0.2rem;
	font-size: 0.95rem;
}
.ba-idea-item__excerpt {
	font-size: 0.82rem;
	color: #666;
	margin: 0.25rem 0 0;
}
.ba-idea-item__meta {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 0.35rem;
	flex-shrink: 0;
}
.ba-vote-tally { font-size: 0.875rem; color: #444; }

/* --------------------------------------------------------------------------
   Voting buttons
   -------------------------------------------------------------------------- */
.ba-vote-btn {
	background: none;
	border: 1.5px solid #ddd;
	border-radius: 50%;
	width: 2.4rem;
	height: 2.4rem;
	font-size: 1.1rem;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: border-color 0.15s, background 0.15s, transform 0.1s;
	flex-shrink: 0;
}
.ba-vote-btn:hover { border-color: #888; background: #f5f5f5; }
.ba-vote-btn:active { transform: scale(0.9); }
.ba-vote-btn--active { border-color: #1a6fbf; background: #e8f0fa; }
.ba-vote-btn--up.ba-vote-btn--active  { border-color: #1a7a3c; background: #d1e7dd; }
.ba-vote-btn--down.ba-vote-btn--active { border-color: #b02a37; background: #f8d7da; }
.ba-vote-btn--mini { width: 1.7rem; height: 1.7rem; font-size: 0.8rem; }
.ba-vote-btn:disabled { opacity: 0.5; cursor: default; }

/* Full vote box (idea-single) */
.ba-vote-box {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	background: #f4f8ff;
	border: 1px solid #c8dcf5;
	border-radius: 10px;
	padding: 1rem 1.25rem;
	margin-bottom: 1.5rem;
}
.ba-vote-tally-large {
	font-size: 2rem;
	font-weight: 800;
	color: #1a4c8a;
	min-width: 3rem;
	text-align: center;
}
.ba-vote-label { color: #666; font-size: 0.9rem; }
.ba-vote-hint  { font-size: 0.85rem; color: #888; }

/* Mini widget in lists */
.ba-vote-mini {
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
	white-space: nowrap;
}
.ba-vote-score {
	font-size: 0.875rem;
	font-weight: 700;
	color: #444;
	min-width: 2rem;
	text-align: center;
}

/* --------------------------------------------------------------------------
   Idea single
   -------------------------------------------------------------------------- */
.ba-idea-header { margin-bottom: 1.25rem; }
.ba-idea-header h1 { margin-bottom: 0.5rem; }
.ba-idea-header__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	font-size: 0.85rem;
	color: #666;
	align-items: center;
}

.ba-vote-box {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	background: #f4f8ff;
	border: 1px solid #c8dcf5;
	border-radius: 10px;
	padding: 1rem 1.25rem;
	margin-bottom: 1.5rem;
}
.ba-vote-tally-large {
	font-size: 2rem;
	font-weight: 800;
	color: #1a4c8a;
}
.ba-vote-label { color: #666; font-size: 0.9rem; }

.ba-idea-body { margin-bottom: 1.5rem; line-height: 1.7; }

.ba-idea-address {
	background: #f5f5f5;
	border-radius: 6px;
	padding: 0.5rem 0.75rem;
	font-size: 0.875rem;
	margin-bottom: 1.25rem;
}

/* --------------------------------------------------------------------------
   Link preview card
   -------------------------------------------------------------------------- */
.ba-link-preview {
	display: flex;
	gap: 0.75rem;
	border: 1px solid #ddd;
	border-radius: 8px;
	overflow: hidden;
	margin-bottom: 1.5rem;
	background: #fafafa;
}
.ba-link-preview__img {
	width: 120px;
	height: 100px;
	object-fit: cover;
	flex-shrink: 0;
}
.ba-link-preview__text {
	padding: 0.75rem;
	font-size: 0.875rem;
}
.ba-link-preview__text strong { display: block; margin-bottom: 0.3rem; }
.ba-link-preview__text p { color: #555; margin: 0 0 0.4rem; }
.ba-link-preview__text a { color: #1a6fbf; word-break: break-all; }

/* --------------------------------------------------------------------------
   Weather placeholder
   -------------------------------------------------------------------------- */
.ba-weather-placeholder {
	background: #f0f7ff;
	border: 1px dashed #b3d0f0;
	border-radius: 8px;
	padding: 1rem;
	margin-bottom: 1.5rem;
	font-size: 0.875rem;
	color: #668;
	min-height: 60px;
}

/* --------------------------------------------------------------------------
   Map placeholder
   -------------------------------------------------------------------------- */
.ba-map-placeholder {
	background: #f5f5f5;
	border: 1px dashed #ccc;
	border-radius: 8px;
	margin-bottom: 1.5rem;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #999;
	font-size: 0.875rem;
}

/* --------------------------------------------------------------------------
   Day navigation
   -------------------------------------------------------------------------- */
.ba-day-nav { margin-top: 2.5rem; }
.ba-day-nav__inner {
	display: flex;
	gap: 0.5rem;
	justify-content: space-between;
	flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   Tabs
   -------------------------------------------------------------------------- */
.ba-tabs__nav {
	display: flex;
	gap: 0.25rem;
	border-bottom: 2px solid #e0e0e0;
	margin-bottom: 1.25rem;
}

.ba-tab-btn {
	background: none;
	border: none;
	border-bottom: 3px solid transparent;
	margin-bottom: -2px;
	padding: 0.6rem 1rem;
	font-size: 0.9rem;
	font-weight: 600;
	color: #555;
	cursor: pointer;
	display: flex;
	align-items: center;
	gap: 0.4rem;
	transition: color 0.15s, border-color 0.15s;
}
.ba-tab-btn:hover { color: #1a6fbf; }
.ba-tab-btn--active {
	color: #1a6fbf;
	border-bottom-color: #1a6fbf;
}

/* --------------------------------------------------------------------------
   Group headings (All Ideas grouped by day)
   -------------------------------------------------------------------------- */
.ba-group-heading {
	font-size: 1rem;
	font-weight: 700;
	color: #333;
	margin: 1.5rem 0 0.5rem;
	padding-bottom: 0.4rem;
	border-bottom: 1px solid #eee;
	display: flex;
	align-items: baseline;
	gap: 0.6rem;
}
.ba-group-heading a { color: inherit; text-decoration: none; }
.ba-group-heading a:hover { text-decoration: underline; }
.ba-group-heading__date { font-size: 0.8rem; color: #888; font-weight: 400; }

.ba-hint {
	font-size: 0.82rem;
	color: #777;
	margin-top: 0.75rem;
	padding: 0.5rem 0.75rem;
	background: #fffbea;
	border-radius: 6px;
	border: 1px solid #ffe58f;
}

/* --------------------------------------------------------------------------
   Idea form
   -------------------------------------------------------------------------- */
.ba-idea-form {
	background: #f9f9f9;
	border: 1px solid #e4e4e4;
	border-radius: 10px;
	padding: 1.25rem;
}

.ba-form-row {
	margin-bottom: 1rem;
}

.ba-form-row--inline {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem;
}

.ba-form-label {
	display: block;
	font-size: 0.875rem;
	font-weight: 600;
	margin-bottom: 0.3rem;
	color: #333;
}

.ba-form-hint {
	font-weight: 400;
	color: #888;
}

.ba-form-input {
	width: 100%;
	padding: 0.55rem 0.75rem;
	border: 1.5px solid #ccc;
	border-radius: 6px;
	font-size: 0.9rem;
	font-family: inherit;
	background: #fff;
	box-sizing: border-box;
	transition: border-color 0.15s;
}
.ba-form-input:focus {
	outline: none;
	border-color: #1a6fbf;
	box-shadow: 0 0 0 3px rgba(26,111,191,0.12);
}

textarea.ba-form-input { resize: vertical; }

.ba-form-actions { margin-top: 1rem; }

.ba-form-error {
	background: #fff3f3;
	border: 1px solid #f5c2c7;
	border-radius: 6px;
	padding: 0.6rem 0.9rem;
	font-size: 0.875rem;
	color: #842029;
	margin-bottom: 0.75rem;
}

.ba-form-success {
	background: #d1e7dd;
	border: 1px solid #a3cfbb;
	border-radius: 6px;
	padding: 0.6rem 0.9rem;
	font-size: 0.875rem;
	color: #0a3622;
	margin-bottom: 0.75rem;
}
.ba-form-success a { color: inherit; font-weight: 700; }

.ba-form-preview {
	margin-bottom: 0.75rem;
}
.ba-preview-loading {
	font-size: 0.8rem;
	color: #888;
}

/* --------------------------------------------------------------------------
   Idea item extras
   -------------------------------------------------------------------------- */
.ba-idea-item--new {
	border-color: #1a6fbf;
	background: #f0f7ff;
}
.ba-idea-item__byline {
	font-size: 0.78rem;
	color: #888;
	margin: 0.35rem 0 0;
}
.ba-idea-item__day {
	font-size: 0.8rem;
	color: #555;
	margin-left: 0.25rem;
}
.ba-idea-item__address {
	font-size: 0.82rem;
	color: #555;
	margin: 0.25rem 0 0;
}

/* --------------------------------------------------------------------------
   Comments area
   -------------------------------------------------------------------------- */
.ba-comments {
	margin-top: 2.5rem;
	border-top: 1px solid #eee;
	padding-top: 1.5rem;
}

/* --------------------------------------------------------------------------
   Mobile tweaks (very small screens)
   -------------------------------------------------------------------------- */
@media (max-width: 480px) {
	.ba-trip-card { flex-direction: column; }
	.ba-trip-card__thumb img { width: 100%; height: 180px; }

	.ba-day-card { flex-wrap: wrap; }
	.ba-day-card__link { width: 100%; }

	.ba-link-preview { flex-direction: column; }
	.ba-link-preview__img { width: 100%; height: 160px; }

	.ba-vote-box { flex-wrap: wrap; }
	.ba-form-row--inline { grid-template-columns: 1fr; }
}
