.chill-tile-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.chill-tile-card {
    background: linear-gradient(180deg, #ffffff 0%, #fcfdff 100%);
    border: 1px solid #e6ebef;
    border-radius: 18px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
    min-height: 300px;
    overflow: visible;
    box-shadow: 0 8px 28px rgba(16, 24, 40, 0.06);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.chill-tile-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(16, 24, 40, 0.1);
}

/* Link owijający zdjęcie — prowadzi do tej samej strony co CTA */
.chill-tile-image-link {
    display: block;
    line-height: 0;
    text-decoration: none;
    margin: -24px -24px 14px -24px;
    border-radius: 18px 18px 0 0;
    overflow: hidden;
    flex-shrink: 0;
    cursor: pointer;
}

.chill-tile-image-link .chill-tile-image {
    margin: 0;
    border-radius: 0;
}

/* Zdjęcie kafelka */
.chill-tile-image {
    margin: -24px -24px 14px -24px;
    border-radius: 18px 18px 0 0;
    overflow: hidden;
    flex-shrink: 0;
    line-height: 0;
}

.chill-tile-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

/* Gdy kafelek ma zdjęcie — przytnij do border-radius karty */
.chill-tile-card--has-image {
    overflow: hidden;
}

/* Gdy kafelek ma zdjęcie — badge "dla X osób" nad zdjęciem */
.chill-tile-card--has-image .chill-tile-people {
    background: rgba(255, 255, 255, 0.92);
    padding: 3px 9px;
    border-radius: 8px;
    backdrop-filter: blur(4px);
}

/* Nagłówek i tag nie potrzebują marginesu z prawej — badge jest nad zdjęciem */
.chill-tile-card--has-image .chill-tile-tag,
.chill-tile-card--has-image .chill-tile-heading {
    margin-right: 0;
}

@media (max-width: 460px) {
    .chill-tile-image,
    .chill-tile-image-link {
        margin: -20px -20px 12px -20px;
    }

    .chill-tile-image img {
        height: 160px;
    }
}

.chill-tile-tag {
    margin: 0 140px 4px 0;
    font-family: 'Crimson Pro', serif;
    font-size: 13px;
    line-height: 1.1;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #009fdf;
}

.chill-tile-heading {
    margin: 0 140px 4px 0;
    font-family: 'Crimson Pro', serif;
    font-size: 24px !important;
    line-height: 1.08;
    font-weight: 500;
    color: #111827;
}

.chill-tile-people {
    margin: 0;
    position: absolute;
    top: 24px;
    right: 24px;
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    line-height: 1.2;
    font-weight: 700;
    color: #111827;
    text-align: right;
    white-space: nowrap;
}

.chill-tile-amenities {
    margin: 2px 0 6px;
    padding: 0;
    list-style: none;
    max-height: 72px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #b4dced #f4f9fc;
}

.chill-tile-amenities li {
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    line-height: 1.45;
    color: #111827;
    margin: 0 0 5px;
    padding-left: 16px;
    position: relative;
}

.chill-tile-amenities li::before {
    content: "✔";
    color: #009fdf;
    position: absolute;
    left: 0;
    top: 1px;
    font-size: 11px;
}

.chill-tile-amenities::-webkit-scrollbar {
    width: 5px;
}

.chill-tile-amenities::-webkit-scrollbar-track {
    background: #f4f9fc;
}

.chill-tile-amenities::-webkit-scrollbar-thumb {
    background: #b4dced;
    border-radius: 4px;
}

.chill-tile-price {
    margin: 6px 0 2px;
    font-family: 'Crimson Pro', serif;
    font-size: 30px;
    line-height: 1.08;
    font-weight: 700;
    letter-spacing: 0.01em;
    color: #0b1324;
    background: #f3f8fc;
    border-left: 4px solid #009fdf;
    border-radius: 8px;
    padding: 6px 12px 7px;
    display: inline-block;
    max-width: 100%;
}

.chill-tile-cta {
    margin-top: auto;
    display: inline-block;
    width: 100%;
    text-align: center;
    text-decoration: none;
    background: #009fdf;
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    border-radius: 12px;
    padding: 12px 20px;
    box-sizing: border-box;
    border: 1px solid transparent;
    transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.chill-tile-cta:hover,
.chill-tile-cta:focus {
    background: #008ec8;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 8px 16px rgba(0, 159, 223, 0.28);
}

@media (max-width: 460px) {
    .chill-tile-card {
        padding: 20px;
        max-height: none;
    }

    .chill-tile-people {
        top: 20px;
        right: 20px;
        font-size: 11px;
    }

    .chill-tile-tag,
    .chill-tile-heading {
        margin-right: 104px;
    }

    .chill-tile-heading {
        font-size: 26px;
    }
}

@media (max-width: 1024px) {
    .chill-tile-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .chill-tile-grid {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }
}
