/* --- 1. ΒΑΣΙΚΕΣ ΡΥΘΜΙΣΕΙΣ (BASIC SETUP) --- */
body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
    background-color: #f9f9f9;
}

/* Ρυθμίζουμε το ύψος της μπάρας σταθερά */
.navbar {
    height: 100px; /* ύψος της μπάρας. Αν το θες πιο λεπτό, βάλε 80px */
    padding: 0 20px; /* Μηδέν κενό πάνω-κάτω, μόνο δεξιά-αριστερά */
    display: flex;
    align-items: center; /* Κεντράρει τα πάντα στη μέση */
    justify-content: space-between;
}

/* Ρυθμίζουμε το λογότυπο να γεμίζει τον χώρο */
.main-logo {
    height: 180px; /* Σταθερό ύψος για το λογότυπο */
    width: auto;  /* Προσαρμόζεται αυτόματα το πλάτος */
    display: block; /* Βοηθάει να μην έχει κρυφά κενά */
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
}

/* --- 3. HERO SECTION (ΑΡΧΙΚΗ ΕΙΚΟΝΑ) --- */
.hero {
    background-image: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('images/cyprus-holidays.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    height: 60vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.hero h1 { font-size: 3rem; margin-bottom: 0.5rem; }
.btn {
    background-color: #e69500;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
}

/* --- 4. LANGUAGE BAR & WEATHER --- */
.language-bar {
    background-color: #333;
    display: flex;
    justify-content: flex-end;
    padding: 5px 20px;
}

.language-bar button {
    background: none;
    border: 1px solid #555;
    color: white;
    padding: 5px 10px;
    margin-left: 5px;
    cursor: pointer;
    font-size: 0.8rem;
    border-radius: 4px;
}

.weather-bar {
    background-color: #f0f4f8;
    color: #333333;
    text-align: center;
    padding: 15px;
    font-size: 1.2rem;
    font-weight: bold;
    display: flex;
    justify-content: center;
    gap: 10px;
    align-items: center;
}

/* --- 5. CATEGORIES GRID (ΑΡΧΙΚΗ ΣΕΛΙΔΑ) --- */
section { padding: 3rem 2rem; text-align: center; }

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.card {
    background-color: #333;
    color: white;
    height: 250px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
    border-radius: 10px;
}

.card h3 { color: #fff; font-size: 1.5rem; margin-bottom: 5px; }

/* Εικόνες Κατηγοριών */
#hotels { background-image: linear-gradient(to top, rgba(0,0,0,0.7), transparent), url('images/hotels.png'); }
#restaurants { background-image: linear-gradient(to top, rgba(0,0,0,0.7), transparent), url('images/restaurants.png'); }
#views { background-image: linear-gradient(to top, rgba(0,0,0,0.7), transparent), url('images/view.jpg'); }
#real-estate { background-image: linear-gradient(to top, rgba(0,0,0,0.7), transparent), url('images/real-estate.jpg'); }
#thingstodo { background-image: linear-gradient(to top, rgba(0,0,0,0.7), transparent), url('images/paphos-castle.jpg'); }

/* --- 6. PAGE HEADERS (ΤΙΤΛΟΙ ΣΕΛΙΔΩΝ) --- */
.page-header {
    height: 40vh;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2.5rem;
    text-shadow: 0 2px 5px rgba(0,0,0,0.5);
    padding: 0 20px;
    text-align: center;
}

/* --- 7. FILTER BUTTONS (ΚΟΥΜΠΙΑ ΦΙΛΤΡΩΝ) --- */
#filter-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin: 30px auto;
    max-width: 900px;
    padding: 0 15px;
}

.filter-btn {
    border: 1px solid #eee;
    outline: none; /* Εξαφανίζει το τετράγωνο πλαίσιο */
    padding: 12px 25px;
    background-color: white;
    cursor: pointer;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #555;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background-color: #f0f4f8;
    transform: translateY(-2px);
}

.filter-btn.active {
    background-color: #3cc6cb;
    color: white;
    box-shadow: 0 4px 10px rgba(1, 153, 153, 0.4);
    border-color: #3cc6cb;
}

/* --- 8. ITEM CARDS & FILTERING (ΤΟ ΣΗΜΑΝΤΙΚΟΤΕΡΟ) --- */

.items-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.item-card {
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    margin: 10px;
    
    /* Responsive Διαστάσεις */
    width: 320px;
    height: auto;
    min-height: 420px;
    
    flex-direction: column;
    
    /* --- Η ΛΟΓΙΚΗ ΤΩΝ ΦΙΛΤΡΩΝ --- */
    /* Από προεπιλογή είναι ΚΡΥΜΜΕΝΟ */
    display: none; 
    
    animation: fadeIn 0.5s;
}

/* Εμφανίζεται ΜΟΝΟ αν έχει την κλάση 'show' */
.item-card.show {
    display: flex !important;
}

.item-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.item-info {
    padding: 15px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
}

.item-info h3 { margin: 5px 0; font-size: 1.2rem; color: #333; }
.item-info p { color: #666; font-size: 0.9rem; margin-bottom: 15px; }

.btn-small {
    background-color: #3cc6cb;
    color: white;
    border: none;
    padding: 10px 25px;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    text-decoration: none;
    align-self: center;
    margin-top: auto;
}

/* --- 9. MODAL POPUP --- */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.7);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    text-align: center;
    position: relative;
}

.close-btn {
    position: absolute;
    top: 10px; right: 15px;
    font-size: 25px;
    cursor: pointer;
}

/* --- 10. FOOTER --- */
.main-footer {
    background-color: #ffffff;
    color: rgb(0, 0, 0);
    padding: 30px 0;
    margin-top: 50px;
    text-align: center;
}

/* --- 11. MOBILE & RESPONSIVE FIXES (ΔΙΟΡΘΩΣΕΙΣ ΓΙΑ ΚΙΝΗΤΑ) --- */

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Μενού για κινητά */
.hamburger { display: none; cursor: pointer; flex-direction: column; gap: 5px; }
.bar { width: 25px; height: 3px; background-color: #000000; }

@media (max-width: 768px) {
    .hamburger { display: flex; }
    
    .nav-links {
        display: none;
        width: 100%;
        position: absolute;
        top: 60px; left: 0;
        background-color: #3cc6cb;
        flex-direction: column;
        padding: 20px 0;
        z-index: 1000;
    }
    
    .nav-links.active { display: flex; }
    
    /* Fix για Τίτλους σε Κινητά (να μην κόβονται) */
    .page-header h1 {
        font-size: 1.8rem !important;
        line-height: 1.2;
        word-wrap: break-word;
        padding: 0 10px;
    }
    
    .page-header { height: 30vh; }
    
    .hero h1 { font-size: 2rem; }
    
    .filter-btn {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
}

/* --- BEST OF MONTH (ΔΙΟΡΘΩΣΗ ΕΙΚΟΝΩΝ) --- */
.monthly-section {
    background-color: #fff;
    padding-bottom: 2rem;
}

.month-content {
    background: #f0f4f8;
    padding: 20px;
    border-radius: 12px;
    max-width: 800px;
    margin: 20px auto;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.month-layout {
    display: flex;
    align-items: center;
    gap: 25px;
    text-align: left;
    margin-bottom: 30px;
    border-bottom: 1px solid #ddd; /* Μια γραμμή για διαχωρισμό */
    padding-bottom: 20px;
}

/* Για να μην κολλάει το τελευταίο */
.month-layout:last-child {
    border-bottom: none;
}

.month-layout img {
    width: 250px;       /* Σταθερό μέγεθος σε PC */
    height: 180px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.month-info h3 {
    color: #3cc6cb;
    margin-top: 0;
    font-size: 1.3rem;
}

/* --- SOS FIX ΓΙΑ ΚΙΝΗΤΑ (Να μην ξεχειλίζουν) --- */
@media (max-width: 768px) {
    .month-layout {
        flex-direction: column; /* Η εικόνα πάνω, το κείμενο κάτω */
        text-align: center;
    }
    
    .month-layout img {
        width: 100% !important; /* Να πιάνει όλο το πλάτος του κινητού */
        max-width: 100%;        /* Να μην βγαίνει ΠΟΤΕ έξω */
        height: auto;           /* Να προσαρμόζεται το ύψος */
        margin-bottom: 15px;
    }
}

/* --- FIX ΓΙΑ ΤΟ ΜΕΝΟΥ (Κεντράρισμα) --- */
@media (max-width: 768px) {
    .nav-links {
        text-align: center !important;  /* Κεντράρει το κείμενο */
        align-items: center !important; /* Κεντράρει τα στοιχεία στη μέση της οθόνης */
        gap: 25px;                      /* Λίγο "αέρα" ανάμεσα στις λέξεις */
    }
    
    .nav-links li {
        width: 100%;                    /* Πιάνει όλο το πλάτος για σίγουρο κεντράρισμα */
    }
}

/* --- 🚑 ΤΕΛΙΚΗ ΕΠΙΔΙΟΡΘΩΣΗ ΚΙΝΗΤΟΥ (Ultimate Mobile Fix) 🚑 --- */
@media (max-width: 768px) {
    
    /* 1. Η ΛΕΥΚΗ ΜΠΑΡΑ (Πρέπει να είναι ΠΑΝΤΑ πάνω από όλα) */
    .navbar {
        height: 80px !important;       /* Σταθερό ύψος */
        background-color: white !important; /* Απαραίτητο λευκό φόντο */
        position: relative !important;
        z-index: 10000 !important;     /* ΤΕΡΑΣΤΙΟ νούμερο για να είναι στην κορυφή */
        padding: 0 15px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
    }

    /* 2. ΤΟ ΛΟΓΟΤΥΠΟ (Να χωράει στη μπάρα) */
    .main-logo {
        height: 100px !important;       /* Μέγεθος που χωράει άνετα στα 80px */
        width: auto !important;
        margin: 0 !important;
        position: static !important;
    }

    /* 3. ΤΟ ΜΠΛΕ ΜΕΝΟΥ (Να βγαίνει ΑΠΟ ΚΑΤΩ) */
    .nav-links {
        top: 80px !important;          /* Ξεκινάει ΑΚΡΙΒΩΣ εκεί που τελειώνει η μπάρα */
        left: 0 !important;
        width: 100% !important;
        position: absolute !important;
        background-color: #3cc6cb !important;
        z-index: 9999 !important;      /* Μικρότερο από τη μπάρα (10000) για να είναι από κάτω */
        flex-direction: column !important;
        padding-top: 20px !important;  /* Λίγος αέρας στην αρχή */
    }

    /* Στυλ για τα λινκς μέσα στο μενού */
    .nav-links li {
        text-align: center;
        margin-bottom: 15px;
    }

    /* 4. ΤΟ ΚΟΥΜΠΙ HAMBURGER (Να φαίνεται πάντα) */
    .hamburger {
        display: flex !important;
        z-index: 10001 !important;     /* Το πιο ψηλό από όλα */
    }
}


/* --- SOCIAL MEDIA FOOTER --- */
.footer-content {
    text-align: center;
    padding: 20px;
}

.social-icons {
    margin: 20px 0;
    display: flex;
    justify-content: center; /* Κεντράρει τα εικονίδια */
    gap: 20px; /* Απόσταση μεταξύ τους */
}

.social-icons a {
    color: #555;          /* Αρχικό χρώμα (Γκρι σκούρο) */
    font-size: 28px;      /* Μέγεθος εικονιδίων */
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background-color: #fff; /* Λευκός κύκλος από πίσω */
    border-radius: 50%;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1); /* Ελαφριά σκιά */
}

/* Όταν περνάς το ποντίκι από πάνω (Hover) */
.social-icons a:hover {
    transform: translateY(-5px); /* Ανεβαίνει λίγο πάνω */
    color: white; /* Το εικονίδιο γίνεται λευκό */
    background-color: #3cc6cb; /* Το φόντο γίνεται το μπλε του site σου */
    box-shadow: 0 6px 12px rgba(60, 198, 203, 0.4);
}
