.guesty-booking-widget {
    max-width: 100%;
    margin: 0 auto;
    padding: 30px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

#guesty-booking-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.booking-field {
    display: flex;
    flex-direction: column;
}

.booking-field label {
    font-weight: 600;
    margin-bottom: 0px;
    color: #333;
    font-size: 14px;
}

/* Date field styles */
.date-field {
    position: relative;
}

.date-input-wrapper {
    display: flex;
    align-items: center;
    padding: 4px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
    cursor: pointer;
    transition: border-color 0.3s;
    position: relative;
}

.date-input-wrapper:hover {
    border-color: #0073aa;
}

.calendar-icon {
    display: none;
}

.date-labels {
    display: flex;
    flex-direction: column;
    flex: 1;
    margin-bottom: 0;
    gap: 0px;
}

.date-label-main {
    font-weight: 700;
    font-size: 14px;
    color: #333;
    margin-bottom: 0;
    line-height: 1;
    padding-top: 5px;
}

.date-display {
    font-size: 14px;
    color: #666;
    line-height: 1;
    padding-bottom: 5px;
}

.date-field input[type="date"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

/* Regular input and select styles */
.booking-field input[type="date"]:not(.date-field input),
.booking-field select {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.booking-field select {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.booking-field input[type="date"]:focus,
.booking-field select:focus {
    outline: none;
    border-color: #0073aa;
}

.date-input-wrapper:focus-within {
    border-color: #0073aa;
}

.book-now-btn {
    padding: .3em 1em;
    background-color: #fbb03b;
    color: #1a1a1a;
    border: none;
    border-radius: 3px;
    font-size: 20px;
    font-family: 'Open Sans',Helvetica,Arial,Lucida,sans-serif;
    font-weight: 900;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s;
    align-self: end;
    line-height: 1.7em !important;
    background-size: cover;
    background-position: 50%;
    background-repeat: no-repeat;
}

.book-now-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

#guesty-booking-form > div:nth-child(4) {
    align-self: flex-end;
}

.booking-results {
    margin-top: 30px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 4px;
}

.loading {
    text-align: center;
    padding: 20px;
    color: #666;
}

.results-content {
    display: grid;
    gap: 15px;
}

div.listing-id, p.listing-location {
    display: none;
}

.listing-item {
    padding: 15px;
    background: white;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
}

.listing-item h3 {
    margin-top: 0;
    color: #333;
}

.listing-details {
    color: #666;
    font-size: 14px;
    margin: 10px 0;
}

.listing-price {
    font-size: 18px;
    font-weight: 600;
    color: #0073aa;
    margin: 10px 0;
}

.view-listing-btn {
    display: inline-block;
    padding: .3em 1em;
    background-color: #fbb03b;
    color: #1a1a1a;
    text-decoration: none;
    border-radius: 3px;
    font-size: 20px;
    font-family: 'Open Sans',Helvetica,Arial,Lucida,sans-serif;
    font-weight: 900;
    text-transform: uppercase;
    transition: all 0.2s;
    line-height: 1.7em !important;
    background-size: cover;
    background-position: 50%;
    background-repeat: no-repeat;
    margin-top: 20px;
}

.view-listing-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .guesty-booking-widget {
        padding: 20px;
    }
    
    #guesty-booking-form {
        grid-template-columns: 1fr;
    }
}