/* Estilos para los filtros */
.filters-container {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
}

.filter-btn {
    background: white;
    border: 1px solid #ddd;
    border-radius: 25px;
    padding: 10px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #333;
}

.filter-btn:hover {
    background: #f8f9fa;
    border-color: #007bff;
}

.filter-btn.active {
    background: #ff6b35;
    color: white;
    border-color: #ff6b35;
}

.filter-btn i {
    font-size: 16px;
}

.filter-btn.recommended i {
    color: #28a745;
}

.filter-btn.price i {
    color: #007bff;
}

/* Estilos para el sidebar de filtros */
#filters-sidebar {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-right: 20px;
}

/* Fondo gris claro para resultados de alojamientos */
.hotel-results, .search-results, .hotels-container {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
}

.filters-container {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.filters-title {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.filter-section {
    margin-bottom: 25px;
}

.filter-label {
    font-size: 14px;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
    display: block;
}

.search-input-wrapper {
    position: relative;
}

.search-input-wrapper .form-control {
    padding-right: 35px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.search-icon {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 14px;
}

/* Star Rating Filters */
.star-rating-filters {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.star-option {
    display: flex;
    align-items: center;
    gap: 8px;
}

.star-option input[type="checkbox"] {
    margin: 0;
}

.star-option label {
    margin: 0;
    cursor: pointer;
    font-size: 14px;
}

.stars {
    color: #ffc107;
    font-size: 16px;
}

/* Meal Options */
.meal-options, .cancellation-options, .amenities-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.meal-option, .cancellation-option, .amenity-option {
    display: flex;
    align-items: center;
    gap: 8px;
}

.meal-option input[type="checkbox"], 
.cancellation-option input[type="checkbox"], 
.amenity-option input[type="checkbox"] {
    margin: 0;
}

.meal-option label, 
.cancellation-option label, 
.amenity-option label {
    margin: 0;
    cursor: pointer;
    font-size: 14px;
    color: #555;
}

/* Amenities Search */
.amenities-search {
    margin-bottom: 15px;
}

.view-more-btn {
    background: none;
    border: none;
    color: #007bff;
    font-size: 14px;
    cursor: pointer;
    padding: 5px 0;
    margin-top: 10px;
}

.view-more-btn:hover {
    text-decoration: underline;
}

/* Price Range */
.price-range-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.price-inputs {
    display: flex;
    align-items: center;
    gap: 10px;
}

.price-inputs .form-control {
    flex: 1;
    font-size: 14px;
}

.price-separator {
    color: #999;
    font-weight: 500;
}

.price-slider {
    width: 100%;
}

.range-slider {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #ddd;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
}

.range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #007bff;
    cursor: pointer;
}

.range-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #007bff;
    cursor: pointer;
    border: none;
}

.price-labels {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #999;
}

/* Responsive adjustments */
/* === Integración ciega: estilos de la barra de búsqueda de hoteles (preview) === */
:root {
  --brand-mustard: #f3b54a;
  --border-color: #e6b04a;
  --text-color: #222;
  --muted: #6b7280;
  --bg: #ffffff;
  --radius: 12px;
  --box-height: 48px;
  --gap: 10px;
}

html, body { height: 100%; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: #fafafa;
  color: var(--text-color);
}

.page {
  max-width: 1100px;
  margin: 24px auto;
  padding: 0 16px;
}

.search-wrap {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}

.search-bar {
  display: grid;
  grid-template-columns: 41% 21.6% 22% 10%;
  gap: var(--gap);
  align-items: center;
}

.field-box {
  height: var(--box-height);
  border: 1px solid var(--border-color);
  border-radius: 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  background: var(--bg);
}

.field-box:first-child {
  border-top-left-radius: var(--radius);
  border-bottom-left-radius: var(--radius);
}

.search-btn {
  height: var(--box-height);
  border: 1px solid var(--border-color);
  background: var(--brand-mustard);
  color: #111;
  font-weight: 600;
  border-radius: 0;
  cursor: pointer;
  width: 100%;
  border-top-right-radius: var(--radius);
  border-bottom-right-radius: var(--radius);
}

.icon {
  width: 20px;
  height: 20px;
  margin-left: 12px;
  color: #222;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.content {
  padding: 0 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.label {
  font-size: 13px;
  color: var(--muted);
  line-height: 1;
  margin-bottom: 4px;
}

.value {
  font-size: 13px;
  color: var(--text-color);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* Input de destino sin borde interno */
.field-box input.value {
  border: none;
  background: transparent;
  outline: none;
  width: 100%;
  padding: 0;
  box-shadow: none;
}
.field-box input.value::placeholder { color: var(--muted); }

.right-icon {
  margin-right: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #333;
}

.dp-popover {
  position: fixed;
  z-index: 9999;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  padding: 12px;
  width: 540px;
  display: none;
}
.dp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.dp-nav { display: flex; gap: 6px; }
.dp-btn {
  cursor: pointer;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  background: #f8f8f8;
  color: #333;
  padding: 4px 8px;
  font-size: 12px;
}
.dp-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.dp-months { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.dp-month { border: 1px solid var(--border-color); border-radius: 8px; overflow: hidden; }
.dp-month-title { padding: 6px 8px; font-weight: 600; border-bottom: 1px solid var(--border-color); background: #fafafa; }

/* === Nacionalidad: igualar tamaño al campo de Fechas === */
.nationality-wrap {
  width: 21.6%; /* igual al segundo column width de .search-bar */
  display: block;
}
.nationality-box {
  height: var(--box-height); /* igual altura a .field-box */
}
.nationality-suggestions {
  width: 100%; /* dropdown del mismo ancho que la caja */
}
.dp-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; padding: 8px; }
.dp-dow { font-size: 11px; color: var(--muted); text-align: center; }
.dp-day { text-align: center; padding: 6px 0; border-radius: 6px; cursor: pointer; font-size: 13px; color: #222; }
.dp-day:hover { background: #f0f7ff; }
.dp-day.disabled { color: #bbb; cursor: not-allowed; }
.dp-day.selected { background: #2563eb; color: #fff; }
.dp-day.in-range { background: #eaf2ff; }

.rooms-box { min-width: 280px; }
.rooms-box .content { padding: 0 10px; }
.rooms-box .label { margin-bottom: 2px; }

.rooms-popover {
  position: fixed;
  z-index: 9999;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  padding: 10px;
  width: 336px;
  max-width: 95vw;
  display: none;
}
.rooms-popover .header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.rooms-popover .title { font-weight: 600; font-size: 13px; color: #333; }
.rooms-popover .select-inline { width: 144px; padding: 7px 9px; border: 1px solid var(--border-color); border-radius: 6px; font-size: 13px; background: #fff; }
.room-block { border: 1px solid var(--border-color); border-radius: 8px; padding: 8px; margin-bottom: 8px; background: #fafafa; }
.room-title { font-weight: 600; font-size: 13px; color: #333; margin-bottom: 8px; }
.room-grid { display: grid; grid-template-columns: 1fr; gap: 8px; align-items: start; }
.form-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.room-grid .form-label { font-size: 13px; color: var(--muted); }
.room-select { width: 50%; padding: 7px 9px; border: 1px solid var(--border-color); border-radius: 6px; font-size: 13px; background: #fff; }
/* Autocomplete destino */
.destino-suggestions { position: fixed; background: #fff; border: 1px solid var(--border-color); border-radius: var(--radius); box-shadow: var(--shadow); z-index: 1000; overflow: auto; max-height: 280px; }
.destino-item { padding: 10px 12px; display: flex; justify-content: space-between; align-items: center; cursor: pointer; }
.destino-item:hover { background: #f7f7f7; }
.destino-name { font-size: 14px; color: var(--text-strong); }
.destino-type { font-size: 12px; color: var(--text-muted); }
.children-ages { margin-top: 6px; display: grid; grid-template-columns: 1fr; gap: 8px; }
.child-age-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.child-age-row .child-label { font-size: 13px; color: var(--muted); }
.popover-actions { display: flex; justify-content: flex-end; margin-top: 8px; }
.popover-actions .done-btn { cursor: pointer; border: 1px solid #1d4ed8; border-radius: 6px; background: #2563eb; color: #fff; padding: 8px 18px; font-size: 13px; }

.hidden-inputs { display: none; }

/* === Widget TRM (junto al logo) === */
.trm-widget {
  display: inline-flex;
  flex-direction: column;
  margin-left: 48px;
  align-items: flex-start;
}
.trm-label {
  display: inline-block;
  font-size: var(--trm-label-size, 36px);
  color: #fff;
  font-weight: 700;
  line-height: 1;
  font-family: inherit;
  white-space: nowrap;
}
.trm-value {
  display: inline-block;
  font-size: calc(var(--trm-label-size, 36px) * 0.5);
  font-weight: 400;
  color: #fff;
  line-height: 1.2;
  font-family: inherit;
  white-space: nowrap;
}

@media (max-width: 1024px) { .search-bar { grid-template-columns: 1fr 1fr 1fr auto; } }
@media (max-width: 768px) {
  .search-bar { grid-template-columns: 1fr; }
  .search-btn { border-radius: var(--radius); }
  .field-box:first-child { border-radius: var(--radius); }
}
@media (min-width: 1025px) { .search-btn { position: relative; left: 48px; } }
@media (max-width: 768px) {
    #filters-sidebar {
        margin-right: 0;
        margin-bottom: 20px;
    }
    
    .filters-container {
        padding: 15px;
    }
}