/* =========================================
   1. GLOBAL VARIABLES & FONTS
   ========================================= */
.cyclades-api-container {
    --brand-teal: #22c8b3;
    --brand-teal-dark: #38ae9c; 
    --card-dark-bg: #262626; 
    --card-light-bg: #ffffff; 
    --text-white: #ffffff;
    --text-black: #333333;
    
    font-family: "Geologica", Sans-serif;
    width: 100%;
    box-sizing: border-box;
}

/* Titles */
.api-title {
    font-family: "Poppins", Sans-serif !important;
    color: #115F52 !important; 
    margin: 0 0 8px 0 !important;
    font-size: 1.3rem;
    font-weight: 500; 
    line-height: 1.3;
}

/* Descriptions */
.api-desc {
    font-family: "Geologica", Sans-serif;
    font-size: 0.95rem;
    font-weight: 400;
    line-height: 1.5;
    margin-bottom: 10px;
    color: var(--text-black);
}

/* =========================================
   2. VIEW: EVENTS (Colors Swapped)
   ========================================= */
.cyclades-api-container.view-events {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.cyclades-event-row {
    display: flex;
    background: var(--card-light-bg); 
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: transform 0.2s;
}

.cyclades-event-row:hover {
    transform: translateY(-2px);
}

/* Date Badge (Left Side - Dark) */
.event-date {
    background: var(--card-dark-bg); 
    color: var(--text-white); 
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 70px;
    border-right: 4px solid var(--brand-teal);
}

.event-date .day { 
    display: block; 
    font-size: 1.6rem; 
    /* LOCKED: Normal weight */
    font-weight: 500; 
    color: #fff; 
    font-family: "Poppins", Sans-serif; 
}

.event-date .month { 
    display: block; 
    font-size: 0.85rem; 
    text-transform: uppercase; 
    font-weight: 600; 
    color: #ccc; 
}

/* Event Content (Right Side - White) */
.event-info { 
    padding: 15px 20px; 
    flex-grow: 1; 
}

.event-info .api-desc { 
    color: var(--text-black); 
}

.api-meta { 
    font-size: 0.8rem; 
    color: #666; 
    margin-top: 10px; 
    border-top: 1px solid #eee; 
    padding-top: 8px; 
}

/* =========================================
   3. VIEW: OFFERS (Carousel)
   ========================================= */

/* Main Container Wrapper */
.cyclades-api-container.view-offers {
    display: block;
    position: relative;
    padding: 0 30px; 
}

/* Carousel Mask */
.cyclades-carousel {
    overflow: hidden; 
    padding-bottom: 20px; 
    margin: 0 -10px; 
    padding-left: 10px;
    padding-right: 10px;
}

/* FIX HEIGHT: Tell the wrapper to stretch all slides to the same height */
.swiper-wrapper {
    align-items: stretch;
}

.swiper-slide { 
    height: auto; 
    display: flex; 
}

/* The Card */
.cyclades-offer-card {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Pushes footer to bottom */
    border-radius: 12px;
    
    /* Standard Shadow */
    box-shadow: 0 4px 15px rgba(0,0,0,0.08); 
    
    transition: transform 0.2s, box-shadow 0.2s;
    background: var(--card-light-bg); 
    border: 1px solid #eee; 
    position: relative;
    
    /* HEIGHT FIX: Force 100% height of the slide */
    height: 100%; 
    min-height: 260px; /* Default min-height for small lists */
}

/* Specific Fixes for 4-Column Homepage Layout */
.cyclades-carousel[data-cols="4"] .cyclades-offer-card {min-height: 310px;}

/* Card Body */
.cyclades-offer-card h4.api-title, 
.cyclades-offer-card p.api-desc {
    padding: 0 20px;
}
.cyclades-offer-card h4.api-title { margin-top: 45px !important; }
.cyclades-offer-card .api-desc { color: var(--text-black); flex-grow: 1; }

/* Footer */
.offer-footer {
    background: var(--card-dark-bg); 
    padding: 20px 20px; 
    margin-top: 15px;
    border-top: 4px solid var(--brand-teal);
    
    /* FIX SHADOW: Round the footer corners manually so we don't need overflow:hidden */
    border-radius: 0 0 11px 11px !important; 
}

.offer-footer .expire-date {
    font-size: 0.85rem; 
    color: var(--text-white); 
    font-weight: 500;
    display: block;
    text-align: center;
    opacity: 0.9;
}

/* Badges */
.offer-tag {
    position: absolute;
    top: 12px;
    right: 12px;
    left: auto;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-family: "Poppins", Sans-serif;
    font-weight: 500;
    text-transform: uppercase;
    color: #fff;
    z-index: 2;
}

.discount-tag { background: #115F52; box-shadow: 0 2px 5px rgba(34, 200, 179, 0.4); }
.loyalty-tag { background: #9b59b6; box-shadow: 0 2px 5px rgba(155, 89, 182, 0.4); }

/* --- CAROUSEL ARROWS --- */
.cyclades-api-container .swiper-button-next,
.cyclades-api-container .swiper-button-prev {
    color: #fff; 
    width: 44px; 
    height: 44px;
    background: var(--brand-teal); 
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2); 
    z-index: 20; 
    
    top: auto !important;   
    margin-top: 0;          
    bottom: 95px; 
}

.cyclades-api-container .swiper-button-next:after,
.cyclades-api-container .swiper-button-prev:after {
    font-size: 1.1rem;
    font-weight: bold;
}

.cyclades-api-container .swiper-button-next:hover,
.cyclades-api-container .swiper-button-prev:hover {
    background: var(--brand-teal-dark);
    transform: scale(1.1); 
}

/* LOCKED: Arrows Position */
.cyclades-api-container .swiper-button-prev { left: -2px !important; }
.cyclades-api-container .swiper-button-next { right: -2px !important; }

.swiper-button-lock {
    display: none !important;
}

/* =========================================
   4. SECTION HEADER (Styled like a Card)
   ========================================= */
.cyclades-header-row {
    display: flex;
    justify-content: space-between; 
    align-items: center;
    
    background: var(--card-light-bg); 
    padding: 20px 30px; 
    border-radius: 15px; 
    /* LOCKED: Shadow */
    box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.5);
    border: 1px solid #f0f0f0; 
    
    margin-top: 0;
    margin-bottom: 30px; 
    /* Negative margins for offers carousel */
    margin-left: -30px;  
    margin-right: -30px; 
    width: auto;         
}

.cyclades-section-title {
    font-family: "Poppins", Sans-serif;
    font-size: 1.8rem; 
    font-weight: 500;
    color: var(--text-black);
    margin: 0;
    line-height: 1;
}

.cyclades-section-icon {
    /* LOCKED: Size */
    font-size: 34px;
    color: var(--brand-teal); 
    display: flex;
    align-items: center;
    justify-content: center;
}

/* =========================================
   5. MOBILE RESPONSIVE
   ========================================= */
@media (max-width: 767px) {
    .cyclades-api-container.view-offers { padding: 0; }
    
    /* Reset header on mobile */
    .cyclades-header-row {
        margin-left: 0;
        margin-right: 0;
        padding: 15px 20px;
        margin-bottom: 20px;
    }
    .cyclades-section-title {
        font-size: 1.4rem;
    }
    
    .cyclades-api-container .swiper-button-next,
    .cyclades-api-container .swiper-button-prev { display: none; }
}

/* =========================================
   6. EVENTS SPECIFIC ADJUSTMENTS
   ========================================= */
/* Reset the negative margins for Events view */
.cyclades-api-container.view-events .cyclades-header-row {
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important; 
    margin-bottom: 20px;
}

/* =========================================
   8. FOOTER WITH STORE BUTTON
   ========================================= */

/* Make footer a Flex container to hold Date + Button */
.offer-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; 
    gap: 10px;
}

/* Ensure date aligns left */
.offer-footer .expire-date {
    text-align: left;
    margin: 0;
}

/* The Store Button */
.cyclades-store-btn {
    background: rgba(255, 255, 255, 0.15); 
    color: #fff !important;
    text-decoration: none !important;
    font-family: "Poppins", Sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    line-height: 1;
}

.cyclades-store-btn:hover {
    background: var(--brand-teal); 
    border-color: var(--brand-teal);
    transform: translateX(3px); 
}
