/**
 * Style dla systemu paczkomatów
 * Autor: Konrad Krauze
 */

.paczkomaty-shortcode-container {
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	clear: both;
	margin: 0;
	padding: 0;
}

/* Style dla InPost Geowidget */
.paczkomaty-shortcode-container inpost-geowidget {
	display: block;
	width: 100%;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Komunikat błędu */
.paczkomaty-error {
	padding: 20px;
	background: #fff3cd;
	border: 1px solid #ffc107;
	border-radius: 4px;
	margin: 20px 0;
}

.paczkomaty-error pre {
	background: #f5f5f5;
	padding: 10px;
	border-radius: 4px;
	overflow-x: auto;
	margin: 10px 0;
}


/* Breadcrumbs - takie same jak na single paczkomat */
.paczkomat-breadcrumbs {
	margin: 30px 0 20px;
	padding: 0;
}

.breadcrumb-list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	font-size: 14px;
}

.breadcrumb-list .item {
	display: flex;
	align-items: center;
}

.breadcrumb-list .item a {
	color: #000 !important;
	text-decoration: none;
	padding: 0 4px;
}

.breadcrumb-list .item a:hover {
	text-decoration: underline;
	color: #000 !important;
}

.breadcrumb-list .item.-last a {
	color: #000 !important;
	font-weight: 700 !important;
	cursor: default;
	pointer-events: none;
}

.breadcrumb-separator {
	margin: 0 8px;
	color: #999;
}

.breadcrumb-separator::after {
	content: ">";
}

/* Single Paczkomat */
.paczkomat-single {
	max-width: 1200px;
	margin: 0 auto;
}

.paczkomat-image {
	margin-bottom: 20px;
}

.paczkomat-image img {
	width: 100%;
	height: auto;
	border-radius: 4px;
}

.paczkomat-details {
	margin-top: 20px;
}

.paczkomat-details p {
	margin-bottom: 10px;
}

.paczkomat-features {
	margin: 20px 0;
}

.paczkomat-features h3 {
	margin-bottom: 10px;
}

.paczkomat-features ul {
	list-style: none;
	padding-left: 0;
}

.paczkomat-features li {
	padding: 5px 0;
	padding-left: 20px;
	position: relative;
}

.paczkomat-features li:before {
	content: "✓";
	position: absolute;
	left: 0;
	color: #0073aa;
	font-weight: bold;
}

.paczkomat-map {
	margin-top: 20px;
	border: 1px solid #ddd;
	border-radius: 4px;
}

/* Archive */
.paczkomat-archive {
	max-width: 1200px;
	margin: 0 auto;
}

.paczkomat-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 20px;
	margin-top: 20px;
}

.paczkomat-item {
	border: 1px solid #ddd;
	border-radius: 4px;
	overflow: hidden;
	background: #fff;
	transition: box-shadow 0.3s;
}

.paczkomat-item:hover {
	box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.paczkomat-thumbnail {
	width: 100%;
	height: 200px;
	overflow: hidden;
}

.paczkomat-thumbnail img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.paczkomat-info {
	padding: 15px;
}

.paczkomat-info h2 {
	margin: 0 0 10px 0;
	font-size: 18px;
}

.paczkomat-info h2 a {
	color: #333;
	text-decoration: none;
}

.paczkomat-info h2 a:hover {
	color: #0073aa;
}

.paczkomat-address {
	color: #666;
	margin: 5px 0;
}

.paczkomat-code {
	color: #0073aa;
	font-weight: bold;
	margin: 5px 0 0 0;
}

/* Marker Info Window */
.paczkomat-marker-info {
	max-width: 250px;
}

.paczkomat-marker-info h3 {
	margin: 0 0 10px 0;
	font-size: 16px;
}

.paczkomat-marker-info h3 a {
	color: #0073aa;
	text-decoration: none;
}

.paczkomat-marker-info p {
	margin: 5px 0;
	font-size: 14px;
}

/* Style dla listy paczkomatów na stronie miasta (format InPost) */
.list--point--container {
	border: none;
	border-radius: 0;
	background: transparent;
	max-height: 453px;
	overflow: hidden auto;
	margin: 0 auto 30px;
	padding: 0;
	max-width: 100%;
	width: 100%;
	box-sizing: border-box;
	position: relative;
}

.list--point--header {
	display: flex;
	padding: 8px 15px 10px;
	margin: 0;
	background: #fff;
	border-bottom: 2px solid #FFCD00;
	border-top: none;
	border-left: none;
	border-right: none;
	font-weight: 400;
	font-size: 14px;
	color: #3c3c3c;
	position: sticky;
	top: 0;
	z-index: 10;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
	width: 100%;
	box-sizing: border-box;
}

.list--point--header .name {
	flex: 0 0 20%;
	font-weight: 700;
}

.list--point--header .location {
	flex: 0 0 35%;
	font-weight: 700;
}

.list--point--header .near {
	flex: 0 0 25%;
	font-weight: 700;
}

.list--point--header .sendpackage {
	flex: 0 0 20%;
	font-weight: 700;
}

.list--point--content {
	display: flex;
	padding: 8px 15px 0;
	margin: 0;
	border-bottom: none;
	align-items: center;
	transition: background-color 0.2s;
	background: transparent;
	width: 100%;
	box-sizing: border-box;
}

.list--point--content:last-child {
	border-bottom: none;
}

.list--point--content:hover {
	background-color: transparent;
}

.list--point--content .name {
	flex: 0 0 20%;
	position: relative;
	z-index: 1;
}

.list--point--content .location {
	flex: 0 0 35%;
}

.list--point--content .near {
	flex: 0 0 25%;
}

.list--point--content .sendpackage {
	flex: 0 0 20%;
}

.location--availability {
	display: flex;
	align-items: center;
	gap: 8px;
}

.icon-point-3 {
	width: 16px;
	height: 16px;
	display: inline-block;
	background: transparent;
	border-radius: 0;
	position: relative;
	font-family: icons;
	font-size: 16px;
	color: #3c3c3c;
}

.icon-point-3 .path1,
.icon-point-3 .path2 {
	position: relative;
	display: inline-block;
	width: auto;
	height: auto;
	background: transparent;
	border-radius: 0;
	font-family: icons;
	font-size: 16px;
	color: #3c3c3c;
}

.link--component {
	border: none;
	padding: 0;
	background: 0 0;
	box-shadow: inset 0px -.4rem 0 #ffcd00;
	font-size: 16px;
	color: #3c3c3c;
	font-weight: 600;
	position: relative;
	line-height: 1.2;
	display: inline;
	vertical-align: baseline;
	font-family: "Montserrat", sans-serif;
	transition: all .3s;
	text-decoration: none !important;
	cursor: pointer;
	pointer-events: auto;
	z-index: 1;
}

.helpdesk--component > .item > .description a,
.blog--content a:not(.btn--primary):not(.btn--secondary):not(.btn--dark):not(.tag--component):not(.socialink) {
	border: none;
	padding: 0;
	background: 0 0;
	box-shadow: inset 0px -.4rem 0 #ffcd00;
	font-size: 1.6rem;
	color: #3c3c3c;
	font-weight: 600;
	position: relative;
	line-height: 1.2;
	display: inline;
	vertical-align: baseline;
	font-family: "Montserrat", sans-serif;
	transition: all .3s;
	text-decoration: none !important;
	cursor: pointer;
	pointer-events: auto;
	z-index: 1;
}

/* Linki do SzybkieNadania - 14px */
.szybkienadania-link,
.blog--content a[href*="SzybkieNadania"]:not(.btn--primary):not(.btn--secondary):not(.btn--dark):not(.tag--component):not(.socialink) {
	font-size: 14px !important;
}

.link--component:hover,
.helpdesk--component > .item > .description a:hover,
.blog--content a:not(.btn--primary):not(.btn--secondary):not(.btn--dark):not(.tag--component):not(.socialink):hover {
	text-decoration: none;
	color: #3c3c3c;
	box-shadow: inset 0px -.4rem 0 #ffcd00;
}

.point--status {
	display: inline-block;
	padding: 0;
	border-radius: 0;
	font-size: 16px;
	font-weight: normal;
	margin-left: 8px;
}

.point--status.-available {
	background: transparent;
	color: #638014;
}

.point--status.-map {
	background: transparent;
	color: #638014;
	border: none;
}

.location strong {
	font-weight: 600;
	color: #3c3c3c;
	font-size: 14px;
}

.location {
	font-size: 14px;
	color: #3c3c3c;
	line-height: 1.6;
}

.nearicon {
	font-size: 12px;
	color: #3c3c3c;
	font-style: italic;
	font-weight: 600;
}

.btn--primary {
	display: inline-block;
	padding: 12px 32px;
	background: #FFCD00;
	color: #007bff !important;
	text-decoration: none;
	border-radius: 0;
	font-weight: 600;
	font-size: 16px;
	transition: none;
	text-align: center;
	border: none;
	width: auto;
}

.btn--primary:hover {
	background: #FFCD00;
	color: #007bff !important;
	text-decoration: none;
}

.btn--primary.w-100 {
	width: 100%;
	display: inline-block;
}

.btn--primary.text-center {
	text-align: center;
}

.btn--primary span {
	color: #3c3c3c;
	font-size: 16px;
	font-weight: 600;
}

/* Responsive dla mobile */
@media (max-width: 767px) {
	.list--point--content {
		flex-direction: column;
		align-items: flex-start;
		gap: 15px;
	}
	
	.list--point--content .name,
	.list--point--content .location,
	.list--point--content .near,
	.list--point--content .sendpackage {
		flex: 1 1 100%;
		width: 100%;
	}
	
	.list--point--content .sendpackage {
		margin-top: 10px;
	}
}

/* Style dla mapy na stronie miasta */
.paczkomaty-city-map-container {
	width: 100%;
	margin-bottom: 30px;
	border: none;
	outline: none;
}

/* Usuń wszystkie niepotrzebne linie i bordery */
#main-content .container,
#content-area,
#main-content .container > *,
#content-area > * {
	border: none !important;
	outline: none !important;
	border-top: none !important;
	border-left: none !important;
	border-right: none !important;
}

#main-content .container::before,
#main-content .container::after,
#content-area::before,
#content-area::after,
#main-content .container > *::before,
#main-content .container > *::after,
#content-area > *::before,
#content-area > *::after {
	display: none !important;
	content: none !important;
}

/* Usuń border z listy paczkomatów poza nagłówkiem */
.list--point--container > *:not(.list--point--header) {
	border: none !important;
	border-top: none !important;
	border-bottom: none !important;
}

/* Style dla mapy na stronie miasta */
.paczkomaty-city-map-container {
	margin-bottom: 30px;
}

.paczkomaty-city-map-container inpost-geowidget {
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Paginacja */
.paczkomaty-pagination {
	margin: 30px 0;
	text-align: center;
}

.paczkomaty-pagination ul {
	list-style: none;
	padding: 0;
	margin: 0;
	display: inline-flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 5px;
}

.paczkomaty-pagination li {
	display: inline-block;
	margin: 0;
}

.paczkomaty-pagination a,
.paczkomaty-pagination span {
	display: inline-block;
	padding: 8px 12px;
	margin: 0 2px;
	border: 1px solid #ddd;
	border-radius: 4px;
	text-decoration: none;
	color: #333;
	background: #fff;
	transition: all 0.3s ease;
}

.paczkomaty-pagination a:hover {
	background: #f0f0f0;
	border-color: #999;
	color: #000;
}

.paczkomaty-pagination .current {
	background: #0073aa;
	color: #fff;
	border-color: #0073aa;
	font-weight: 600;
}

.paczkomaty-pagination .prev,
.paczkomaty-pagination .next {
	font-weight: 600;
}