/*
 * Datumu kartītes plānā (inc/trip-cards.php) — "visi datumi viens zem otra".
 * Aditīvs fails; plāna laika līnijas stils — style/plan-timeline.css.
 */

.adventures-section .plan li.plan-trip { padding-bottom: 26px; }

.trip-card {
	box-sizing: border-box;
	width: 100%;
	background: #fff;
	border-radius: 14px;
	box-shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 6px 22px rgba(16, 24, 40, .07);
	overflow: hidden;
	color: #23221f;
	font-family: 'Roboto', sans-serif;
}

/* ── Galva ─────────────────────────────────────────── */
.trip-card .tc-head {
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	gap: 18px;
	padding: 20px 24px;
	border-bottom: 1px solid #efede8;
}
.trip-card .tc-date {
	width: 66px;
	height: 66px;
	border-radius: 12px;
	background: #1c1b1a;
	color: #fff;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	line-height: 1;
}
.trip-card .tc-day { font-size: 27px; font-weight: 700; letter-spacing: -.02em; }
.trip-card .tc-mon { margin-top: 5px; font-size: 11px; font-weight: 700; letter-spacing: .14em; color: #ffc000; }
.trip-card .tc-title { min-width: 0; }
.trip-card .tc-wd { font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #8a857b; }
.trip-card .tc-title h3 {
	margin: 3px 0 0;
	font-size: 22px;
	line-height: 1.2;
	font-weight: 700;
	color: #1c1b1a;
	text-transform: none;
}
.trip-card .tc-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.trip-card .tc-m {
	display: inline-flex;
	align-items: center;
	font-size: 12.5px;
	font-weight: 600;
	color: #3d3a35;
	background: #f4f2ed;
	border-radius: 6px;
	padding: 4px 9px;
	white-space: nowrap;
}
.trip-card .tc-m-time { background: #1c1b1a; color: #fff; }
.trip-card .tc-m-sun { background: #fff4d6; color: #7a5a00; }
.trip-card .tc-book {
	box-sizing: border-box;
	align-self: center;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 40px;
	padding: 0 18px;
	border-radius: 5px;
	background: #ff0060;
	color: #fff !important;
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: .07em;
	text-transform: uppercase;
	text-decoration: none !important;
	white-space: nowrap;
	transition: filter .15s, transform .15s;
}
.trip-card .tc-book:hover { filter: brightness(1.07); }
.trip-card .tc-book:active { transform: scale(.98); }

/* ── Saturs: info + karte ─────────────────────────── */
.trip-card .tc-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.trip-card .tc-body.no-map { grid-template-columns: 1fr; }
.trip-card .tc-info { padding: 20px 24px 22px; }
.trip-card .tc-facts { margin: 0; display: grid; gap: 14px; }
.trip-card .tc-f { margin: 0; }
.trip-card .tc-f dt {
	margin: 0 0 3px;
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: #9a958b;
}
.trip-card .tc-f dd { margin: 0; font-size: 15.5px; line-height: 1.4; color: #1c1b1a; }
.trip-card .tc-place { font-weight: 600; margin-right: 8px; }
.trip-card .tc-txt { font-size: 14.5px; color: #3d3a35; }
.trip-card .tc-nav { display: inline-flex; gap: 6px; vertical-align: middle; flex-wrap: wrap; }
.trip-card .tc-nav a {
	display: inline-flex;
	align-items: center;
	height: 26px;
	padding: 0 9px;
	border: 1px solid #e2dfd8;
	border-radius: 5px;
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: #3d3a35 !important;
	text-decoration: none !important;
	background: #fff;
	transition: border-color .15s, color .15s;
}
.trip-card .tc-nav a:hover { border-color: #ff0060; color: #ff0060 !important; }
.trip-card .tc-text,
.trip-card .tc-extra { margin-top: 16px; font-size: 14.5px; line-height: 1.65; color: #3d3a35; }
.trip-card .tc-text p,
.trip-card .tc-extra p { margin: 0 0 10px; }
.trip-card .tc-text p:last-child,
.trip-card .tc-extra p:last-child { margin-bottom: 0; }
.trip-card .tc-facts + .tc-text { padding-top: 16px; border-top: 1px solid #efede8; }

.trip-card .tc-map {
	position: relative;
	min-height: 300px;
	background: #eef0ec;
	border-left: 1px solid #efede8;
	z-index: 0;
}
.trip-card .tc-map .leaflet-control-attribution { font-size: 9px; }
.tc-pin {
	border-radius: 50%;
	background: #ff0060;
	border: 3px solid #fff;
	box-shadow: 0 1px 4px rgba(0, 0, 0, .35);
	box-sizing: border-box;
}
.tc-pin-finish { background: #1c1b1a; }

/* ── Praktiskie jautājumi (pilnā platumā zem satura) ── */
.trip-card .tc-qa {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1px;
	background: #efede8;
	border-top: 1px solid #efede8;
}
.trip-card .tc-qa.is-one { grid-template-columns: 1fr; }
.trip-card .tc-q { background: #fbfaf7; padding: 18px 24px 20px; }
.trip-card .tc-qa > .tc-q:last-child:nth-child(odd) { grid-column: 1 / -1; }
.trip-card .tc-q h4 {
	margin: 0 0 8px;
	font-size: 14px;
	line-height: 1.3;
	font-weight: 700;
	color: #1c1b1a;
	text-transform: none;
	letter-spacing: 0;
}
.trip-card .tc-q h4::before {
	content: "";
	display: inline-block;
	width: 8px;
	height: 8px;
	border-radius: 2px;
	background: #ffc000;
	margin-right: 8px;
	vertical-align: 1px;
}
.trip-card .tc-a { font-size: 14.5px; line-height: 1.6; color: #3d3a35; }
.trip-card .tc-a p { margin: 0 0 8px; }
.trip-card .tc-a p:last-child { margin-bottom: 0; }
.trip-card .tc-a ul { margin: 0; padding-left: 18px; }
.trip-card .tc-big { display: inline-block; font-size: 20px; font-weight: 700; color: #1c1b1a; line-height: 1.2; }
.trip-card .tc-f dt { text-transform: none; letter-spacing: 0; font-size: 12.5px; font-weight: 600; color: #8a857b; }

.trip-card .tc-gallery { padding: 18px 24px 22px; }

/* ── Telefons ─────────────────────────────────────── */
@media (max-width: 767px) {
	.trip-card .tc-head { grid-template-columns: auto 1fr; gap: 14px; padding: 16px; }
	.trip-card .tc-date { width: 56px; height: 56px; border-radius: 10px; }
	.trip-card .tc-day { font-size: 23px; }
	.trip-card .tc-title h3 { font-size: 19px; }
	.trip-card .tc-book { grid-column: 1 / -1; width: 100%; height: 44px; }
	.trip-card .tc-body { grid-template-columns: 1fr; }
	.trip-card .tc-info { padding: 16px; }
	.trip-card .tc-map { min-height: 220px; border-left: 0; border-top: 1px solid #efede8; order: 2; }
	.trip-card .tc-gallery { padding: 14px 16px 16px; }
	.trip-card .tc-qa { grid-template-columns: 1fr; }
	.trip-card .tc-q { padding: 16px; }
	.trip-card .tc-place { display: block; margin: 0 0 6px; }
}

/* ── Augšējās kartes leģenda: datumi ar maršruta krāsu (single.php, datumu maršrutu režīms) ── */
.map-date-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.map-date-legend .map-date-leg { display: inline-flex; align-items: center; gap: 7px; text-decoration: none !important; color: inherit !important; }
.map-date-legend .map-date-leg i { display: inline-block; width: 16px; height: 4px; border-radius: 2px; }
.map-date-legend .map-date-leg:hover .transport-text { text-decoration: underline; }
.map-date-legend .map-date-day { font-weight: 400; opacity: .6; }

/* ── "Kas tas ir?" datumu saraksts (piedz_dates_desc_html) ── */
.ddl { display: flex; flex-direction: column; gap: 10px; margin: 6px 0 22px; }
.ddl-item {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	grid-template-areas: "date title go" "date text go";
	column-gap: 14px;
	row-gap: 3px;
	align-items: start;
	padding: 14px 16px;
	background: #fff;
	border: 1px solid #ebe8e1;
	border-radius: 12px;
	color: inherit !important;
	text-decoration: none !important;
	transition: border-color .15s, box-shadow .15s;
}
a.ddl-item:hover { border-color: #ff0060; box-shadow: 0 4px 14px rgba(16, 24, 40, .08); }
.ddl-date {
	grid-area: date;
	width: 50px;
	height: 50px;
	border-radius: 10px;
	background: #1c1b1a;
	color: #fff;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	line-height: 1;
}
.ddl-date b { font-size: 20px; font-weight: 700; }
.ddl-date i { font-style: normal; margin-top: 3px; font-size: 9.5px; font-weight: 700; letter-spacing: .12em; color: #ffc000; }
.ddl-title { grid-area: title; align-self: center; font-size: 16px; font-weight: 700; color: #1c1b1a; line-height: 1.3; }
.ddl-text { grid-area: text; font-size: 14px; line-height: 1.55; color: #4a4741; }
.ddl-go { grid-area: go; align-self: center; font-size: 26px; line-height: 1; color: #c9c4b8; }
a.ddl-item:hover .ddl-go { color: #ff0060; }
@media (max-width: 767px) {
	.ddl-item { grid-template-areas: "date title go" "text text text"; row-gap: 10px; padding: 12px 14px; }
	.ddl-date { width: 44px; height: 44px; }
	.ddl-date b { font-size: 18px; }
}
.ddl-text strong, .ddl-text b, .ddl-text .bold { font-weight: 700; color: #1c1b1a; }

/* Kompaktais variants (lapā ir datumu kartītes): saraksts uz leju, viena rinda = viens datums */
.ddl.ddl-compact .ddl-item {
	grid-template-columns: auto minmax(0, 1fr) auto auto;
	grid-template-areas: "date title st go" "date meta st go";
	align-items: center;
	padding: 12px 14px;
}
.ddl.ddl-compact .ddl-title { align-self: end; }
.ddl-meta { grid-area: meta; align-self: start; display: flex; flex-wrap: wrap; gap: 2px 7px; font-size: 13px; color: #6b665d; line-height: 1.45; }
.ddl-meta i { font-style: normal; color: #c9c4b8; }
.ddl-st { grid-area: st; justify-self: end; font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: 5px 9px; border-radius: 5px; white-space: nowrap; }
.ddl-st-ok { background: #e9f6dc; color: #3f6b0c; }
.ddl-st-few { background: #fff1d6; color: #8a5a00; }
.ddl-st-none { background: #f1efea; color: #8a857b; }
@media (max-width: 767px) {
	.ddl.ddl-compact .ddl-item { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "date title go" "date meta go" "date st go"; row-gap: 4px; }
	.ddl.ddl-compact .ddl-st { justify-self: start; margin-top: 2px; }
}

/* Dzimumu vietas: divi statusi vienā stūrī */
.ddl-st.ddl-st-g { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; padding: 0; background: none; }
.ddl-st.ddl-st-g > span { display: inline-block; padding: 4px 8px; border-radius: 5px; }
@media (max-width: 767px) {
	.ddl-st.ddl-st-g { flex-direction: row; align-items: center; }
}
