/**
 * Single Piedzīvojuma lapas mobilie labojumi.
 * Jauns fails — neaiztiek style.css. Ielādējas pēc tā, override ar !important
 * (esošie datumu noteikumi arī lieto !important).
 */

/* ============================================================
   0a. Galvene aug ar saturu (bija fiksēts height: calc(100vh-166px)).
       Daudz datumu kartīšu vairs nepārplūst pāri hero un nepārklāj
       cenu joslu / tekstu zemāk. Īsam saturam hero paliek pilnekrāna.
   ============================================================ */
.adventures-single-header .multimedia {
	height: auto;
	min-height: calc(100vh - 166px);
	/* Atstarpe zem datumiem, lai tie nesaskaras ar dzelteno info joslu (cena/grūtība/poga) */
	padding-bottom: 44px !important;
}

/* ============================================================
   0b. Datumu kartītes: viegli tumšots fons + blur (bija 0.15, par gaišs).
       Gaišāks nekā iepriekšējais 0.42; lasāmību dod arī teksta ēnas zemāk.
   ============================================================ */
.adventures-single-header .info-frame .dates li {
	background: rgba(0, 0, 0, 0.15) !important;
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
}

/* Teksta ēnas — lai uz gaišā fona labi salasās */
.adventures-single-header .info-frame .dates .date-year {
	text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55);
}

/* ============================================================
   1. Datumu kartītes mobilajā: 2 kompaktas kolonnas
      (bija 1 pilna platuma — izskatījās platas/neveiklas)
   ============================================================ */
@media (max-width: 600px) {
	.adventures-single-header .info-frame .dates {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
		gap: 16px 10px !important;
	}

	.adventures-single-header .info-frame .dates li {
		width: auto !important;
		max-width: none !important;
		padding: 10px 10px 0 10px !important;
	}

	/* Garie statusi ("Vēl 10 SUP dēļi") aplaužas, nevis izspiež platumu */
	.adventures-single-header .info-frame .dates .seats-info {
		white-space: normal !important;
	}

	.adventures-single-header .info-frame .dates .seats,
	.adventures-single-header .info-frame .dates .no-seats {
		height: auto !important;
		min-height: 20px !important;
		line-height: 1.25 !important;
		padding: 2px 8px !important;
		white-space: normal !important;
	}

	/* Dzimumu-dalītajām kartītēm vajag vairāk vietas — paliek pilnā platumā */
	.adventures-single-header .info-frame .dates li:has(.gender) {
		grid-column: 1 / -1 !important;
	}

	/* Vietas chip: mobilajā NEizceļas ārpus (citādi šaurā ekrānā rada
	   horizontālu pārplūdumu); garie nosaukumi aplaužas kartītē.
	   !important — jo desktop .short-title noteikums failā ir vēlāk. */
	.adventures-single-header .info-frame .dates .short-title {
		white-space: normal !important;
		max-width: 100% !important;
	}
}

/* ============================================================
   2. Kartes maršruta teksts (.map-transport) iet ārpus ekrāna:
      "ĶEMERU TĪRELIS (AUTOSSTĀVVIETA) ▶ ..." bija white-space:nowrap
      + position:absolute → horizontāls pārplūdums. Mobilajā ļaujam
      aplauzties un plūst normāli zem kartes.
   ============================================================ */
@media (max-width: 768px) {
	.adventures-section .map-transport {
		position: static;
		bottom: auto;
		height: auto;
		flex-wrap: wrap;
		margin: 12px 0 0 0;
	}

	.adventures-section .map-transport .transport-text {
		white-space: normal;
	}
}

/* ============================================================
   3. Datumu kartītes: vietas nosaukums (short-title).
      Bija balts kastītis ar melnu tekstu (neveikls). Tagad — neitrāls
      caurspīdīgs "chip" ar pin ikonu, kas pielāgojas teksta garumam.
      Secība kartītē: gads → DATUMS (galvenais) → vieta → statuss.
   ============================================================ */
.adventures-single-header .info-frame .dates .date-year { order: 1; }
.adventures-single-header .info-frame .dates .full-date { order: 2; font-size: 18px !important; }
/* Garie (divu dienu) datumi >14 simboli — mazāks fonts, lai mobilajā nelūzt 2 rindās */
.adventures-single-header .info-frame .dates .full-date.full-date-long { font-size: 14px !important; }
.adventures-single-header .info-frame .dates .short-title-wrap { order: 3; }
.adventures-single-header .info-frame .dates .seats-info:not(.short-title-wrap) { order: 4; }

/* Vietas rindas konteiners — centrē chip, kas hug tekstu */
.adventures-single-header .info-frame .dates .seats-info.short-title-wrap {
	text-align: center !important;
	margin: 9px 0 0 0 !important;
}

/* Chip: balts fons + melns teksts (kā oriģinālais). Vienā līnijā — izceļas
   horizontāli ārpus kartītes cik vajag. Taisni stūri, bez ikonas, mazs fonts. */
.adventures-single-header .info-frame .dates .short-title {
	display: inline-block;
	white-space: nowrap;
	padding: 4px 9px;
	background: #fff;
	border: none;
	border-radius: 0;
	color: #000;
	font-size: 9.5px;
	font-weight: 700;
	letter-spacing: 0.3px;
	line-height: 1.2;
	text-transform: uppercase;
}

/* ============================================================
   4. Multi-lokāciju kartes marķieris (datumu tikšanās vietas).
      Skat. inc/date-map.php + single.php kartes sadaļu.
   ============================================================ */
.pv-map-pin {
	display: block;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: #ff0060;
	border: 2px solid #fff;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
}
