/* === LEGENDY STYLIZOWANE JAK KARTY === */
.legend-section {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 40px;
    font-family: 'Poppins', sans-serif;
}

.legend-box {
	background-color:#fff;
/*     flex: 1 1 280px; */
	display: flex;
    flex-direction: column;
    width: 30%;
    border-radius: 20px;
    padding: 16px 12px;
    text-align: center;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    position: relative;
    transition: transform 0.2s ease;
	border: 1px solid #fff;
	color: #000;
}

.legend-box:hover {
    transform: translateY(-3px);
}

.legend-box .icon {
    font-size: 2rem;
    margin-bottom: 12px;
    display: inline-block;
}

.legend-title {
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 8px;
	color: #000;
}

.legend-price {
    font-size: 1.2rem;
    font-weight: bold;
    background: #fff;
    color: inherit;
    padding: 6px 12px;
    border-radius: 12px;
    display: inline-block;
}

.legend-service-price{
	font-size: 1.2rem;
	color: inherit;
    padding: 6px 16px;
    border-radius: 12px;
    display: inline-block;
}

.legend-low {
    border-color: #96d898;
	background-color: #96d898;
}

.legend-mid {
    border-color: #fee58f;
	background-color: #fee58f;
}

.legend-high {
    border-color: #f36e6e;
	background-color: #f36e6e;
}

/* RWD */
@media (max-width: 768px) {
    .legend-box {
        flex: 1 1 100%;
    }
}


/* === KALENDARZ === */
.calendar-wrapper {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    font-family: 'Poppins', sans-serif;
    color: #2a2a2a;
    padding: 20px;
}

.calendar-container {
    display: contents;
}

.month {
    background-color: #fafafa;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    padding: 16px;
    transition: transform 0.2s ease;
}

.month:hover {
    transform: scale(1.02);
}

.month h3 {
    text-align: center;
    margin: 0 0 12px 0;
    font-size: 1.25rem;
    color: #2a2a2a;
}

.days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    gap: 6px;
}

.day-name {
    font-weight: bold;
    background-color: #fafafa;
    padding: 8px 0;
    border-radius: 6px;
    font-size: 0.85rem;
}

.day {
    padding: 5px 5px;
    border-radius: 6px;
    font-size: 0.9rem;
    background-color: #fafafa;
    position: relative;
    cursor: default;
    transition: background-color 0.2s ease;
	border:2px solid #fafafa;
}

.day:hover {
    background-color: #3a3a3a;
    color: white;
}

.day.low { border-color: #96d898; color: #000; background-color:#96d898; }
.day.mid { border-color: #fee58f; color: #000;background-color:#fee58f; }
.day.high { border-color: #f36e6e; color: #000;background-color:#f36e6e; }




.day.holiday {
    border-color: #f44336;
    font-weight: bold;
	color:#000;
}

.day:hover::after {
    content: attr(data-info);
    position: absolute;
    bottom: 110%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    padding: 6px 10px;
    border-radius: 6px;
    white-space: nowrap;
    font-size: 0.75rem;
    z-index: 10;
    pointer-events: none;
}
/* DOSTĘPNOŚĆ KAMPERÓW */
.camper-availability{
	position:absolute;
	bottom:2px;
	left:0;
}


.calendar-legend{
	display: flex;
	padding-left:20px;
	flex-direction:row;
	justify-content:flex-start;
	gap: 20px;
}

.calendar-legend span{
	    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    gap: 5px;
    flex-wrap: nowrap;
}

.availability-bar{
	    height: 4px;
	margin-top:1px;
    background-color: gray;
    width: 30px;
    position: relative;
	border-radius:5px
}

.availability-wolny{
	background-color: #0084ff;
}

.availability-urlop{
	background-color: #9900ff;
}


.reserved-wolny{
	background: linear-gradient(135deg,transparent 50%, rgba(0, 132, 255, 1) 50%);
} 
.reserved-urlop{
	background: linear-gradient(135deg,transparent 50%, rgba(153, 0, 255, 1) 50%);
}

.reserved-wolny.reserved-urlop{
	background: linear-gradient(135deg,rgba(0, 132, 255, 1) 50%, rgba(153, 0, 255, 1) 50%);
	color: #fff
}

/* === RESPONSYWNOŚĆ === */
@media (max-width: 1200px) {
    .calendar-wrapper {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .calendar-wrapper {
        grid-template-columns: repeat(2, 1fr);
    }
	.legend-box {
		width: 100%;
	}
}

@media (max-width: 600px) {
    .calendar-wrapper {
        grid-template-columns: 1fr;
    }

    .days {
        gap: 4px;
    }

    .month {
        padding: 12px;
    }

    .month h3 {
        font-size: 1.1rem;
    }

    .day {
        padding: 8px 4px;
        font-size: 0.8rem;
    }

    .legend-section {
        flex-direction: column;
        align-items: center;
    }
}
