/* IMPORT ELEGANCKICH FONTÓW */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,700;1,400&family=Inter:wght@300;400;600&display=swap');

.bcn-premium-layout {
    background: #F4F4F2; /* Jasne, ciepłe tło wokół arkusza */
    padding: 60px 20px;
    font-family: 'Inter', sans-serif;
    color: #2C2C2C;
    line-height: 1.6;
}

.plan-canvas {
    max-width: 900px;
    margin: 0 auto;
    background: #FDFDFB; /* Kolor papieru premium */
    padding: 80px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
}

/* SUBTELNY RYSUNEK SAGRADY W TLE */
.bg-illustration {
    position: absolute;
    bottom: -30px;
    right: -30px;
    width: 450px;
    height: 600px;
    /* Używamy wektorowej ikony jako delikatnego tła */
    background-image: url('https://www.svgrepo.com/show/402488/sagrada-familia.svg');
    background-repeat: no-repeat;
    background-size: contain;
    opacity: 0.03; /* Ledwo widoczne, jak znak wodny */
    pointer-events: none;
    z-index: 0;
}

/* NAGŁÓWEK PLANU */
.plan-header {
    text-align: center;
    border-bottom: 1px solid #E5E5E5;
    padding-bottom: 50px;
    margin-bottom: 60px;
    position: relative;
    z-index: 1;
}

.plan-meta {
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #999;
    margin-bottom: 20px;
}

.plan-main-title {
    font-family: 'Playfair Display', serif;
    font-size: 56px;
    font-weight: 700;
    margin: 0;
    line-height: 1.1;
    color: #1A1A1A;
}

.hotel-base {
    font-size: 15px;
    margin-top: 20px;
    color: #666;
}

.hotel-base span {
    color: #B08D57; /* Subtelny złoty akcent */
    font-weight: 600;
}

/* PRZYCISK DRUKOWANIA */
.print-trigger {
    background: #1A1A1A;
    color: #fff;
    border: none;
    padding: 12px 25px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    margin-top: 30px;
    transition: 0.3s;
}

.print-trigger:hover { background: #B08D57; }

/* SEKCJA DNIA */
.day-section { margin-bottom: 100px; position: relative; z-index: 1; }

.day-label {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 26px;
    color: #B08D57;
    display: block;
    margin-bottom: 5px;
}

.day-heading {
    font-size: 36px;
    font-weight: 600;
    border-bottom: 1px solid #E5E5E5;
    padding-bottom: 20px;
    margin-bottom: 50px;
    letter-spacing: -1px;
}

/* KARTA ATRAKCJI */
.attraction-entry { margin-bottom: 80px; }
.entry-meta-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 15px;
}

.meta-pill {
    display: flex;
    flex-direction: column; /* Etykieta nad wartością - bardzo czytelne */
    background: #ffffff;
    border: 1px solid #E5E5E5;
    padding: 8px 15px;
    min-width: 100px;
    border-radius: 2px;
    box-shadow: 2px 2px 0px rgba(0,0,0,0.05);
}

.pill-label {
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: #B08D57; /* Twój złoty akcent */
    margin-bottom: 2px;
}

.pill-value {
    font-size: 14px;
    font-weight: 700;
    color: #1A1A1A;
    font-family: 'Inter', sans-serif;
}

/* Wyróżnienie ceny, żeby od razu było widać koszty */
.meta-pill.price {
    border-color: #1A1A1A;
    background: #FDFDFB;
}

.meta-pill.price .pill-value {
    color: #ed1c24; /* Czerwony akcent dla ceny (opcjonalnie) */
}

/* Styl pod druk, żeby boksy były widoczne */
@media print {
    .meta-pill {
        border: 1px solid #333 !important;
        -webkit-print-color-adjust: exact;
    }
}

.entry-title {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    margin: 0 0 25px 0;
    color: #1A1A1A;
}

.entry-gallery {
    display: flex; /* Zmieniamy z grid na flex */
    gap: 20px;
    margin: 40px 0; /* Wyraźny margines góra/dół */
    width: 100%;
    align-items: stretch; /* Obie kolumny będą tej samej wysokości */
}

.img-large {
    flex: 2; /* Zajmuje 2/3 szerokości */
    height: 400px; /* Możesz zwiększyć wysokość tutaj */
}

.img-small {
    flex: 1; /* Zajmuje 1/3 szerokości */
    height: 400px;
}

.entry-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Kluczowe: zdjęcie wypełnia swój boks bez rozciągania */
    display: block;
    border-radius: 2px;
}

/* Responsywność - na telefonie jedno pod drugim */
@media screen and (max-width: 768px) {
    .entry-gallery {
        flex-direction: column;
        height: auto;
    }
    .img-large, .img-small {
        flex: none;
        width: 100%;
        height: 300px;
    }
}

/* Fix dla marginesów pod galerią */
.entry-description {
    margin-bottom: 30px;
}

/* TIP OD ŁUKASZA (ESTETYCZNY CYTAT) */
.lukasz-insight {
    background: rgba(176, 141, 87, 0.05);
    border-left: 2px solid #B08D57;
    padding: 25px 35px;
    margin: 40px 0;
}

.insight-label {
    display: block;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    color: #B08D57;
    margin-bottom: 10px;
}

.lukasz-insight p {
    margin: 0;
    font-style: italic;
    font-size: 17px;
    color: #444;
}

.entry-description { font-size: 17px; color: #444; }

.maps-anchor {
    display: inline-block;
    font-size: 13px;
    text-decoration: none;
    color: #1A1A1A;
    border-bottom: 1px solid #B08D57;
    padding-bottom: 3px;
    font-weight: 600;
    transition: 0.3s;
}

.maps-anchor:hover { color: #B08D57; }

/* STOPKA */
.plan-footer-notes {
    text-align: center;
    margin-top: 80px;
    color: #999;
    font-size: 14px;
}

.footer-line {
    width: 50px;
    height: 1px;
    background: #E5E5E5;
    margin: 0 auto 30px;
}

/* OPTYMALIZACJA POD DRUK / PDF */
@media print {
    body, html { background: #fff !important; }
    .bcn-premium-layout { padding: 0; background: #fff; }
    .plan-canvas { 
        box-shadow: none; 
        padding: 0; 
        width: 100%; 
        max-width: 100%;
    }
    .no-print { display: none !important; }
    .day-section { page-break-before: always; padding-top: 40px; }
    .attraction-entry { page-break-inside: avoid; }
    .maps-anchor { border: none; color: #1A1A1A; text-decoration: underline; }
    .bg-illustration { opacity: 0.05; } /* Nieco wyraźniejszy w PDF */
}
/* OKRĄGŁE ZDJĘCIE I NAGŁÓWEK ATRAKCJI */
.entry-visual-header {
    display: flex;
    align-items: center;
    gap: 25px;
    margin-bottom: 30px;
}

.round-thumb {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #B08D57;
    flex-shrink: 0;
}

.round-thumb img { width: 100%; height: 100%; object-fit: cover; }

.entry-meta-bar {
    display: flex;
    gap: 15px;
    margin-top: 8px;
}

.meta-tag {
    background: #f0f0f0;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

/* LOGISTYKA I IKONY TMB */
.transport-instruction {
    display: flex;
    gap: 20px;
    background: #f9f9f9;
    padding: 20px;
    border-radius: 12px;
    margin: 25px 0;
    border-left: 5px solid #ed1c24; /* Kolor TMB Barcelona */
}

.tmb-icon {
    width: 40px;
    height: 40px;
}

.instruction-text {
    font-size: 15px;
    line-height: 1.4;
}

.instruction-text strong {
    display: block;
    font-size: 11px;
    color: #ed1c24;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

/* STYLIZACJA POD DRUK */
@media print {
    .transport-instruction { 
        background: #fff !important; 
        border: 1px solid #ed1c24; 
        -webkit-print-color-adjust: exact;
    }
}
/* KONTENER LOGISTYKI */
.transport-instruction {
    display: flex;
    align-items: flex-start;
    gap: 25px;
    background: #ffffff;
    border: 2px solid #ed1c24; /* Kolor TMB */
    padding: 25px;
    border-radius: 4px; /* Bardziej surowy, poradnikowy styl */
    margin: 30px 0;
}

.tmb-icon-box {
    flex-shrink: 0;
    width: 60px; /* Większe, by było widoczne */
}

.tmb-icon {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.instruction-text {
    flex-grow: 1;
}

.route-label {
    display: block;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 2px;
    color: #ed1c24;
    margin-bottom: 8px;
}

.instruction-text p {
    margin: 0;
    font-size: 16px;
    line-height: 1.5;
    font-weight: 500;
    color: #1a1a1a;
}

/* AUTOMATYCZNE OKRĄGŁE ZDJĘCIE */
.round-thumb {
    width: 120px;
    height: 120px;
    border-radius: 50%; /* Robi koło z każdego zdjęcia */
    overflow: hidden;
    border: 2px solid #E5E5E5;
    flex-shrink: 0;
}

.round-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ważne: wypełnia koło bez rozciągania */
}
.entry-meta-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 25px 0;
}

.meta-pill {
    display: flex;
    flex-direction: row; /* Ikona obok tekstu */
    align-items: center; 
    justify-content: center; /* Środkowanie zawartości w poziomie */
    background: #ffffff;
    border: 1px dotted #B08D57; /* Delikatna, kropkowana ramka - bardzo elegancka */
    padding: 15px;
    /* Ujednolicenie ramek */
    flex: 1; 
    min-width: 180px; 
    max-width: 220px;
    border-radius: 0; /* Kwadratowe ramki bardziej pasują do stylu "manual" */
    box-shadow: 4px 4px 0px rgba(176, 141, 87, 0.1);
}

.pill-icon {
    width: 24px;
    height: 24px;
    color: #B08D57;
    margin-right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.pill-data {
    display: flex;
    flex-direction: column;
    align-items: center; /* Środkowanie tekstów względem siebie */
    text-align: center;  /* Środkowanie samej treści tekstu */
}

.pill-label {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: #999;
    line-height: 1;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.pill-value {
    font-size: 15px;
    font-weight: 700;
    color: #1A1A1A;
}
.timeline-wrapper {
    position: relative;
    padding-left: 20px;
}

/* Pionowa linia łącząca punkty */
.timeline-wrapper::before {
    content: "";
    position: absolute;
    left: 107px; /* Dopasuj do szerokości czasu */
    top: 0;
    bottom: 0;
    width: 2px;
    background: #E5E5E5;
}

.timeline-item {
    display: flex;
    gap: 40px;
    margin-bottom: 80px;
    position: relative;
}

.timeline-time {
    width: 120px;
    flex-shrink: 0;
    text-align: right;
    padding-top: 10px;
}

.time-range {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 18px;
    color: #1A1A1A;
}

.time-line-dot {
    position: absolute;
    left: 103px; /* Wyśrodkowanie na linii */
    top: 18px;
    width: 10px;
    height: 10px;
    background: #B08D57;
    border-radius: 50%;
    z-index: 2;
    border: 3px solid #FDFDFB;
}

.timeline-content {
    flex-grow: 1;
}

/* Pod druk */
@media print {
    .timeline-wrapper::before { background: #333 !important; }
    .time-line-dot { border: 2px solid #000 !important; background: #000 !important; }
}
.entry-time-tag {
    display: inline-block;
    background: #1A1A1A; /* Ciemny tag */
    color: #ffffff;
    padding: 4px 12px;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 700;
    border-radius: 2px;
    margin-right: 15px; /* Odstęp od tytułu */
    vertical-align: middle;
}

.entry-title {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    margin: 0;
    display: flex;
    align-items: center; /* Centruje tag względem tekstu tytułu */
    flex-wrap: wrap; /* Zapewnia responsywność na wąskich ekranach */
}

/* Opcjonalnie pod druk, żeby oszczędzić tusz */
@media print {
    .entry-time-tag {
        background: transparent;
        color: #000;
        border: 2px solid #000;
        -webkit-print-color-adjust: exact;
    }
}