/*
 Theme Name:   Santolina Etrusca
 Theme URI:    https://domaine-spa-santolinaetrusca.com
 Description:  Thème enfant de Hello Elementor pour Santolina Etrusca
 Author:       Santolina Etrusca
 Author URI:   https://domaine-spa-santolinaetrusca.com
 Template:     hello-elementor
 Version:      1.1.1
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Text Domain:  santolinaetrusca
*/

/* ==========================================================================
   BookingSync Widget Styles
   ========================================================================== */

.bookingsync-reservation-wrapper {
    margin: 20px 0;
}

.btn-reserver {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(135deg, var(--santolina-bookingsync-accent-hover, #827759) 0%, var(--santolina-bookingsync-accent, #9a8d6e) 100%);
    color: #ffffff;
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px color-mix(in srgb, var(--santolina-bookingsync-accent, #9a8d6e) 30%, transparent);
}

.btn-reserver:hover {
    background: linear-gradient(135deg, var(--santolina-bookingsync-accent, #9a8d6e) 0%, var(--santolina-bookingsync-accent-hover, #827759) 100%);
    box-shadow: 0 4px 12px color-mix(in srgb, var(--santolina-bookingsync-accent, #9a8d6e) 40%, transparent);
    transform: translateY(-2px);
}

.btn-reserver:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px color-mix(in srgb, var(--santolina-bookingsync-accent, #9a8d6e) 30%, transparent);
}

.BookingSyncBookNowWidget {
    margin-top: 15px;
    width: 100%;
}

/* Calendar toggle styles - hidden by default */
.bookingsync-calendar-toggle {
    display: none !important;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: opacity 0.3s ease, max-height 0.3s ease;
}

/* Calendar visible state */
.bookingsync-calendar-toggle.bookingsync-visible {
    display: block !important;
    opacity: 1;
    max-height: 800px;
    margin-top: 20px;
    width: 100%;
}

/* Force full width on calendar content */
.BookingSyncBookNowWidget .bs-calendar,
.BookingSyncBookNowWidget .booknow-calendar,
.BookingSyncBookNowWidget > div {
    width: 100% !important;
    max-width: 100% !important;
}

html .BookingSyncBookNowWidget.BookingSyncWidgetUtils__reset {
    --bookingsync-booknow-accent-primary: #9a8d6e;
    --bookingsync-booknow-accent-primary-hover: #9a8d6e;
    --bookingsync-booknow-accent-secondary: #333;
    max-width: 100%!important;
}

html .BookingSyncBookNowWidget.BookingSyncWidgetUtils__reset .BookingSyncCalendarWidget__calendar {
    --bookingsync-calendar-highlighted-bg-color: var(--bookingsync-booknow-accent-primary);
}

/* Override skew theme - neutralize ::before/::after transforms */
.BookingSyncCalendarWidget__calendar[data-theme="skew"] .BookingSyncCalendarWidget__cell {
    overflow: hidden !important;
}

.BookingSyncCalendarWidget__calendar[data-theme="skew"] .BookingSyncCalendarWidget__cell::before,
.BookingSyncCalendarWidget__calendar[data-theme="skew"] .BookingSyncCalendarWidget__cell::after {
    transform: none !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    border-radius: 0 !important;
}

.SmilyBookNowWidget__powered{
    display: none!important;
}

/* ========================================================================
   BookingSync Search Bar Styles
   ========================================================================== */

.bookingsync-search-wrapper {
    margin: 0;
    padding: 0;
}

.bookingsync-search-form {
    display: flex;
    align-items: stretch;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    overflow: visible;
}

/* Date field */
.bookingsync-date-field {
    flex: 1;
    position: relative;
    padding: 10px 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.bookingsync-field-label {
    font-family: 'Open Sans', sans-serif;
    font-size: 11px;
    font-weight: 700;
    color: #827759;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 2px;
}

.bookingsync-date-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
}

.bookingsync-date-display {
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    color: #999;
    white-space: nowrap;
}

.bookingsync-date-display.has-dates {
    color: #333;
    font-weight: 600;
}

.bookingsync-dropdown-arrow {
    color: #827759;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.bookingsync-date-field.open .bookingsync-dropdown-arrow {
    transform: rotate(180deg);
}

/* Calendar popup */
.bookingsync-calendar-popup {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    z-index: 1000;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    padding: 20px;
    min-width: 300px;
}

.bookingsync-calendar-popup.visible {
    display: block;
}

.bookingsync-calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.bookingsync-cal-month-year {
    font-family: 'Open Sans', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: #333;
    text-transform: capitalize;
}

.bookingsync-cal-nav {
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    color: #827759;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.bookingsync-cal-nav:hover {
    background: #f5f3ee;
}

.bookingsync-calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    margin-bottom: 8px;
}

.bookingsync-calendar-weekdays span {
    font-family: 'Open Sans', sans-serif;
    font-size: 11px;
    font-weight: 700;
    color: #999;
    text-transform: uppercase;
    padding: 4px 0;
}

.bookingsync-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}

.bookingsync-cal-day {
    font-family: 'Open Sans', sans-serif;
    font-size: 13px;
    color: #333;
    background: none;
    border: none;
    padding: 8px 4px;
    cursor: pointer;
    border-radius: 50%;
    text-align: center;
    transition: all 0.15s ease;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bookingsync-cal-day:hover:not(.disabled):not(.selected) {
    background: #f5f3ee;
}

.bookingsync-cal-day.disabled {
    color: #ccc;
    cursor: default;
}

.bookingsync-cal-day.today {
    font-weight: 700;
    color: #827759;
}

.bookingsync-cal-day.selected {
    background: #827759;
    color: #fff;
    font-weight: 700;
}

.bookingsync-cal-day.in-range {
    background: #f0ece3;
    border-radius: 0;
}

.bookingsync-cal-day.range-start {
    border-radius: 50% 0 0 50%;
}

.bookingsync-cal-day.range-end {
    border-radius: 0 50% 50% 0;
}

.bookingsync-cal-day.range-start.range-end {
    border-radius: 50%;
}

.bookingsync-calendar-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #eee;
}

.bookingsync-cal-clear {
    background: none;
    border: none;
    font-family: 'Open Sans', sans-serif;
    font-size: 13px;
    color: #827759;
    cursor: pointer;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background 0.2s;
}

.bookingsync-cal-clear:hover {
    background: #f5f3ee;
}

/* Search button */
.bookingsync-search-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 18px;
    background: #827759;
    color: #fff;
    border: none;
    border-radius: 0 8px 8px 0;
    cursor: pointer;
    transition: background 0.3s ease;
}

.bookingsync-search-btn:hover {
    background: #6b6248;
}

.bookingsync-search-btn:disabled {
    opacity: 0.6;
    cursor: wait;
}

.bookingsync-search-icon {
    flex-shrink: 0;
}

/* Results */
.bookingsync-search-results {
    margin-top: 16px;
    padding: 12px 20px;
    border-radius: 8px;
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
}

.bookingsync-search-no-results {
    background: #fff3e0;
    color: #e65100;
}

.bookingsync-search-no-results a {
    color: #827759;
    text-decoration: underline;
    cursor: pointer;
    margin-left: 6px;
}

.bookingsync-search-no-results a:hover {
    color: #6b6248;
}

.bookingsync-search-error {
    background: #ffebee;
    color: #c62828;
}

.bookingsync-reservation-wrapper {
    transition: opacity 0.3s ease;
}

.bookingsync-reservation-wrapper.bookingsync-hidden {
    display: none;
}

/* Responsive */
@media (max-width: 768px) {
    .bookingsync-search-form {
        flex-direction: column;
        border-radius: 16px;
    }

    .bookingsync-date-field {
        padding: 12px 20px;
    }

    .bookingsync-search-btn {
        border-radius: 0 0 16px 16px;
        justify-content: center;
        padding: 14px 20px;
    }

    .bookingsync-calendar-popup {
        left: -10px;
        right: -10px;
        min-width: auto;
    }

    .bookingsync-search-results {
        border-radius: 12px;
    }
}

/* ========================================================================
   TranslatePress Language Selector
   ========================================================================== */

.trp-language-item-name {
    overflow: visible !important;
}

.trp-language-item-name::after {
    content: ' ▼';
    font-size: 10px;
    margin-left: 4px;
    color: #827759;
}
