/* Island Bottom Menu Styles */
.island-menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.island-menu-item {
    margin: 0;
}

.island-menu-item a:hover {
    color: #3AA6B9;
    border-color: #3AA6B9;
    transform: translateY(-2px);
}

.island-menu-item.active a {
    color: #3AA6B9;
    border-color: #3AA6B9;
    border-bottom: 2px solid #3AA6B9;
}
 
div[data-transparent-row="no"] .island-menu-list a {
    color: #232323 !important;
}

/*********/
/* Islands Grid Styles */
.islands-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px 10px;
    width: 100%;
}

/* Responsive */
@media (max-width: 992px) {
    .islands-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 576px) {
    .islands-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

.island-grid-item {
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
}

.island-grid-item:hover {
    transform: translateY(-5px);
}

.island-grid-link {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
    height: 100%;
}

.island-grid-link:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.island-grid-image-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 66.67%; /* 3:2 aspect ratio όπως στο Elementor */
    overflow: hidden;
    background: #f5f5f5;
}

.island-grid-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100% !important;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.island-grid-link:hover .island-grid-image {
    transform: scale(1.05);
}

/* Placeholder για νησιά χωρίς εικόνα */
.island-grid-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.island-grid-placeholder span {
    font-size: 60px;
}

/* Featured badge */
.island-featured-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.95);
    padding: 8px 15px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.island-grid-title {
    margin: 0 !important;
    padding: 8px;
    font-size: 18px;
    font-weight: 600;
    text-align: left;
    color: #2F8391;
    background: transparent;
    flex-grow: 1;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
}

.island-grid-link:hover .island-grid-title {
    color: #fff;
    background: #2F8391;
}

/* Αν χρειάζεται να ταιριάξει με το Elementor στυλ */
.proorismosMenuDiv.island-grid-item {
    display: flex;
    flex-direction: column;
}

.proorismosMenuDiv.island-grid-item .island-grid-title {
    font-family: inherit;
    line-height: 1.2;
}

/* Responsive Design */
/* Responsive */
@media (max-width: 768px) {
    .island-cat-nav {
        padding: 16px 0;
        justify-content: flex-start;
        position: relative; /* για το pseudo-element fade */
    }

    /* Fade overlay — το "peek" effect */
    .island-cat-nav::after {
        content: '';
        position: absolute;
        right: 0;
        top: 0;
        bottom: 0;
        width: 64px;
        /* Προσάρμοσε το χρώμα στο background της σελίδας σου */
        background: linear-gradient(to right, transparent, #fff);
        pointer-events: none;
        z-index: 10;
    }

    .island-cat-glass {
        display: flex;
        width: 100%;
        border-radius: 0;          /* αφαιρούμε το pill shape */
        border-left: none;
        border-right: none;
        background: rgba(255, 255, 255, 0.15);
        padding: 8px 16px;
        padding-right: 56px;       /* extra space ώστε ο τελευταίος να φαίνεται κομμένος */
        gap: 8px;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }

    .island-cat-btn {
        padding: 8px 12px;
        font-size: 11px;
        flex-shrink: 0;            /* εμποδίζει τα buttons να συρρικνωθούν */
        scroll-snap-align: start;
    }
}


/* Island Category Navbar */
.island-cat-nav {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 20px 16px;
}

.island-cat-glass {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 9999px;
    padding: 8px 12px;
    max-width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

.island-cat-glass::-webkit-scrollbar {
    display: none;
}

.island-cat-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 9999px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.05em;
    white-space: nowrap;
    text-decoration: none;
    transition: all 0.2s ease;
    color: rgba(0, 0, 0, 0.5);
    cursor: pointer;
    text-transform: uppercase;
}

.island-cat-btn svg {
    flex-shrink: 0;
}

/* Hover state - μόνο για links */
a.island-cat-btn:hover {
    color: #2F8391;
    background: rgba(47, 131, 145, 0.08);
}

/* Active state */
.island-cat-btn.active {
    background: #2F8391;
    color: #fff;
    box-shadow: 0 4px 12px rgba(47, 131, 145, 0.35);
}

.island-cat-btn.active svg {
    stroke-width: 2.5;
}

/* Disabled state - υπάρχει αλλά χωρίς link */
.island-cat-btn.disabled {
    color: rgba(0, 0, 0, 0.25);
    cursor: default;
}

/* Responsive */
@media (max-width: 768px) {
    .island-cat-nav {
        padding: 16px 8px;
    }

    .island-cat-btn {
        padding: 8px 12px;
        font-size: 11px;
    }
}

/*********/
/* Island Info Grid (Γενικά, Αξιοθέατα, Παραλίες κλπ.) */
.island-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    width: 100%;
}

.island-info-card {
    position: relative;
    display: flex;
    align-items: flex-end;
    aspect-ratio: 4 / 3;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    background-color: #2F8391;
    background-image: linear-gradient(135deg, #2F8391 0%, #1c5560 100%);
    background-size: cover;
    background-position: center;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

a.island-info-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
}

.island-info-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.65) 0%, rgba(0, 0, 0, 0.05) 55%, rgba(0, 0, 0, 0.15) 100%);
    transition: background 0.3s ease;
}

a.island-info-card:hover .island-info-card-overlay {
    background: linear-gradient(to top, rgba(47, 131, 145, 0.85) 0%, rgba(0, 0, 0, 0.1) 60%, rgba(0, 0, 0, 0.15) 100%);
}

.island-info-card-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 16px;
    color: #fff;
    width: 100%;
}

.island-info-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.island-info-card-label {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 1.3;
}

/* Κατηγορίες χωρίς περιεχόμενο ακόμα */
.island-info-card.is-empty {
    cursor: default;
    opacity: 0.5;
}

.island-info-card.is-empty .island-info-card-overlay {
    background: rgba(0, 0, 0, 0.35);
}

/* Responsive */
@media (max-width: 992px) {
    .island-info-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .island-info-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .island-info-card {
        aspect-ratio: 16 / 9;
    }
}