
.day.available {
    background-color: #e7f7e0; /* Απαλό πράσινο */
    border: 1px solid #66bb6a; /* Πράσινο περίγραμμα */
    box-shadow: 0 0 5px rgba(102, 187, 106, 0.5);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-family: 'Arial', sans-serif;
    font-size: 14px;
    color: #388e3c;
    padding: 10px;
    min-height: 100px; /* Ελάχιστο ύψος για στοίχιση */
    max-height: 100px; /* Μέγιστο ύψος για συνέπεια */
    overflow: hidden;
}

.day.available .day-number {
    font-size: 18px;
    font-weight: bold;
    color: #388e3c;
    background-color: #a5d6a7;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.day.available .rental-price {
    font-size: 16px;
    font-weight: bold;
    color: #388e3c;
    margin-top: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Στυλ για τις ημέρες που είναι κλειστές */
.day.closed {
    background-color: #f9f9f9; /* Απαλό γκρι */
    border: 1px solid #ddd; /* Γκρι περίγραμμα */
    box-shadow: 0 0 5px rgba(200, 200, 200, 0.5);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-family: 'Arial', sans-serif;
    font-size: 14px;
    color: #777;
    padding: 10px;
    min-height: 100px; /* Ελάχιστο ύψος για στοίχιση */
    max-height: 100px; /* Μέγιστο ύψος για συνέπεια */
    overflow: hidden;
}

.day.closed .day-number {
    font-size: 18px;
    font-weight: bold;
    color: #777;
    background-color: #e0e0e0;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.day.closed .rental-price {
    font-size: 16px;
    font-weight: bold;
    color: #999;
    margin-top: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Στυλ για τις ημέρες με προσφορά */
.day.offer {
    animation: flash 0.8s infinite alternate;
    background-color: #ffff66; /* Έντονο κίτρινο */
    border: 2px solid #ffcc00; /* Πορτοκαλί περίγραμμα */
    box-shadow: 0 0 10px rgba(255, 204, 0, 0.8);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-family: 'Arial', sans-serif;
    font-size: 14px;
    color: #000;
    padding: 10px;
    min-height: 100px; /* Ελάχιστο ύψος για στοίχιση */
    max-height: 100px; /* Μέγιστο ύψος για συνέπεια */
    overflow: hidden;
}

.day.offer .day-number {
    font-size: 18px;
    font-weight: bold;
    color: #000;
    background-color: #fffde7;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.day.offer .rental-price {
    font-size: 16px;
    font-weight: bold;
    color: #d32f2f; /* Έντονο κόκκινο */
    margin-top: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@keyframes flash {
    0% {
        background-color: #ffff66;
    }
    100% {
        background-color: #ffcc00;
    }
}

/* Στυλ για την κεντρική δομή του ημερολογίου */
.calendar-container {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.house-section {
    flex: 1;
    background-color: #fff;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    min-width: 45%;
}

.house-section h3 {
    text-align: center;
    background-color: #007BFF;
    color: white;
    padding: 10px;
    border-radius: 5px;
}

.month {
    width: 100%;
    background-color: #f0f8ff;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    text-align: center;
    position: relative;
}

.month h4 {
    margin: 0;
    background-color: #28a745;
    color: white;
    padding: 10px;
    border-radius: 5px;
}

.days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
    margin-top: 10px;
}

.weekend {
    background-color: #ffebcd; /* Ανοιχτό μπεζ */
    color: #333; /* Σκούρο κείμενο */
}

.weekend.closed {
    background-color: #f2e5d5; /* Απαλό μπεζ */
    color: #bbb; /* Αχνό κείμενο */
    border: 1px dashed #ddd;
}

/* Στυλ για την εικόνα */
img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Στυλ για τίτλους ημερών εβδομάδας */
.weekday-title {
    background-color: #e0f7fa;
    color: #007b83;
    font-weight: bold;
    text-align: center;
    padding: 5px 0;
    border-radius: 5px;
}

/* Διασφάλιση responsive σχεδίασης */
body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    overflow-x: hidden; /* Αποφυγή οριζόντιου scroll */
}

.calendar-container {
    padding: 0 10px;
}

.house-section {
    max-width: 100%;
}

.days {
    grid-template-columns: repeat(7, 1fr);
}

.days .day,
.days .weekday-title {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    min-height: 100px; /* Ύψος για συνέπεια */
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .day .rental-price {
        font-size: 14px; /* Μείωση μεγέθους για μικρές οθόνες */
        white-space: normal; /* Επιτρέπεται να τυλίγεται */
        overflow: visible; /* Εμφάνιση όλου του κειμένου */
        text-overflow: clip; /* Χωρίς ελλείψεις */
    }

    .day.closed .rental-price {
        font-family: 'Arial Narrow', sans-serif; /* Narrow στυλ */
        font-size: 12px; /* Μικρότερη γραμματοσειρά */
    }

    .day .day-number {
        width: 30px; /* Μικρότερο μέγεθος για κύκλους */
        height: 30px;
        font-size: 14px;
    }
}

