/* Fixăm pagina cuști la aceleași dimensiuni ca TW (fără scroll) */
body.page-custi {
  overflow: hidden !important;
  height: 100vh !important;
}

body.page-custi #main_wrap {
  min-height: 0 !important;
  height: 100vh !important;
  max-height: 100vh !important;
  display: flex !important;
  flex-direction: column !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: hidden !important;
}

body.page-custi #main_content {
  min-height: 0 !important;
  flex: 1 1 0 !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  padding: 0 !important;
  margin: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
}

body.page-custi #main_content #TWW {
  height: 100% !important;
  max-height: 100% !important;
  min-height: 0 !important;
  flex: 1 1 0 !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
}

#TWW.custi-page {
	width: 100%;
	max-width: 100%;
	height: calc(100vh - var(--nav-height));
	min-height: calc(100vh - var(--nav-height));
	max-height: calc(100vh - var(--nav-height));
	display: flex;
	flex-direction: column;
	align-items: stretch;
	justify-content: flex-start;
	/* Fără fundal (poza cu cuști o punem la final) */
	background: none;
	color: #fff;
	overflow: hidden; /* TWW nu are scroll intern; doar pagina, dacă e nevoie */
}

/* Două casete verticale în TWW: top = 1/10, main = rest */
.tww-strip {
  width: 100%;
  flex-shrink: 0;
}

.tww-strip--top {
  flex: 0 0 10%; /* 1/10 din înălțimea TWW */
  display: flex;
  align-items: center;
  justify-content: center;
  /* casetă roșie provizorie – doar pentru layout */
  background: #dc3545;
  border-bottom: 2px solid #ffffff;
}

.tww-top-inner {
  text-align: center;
  padding: 0 1.5rem;
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.tww-top-title {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 800;
  text-transform: uppercase;
}

.tww-top-subtitle {
  margin: 0.2rem 0 0.4rem;
  font-size: 0.85rem;
  font-weight: 500;
}

.tww-top-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
}

.tww-top-btn {
  display: inline-block;
  padding: 0.25rem 0.9rem;
  border-radius: 999px;
  background: rgba(21, 101, 192, 0.9);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.tww-top-btn:hover {
  background: rgba(13, 71, 161, 0.95);
}

.tww-strip--main {
  flex: 1 1 auto; /* restul de 9/10 */
  /* casetă albastră provizorie – doar pentru layout */
  background: #0d6efd;
  border-top: 2px solid #ffffff;
}

/* Casetă orizontală sus cu titlu + buton – ~1/8 din înălțimea TWW */
.tww-hero {
	flex: 0 0 12.5%; /* aproximativ 1/8 din înălțime */
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0.6rem 0.8rem 0; /* fără spațiu dedesubt – lipit de caseta cu poză */
	background: linear-gradient(to bottom, rgba(0,0,0,0.65), rgba(0,0,0,0.2));
	box-shadow: 0 2px 8px rgba(0,0,0,0.35);
}

.tww-hero-inner {
	max-width: 900px;
	text-align: center;
}

.tww-title {
	margin: 0 0 0.25rem;
	font-size: 1.35rem;
	font-weight: 800;
}

.tww-subtitle {
	margin: 0 0 0.5rem;
	font-size: 0.9rem;
	font-weight: 500;
}

.tww-back-btn {
	display: inline-block;
	padding: 0.4rem 1.2rem;
	border-radius: 999px;
	background: #1565c0;
	color: #fff;
	font-size: 0.85rem;
	font-weight: 700;
	text-decoration: none;
	box-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

.tww-back-btn:hover {
	background: #0d47a1;
}

/* Zona de jos pentru harta cuștilor */
.tww-main {
	flex: 1 1 auto;
	display: flex;
	align-items: stretch;
	justify-content: stretch;
	padding: 0; /* fără spațiu în jurul pozei */
	overflow: hidden; /* fără scroll interior în TWW */
}

.tww-main-inner {
	flex: 1 1 auto;
	max-width: 100%;
	width: 100%;
	height: 100%; /* umple toată caseta disponibilă sub titlu */
	border-radius: 0;
	overflow: hidden;
	position: relative;
	/* fundal cu custi-autocar pe toată caseta */
	background: url("../images/transport/custi-autocar.png") center/cover no-repeat;
	box-shadow: none;
}

.tww-main-overlay {
	position: absolute;
	inset: 0;
	background: none;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	padding: 0.8rem;
}

.tww-main-overlay p {
	max-width: 800px;
	font-size: 0.9rem;
	text-align: center;
	margin: 0;
}
