﻿
#container {
    position: relative;
    max-width: 700px; /* تقليل العرض الأقصى للتقويم */
}

#monthYear {
    font-size: 14px; /* قم بتقليل الحجم حسب الحاجة */
    margin: 0; /* إزالة الهوامش لتحسين الشكل */
}

#calendar {
    display: none;
    flex-direction: column;
    align-items: center;
    background-color: #f8f8f8;
    border-radius: 8px;
    padding: 10px; /* تقليل padding */
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.2);
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 10;
    max-width: 700px; /* تقليل العرض الأقصى */
}

#header {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 10px; /* تقليل المسافة */
}

#prevMonth, #nextMonth {
    background-color: #cba36b;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 4px; /* تقليل padding */
    cursor: pointer;
    font-size: 10px; /* تقليل حجم الخط */
}

.day-names {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 8px; /* تقليل المسافة */
}

.day-name {
    font-size: 12px; /* تقليل حجم الخط */
    color: #333;
    text-align: center;
    flex: 4;
}

#days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px; /* تقليل المسافة بين الأيام */
    width: 100%;
}

.day {
    width: 35px; /* تقليل عرض الأيام */
    height: 35px; /* تقليل ارتفاع الأيام */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #555;
    border-radius: 6px; /* تقليل الزوايا */
    cursor: pointer;
    position: relative;
    color: #fff;
    font-size: 11px; /* تقليل حجم الخط */
}

.available {
    background-color: #cba36b;
}

.not-available {
    background-color: #ccc;
    color: #777;
    cursor: not-allowed;
}

.price {
    font-size: 9px; 
    color: #fff;
    margin-top: 2px;
    text-align: center;
}



#dateInput {
    padding: 8px; 
    font-size: 14px; 
    width: 100%;
    border: 1px solid #ccc;
    border-radius: 4px;
    cursor: pointer;
    max-width:400px;
}

/* Responsive Styles */
@media (max-width: 600px) {
    .day {
        padding-top: 1px;
        width: 25px;
        height: 25px; 
        font-size: 7px; 
    }

    .price {
        font-size: 6px; 
    }

    #prevMonth, #nextMonth {
        font-size: 9px; 
    }

    #monthYear {
        font-size: 12px; 
    }
}

@media (max-width: 400px) {
    .day {
        padding-top:1px;
        width: 35px; 
        height: 35px; 
        font-size: 9px; 
    }

    .price {
        font-size: 8px;
    }

    #prevMonth, #nextMonth {
        font-size: 9px; 
    }

    #monthYear {
        font-size: 12px;
    }
    #calendar{
        width:100%
    }
}