/* General styles */
.general {
    display: flex;
    align-items: center;
    justify-content: space-around;
    background-color: #ffffff81;
    padding: 20px;
    margin: 20px auto;
    width: 80%;
    gap: 20px;
}

.item {
    position: relative;
    display: flex;
    align-items: center;
    background-color: #415A16;
    box-shadow: 7px 4px 13px rgba(0, 0, 0, 0.2);
    width: 280px;
    border-radius: 0 !important;
}

.icon3 {
    padding: 10px;
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: brightness(0) invert(1);
}

.custom-button {
    background-color: white;
    color: grey;
    border: none;
    padding: 10px 25px;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    width: 100%;
    height: 46px;
    border: 9px !important;
    border-color: black !important;
}

.custom-button:hover {
    background-color: white;
    color: grey;
}

.reserve-button {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border-radius: 0px;
}

.button-reserve {
    background-color: #415A16 !important;
    color: white !important;
    border: none !important;
    padding: 24px !important;
    cursor: pointer !important;
    font-size: 16px !important;
    display: flex !important;
    align-items: center !important;
    width: 142px !important;
    justify-content: center !important;
    height: 48px !important;
}

.button-reserve:hover {
    transform: scale(1.1) !important;
    background-color:#415A16 !important;
    color: white !important;
}

.icon2 {
    padding: 10px 10px 10px 0px;
    border-radius: 5px 0 0 5px;
    width: 46px;
    height: 46px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: brightness(0) invert(1);
}

/* Dropdown styles */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 300px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 10 !important;
}

.dropdown-content.show {
    display: block;
}

.field-group {
    margin: 10px 0;
}

.room-section {
    display: flex; /* Adjusted from ruby to flex */
    padding: 11px;
    background-color: #415A161f !important;
}

.room-header {
    font-weight: bold;
    margin-bottom: 10px;
}

#combinedDropdown {
    position: absolute;
    background: #ffffff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 1000 !important;
    padding: 10px;
    width: 1135px;
    max-height: 500px;
    overflow: hidden;
    transition: height 0.3s ease;
    left: -344px !important;
    margin-top: 17px;
    border-radius: 0;
}

.roomCont {
    width: 72% !important;
}

.button-habs {
    position: relative;
}

.top-section {
    display: flex;
    flex-direction: row;
    gap: 36px;
    margin-bottom: 10px;
}

.bottom-section {
    margin-top: 10px;
}

/* Calendar styles */
.daterangepicker .drp-calendar {
    display: none;
    max-width: 451px !important;
    height: 281px !important;
}

@media (min-width: 564px) {
    .daterangepicker .drp-calendar.left .calendar-table {
        padding-right: 22px;
    }
}

@media (min-width: 564px) {
    .daterangepicker .drp-calendar.right {
        margin-left: 25px;
    }
}

.daterangepicker .calendar-table {
    border: none;
    border-radius: 4px;
    background-color: #fff;
}

table thead:first-child tr:first-child th {
    border-block-start: none !important;
}

.daterangepicker .calendar-table th, .daterangepicker .calendar-table td {
    white-space: nowrap;
    text-align: center;
    min-width: 55px;
    width: 51px !important;
    height: 24px !important;
    line-height: 16px !important;
    font-size: 13px !important;
    border-radius: 4px !important;
    border: 1px solid transparent;
    cursor: pointer;
}

table td, table th {
    padding: 8px !important;
    line-height: 1.5;
    vertical-align: top;
    border: 1px solid hsla(0, 0%, 50.2%, .5019607843);
}

.daterangepicker .calendar-table td.active {
    background-color: #777E00!important;
    color: #ffffff !important;
}

.daterangepicker .calendar-table td.in-range {
    background-color: #e2e9ec;
    color: #000;
}

.daterangepicker .calendar-table td.in-range:hover {
    background-color: #777E00;
}

.dropdown-content {
    position: absolute;
    background: #777E00;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    padding: 10px;
    width: 750px;
    max-height: 500px;
    overflow-y: auto;
    top: 50px !important;
    left: 0px !important;
    height: auto !important;
}

.general .item button.custom-button {
    background-color: #777E00;
}

.dropdown-content.show {
    display: block;
}

.field-group {
    margin: 10px 33px;
    color: #415a16 !important;
}

.field-group label {
    display: block;
    color: #415a16 !important;
}

.field-group input {
    width: 100%;
    padding: 5px;
    box-sizing: border-box;
}

.button-habs {
    background-color: white !important;
    border: black !important;
    color: grey !important;
    width: 260px !important;
    padding: 10px 10px !important;
    cursor: pointer !important;
    font-size: 16px !important;
    text-align: left !important;
}

.title-wh {
    color: white;
    margin-bottom: 3px;
    font-size: 16px;
    font-weight: 500;
}

.title-wh2 {
    color: #415A16;
    margin-bottom: 3px;
    font-size: 18px;
    font-weight: 500;
}

.title-wh2, .title-wh {
    display: block;
    margin-bottom: 5px;
}

.clean {
    border: none !important;
    width: 100%;
    padding: 8px;
}

#roomsContainer {
    display: grid;
}

.daterangepicker.opensleft:after {
    left: 47px;
    right: 760px !important;
}

.daterangepicker.opensleft:before {
    right: 701px !important;
}

.daterangepicker {
    right: 634px !important;
    left: 517px !important;
}

button.plus.submit-on-click {
    background-color: #415a163f;
    color: black;
    border: none;
    border-radius: 65px;
    padding: 5px 12px;
    font-size: 16px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

button.minus.submit-on-click {
    background-color: #415a163f;
    color: black;
    border: none;
    border-radius: 65px;
    padding: 5px 14px;
    font-size: 16px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    margin: 3px;
}

/* Responsive Styles */
@media (max-width: 700px) {
    .general {
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        width: 100%;
        padding: 10px;
        background-color: #ffffff81;
    }
    
    .item {
        width: 100% !important;
        margin-bottom: 15px !important;
    }
    
    .custom-button, .button-habs, .campo-promocion-versiondos, .clean {
        width: 100% !important;
        text-align: center !important;
        justify-content: center !important;
    }
    
    .reserve-button {
        width: 100% !important;
        display: flex !important;
        justify-content: center !important;
        box-shadow: none;
    }

    #combinedDropdown {
        width: 105%;
        left: -10px !important;
        max-height: 1091px !important;
        z-index: 50;
    }

    .daterangepicker {
        margin: 0 auto;
        left: 0 !important;
        right: 0 !important;
        transform: none !important;
    }

    .daterangepicker .drp-calendar {
        margin: 0 auto;
    }

    .daterangepicker .drp-calendar {
        max-width: 476px !important;
        height: 267px !important;
    }

    .daterangepicker {
        width: 398px !important;
        z-index: 50 !important;
    }

    .top-section {
        display: flex;
        flex-direction: column;
        gap: 40px;
        margin-bottom: 10px;
    }

    .room-section {
        padding: 11px;
        background-color: #415a163f !important;
        flex-direction: column;
    }

    .title-wh2, .title-wh {
        display: block;
        margin-bottom: 5px;
        width: 100%;
        text-align: left;
    }
}

@media (max-width: 1700px) {
    .general {
        width: 90%;
    }
}

/* Error message styles */
.error-message {
    display: none;
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #415a16;
    color: White;
    border: 1px solid #415a16;
    padding: 15px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    font-size: 14px;
    z-index: 1000;
    max-width: 80%;
    text-align: center;
    transition: opacity 0.5s ease;
    opacity: 0;
}

.error-message.show {
    display: block;
    opacity: 1;
}

.error-message.hide {
    display: none;
    opacity: 0;
}

/* Hidden select */
.hidden-select {
    position: absolute;
    width: 0;
    height: 0;
    border: none;
    padding: 0;
    margin: 0;
    overflow: hidden;
    opacity: 0;
    clip: rect(0, 0, 0, 0);
    pointer-events: none;
}

.mobile .general {
    width: 100%;
    padding: 5px;
    margin: 10px auto;
}

.mobile .item {
    width: 100%;
    margin-bottom: 10px;
}

.mobile .custom-button {
    font-size: 14px;
    padding: 8px;
}

.mobile .button-reserve {
    font-size: 14px;
    padding: 20px;
}
