/* Import Montserrat Font */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&display=swap');

/* --- LOCK BACKGROUND SCROLLING --- */
body.odyssea-no-scroll {
    overflow: hidden !important;
    touch-action: none !important;
}

/* --- MODAL POPUP STYLES --- */
#odyssea-modal-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background-color: rgba(0, 0, 0, 0.6) !important;
    backdrop-filter: blur(5px) !important;
    z-index: 999999 !important;
    display: flex !important; 
    align-items: center !important;
    justify-content: center !important;
    opacity: 1;
    visibility: visible;
    pointer-events: auto !important;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

#odyssea-modal-overlay.odyssea-modal-hidden {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    z-index: -99999 !important; 
}

#odyssea-modal-overlay .odyssea-booking-widget {
    position: relative !important;
    margin: 0 !important;
    width: 90% !important;
    max-width: 800px !important;
    max-height: 90vh !important;
    overflow-y: auto !important;
}

.odyssea-close-btn {
    position: absolute !important;
    top: 15px !important;
    right: 20px !important;
    font-size: 28px !important;
    font-weight: 700 !important;
    color: #000000 !important;
    cursor: pointer !important;
    z-index: 10 !important;
    transition: color 0.2s ease !important;
}

.odyssea-close-btn:hover {
    color: #D58C61 !important;
}

select.odyssea-locked-property {
    pointer-events: none !important;
    background-color: #f0f0f0 !important;
    color: #555 !important;
    border-color: #ddd !important;
}

/* --- WIDGET PREMIUM REDESIGN --- */
.odyssea-booking-widget {
  max-width: 800px;
  margin: 40px auto;
  background: linear-gradient(145deg, #ffffff, #F9F5F0) !important;
  border-radius: 12px !important;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12) !important;
  font-family: 'Montserrat', sans-serif !important;
  color: #000000 !important;
  display: flex !important;
  flex-direction: column !important;
  border: 1px solid #eaeaea !important;
}

.odyssea-widget-header {
  padding: 35px 30px 10px !important;
  text-align: center !important;
}

.odyssea-widget-header h3 {
  margin: 0 !important;
  font-size: 26px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 1.5px !important;
  color: #000000 !important;
}

.odyssea-widget-header p {
  margin: 10px 0 0 !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  color: #666666 !important;
}

.odyssea-form-content {
  padding: 20px 35px 35px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 20px !important;
}

.odyssea-input-row {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 20px !important;
}

.odyssea-input-group {
  flex: 1 !important;
  min-width: 150px !important;
  display: flex !important;
  flex-direction: column !important;
  position: relative !important;
}

.odyssea-input-group label {
  font-size: 11px !important;
  font-weight: 700 !important;
  color: #000000 !important;
  margin-bottom: 8px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.8px !important;
}

.odyssea-input-group input,
.odyssea-input-group select {
  padding: 14px 16px !important;
  border: 1px solid #dcdcdc !important;
  border-radius: 6px !important;
  font-size: 14px !important;
  font-family: 'Montserrat', sans-serif !important;
  color: #000000 !important;
  background-color: #ffffff !important;
  transition: all 0.3s ease !important;
  box-shadow: none !important;
  height: auto !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.odyssea-input-group select {
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e") !important;
  background-repeat: no-repeat !important;
  background-position: right 18px center !important; 
  background-size: 16px !important;
  padding-right: 45px !important; 
  cursor: pointer !important;
}

.odyssea-date-group input[type="text"] {
  cursor: pointer !important;
  background-color: #ffffff !important;
}

.odyssea-input-group input:focus,
.odyssea-input-group select:focus {
  outline: none !important;
  border-color: #D58C61 !important; 
  box-shadow: 0 0 0 3px rgba(213, 140, 97, 0.15) !important;
}

/* PREMIUM PRICE BOX STYLES */
.odyssea-price-box {
    background: #ffffff !important;
    padding: 16px 20px !important;
    border-radius: 8px !important;
    border: 1px solid #E0E0E0 !important;
    margin-top: 5px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03) !important;
}
.odyssea-price-details strong {
    font-size: 14px !important;
    color: #000000 !important;
}
.odyssea-price-total {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #000000 !important;
}
.odyssea-price-total span {
    color: #D58C61 !important;
    font-size: 20px !important;
}

/* Guest Popover */
.odyssea-guest-popover {
  display: none; 
  position: absolute !important;
  top: 100% !important;
  left: 0 !important;
  right: 0 !important;
  background: #ffffff !important;
  border: 1px solid #E0E0E0 !important;
  border-radius: 8px !important;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1) !important;
  padding: 20px !important;
  z-index: 100 !important;
  margin-top: 5px !important;
}

.odyssea-guest-popover.active {
  display: block !important;
}

.odyssea-guest-row {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  margin-bottom: 20px !important;
}

.odyssea-guest-info {
  display: flex !important;
  flex-direction: column !important;
}

.odyssea-guest-info strong {
  font-size: 14px !important;
  color: #000000 !important;
}

.odyssea-guest-info span {
  font-size: 11px !important;
  color: #888888 !important;
  margin-top: 3px !important;
}

.odyssea-guest-controls {
  display: flex !important;
  align-items: center !important;
  gap: 15px !important;
}

.odyssea-btn-circle {
  width: 32px !important;
  height: 32px !important;
  border-radius: 50% !important;
  border: 1px solid #E0E0E0 !important;
  background: #ffffff !important;
  color: #000000 !important;
  font-size: 18px !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.2s ease !important;
  padding: 0 !important;
}

.odyssea-btn-circle:hover {
  border-color: #D58C61 !important;
  color: #D58C61 !important;
}

.odyssea-guest-count {
  font-size: 16px !important;
  font-weight: 600 !important;
  color: #000000 !important;
  min-width: 15px !important;
  text-align: center !important;
}

.odyssea-guest-apply {
  width: 100% !important;
  background-color: #D58C61 !important;
  color: #ffffff !important;
  border: none !important;
  padding: 12px !important;
  border-radius: 6px !important;
  font-weight: 600 !important;
  font-family: 'Montserrat', sans-serif !important;
  cursor: pointer !important;
  transition: background 0.3s ease !important;
}

.odyssea-guest-apply:hover {
  background-color: #000000 !important;
}

/* Submit Button */
.odyssea-booking-widget .odyssea-submit-btn {
  width: 100% !important;
  max-width: 100% !important;
  background-color: #D58C61 !important; 
  color: #ffffff !important;
  border: none !important;
  padding: 22px !important;
  margin: 0 !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 2px !important;
  cursor: pointer !important;
  font-family: 'Montserrat', sans-serif !important;
  transition: all 0.3s ease !important;
  border-radius: 0 0 12px 12px !important;
  box-shadow: none !important;
  display: block !important;
}

.odyssea-booking-widget .odyssea-submit-btn:hover {
  background-color: #A96748 !important; 
  color: #ffffff !important;
}

.odyssea-booking-widget .odyssea-submit-btn:disabled {
  background-color: #bbbbbb !important;
  cursor: not-allowed !important;
  color: #ffffff !important;
}

.odyssea-results-hidden {
  display: none !important;
}

#odyssea-results {
  text-align: center !important;
  background-color: #ffffff !important;
  border-radius: 0 0 12px 12px !important;
  margin: 0 !important;
}

/* --- OVERRIDE FLATPICKR STYLES TO MATCH THEME --- */
.flatpickr-calendar {
    font-family: 'Montserrat', sans-serif !important;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1) !important;
    border: none !important;
    border-radius: 8px !important;
    z-index: 9999999 !important;
}

.flatpickr-day:not(.prevMonthDay):not(.nextMonthDay):not(.flatpickr-disabled) {
    color: #000000 !important;
    font-weight: 500 !important;
}
.flatpickr-day.prevMonthDay, 
.flatpickr-day.nextMonthDay {
    color: #aaaaaa !important;
}

.flatpickr-day.selected, 
.flatpickr-day.startRange, 
.flatpickr-day.endRange, 
.flatpickr-day.selected.inRange, 
.flatpickr-day.startRange.inRange, 
.flatpickr-day.endRange.inRange, 
.flatpickr-day.selected:focus, 
.flatpickr-day.startRange:focus, 
.flatpickr-day.endRange:focus, 
.flatpickr-day.selected:hover, 
.flatpickr-day.startRange:hover, 
.flatpickr-day.endRange:hover {
    background: #D58C61 !important;
    border-color: #D58C61 !important;
    color: #ffffff !important;
}

.flatpickr-day.flatpickr-disabled, 
.flatpickr-day.flatpickr-disabled:hover {
    color: #A96748 !important; 
    text-decoration: line-through !important;
}

/* --- ELEMENTOR DRAG & DROP BUTTON STYLES --- */
.odyssea-elementor-btn {
    display: inline-block !important;
    background-color: #D58C61 !important;
    color: #ffffff !important;
    padding: 16px 32px !important;
    border-radius: 8px !important;
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 700 !important;
    font-size: 15px !important;
    text-transform: uppercase !important;
    letter-spacing: 1.5px !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    border: none !important;
    cursor: pointer !important;
    text-align: center !important;
}

.odyssea-elementor-btn:hover {
    background-color: #A96748 !important;
    color: #ffffff !important;
}

.odyssea-btn-wrapper {
    text-align: center; 
    width: 100%;
}

/* --- PUBLIC INLINE CALENDAR STYLES (MULTI-MONTH COMPACT SCALING) --- */
.odyssea-public-calendar-wrapper {
    background: #ffffff !important;
    padding: 25px !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08) !important;
    border: 1px solid #eaeaea !important;
    margin: 20px auto !important;
    
    width: fit-content !important; /* Hugs the calendars perfectly */
    max-width: 100% !important; /* Prevents blowing out the website wrapper */
    overflow-x: auto !important; 
    -webkit-overflow-scrolling: touch !important; 
    
    font-family: 'Montserrat', sans-serif !important;
}

.odyssea-public-calendar-header {
    text-align: center !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #000000 !important;
    text-transform: uppercase !important;
    letter-spacing: 1.5px !important;
    margin-bottom: 20px !important;
    border-bottom: 1px solid #eee !important;
    padding-bottom: 15px !important;
}

/* Let Flatpickr expand natively */
.odyssea-public-calendar-wrapper .flatpickr-calendar {
    width: max-content !important; 
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
    background: transparent !important;
    margin: 0 auto !important;
}

/* Fix the layout flow */
.odyssea-public-calendar-wrapper .flatpickr-innerContainer {
    display: flex !important;
    flex-direction: row !important;
}

/* STRICT mathematical width: Compact down to 240px per month */
.odyssea-public-calendar-wrapper .flatpickr-month,
.odyssea-public-calendar-wrapper .flatpickr-weekdaycontainer,
.odyssea-public-calendar-wrapper .dayContainer {
    width: 240px !important;
    min-width: 240px !important;
    max-width: 240px !important;
    padding: 0 8px !important; 
    box-sizing: border-box !important;
}

/* Scale down the month header text to fit perfectly */
.odyssea-public-calendar-wrapper .flatpickr-current-month {
    font-size: 14px !important;
}

/* Add the beautiful dashed divider between months */
.odyssea-public-calendar-wrapper .dayContainer:not(:last-child),
.odyssea-public-calendar-wrapper .flatpickr-weekdaycontainer:not(:last-child) {
    border-right: 1px dashed #eaeaea !important;
}

/* Shrink the day boxes perfectly to fit the new 240px grid */
.odyssea-public-calendar-wrapper .flatpickr-day {
    max-width: 28px !important;
    height: 28px !important;
    line-height: 28px !important;
    border-radius: 5px !important;
    margin: 2px !important;
    font-weight: 600 !important;
    font-size: 12px !important;
}

/* Scale down weekday headers (Mon, Tue, Wed) */
.odyssea-public-calendar-wrapper span.flatpickr-weekday {
    font-size: 11px !important;
    font-weight: 700 !important;
    color: #888888 !important;
}

.odyssea-public-calendar-wrapper .flatpickr-days {
    pointer-events: none !important;
    display: flex !important;
    width: max-content !important;
}

.odyssea-public-calendar-wrapper .flatpickr-day.flatpickr-disabled {
    background-color: #fce4e4 !important;
    color: #d32f2f !important;
    text-decoration: line-through !important;
    border: 1px solid #f9caca !important;
}

.odyssea-public-calendar-wrapper .flatpickr-day:not(.flatpickr-disabled):not(.prevMonthDay):not(.nextMonthDay) {
    background-color: #e8f5e9 !important;
    color: #2e7d32 !important;
    border: 1px solid #c8e6c9 !important;
}

.odyssea-public-calendar-legend {
    display: flex !important;
    justify-content: center !important;
    gap: 20px !important;
    margin-top: 20px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #555 !important;
}

.odyssea-public-calendar-legend span {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.legend-dot {
    width: 12px !important;
    height: 12px !important;
    border-radius: 50% !important;
}
.legend-dot.available { background-color: #e8f5e9 !important; border: 1px solid #c8e6c9 !important; }
.legend-dot.booked { background-color: #fce4e4 !important; border: 1px solid #f9caca !important; }

/* --- ULTIMATE RESPONSIVE MOBILE STYLES --- */
@media (max-width: 768px) {
    /* Form Rows */
    .odyssea-input-row {
        flex-direction: column !important;
        gap: 15px !important;
    }
    .odyssea-input-group {
        min-width: 100% !important;
        flex: 1 1 100% !important;
    }
    
    /* Guest Popover Mobile Safety */
    .odyssea-guest-popover {
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Modal Spacing for Phones */
    .odyssea-widget-header {
        padding: 20px 20px 10px !important;
    }
    .odyssea-form-content {
        padding: 15px 20px 20px !important;
    }
    #odyssea-modal-overlay .odyssea-booking-widget {
        width: 95% !important;
        max-height: 90vh !important;
        margin: 15px auto !important;
    }

    /* Live Price Stacking for Small Screens */
    .odyssea-price-box > div:first-child {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 5px !important;
    }
    .odyssea-price-total {
        margin-top: 5px !important;
    }
    
    /* Public Calendar Padding */
    .odyssea-public-calendar-wrapper {
        padding: 15px !important;
    }
}