.cpt-taxonomy-group{
    margin-bottom: 70px;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-content: center;
    align-items: center;
}

.cpt-taxonomy-title { 
    text-transform: uppercase; 
    font-size:20px; 
    padding: 10px 0;
}

.cpt-taxonomy-image{
    margin-bottom: 20px; 
    width: 25%;
}

.book-now-wrapper{
    text-align: center; 
    margin-top: -45px;
    text-align: center;
    z-index: 5;
    position: relative;
}

.cpt-item-actions {
    display: flex; 
    justify-content: center; 
    margin: 10px 0;

    a {
        color: var(--off-orange);
        font-weight: bold;
        text-decoration: none;
        font-size: 16px;
    }
}

/* Custom Post Type Block Styles - Glass Effect (iPhone Style) */
.cpt-block-wrapper {
    margin: 0 auto;
    position: relative;
}

/* NOTE: Το είχες ήδη hidden με display:none */
.cpt-main-title h2 {
    text-align: center;
    margin-bottom: 60px;
    font-size: 2.8rem;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 700;
    position: relative;
    padding-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    display: none; /* Hidden by default, can be enabled if needed */
}

/* Grid Layout - Dynamic Columns */
.cpt-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 80px;
    position: relative;
    z-index: 1;
}

/* Column Classes */
.cpt-columns-1 {
    display: flex; 
    gap: 35px;
}

.cpt-columns-2 {
    display: flex; 
    gap: 35px;
}

.cpt-columns-3 {
    display: flex; 
    gap: 35px;
}

.cpt-columns-4 {
    display: grid; 
    grid-template-columns: repeat(4, 1fr); 
    gap: 35px;
}

.cpt-columns-5 {
    display: grid; 
    grid-template-columns: repeat(5, 1fr); 
    gap: 15px;
}

/* Post Item Styles - GLASS EFFECT */
.cpt-item {
    height: 100%;
}

/* Post Thumbnail - Frame wraps around image */
.cpt-thumbnail {
    position: relative;
    display: inline-block;
    width: 100%;
    padding: 20px; /* Space for the frame */
    box-sizing: border-box;
    overflow: hidden; /* Hides anything that escapes */
}

/* The frame as a background image */
.cpt-thumbnail::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("http://escapolis.pcinfo.work/wp-content/uploads/2026/02/Frame-1261153763@3x.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100% 100%;
    z-index: 3; /* Frame on top */
    pointer-events: none;
}

/* Image container - sits inside the frame */
.cpt-thumbnail-img {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    object-position: center;
    filter: brightness(0.9) contrast(1.1);
    /* No transition or transform on hover */
}

/* No hover animation - image stays static */

/* Placeholder for missing images */
.cpt-no-image-placeholder {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg,
        rgba(102, 126, 234, 0.6) 0%,
        rgba(118, 75, 162, 0.6) 100%
    );
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    backdrop-filter: blur(5px);
}

.cpt-no-image-placeholder::before {
    content: '📷';
    font-size: 2.5rem;
    opacity: 0.8;
}

/* Excerpt - light text */
.cpt-excerpt {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    font-size: 0.95rem;
    margin-bottom: 20px;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* No Posts Message */
.cpt-no-posts {
    text-align: center;
    grid-column: 1 / -1;
    padding: 40px;
    color: rgba(255, 255, 255, 0.8);
    font-style: italic;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Responsive Adjustments */
@media (max-width: 1200px) {
    .cpt-columns-4 {
        grid-template-columns: repeat(3, 1fr);
    }
    .cpt-columns-5 {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 992px) {
    .cpt-columns-3, 
    .cpt-columns-4,
    .cpt-columns-5 {
        grid-template-columns: repeat(2, 1fr);
    }
    .cpt-grid {
        gap: 60px;
    }
}

@media (max-width: 768px) {
    .cpt-columns-1,
    .cpt-columns-2,
    .cpt-columns-3,
    .cpt-columns-4,
    .cpt-columns-5 {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .cpt-grid {
        gap: 40px;
    }
    .cpt-taxonomy-image {
        width: 50%;
    }
    .cpt-thumbnail {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .cpt-taxonomy-image {
        width: 70%;
    }
    .cpt-thumbnail {
        padding: 10px;
    }
}