/* ── Toctoc Search Widget Layout ── */
.toctoc-buscador-alojamientos {
    background: #fff;
    padding: 0px 0px 28px 0px;
    border-radius: 0;
    /**margin: 100px 0 40px 0;  /* 100px to counter theme's -100px wrapper margin */
    position: relative;
    z-index: 10;
    width: 100%;
    box-sizing: border-box;
}

.buscador-titulo {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    margin: 0 0 20px 0;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    border-left: 4px solid #30ab95;
    padding-left: 15px;
}

.buscador-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: flex-end;
}

.buscador-campo {
    flex: 1;
    min-width: 140px;
}

.buscador-campo label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    color: #444;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    height: 14px; /* Unify label space */
}

.buscador-input, .buscador-select {
    width: 100%;
    height: 48px !important;
    padding: 0 16px;
    border: 1px solid #ddd;
    border-radius: 0;
    font-size: 14px;
    background: #fff;
    transition: all .2s;
    box-sizing: border-box !important;
    color: #333;
    line-height: 46px;
}

.buscador-input:focus, .buscador-select:focus {
    border-color: #30ab95;
    outline: none;
    box-shadow: 0 0 0 3px rgba(48, 171, 149, 0.1);
}

.buscador-boton {
    flex: 0 0 auto;
}

.buscador-btn {
    background-color: #30ab95;
    color: #fff;
    border: none;
    height: 48px !important;
    padding: 0 30px 0 55px;
    font-size: 13px;
    font-weight: 400;
    border-radius: 0;
    cursor: pointer;
    transition: all .25s;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: none;
    box-sizing: border-box !important;
    display: inline-block;
    line-height: 48px;
    text-align: center;
    background-image: url('https://toctoc.hanka.es/wp-content/themes/Hotec/assets/images/icon-date.png');
    background-position: 25px center;
    background-repeat: no-repeat;
}

.buscador-btn:hover {
    background-color: #218c74;
    transform: none;
    box-shadow: none;
}

@media (max-width: 768px) {
    .buscador-row { 
        flex-direction: column; 
    }
    .buscador-campo { 
        width: 100%; 
    }
    .buscador-btn { 
        width: 100%; 
    }
}

/* ── Search Results Layout ── */
.toctoc-resultados-busqueda {
    padding: 30px 0;
}

.resultados-header {
    margin-bottom: 30px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

.resultados-header h2 {
    font-size: 28px;
    margin: 0 0 10px 0;
    color: #333;
}

.resultados-fechas {
    font-size: 15px;
    color: #666;
    margin: 0;
}

.resultados-vacio {
    text-align: center;
    padding: 60px 20px;
    background: #f9f9f9;
    border-radius: 8px;
}

.resultados-vacio p {
    font-size: 18px;
    color: #666;
    margin-bottom: 20px;
}

.btn-volver {
    display: inline-block;
    background: #bca474;
    color: #fff;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: background .25s;
}

.btn-volver:hover {
    background: #a08050;
    color: #fff;
}

/* ── Listados y Grupos ── */
.resultados-listados {
    display: flex;
    flex-direction: column;
    gap: 50px;
}

.resultados-grupo-titulo {
    font-size: 22px;
    margin: 0 0 20px 0;
    color: #333;
    padding-bottom: 10px;
    border-bottom: 2px solid #bca474;
    display: inline-block;
}

.resultados-lista {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ── Tarjetas Base ── */
.opcion-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    transition: box-shadow .25s, transform .25s;
    display: flex; /* Horizontal by default for single rooms */
}

.opcion-card:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    transform: translateY(-2px);
    border-color: #ccc;
}

/* ── Opciones de 1 habitación (Horizonales) ── */
.opcion-img {
    width: 300px;
    min-width: 300px;
    max-width: 300px;
    min-height: 200px;
    background-size: cover;
    background-position: center;
}

.opcion-info {
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 100%;
}

.opcion-detalles h4 {
    font-size: 22px;
    margin: 0 0 10px 0;
    color: #222;
}

.opcion-excerpt {
    font-size: 15px;
    color: #555;
    line-height: 1.6;
    margin: 0;
}

.opcion-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.opcion-meta {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.opcion-cap {
    font-size: 13px;
    color: #777;
    text-transform: uppercase;
    font-weight: 600;
}

.opcion-price {
    font-size: 20px;
    font-weight: 700;
    color: #bca474;
}

.opcion-price small {
    font-size: 13px;
    font-weight: 400;
    color: #888;
}

.btn-reservar {
    display: inline-block;
    background: #333;
    color: #fff !important;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: background .25s;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.5px;
}

.btn-reservar:hover {
    background: #bca474;
}

/* ── Tarjetas de Combos (Opciones Múltiples) ── */
.combo-card {
    flex-direction: column; /* Vertical stacking for combos */
    border: 2px solid #bca474;
}

.combo-info-main {
    padding: 20px 25px;
    background: #fdfaf5;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.combo-info-main h4 {
    margin: 0;
    font-size: 18px;
    color: #222;
}

.combo-cap-total {
    font-weight: 600;
    color: #bca474;
}

.combo-rooms-list {
    padding: 25px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.combo-room-inline {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 15px;
    background: #fafafa;
    border: 1px solid #eee;
    border-radius: 6px;
}

.combo-room-inline img {
    width: 80px !important;
    height: 80px !important;
    min-width: 80px;
    max-width: 80px;
    object-fit: cover;
    border-radius: 4px;
    margin: 0 !important;
}

.cri-info {
    flex: 1;
}

.cri-info h5 {
    margin: 0 0 5px 0;
    font-size: 16px;
    color: #333;
}

.cri-info span {
    font-size: 13px;
    color: #666;
}

.btn-reservar-small {
    padding: 10px 20px;
    font-size: 13px;
    background: #fff;
    color: #333;
    border: 1px solid #ccc;
    border-radius: 4px;
    text-transform: uppercase;
    font-weight: 600;
}

.btn-reservar-small:hover {
    background: #333;
    color: #fff;
    border-color: #333;
}

.combo-footer {
    padding: 20px 25px;
    background: #fff;
    border-top: 1px solid #eee;
}

.combo-price-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
    color: #555;
    margin-bottom: 10px;
}

.combo-price-total strong {
    font-size: 22px;
    color: #bca474;
}

.combo-price-total small {
    font-size: 13px;
    font-weight: normal;
    color: #888;
}

.combo-note {
    font-size: 13px;
    color: #888;
    margin: 0;
    font-style: italic;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .opcion-card {
        flex-direction: column;
    }
    .opcion-img {
        width: 100%;
        min-width: 100%;
        height: 200px;
    }
    .opcion-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    .btn-reservar {
        width: 100%;
        text-align: center;
        box-sizing: border-box;
    }
    .combo-info-main {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .combo-room-inline {
        flex-direction: column;
        text-align: center;
    }
    .btn-reservar-small {
        width: 100%;
        box-sizing: border-box;
    }
}

/* ── WooCommerce Shop Page Grid Fix & Buttons ── */
.woocommerce ul.products li.product, 
.woocommerce-page ul.products li.product,
.woocommerce[class*="columns-"] ul.products li.product,
.woocommerce-page[class*="columns-"] ul.products li.product {
    width: 100% !important;
    float: none !important;
    margin: 0 0 30px 0 !important;
    display: block !important;
}

.woocommerce ul.products li.product .button,
.woocommerce-page ul.products li.product .button,
.woocommerce ul.products li.product a.button,
.woocommerce-page ul.products li.product a.button {
    background-color: #30ab95 !important;
    color: #fff !important;
    padding: 7px 20px 7px 35px !important;
    border-radius: 2px !important;
    text-decoration: none !important;
    font-weight: 400 !important;
    text-align: left !important;
    margin-top: 15px !important;
    transition: all 0.2s !important;
    text-transform: uppercase !important;
    font-size: 13px !important;
    line-height: 22px !important;
    box-shadow: rgba(0,0,0,0.1) 0px -2px 0px 0px inset !important;
    background-image: url('https://toctoc.hanka.es/wp-content/themes/Hotec/assets/images/icon-date.png') !important;
    background-position: 12px 10px !important;
    background-repeat: no-repeat !important;
    font-family: 'Lato', sans-serif !important;
    display: inline-block !important;
    height: auto !important;
    width: auto !important;
}

.woocommerce ul.products li.product .button:hover,
.woocommerce-page ul.products li.product .button:hover {
    background-color: #218c74 !important;
    color: #fff !important;
    box-shadow: rgba(0,0,0,0.2) 0px -2px 0px 0px inset !important;
}

/* ── Selector de Personas en Botones ── */
.personas-buttons-container {
    display: flex;
    gap: 6px;
    height: 48px !important;
    box-sizing: border-box !important;
}

.btn-persona {
    flex: 1;
    height: 48px !important;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 0;
    color: #444;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: inherit;
    box-sizing: border-box !important;
}

.btn-persona:hover {
    border-color: #30ab95;
    color: #30ab95;
}

.btn-persona.active {
    background: #30ab95;
    color: #fff;
    border-color: #30ab95;
}

.btn-persona-dropdown-wrapper {
    flex: 1.2;
    height: 48px !important;
    position: relative;
    border: 1px solid #ddd;
    border-radius: 0;
    background: #fff;
    transition: all .2s;
    overflow: hidden;
    box-sizing: border-box !important;
}

.btn-persona-dropdown-wrapper:hover {
    border-color: #30ab95;
}

.btn-persona-dropdown-wrapper.active {
    background: #30ab95;
    border-color: #30ab95;
}

.btn-persona-select {
    width: 100%;
    height: 100%;
    border: none;
    background: transparent;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding: 0 20px 0 12px;
    text-align: left;
    font-size: 14px;
    font-weight: 600;
    color: #444;
    font-family: inherit;
    cursor: pointer;
    outline: none;
    position: relative;
    z-index: 2;
}

.btn-persona-dropdown-wrapper.active .btn-persona-select {
    color: #fff;
}

.btn-persona-dropdown-wrapper::after {
    content: "▼";
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 10px;
    color: #999;
    pointer-events: none;
    z-index: 1;
}

.btn-persona-dropdown-wrapper.active::after {
    color: #fff;
}

