/* Timeline Plugin Styles - assets/css/timeline.css */

.tl-plugin-container {
    display: flex;
    flex-direction: row;
    gap: 30px;
    max-width: 1280px;
    margin: 0 auto;
    padding: 00px;
    position: relative;
    /* Responsive stacking for small screens handled below */
}

/* Bal oszlop: Idővonal Wrapper */
.tl-timeline-wrapper {
    width: 50%;
    height: 500px;
    overflow-y: auto;
    padding-right: 15px;
}

/* Idővonal (belső) */
.tl-timeline {
    position: relative;
    padding-left: 30px;
    padding-bottom: 20px;
    /* Space for line at bottom */
}

/* Scrollbar stílus */
.tl-timeline-wrapper::-webkit-scrollbar {
    width: 8px;
}

.tl-timeline-wrapper::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.tl-timeline-wrapper::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.tl-timeline-wrapper::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Függőleges vonal */
.tl-timeline::before {
    content: '';
    position: absolute;
    top: 20px;
    bottom: 0px;
    /* Megy a legaljáig */
    left: 15px;
    width: 4px;
    background-color: #e5e7eb;
    border-radius: 2px;
}

/* Idővonal Elemek */
.tl-item {
    position: relative;
    margin-bottom: 50px;
    padding: 20px;
    background: #ffffff;
    border: 1px solid #f3f4f6;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.tl-item:hover {
    border-color: #d1d5db;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08);
}

.tl-item:last-child {
    margin-bottom: 0;
}

/* Kiemelés görgetéskor / aktív állapotban */
.tl-item.active {
	
    border-color:#14243B;
    box-shadow: 0 10px 15px #14243b1f;
    transform: translateX(5px);
}

/* Marker a vonalon */
.tl-item .tl-marker {
    position: absolute;
    left: -26px;
    /* 30px padding - 4px width/2 = 28 - marker radius */
    top: 25px;
    width: 18px;
    height: 18px;
    background-color: #9ca3af;
    border: 3px solid #ffffff;
    border-radius: 50%;
    z-index: 2;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.tl-item.active .tl-marker {
    background-color: #14243B;
    transform: scale(1.3);
}

/* Tartalom elrendezése */
.tl-content {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.tl-text {
    flex: 1;
}

.tl-image {
    width: 120px;
    flex-shrink: 0;
}

.tl-image img {
    width: 100%;
    height: auto;
    display: block;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Tartalom tipográfia */
.tl-date {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 700;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 5px;
}

.tl-title {
    font-size: 1.25rem;
    margin: 0 0 10px 0;
    color: #111827;
}

.tl-location-name {
    font-size: 0.9rem;
    color: #4b5563;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Marker ikon SVG */
.tl-location-name::before {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%234b5563'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M17.657 16.657L13.414 20.9a1.998 1.998 0 01-2.827 0l-4.243-4.243a8 8 0 1111.314 0z'%3E%3C/path%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M15 11a3 3 0 11-6 0 3 3 0 016 0z'%3E%3C/path%3E%3C/svg%3E");
    background-size: cover;
}

/* Read more button */
.tl-btn-more {
    margin-top: 10px;
    background: #c7ad70;
    color: #fff;
    border: none;
    padding: 6px 12px;
    cursor: pointer;
    font-size: 0.85em;
    transition: background 0.3s;
}

.tl-btn-more:hover {
    background: #a8925e;
}

/* Modal formázás */
.tl-modal {
    display: none;
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.tl-modal-content {
    background-color: #fefefe;
    margin: 10% auto;
    padding: 30px;
    border: 1px solid #888;
    width: 80%;
    max-width: 600px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    position: relative;
}

.tl-modal-close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    margin-top: -10px;
}

.tl-modal-close:hover,
.tl-modal-close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

#tl-modal-title {
    font-size: 1.5em;
    margin-bottom: 5px;
    display: block;
}

#tl-modal-date-loc {
    margin-bottom: 20px;
    color: #6b7280;
    font-size: 0.9em;
}

#tl-modal-image {
    margin-bottom: 20px;
    text-align: center;
}

#tl-modal-image img {
    max-width: 100%;
    height: auto;
    max-height: 400px;
    /* Ne legyen túl nagy a kép */
    object-fit: contain;
}

.tl-modal-desc-body {
    line-height: 1.6;
    color: #374151;
}

/* Jobb oszlop: Google Térkép Wrapper */
.tl-map-wrapper {
    width: 50%;
}

.tl-map-canvas {
    width: 100%;
    height: 500px;
    /* Alapértelmezett magasság */
   /* border-radius: 12px; */
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    background: #f3f4f6;
    /* Placeholder betöltésig */
}

/* InfoWindow Custom Styles (ha a GMaps engedi rá a stílust parenten keresztül) */
.tl-info-window {
    padding: 5px 10px 10px 0;
    max-width: 250px;
}

.tl-info-window strong {
    font-size: 1.1em;
    color: #111827;
}

.tl-info-window em {
    color: #6b7280;
    font-size: 0.85em;
    font-style: normal;
    display: block;
    margin: 3px 0 8px 0;
}

.tl-info-window span {
    font-size: 0.9em;
    color: #4b5563;
    display: block;
    margin-bottom: 8px;
}

.tl-info-window p {
    font-size: 0.95em;
    line-height: 1.4;
    margin: 0;
}

.tl-info-image {
    margin-bottom: 10px;
}

.tl-info-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Reszponzivitás */
@media (max-width: 768px) {
    .tl-plugin-container {
        flex-direction: column-reverse;
    }

    .tl-timeline-wrapper,
    .tl-map-wrapper {
        width: 100%;
    }

    .tl-map-canvas {
        height: 300px;
        position: relative;
        /* Levesszük a stickyt mobilon, beillesztjük felülre */
        top: 0;
        margin-bottom: 30px;
    }

    .tl-content {
        flex-direction: column;
    }

    .tl-image {
        width: 100%;
        margin-top: 10px;
        max-width: 250px;
    }
}