/*
 Theme Name: Your Place Your Space (By Web Stacked)
 Theme URI: https://webstacked.com.au
 Description: Child theme of hello-biz, built for Your Place Your Space, by Web Stacked
 Author: Web Stacked
 Author URI: https://webstacked.com.au
 Template: hello-biz
 Version: 1.0.13
 Text Domain: ypys
*/

a{
	color:#33a4ab;
}

[type=button], [type=submit], button{
	border: 1px solid #33a4ab;
	color: #33a4ab;
}

[type=button]:focus, [type=button]:hover, [type=submit]:focus, [type=submit]:hover, button:focus, button:hover{
	background-color:#33a4ab;
}

#qr-discount-banner {
display:none;
  position: sticky;
  top: 0;
  z-index: 9999;
  background: #111;
  color: #fff;
  padding: 12px 48px 12px 16px;
  text-align: center;
  font-size: 14px;
  width: 100%;
}

#qr-banner-close {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
}



/* ==============================================
 * Accomodation Form Styles
 * ============================================== */ 
/* --- Booking Form Container --- */
.booking-container {
    max-width: 850px;
    margin: auto;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    padding: 20px;
    background-color: #33a4ab; /* Brand Teal */
    border-radius: 8px;
}

.booking-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    position: relative;
}

/* --- Date Selector (Updated for Split Layout) --- */
.date-selector {
    flex: 2;
    background: #fff;
    padding: 5px 15px;
    border-radius: 4px;
    cursor: pointer;
    transition: box-shadow 0.2s;
    display: flex;
    align-items: center;
    position: relative;
}

.date-selector:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.date-display-wrapper {
    display: flex;
    align-items: center;
    width: 100%;
    height: 100%;
}

/* New Block Structure for Inputs */
.date-input-block {
    flex: 1;
    display: flex;
    flex-direction: column; /* Stacks label on top of value */
    justify-content: center;
    padding: 2px 0;
}

.date-sublabel {
	display: none;
    font-size: 10px;
    font-weight: 500;
    text-transform: uppercase;
    color: #777;
    margin-bottom: 2px;
}

.date-input-block:has(#checkInDisplay.is-active) .date-sublabel,
.date-input-block:has(#checkOutDisplay.is-active) .date-sublabel{
    display: block;
}

.date-value {
    font-size: 14px;
    color: #777; /* Placeholder color */
    font-weight: 400;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Style applied via JS when date is actually picked */
.date-value.is-active {
    color: #333;
    font-weight: 600;
	text-transform: uppercase;
}

/* Vertical Separator Line */
.date-separator-line {
    width: 1px;
    height: 32px;
    background-color: #e0e0e0;
    margin: 0 15px;
}
.date-label { flex: 1; }
.text-right { text-align: right; }
.chevron-icon {
    width: 18px;
    height: 18px;
    color: #33a4ab; /* Using your brand teal, or use #777 for grey */
    stroke-width: 2.5; /* Slightly thicker for visibility */
    transition: transform 0.2s ease-in-out;
    margin-left: 8px;
}

.guests-selector.is-open .chevron-icon {
    transform: rotate(180deg);
}

/* --- Guest Selector --- */
.guests-selector {
    flex: 1.5;
	max-width: 220px;
    background: #fff;
    padding: 5px 15px;
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    user-select: none;
}

.guest-label {
    font-weight: 600;
    font-size: 14px;
    color: #555;
    display: flex;
    justify-content: space-between;
    align-items: center;
	text-transform: uppercase;
}

#guest-sublabel{
	font-size: 10px;
	font-weight: 500;
	text-transform: uppercase;
	color: #777;
	margin-bottom: 2px;
}

.guest-dropdown {
    display: none;
    position: absolute;
    top: 110%;
    right: 0;
    width: 250px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    padding: 20px;
    z-index: 1000;
}

.counter-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.counter-controls{
	display:flex;
	align-items: center;
	justify-content: space-between;
}

span.counter-label {
    text-transform: uppercase;
    font-size: 14px;
	font-weight: 500;
}

.btn-circle {
	width: 30px;
    height: 30px;
    border: 0.5px solid #33a4ab;
    background: #fff;
    color: #33a4ab;
    font-size: 18px;
    display: flex;
    padding: 0;
    justify-content: center;
}

.btn-circle:hover { background: #33a4ab; border-color: #33a4ab; color:#fff; }
.count-value { width: 30px; text-align: center; font-weight: bold; }

.btn-close-guests {
    margin-left: auto;
    color: #33a4ab;
    font-size: 12px;
    font-weight: 500;
    border: 0.5px solid #33a4ab;
    margin-top: 10px;
}

/* --- Submit Button --- */
.btn-submit {
    width: 100%;
    background: #fff;
    color: #33a4ab;
    border: none;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background 0.3s;
}

.btn-submit:hover {
    background: #1b6f75;
}

/* --- FLATPICKR CUSTOMIZATIONS (Brand Colors & Positioning) --- */

/* Force positioning just below the input */
.booking-container .flatpickr-calendar {
    top: 100% !important;
    left: 0px !important;
    right: auto;
    padding: 5px 10px 20px 10px;
	box-sizing: content-box;
}

.booking-container .flatpickr-day{
	border-radius: 0;
}

/* Color Overrides */
.flatpickr-day.selected, 
.flatpickr-day.startRange, 
.flatpickr-day.endRange, 
.flatpickr-day.selected.inRange, 
.flatpickr-day.startRange.inRange, 
.flatpickr-day.endRange.inRange {
    background: #33a4ab !important;
    border-color: #33a4ab !important;
}

.flatpickr-day.inRange {
    box-shadow: -5px 0 0 #e0f5f5, 5px 0 0 #e0f5f5 !important;
    background: #e0f5f5 !important;
    border-color: #e0f5f5 !important;
    color: #333 !important;
}

.flatpickr-months .flatpickr-month,
.flatpickr-current-month .flatpickr-monthDropdown-months,
.flatpickr-weekdays {
    background: #33a4ab;
    color: #fff;
    fill: #fff;
}
.booking-container span.flatpickr-weekday {
    color: #33a4ab;
}

.booking-container .flatpickr-current-month span.cur-month:hover{
	background: none;
}

/* Mobile Responsive */
@media (max-width: 767px) {
    .booking-bar { flex-direction: column; }	
	.guests-selector{
		max-width:100%;
	}
	.booking-container .flatpickr-calendar{
		top: 110% !important;
		left: -16px !important;
	}
}

