/*
.tr-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
    max-width: 360px;
}

.tr-calendar .day {
    padding: 10px;
    text-align: center;
    border-radius: 6px;
    font-size: 14px;
}

.tr-calendar .available {
    background: #e6f7e6;
    cursor: pointer;
}

.tr-calendar .unavailable {
    background: #f5f5f5;
    color: #999;
    pointer-events: none;

}

.tr-calendar .day.check-in {
    background: #4caf50;
    color: #fff;
}

.tr-calendar .day.check-out {
    background: #2e7d32;
    color: #fff;
}

.tr-calendar .day.in-range {
    background: #72ff77;
}

.tr-calendar .day small {
    display: block;
    font-size: 11px;
    color: #555;
}


.tr-calendar-months {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.tr-month-name {
    text-align: center;
    font-weight: 600;
    margin-bottom: 8px;
}

.tr-calendar-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.tr-calendar-nav button {
    padding: 6px 10px;
    cursor: pointer;
}
.tr-booking-summary {
    position: sticky;
    bottom: 20px;
    background: #fff;
    padding: 16px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,.1);
    margin-top: 20px;
}
*/

.book-btn {
    width: 100%;
    padding: 10px;
    margin-top: 10px;
}

/*post content*/
.rental-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 10px;
}
div#content {
    margin-top: 100px;
}

/*new css*/
.tr-calendar {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    max-width: 820px;
}

.tr-calendar-months {
    display: flex;
    gap: 24px;
}

.tr-month {
    width: 100%;
}

.tr-month-name {
    text-align: center;
    font-weight: 600;
    margin-bottom: 6px;
}

.tr-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-size: 12px;
    color: #777;
    margin-bottom: 4px;
}

.tr-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}



.day {
    position: relative;
    aspect-ratio: 1 / 1;
    background: #f5f6f7;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.day span {
    font-weight: 500;
}

.day small {
    font-size: 10px;
    color: #555;
}

.day.available {
    background: #fff;
    border: 1px solid #e7e7e7;
    cursor: pointer;
}

.day.available:hover {
    background: #ebf3ff;
    border-color: #0071c2;
}

.day.unavailable {
    /* background: #f2f2f2; */
    color: #aaa;
    cursor: not-allowed;
}

.day.empty {
    background: transparent;
    pointer-events: none;
}


.day.reserved {
    background: #5c8f94;
    color: #fff;
    cursor: not-allowed;
}


.day.booking-checkin {
    background:
        linear-gradient(
            135deg,
            #ffffff 50%,
            #5c8f94 50%
        );
    color: #333;
    /* cursor: not-allowed; */
}



.day.booking-checkout {
    background:
        linear-gradient(
            135deg,
            #5c8f94 50%,
            #ffffff 50%
        );
    color: #333;
    /* cursor: not-allowed; */
}


/* .day.booking-checkin:hover,
.day.booking-checkout:hover,
.day.reserved:hover {
    background-color: inherit;
} */


.day.maintenance {
    background: repeating-linear-gradient(
        45deg,
        #eee,
        #eee 6px,
        #ddd 6px,
        #ddd 12px
    );
    color: #999;
    cursor: not-allowed;
}

.tr-month-name {
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 6px;
}

.tr-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    font-size: 12px;
    color: #6b6b6b;
    margin-bottom: 6px;
}


/* .day.reserved:hover,
.day.unavailable:hover {
    background-color: inherit;
    border-color: inherit;
} */

.day.in-range {
    background: #cfe8e2;
    border-radius: 0;
}

.day.user-checkin {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.day.user-checkout {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.day.user-checkin,
.day.user-checkout {
    background: #006c5e;
    color: #fff;
    z-index: 2;
}

.tr-calendar-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.tr-calendar-nav button {
    background: #fff;
    border: 1px solid #e7e7e7;
    width: 36px;
    height: 36px;
    cursor: pointer;
    color: #333;
    padding: 0;
}

.tr-calendar-nav button:hover {
    background: #f5f5f5;
}


.tr-calendar-skeleton {
    animation: fadeIn 0.2s ease-in;
}

.skeleton-nav {
    height: 36px;
    width: 100%;
    margin-bottom: 16px;
    background: #eee;
    border-radius: 4px;
}

.skeleton-months {
    display: flex;
    gap: 32px;
}

.skeleton-month {
    width: 380px;
    height: 280px;
    background: linear-gradient(
        90deg,
        #f0f0f0 25%,
        #e4e4e4 37%,
        #f0f0f0 63%
    );
    background-size: 400% 100%;
    animation: shimmer 1.4s ease infinite;
    border-radius: 6px;
}

@keyframes shimmer {
    0% { background-position: 100% 0; }
    100% { background-position: 0 0; }
}

@keyframes fadeIn {
    from { opacity: 0 }
    to { opacity: 1 }
}


/* single rental sidebar form */

/* .sidebar-booking-form {
    position: sticky;
    top: 100px;
} */

.sb-card {
    background: #fff;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

.sb-price {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 20px;
}

.sb-price-meta {
    font-size: 14px;
    font-weight: 400;
    margin-left: 6px;
    color: #777;
}

.sb-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.sb-dates {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.sb-field {
    display: flex;
    flex-direction: column;
}

.sb-field label {
    font-size: 12px;
    margin-bottom: 4px;
    color: #555;
}

.sb-field input {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
}

.sb-btn {
    padding: 14px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    text-transform: uppercase;
}

.sb-btn-primary {
    background: #d4af37;
    color: #fff;
    border: none;
}

.sb-btn-primary:hover {
    opacity: 0.9;
}

.sb-btn-outline {
    background: transparent;
    border: 1px solid #d4af37;
    color: #d4af37;
}


/* slide calendar */

.calendar-slide {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.3s ease;
    opacity: 0;
}

.calendar-slide.open {
    max-height: 1200px;
    opacity: 1;
}

.date-toggle {
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.date-toggle .arrow {
    transition: transform 0.3s ease;
}

.calendar-slide.open + .arrow {
    transform: rotate(180deg);
}


button.checkout-btn.hided {
    display: none;
}
select#guests {
    padding-left: 40px;
}