
#main-content {

max-width: 800px;
   margin: 100px auto 0;/* ⬅️ zvýšený offset */
  padding: 0 20px;
  position: relative;
z-index: 100;
}

/* Sekce výletů */
.latest-trips {
margin-bottom:20px;
  
}

/* Styl nadpisu jako součást seznamu */
.trip-heading {
display: flex;
padding-left: 10px;
}


.trip-heading h2 {
  font-size: 20px;
  font-weight: 700;
  
  color: #222;
  text-align: left;
  
}

/* Seznam výletů */
.trip-list {
  list-style: none;
  padding: 0;
  margin: 0;
  border-radius: 8px;
  background-color: #f4f4f4;
  overflow: hidden;
box-shadow: 0 0 12px rgb(0, 0, 0);
}

/* Jednotlivá položka */

/* Klikací celý blok */
.trip-link {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 10px;
  text-decoration: none;
  box-shadow: 0 0 6px rgba(0,0,0,0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  background-color: #fff;
  border-radius: 6px;
  position: relative;
}

.trip-link:hover   {
  transform: scale(1.015);
  box-shadow: 0 0 12px rgba(0,0,0,0.1);
}

/* Náhledový obrázek */
.trip-thumb img {
  width: 120px;
  height: 80px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}

/* Fallback náhled */
.no-thumb {
  width: 120px;
  height: 80px;
  background-color: #ccc;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  border-radius: 6px;
}

/* Textová část */
.trip-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
}

.trip-meta {
  position: absolute;
  top: 0;
  right: 0;
}

.trip-date {
  font-size: 14px;
  color: #666;
  padding: 4px 8px;
}

.trip-title {
  font-size: 20px;
  font-weight: 600;
  margin: 0;
  color: #222;
  padding-right: 70px;
  transition: color 0.2s ease;
}

.trip-link:hover .trip-title {
  color: #2690d6;
}







.single-trip-page {
  max-width: 800px;
  margin: 160px auto 60px;
  padding: 0 20px;
}

.trip-detail {
  background-color: #fff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 0 8px rgba(0,0,0,0.06);
}

.trip-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 30px;
}

.trip-thumb img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}

.trip-headline {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.trip-title {
  font-size: 24px;
  font-weight: 700;
  margin: 0;
  color: #222;
}

.trip-date {
  font-size: 14px;
  color: #666;
  white-space: nowrap;
}

.trip-content {
  font-size: 16px;
  line-height: 1.6;
  color: #333;
}

.trip-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  font-size: 14px;
  padding: 0 4px;
}

.trip-back,
.trip-edit {
  color: #555;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.trip-back:hover,
.trip-edit:hover {
  color: #2690d6;
}

.trip-back {
  background: none;
  border: none;
  font: inherit;
  color: #555;
  cursor: pointer;
  font-weight: 500;
  padding: 0;
  transition: color 0.2s ease;
}

.trip-back:hover {
  color: #2690d6;
}

#map {

    width:100%;
    height:500px;
}

.leaflet-routing-container {
  display: none !important;
}

.trip-route-plan {
  margin-top: 20px;
  background: #f9f9f9;
  padding: 20px;
  border-radius: 6px;
  font-size: 14px;
  line-height: 1.4;
}
.trip-route-plan table {
  width: 100%;
  border-collapse: collapse;
}
.trip-route-plan td {
  padding: 6px;
  border-bottom: 1px solid #eee;
}
