/*
 Theme Name: Tripp Child – Szlak Mnie Trafi
 Theme URI: https://szlakmnietrafi.pl
 Description: Motyw potomny dla TRIPP, używany na blogu SzlakMnieTrafi.pl do publikacji tras górskich, analiz ekspozycji oraz projektu „Pokonać akrofobię”.
 Author: ZBuK
 Author URI: https://szlakmnietrafi.pl
 Version: 1.0
 Template: tripp
 Text Domain: tripp-child
*/

.has-extra-small-font-size {
  font-size: 1.1rem;
}

.uwagi-osobiste-tekst {
    font-size: 1.6rem;
    font-weight: 300;  /* nie bold, ale też nie cienki */
}





/* Główny kontener */
.akrofobia-box {
  background: #1e1e1e;
  color: #f0f0f0;
  border-radius: 12px;
  padding: 0;
  margin: 60px auto;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.05);
  max-width: 880px;
  overflow: hidden;
}

/* Nagłówek (summary) */
.akrofobia-box > summary.akrofobia-box__header {
  background: #c62828;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  cursor: pointer;
  user-select: none;
  list-style: none;
}

/* Ukryj domyślny marker przeglądarki */
.akrofobia-box > summary::-webkit-details-marker { display: none; }
.akrofobia-box > summary::marker { content: ""; }

/* Hover/focus – sygnał "klikane" */
.akrofobia-box > summary.akrofobia-box__header:hover {
  filter: brightness(1.05);
}

.akrofobia-box > summary.akrofobia-box__header:focus {
  outline: 2px solid rgba(255, 255, 255, 0.35);
  outline-offset: 2px;
}

/* Tytuł */
.akrofobia-box__title {
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  margin: 0;
  line-height: 1.2;
  flex: 1;
}

/* Prawa strona: "ROZWIŃ" + strzałka */
.akrofobia-box__chevron {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-shrink: 0;
  margin-left: 16px;
  opacity: 0.95;
  line-height: 1;
}

/* Tekst PRZED strzałką */
.akrofobia-box__chevron::before {
  content: "rozwiń";
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.8;
}

.akrofobia-box[open] .akrofobia-box__chevron::before {
  content: "zwiń";
}

/* Strzałka (na końcu) */
.akrofobia-box__chevron::after {
  content: "▾";
  font-size: 28px;
  opacity: 0.95;
}

.akrofobia-box[open] .akrofobia-box__chevron::after {
  content: "▴";
}

/* Treść */
.akrofobia-box__content {
  padding: 30px 40px;
  font-size: 1.5rem;
  line-height: 1.8;
}

.akrofobia-box__content p {
  margin-bottom: 1.2em;
}





iframe {
  display: block;
  margin-left: auto;
  margin-right: auto;
  width: 1300; /* lub konkretna wartość np. 800px */
  max-width: 100%;
}


/* T A B E L A */

/* Wrapper główny */
.szlaki-lista-wrapper {
    width: 100%;
    position: relative;
}

/* Scroll poziomy */
.szlaki-scroll-container {
    width: 100%;
    overflow-x: auto;
    overflow-y: visible;
    position: relative;
}

/* FILTRY PASM */
.szlaki-dest-filters {
    margin-bottom: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.szlaki-dest-btn {
    border-radius: 999px;
    border: 1px solid #444;
    background: #111;
    color: #fff;
    padding: 8px 18px;
    font-size: 1.05rem;
    font-weight: 500;
    line-height: 1.2;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.szlaki-dest-btn:hover {
    background: #222;
    border-color: #666;
}

.szlaki-dest-btn.active {
    background: #ffa500;
    border-color: #ffa500;
    color: #000;
}

/* TABELA – DESKTOP / DOMYŚLNIE */
.szlaki-lista-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    min-width: 1250px;
    background: #000;
    color: #fff;
    font-size: 1.2rem;
    line-height: 1.5;
}

/* Komórki */
.szlaki-lista-table th,
.szlaki-lista-table td {
    padding: 14px 12px;
    border-bottom: 1px solid #333;
    vertical-align: middle;
    font-size: 1.15rem;
    color: #fff;
}

/* Nagłówki */
.szlaki-lista-table th {
    font-weight: 800;
    font-size: 1.2rem;
    text-align: center;
}

/* STRZAŁKI – tylko one klikane */
.szlaki-lista-table th.sortable {
    cursor: default !important;
    user-select: none;
}

.szlaki-lista-table th.sortable .arrow-up,
.szlaki-lista-table th.sortable .arrow-down {
    display: block;
    margin: 0 auto;
    color: #fff;
    transition: color .15s ease;
    cursor: pointer !important;
}

.szlaki-lista-table th.sortable .arrow-up:hover,
.szlaki-lista-table th.sortable .arrow-down:hover {
    color: #ffa500;
}

/* MINIATURA */
.szlaki-lista-table th:nth-child(1),
.szlaki-lista-table td:nth-child(1) {
    width: 110px;
    min-width: 110px;
}

.szlaki-lista-table td:nth-child(1) img.szlak-thumb {
    width: 74px !important;
    height: 74px !important;
    object-fit: cover;
    border-radius: 6px;
}

/* TRASA */
.szlaki-lista-table th:nth-child(2),
.szlaki-lista-table td:nth-child(2) {
    width: 480px;
    min-width: 480px;
    text-align: left;
    font-size: 1.2rem;
}

.szlaki-lista-table td:nth-child(2) a {
    color: #fff;
    text-decoration: none;
    font-weight: 400;
}

.szlaki-lista-table td:nth-child(2) a:hover {
    text-decoration: underline;
}

/* Kolumny 3–7: Dystans/Czas/Trudność/Ekspozycja/Suma podejść */
.szlaki-lista-table th:nth-child(n+3),
.szlaki-lista-table td:nth-child(n+3) {
    width: 120px;
    min-width: 120px;
    text-align: center;
    font-size: 1.1rem;
}

/* Panel szczegółów – DOMYŚLNIE SCHOWANY, ale BEZ !important */
.szlak-details {
    display: none;
    background: #111;
    border: 1px solid #333;
    border-radius: 6px;
    padding: 12px;
    margin-top: 10px;
    font-size: 1rem;
    line-height: 1.4;
}

.szlak-details div {
    margin-bottom: 6px;
}

/* ============================ */
/* ===== MOBILE ≤ 600px ======= */
/* ============================ */
@media (max-width: 600px) {

    .szlaki-lista-table {
        min-width: 100%;
    }

    /* ukrywamy kolumny 3–7 tylko na mobile */
    .szlaki-lista-table th:nth-child(n+3),
    .szlaki-lista-table td:nth-child(n+3) {
        display: none;
    }

    /* kolumna TRASA pełna szerokość */
    .szlaki-lista-table td:nth-child(2) {
        width: 100% !important;
        display: block;
        padding-top: 6px;
        padding-bottom: 6px;
    }

    /* cały wiersz jest „klikalny” pod collapse */
    .szlak-row {
        cursor: pointer;
    }

    /* na mobile panel pokazujemy/ukrywamy JS-em, więc tu
       zostaje display:none jako stan początkowy */
    .szlak-details {
        animation: detailsSlide .25s ease-out;
    }

    @keyframes detailsSlide {
        from { opacity: 0; transform: translateY(-6px); }
        to   { opacity: 1; transform: translateY(0); }
    }
}

/* Trochę mniejsza typografia na bardzo małych ekranach */
@media (max-width: 480px) {
    .szlaki-dest-btn {
        font-size: 0.9rem;
        padding: 7px 14px;
    }

    .szlaki-lista-table th,
    .szlaki-lista-table td {
        font-size: 1rem;
        padding: 10px 8px;
    }

    .szlaki-lista-table td:nth-child(2) {
        max-width: 220px;
    }
}

/* Najnowszy wpis Home Page */
#latest-post-slidein{
    position: fixed;
    right: -300px;
    top: 20vh; /* ok. 1/3 wysokości ekranu */
    width: 280px;
    background: #000;
    color: #fff;
    border-radius: 10px 0 0 10px;
    overflow: hidden;
    box-shadow: -4px 0 20px rgba(0,0,0,0.4);
    z-index: 9999;
    transition: right 0.6s ease;
}

#latest-post-slidein.show{
    right: 0;
}

#latest-post-slidein a{
    color: inherit;
    text-decoration: none;
    display: block;
}

.slidein-header{
    padding: 10px 12px;
    font-size: 13px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    opacity: 0.85;
    border-bottom: 1px solid rgba(255,255,255,0.12);
}

.slidein-thumb img{
    width: 100%;
    height: auto;
    display: block;
}

.slidein-content{
    padding: 12px;
}

.slidein-content h4{
    font-size: 12px;
    line-height: 1.0;
    margin: 0 0 3px;
}

.slidein-date{
    font-size: 10px;
    opacity: 0.7;
}

.slidein-close{
    position: absolute;
    top: 6px;
    right: 8px;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    opacity: 0.6;
    z-index: 10;
}

.slidein-close:hover{
    opacity: 1;
}

/* Ukryj na mobile */
@media (max-width: 768px){
    #latest-post-slidein{ display: none !important; }
}





/* Kontener */
.plan60-box{
  background:#1e1e1e;
  color:#f0f0f0;
  border-radius:12px;
  padding:0;
  margin:40px auto;
  box-shadow:0 2px 14px rgba(0,0,0,.35);
  border:1px solid rgba(255,255,255,.05);
  max-width:880px;
  overflow:hidden;
}

/* Nagłówek (summary) */
.plan60-box > summary.plan60-box__header{
  background:#2b2b2b;            /* ciemno-szary pasek */
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:16px 24px;
  cursor:pointer;
  user-select:none;
  list-style:none;
}

/* Ukryj marker przeglądarki */
.plan60-box > summary::-webkit-details-marker{ display:none; }
.plan60-box > summary::marker{ content:""; }

/* Hover/focus – sygnał "klikane" */
.plan60-box > summary.plan60-box__header:hover{
  filter:brightness(1.07);
}

.plan60-box > summary.plan60-box__header:focus{
  outline:2px solid rgba(255,255,255,.25);
  outline-offset:2px;
}

/* Tytuł */
.plan60-box__title{
  font-size:2rem;
  font-weight:700;
  color:#fff;
  text-transform:uppercase;
  margin:0;
  line-height:1.2;
  flex:1;
}

/* Prawa strona: "ROZWIŃ" + strzałka */
.plan60-box__chevron{
  display:inline-flex;
  align-items:center;
  justify-content:flex-end;
  gap:10px;
  flex-shrink:0;
  margin-left:16px;
  opacity:.95;
  line-height:1;
}

/* Tekst PRZED strzałką */
.plan60-box__chevron::before{
  content:"rozwiń";
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:.08em;
  opacity:.85;
}

.plan60-box[open] .plan60-box__chevron::before{
  content:"zwiń";
}

/* Strzałka */
.plan60-box__chevron::after{
  content:"▾";
  font-size:28px;
  opacity:.95;
}

.plan60-box[open] .plan60-box__chevron::after{
  content:"▴";
}

/* Treść */
.plan60-box__content{
  padding:26px 32px;
  font-size:1.5rem;
  line-height:1.75;
}

.plan60-box__content p{
  margin-bottom:1em;
}




.wp-block-outermost-icon-block .icon-container {
   border-radius: 50% !important;
   padding: 6px !important; /* dostosuj tę wartość, aby zwiększyć/zmniejszyć odstępy */
}

.category-szczyt .entry-header .entry-meta {
    display: none !important;
}












.post-exposure {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	text-decoration: none;
}

.post-exposure-icon {
	position: relative;
	width: 14px;
	height: 14px;
	display: inline-block;
	flex: 0 0 14px;
}

.post-exposure-icon::before {
	content: "";
	position: absolute;
	left: 50%;
	top: 1px;
	transform: translateX(-50%);
	width: 4px;
	height: 8px;
	background: #d61f26;
	border-radius: 2px;
}

.post-exposure-icon::after {
	content: "";
	position: absolute;
	left: 50%;
	bottom: 0;
	transform: translateX(-50%);
	width: 4px;
	height: 4px;
	background: #d61f26;
	border-radius: 50%;
}

.post-exposure {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	padding: 0 10px;
	border-radius: 999px;
	min-height: 28px;
	line-height: 1;
	transition: background-color 0.2s ease, opacity 0.2s ease;
}

.post-exposure span {
	display: inline-block;
	font-weight: 600;
}

/* 1–2 */
.post-exposure.exposure-green {
	background: rgba(55, 178, 77, 0.90);
}

/* 3–5 */
.post-exposure.exposure-yellow {
	background: rgba(255, 214, 10, 0.90);
}

/* 6–7 */
.post-exposure.exposure-orange {
	background: rgba(255, 120, 20, 0.90);
}

/* 8–10 */
.post-exposure.exposure-red {
	background: rgba(224, 49, 49, 0.90);
}

.post-exposure:hover {
	opacity: 0.9;
}











.smt-szczyt-filters,
[data-smt-filters] {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    width: 100%;
}

.smt-szczyt-filter {
    appearance: none;
    border: 1px solid rgba(255,255,255,.15);
    background: #111;
    color: #fff;
    padding: 10px 16px;
    border-radius: 999px;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: 300;
    line-height: 1;
    transition: .2s ease;
}

.smt-szczyt-filter:hover {
    background: #1c1c1c;
    border-color: rgba(255,255,255,.28);
}

.smt-szczyt-filter.is-active {
    background: #ffa600;
    border-color: #c0392b;
    color: #fff;
}







@media (min-width: 1200px) {
  body.page-id-12922 .posts-list {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 24px !important;
  }

  body.page-id-12922 .posts-list > article,
  body.page-id-12922 .posts-list > .entry,
  body.page-id-12922 .posts-list article.entry {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    flex: none !important;
    min-width: 0 !important;
  }
}

h3.entry-title a {
    font-size: 1.8rem !important;
    line-height: 1.25 !important;
}








.entry-media .post-thumbnail {
	position: relative;
}

.kgp-crown-badge {
	position: absolute;
	top: 18px;
	right: 18px;
	z-index: 30;

	display: flex;
	align-items: center;
	justify-content: center;

	width: 36px;
	height: 36px;
	border-radius: 50%;

	background: rgba(0, 0, 0, 0.85);
	backdrop-filter: blur(3px);
	-webkit-backdrop-filter: blur(3px);

	font-size: 15px;   /* mniejsza korona */
	line-height: 1;
	box-shadow: 0 2px 8px rgba(0,0,0,.35);
	cursor: default;
	user-select: none;

	transition: background 0.18s ease, box-shadow 0.18s ease;
}

.kgp-crown-badge:hover {
	background: rgba(0, 0, 0, 0.65); /* kółko bez zmiany rozmiaru */
	box-shadow: 0 2px 8px rgba(0,0,0,.35);
}

.kgp-crown-badge:hover {
	font-size: 20px;   /* powiększa się sama korona */
}