/**********************************************---***********************
    File name: property-calendar.css
    Site: villasbysilvia3

    Copyright 2024 Michael J. Miller, All rights reserved

    Purpose: property page calendar formatting

    Revision History:
    Date        Version     Details
    --------    --------    --------------------------------------------
    5/14/24     3.0a        Created.

************************************************************************/
    @layer superoverride {
        #cal-checkin, #cal-checkin input {
            cursor: e-resize;
        }
        #cal-checkout, #cal-checkout input {
            cursor: w-resize;
        }
        #calendar-list.cal-edit-start .cal-day.cal-selectable:hover {
            cursor: e-resize;
        }
        #calendar-list.cal-edit-end .cal-day.cal-selectable:hover {
            cursor: w-resize;
        }
    }

@layer page {
    #calendar-dialog {
        background-color: white;
        box-shadow: 0 0 8px 0px rgba(150, 150, 150, 1.0);
        border-radius: 8px;
        width: 90vw;
        max-width: 656px;
/*        top: 200px;*/
    /*    margin: 0 auto;*/
        cursor: default;
        z-index: 1;
        border-width: 0;
    }
    #cal-clear-control {
        position: absolute;
        top: 6px;
        right: 12px;
        z-index: 2;
        padding: 4px;
        border-radius: 4px;
        font-size: 1rem;
    }
    #cal-checkin, #cal-checkout {
        padding: 4px 12px;
        border-radius: 4px;
    }
    .calendar-controls {
        display: flex;
        justify-content: space-between;
        column-gap: 1em;
        font-size: 1rem;
    }
/*
    #cal_starts, #cal_ends {
        font-weight: lighter;
    }
*/
    #cal-banner {
        margin-top: 1.5rem;
    }
    .cal-banner {
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-weight: 300;
        font-size: small;
        column-gap: 1em;
        margin-top: .25em;
    }

    .calendar-controls {
        margin: .4rem .5rem .5rem;
        /*    padding-left: 5rem;*/
        /*    padding-right: 5rem;*/
        /*    border: thin dashed red;*/
        display: flex;
        justify-content: space-between;
    }
    .cal-edit-mode {
        border: thin solid gray;
        font-weight: bold;
        padding: 4px 6px;

        background-color: var(--calendar-background);
        border-radius: 4px;
        /*    color: black;*/
    }
    .cal-edit-mode > span {
        font-weight: lighter;
    }
    #calendar-list {
        display: flex;
        flex-flow: row nowrap;
        overflow: auto;
        scroll-snap-type: x mandatory;
        margin: 0.5rem auto;
        /*    max-width: 656px;*/
    /*    scrollbar-width: none;*/
        box-sizing: border-box;
        /*border: thin dashed red;*/
    }
    .calendar {
        display: grid;
        grid-template-columns: repeat(7, min-content);
        scroll-snap-align: start;
        grid-template-rows: max-content repeat(7, min-content);
        min-width: 320px;
                margin: 0 .25rem;
                background-color: var(--calendar-background);
        font-family: 'Lato', sans-serif;
        border: thin solid;
        border-radius: 12px;
        color: rgba(22, 160, 133, 1);
        /*    box-shadow: 0px 1px 3px 0px black;*/
        /*    text-align: center;*/
        cursor: default;
    }
    .calendar-header {
        grid-column: 1 / -1;
        grid-row: 1;
        text-align: center;
        border-radius: 11px 11px 0 0;
        margin: 0 auto;
        /*width: 100%;*/
        width: 320px;
        background-color: var(--base-color);
        white-space: nowrap;
        overflow: hidden;
        color: #fff;
    }
    /*
    .calendar-header h2 {
        font-size: 1.5em;
        width: 100%;
    }
    .cal-day, .calendar-weekdays {
        border: thin solid gray;
    }
    */
    .calendar-weekdays {
        grid-row: 2;
/*        width: 42px;*/
        margin: .5rem 0 0 0;
        text-align: center;
        font-weight: 500;
        border-bottom: thin solid green;
    }
    .cal-spinner {
        grid-row: 4;
        grid-column: 4;
        margin-top: 4rem;
        margin-bottom: 6rem;
    /*    background-color: transparent;*/
    }
/*    .cal-blocked, .cal-available, .cal-filler, .cal-min-stay {*/
    .cal-day {
        padding: .25rem 0.48rem;
        margin: 0 auto;
        min-width: 1.9rem;
        /*    min-height: 1.9rem;*/
        line-height: 2rem;
        text-align: center;
    }
    #cal-today {
        background-color: rgba(255, 0, 0, 1.00);
        border-radius: 50%;
        color: aliceblue;
    }
    .cal-available {
        color: var(--base-color);
    }
    .cal-blocked, .cal-min-stay {
        text-decoration-line: line-through;
        text-decoration-thickness: 3px;
        text-decoration-color: rgba(255, 0, 0, .9);
    }
    .cal-filler, .cal-blocked, .cal-min-stay {
        opacity: .5;
    }
    .book, .book-start, .book-end {
        background-color: var(--book-color);
        color: #fff;
        border: none;
    }
    .book:active, .book-start:active, .book-end:active {
        background-color: var(--book-color);
        color: #000;
    }
    .book:hover, .book-start:hover, .book-end:hover {
        background-color: var(--book-color);
        color: black;
    }
    .cal-available:hover {
        background-color: #fff;
        color: black;
        cursor: pointer;
        border: none;
        border-radius: 50%;
    }
    .cal-blocked:hover, .cal-min-stay:hover, .cal-filler:hover {
        background-color: inherit;
        color: inherit;
        cursor: not-allowed;
    }
    .cal-available:active, .book:hover, .book-start:hover, .book-end:hover {
        background-color: var(--book-color);
        color: black;
        /*    cursor: pointer;*/
        border: none;
        border-radius: 50%;
    }
    .book-end {
    /*    border-radius: 0 50% 50% 0;*/
        border-bottom-right-radius: 50%;
        border-top-right-radius: 50%;
    }
    .book-start {
    /*    border-radius: 50% 0 0 50%;*/
        border-bottom-left-radius: 50%;
        border-top-left-radius: 50%;
    }
    .book-temp {
        background-color: white;
        border-radius: 50%;
        border: thin solid gray;
    }
    .book-temp-start {
        background-color: white;
        border-bottom-left-radius: 50%;
        border-top-left-radius: 50%;
        border: thin solid gray;
        color: gray;
    }
    .book-temp-end {
        background-color: white;
        border-bottom-right-radius: 50%;
        border-top-right-radius: 50%;
        border: thin solid gray;
        color: gray;
    }

    @media (max-width: 768px) {
        #calendar-wrapper {
            background-color: white;
            top: 25rem;
            left: 50px;
    /*        width: 83vw;*/
    /*        min-width: 310px;*/
    /*        max-width: 3270x;*/
            max-width: 320px;
            margin: auto;
        }
        #cal-banner {
    /*        margin: 0 auto 0;*/
            display: none;
        }
        .calendar {
            min-width: 320px;
            margin: 0 .25rem;
            background-color: white;
            border: none;
            border-radius: 0;
            color: gray;
        }
        #calendar-list {
            margin-top: 1.5rem;
        }
        .calendar-header {
            border-radius: 0;
            margin: 0 auto;
    /*        background-color: transparent;*/
    /*        color: black;*/
        }
        .calendar-header h2 {
            margin: 0;
        }
        .cal-available:hover {
            background-color: lightgray;
            color: black;
            cursor: pointer;
            border-radius: 50%;
        }
        .cal-available:active, .book:hover, .book-start:hover, .book-end:hover {
            background-color: var(--book-color);
            color: black;
            /*    cursor: pointer;*/
            border: none;
            border-radius: 50%;
        }
    }
    /*
    @media (max-width: 568px) {
        #calendar-wrapper {
            padding-left: 0;
            margin: auto;
        }
    }
    */
}
