/**
 * SR – Changeover Days : trait diagonal sur les cellules "jour de check-out / arrivée possible"
 *
 * v1.4.1 : style Airbnb. La stripe n'apparaît QUE sur les cellules DISPONIBLES
 * (date_available). Sur les cellules rouges (date_approved), pas de stripe :
 * "stripe" = "tu peux arriver ici", absence de stripe = "occupé".
 */

/* Cellule "changeover" : restauration du curseur main + clic */
td.date_available.sr-co-day {
    cursor: pointer !important;
    pointer-events: auto !important;
    position: relative;
    overflow: hidden;
}

/* Trait diagonal — overlay clair en bas/droite */
td.date_available.sr-co-day::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        transparent 0%,
        transparent 49.5%,
        rgba(255, 255, 255, 0.92) 50%,
        rgba(255, 255, 255, 0.92) 100%
    );
    pointer-events: none;
    z-index: 1;
}

/* La ligne diagonale elle-même, fine et nette */
td.date_available.sr-co-day::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            to top right,
            transparent calc(50% - 1px),
            rgba(0, 0, 0, 0.55) 50%,
            transparent calc(50% + 1px)
        );
    pointer-events: none;
    z-index: 2;
}

/* Le numéro du jour reste lisible au-dessus */
td.date_available.sr-co-day a,
td.date_available.sr-co-day span {
    position: relative;
    z-index: 3;
    color: #333 !important;
    text-decoration: none !important;
    font-weight: 600;
}

/* Effet hover doux */
td.date_available.sr-co-day:hover::before {
    background: linear-gradient(
        135deg,
        transparent 0%,
        transparent 49.5%,
        rgba(232, 245, 233, 0.95) 50%,
        rgba(232, 245, 233, 0.95) 100%
    );
}
