/* Layout */
.max-w-md { max-width: 340px; } /* ~448px */
.mx-auto { margin-left: auto; margin-right: auto; }
.p-4 { padding: 1rem; }
.mb-4 { margin-bottom: 1rem; }
.pt-4 { padding-top: 1rem; }

/* Background + border + shadow */
.bg-white { background-color: #fff; }
.bg-black { background-color: #000; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-md { border-radius: 0.3rem; }

/* .shadow { box-shadow: 0 2px 8px rgba(0,0,0,0.1); } */
.border-t { border-top: 1px solid #e5e7eb; }

/* Flexbox */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }

/* Grid */
.grid { display: grid; }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gap-4 { gap: 1rem; }

/* Spacing */
.space-y-2 > * + * { margin-top: 0.5rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.mr-2 { margin-right: 0.5rem; }

/* Typography */
.text-center { text-align: center; }
.text-white { color: #fff; }
.text-gray-600 { color: #4b5563; }
.text-sm { font-size: 0.875rem; }
.text-lg { font-size: 1.125rem; }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }

/* Width / Height */
.w-32 { width: 130px; }
.h-32 { height: 130px; }
.w-5 { width: 1.25rem; }
.h-5 { height: 1.25rem; }
.banner_footer {
    margin: 40px 0px;
}
.tour-search-form .searchandfilter {
    display: contents;
}

.tour-search-form .searchandfilter>li {
    list-style: none;
    width: 100%;
}

.tour-search-form .searchandfilter input[type="text"],
.tour-search-form .searchandfilter input[type="date"],
.tour-search-form .searchandfilter input[type="number"],
.tour-search-form .searchandfilter select {
    width: 100%;
    height: 48px;
    padding: 0 16px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    color: #1f2937;
    background: white;
    transition: all 0.3s ease;
    outline: none;
}

.tour-search-form .searchandfilter input:focus,
.tour-search-form .searchandfilter select:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
    transform: translateY(-1px);
}

/* Search destination field */
.search-destination input[type="text"] {
    font-size: 16px;
    padding-left: 50px;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236b7280'%3e%3cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M17.657 16.657L13.414 20.9a1.998 1.998 0 01-2.827 0l-4.244-4.243a8 8 0 1111.314 0z'/%3e%3cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M15 11a3 3 0 11-6 0 3 3 0 016 0z'/%3e%3c/svg%3e");
    background-position: 16px center;
    background-repeat: no-repeat;
    background-size: 20px;
}

/* Date field styling */
.field-date-input input[type="date"] {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236b7280'%3e%3cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M8 7V3m8 4V3m-9 8h10M5 21h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z'/%3e%3c/svg%3e");
    background-position: right 16px center;
    background-repeat: no-repeat;
    background-size: 20px;
    padding-right: 50px;
}

/* Select fields styling */
.tour-search-form select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 40px;
    appearance: none;
}

/* Range fields for budget */
.budget-range {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.budget-range input {
    height: 40px;
    font-size: 13px;
}

/* Advanced search fields */
.search-fields-advanced {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.search-fields-advanced.show {
    display: block !important;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
    }

    to {
        opacity: 1;
        max-height: 200px;
    }
}

/* Search controls */
.search-controls-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    gap: 8px;
}

.advanced-toggle,
.clear-filters,
.search-filter-input-button.search-filter-field__input {
    background: transparent;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 500;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.advanced-toggle:hover,
.clear-filters:hover,
.search-filter-input-button.search-filter-field__input:hover {
    border-color: #32a3fa !important;
    color: #32a3fa;
    background: rgba(59, 130, 246, 0.05) !important;
}

.advanced-toggle .toggle-icon {
    transition: transform 0.3s ease;
}

.advanced-toggle.active .toggle-icon {
    transform: rotate(180deg);
}

.advanced-toggle.active .toggle-text::after {
    content: " (Đang mở)";
}

/* Main search button */
.search-button-main input[type="submit"] {
    width: 100%;
    height: 56px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.search-button-main input[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.6);
}
.content-col .products .product .custom-product-image-wrapper {
    height: 100%;
}
.content-col .products .product .custom-product-image-wrapper img {
        width: 100%;
    height: 100%;
    max-width: 100%;
    object-fit: cover;
}
/* Results container */
.search-results-container {
    margin-top: 30px;
    background: white;
    border-radius: 16px;
    min-height: 100px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}
/* Container cho lưới sản phẩm */
.grid-products-custom {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px; /* Khoảng cách giữa các item */
  list-style: none; /* Loại bỏ dấu chấm mặc định nếu là thẻ ul/li */
  margin: 0;
  padding: 0;
}

/* Kiểu dáng cho từng item sản phẩm */
.grid-products-custom .product {
  /* Bạn có thể thêm các kiểu dáng chung ở đây */
  border: 1px solid #ddd;
  padding: 15px;
  text-align: center;
  /* Thêm hiệu ứng box-shadow hoặc transition nếu muốn */
}

/* Điều chỉnh khoảng cách và kích thước trên các thiết bị lớn hơn */
@media (min-width: 768px) {
  .grid-products-custom {
    gap: 30px;
  }
}

/* Điều chỉnh khoảng cách và kích thước trên các thiết bị di động */
@media (max-width: 576px) {
  .grid-products-custom {
    grid-template-columns: 1fr; /* 1 cột trên điện thoại nhỏ */
    gap: 15px;
  }
}
.tour-search-filter {
    padding: 40px 0;
    position: relative;
    overflow: hidden;
    margin-bottom: 0;
}

.tour-search-filter::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* background: rgba(0, 0, 0, 0.1); */
    z-index: 1;
}

.tour-search-filter .container-fluid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.tour-search-wrapper {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.search-form-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.search-fields-row {
  display: flex;
  flex-wrap: wrap;
}

.search-field {
  position: relative;
  padding-right: 20px; /* khoảng cách với đường gạch */
  margin-right: 20px;
}

.search-field::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  width: 1px;
  height: 70%; 
  background: #cacaca; 
  transition: background 0.3s ease;
}

/* Giảm font-size placeholder cho toàn bộ input trong form filter */
.searchandfilter input::placeholder {
  font-size: 14px !important;   /* chỉnh nhỏ hơn */
  color: #888;       /* tuỳ chỉnh màu nếu muốn */
}

/* Nếu muốn áp dụng riêng cho input tìm kiếm tour */
.search-field.field-destination input::placeholder {
  font-size: 13px !important;
}
/* .search-filter-component-combobox__selection span::after {
    content: "";
    display: block;
    width: 100%;
    height: 1px;
    background-color: #32a3fa; 
} */



.search-filter-input-button.search-filter-field__input {
    width: 100%;
    height: 100%;
    border: 0px;
    background: #f2f2f2;
    padding: 6px 12px;
}

.sf_button_submit {
    height: 100%;
}
/* bỏ đường gạch ở field cuối cùng */
.search-field:last-child::after {
  display: none;
}

/* Search Fields Layout */
.search-fields-row {
    display: grid;
    grid-template-columns: 2fr 1.5fr 1.5fr 1fr;
    gap: 15px;
    align-items: end;
}
.search-filter-component-range-slider__range-text {
    font-size: 13px !important;
}
/* Individual Search Field */
.search-field {
    position: relative;
    height: 100%;
}

.search-field label,
.search-filter-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 4px;
    letter-spacing: 0.5px;
}

/* Search & Filter Pro Integration */
.tour-search-form .searchandfilter {
    display: contents;
}

.tour-search-form .searchandfilter>li {
    list-style: none;
    width: 100%;
    margin: 0;
    padding: 0;
}

.tour-search-form .searchandfilter input[type="text"],
.tour-search-form .searchandfilter input[type="date"],
.tour-search-form .searchandfilter input[type="number"],
.tour-search-form .searchandfilter select {
    width: 100%;
    height: 48px;
    padding: 0 16px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    color: #1f2937;
    background: white;
    transition: all 0.3s ease;
    outline: none;
    margin: 0;
}

.tour-search-form .searchandfilter input:focus,
.tour-search-form .searchandfilter select:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
    transform: translateY(-1px);
}

.tour-search-form .searchandfilter input::placeholder {
    color: #9ca3af;
    font-weight: 400;
}

/* Destination Field Styling */
.search-destination input[type="text"] {
    font-size: 16px;
    padding-left: 50px;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236b7280'%3e%3cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M17.657 16.657L13.414 20.9a1.998 1.998 0 01-2.827 0l-4.244-4.243a8 8 0 1111.314 0z'/%3e%3cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M15 11a3 3 0 11-6 0 3 3 0 016 0z'/%3e%3c/svg%3e");
    background-position: 16px center;
    background-repeat: no-repeat;
    background-size: 20px;
}

/* Date Field Styling */
.field-date-input input[type="date"] {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236b7280'%3e%3cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M8 7V3m8 4V3m-9 8h10M5 21h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z'/%3e%3c/svg%3e");
    background-position: right 16px center;
    background-repeat: no-repeat;
    background-size: 20px;
    padding-right: 50px;
}

/* Select Field Styling */
.tour-search-form select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 40px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

/* Budget Range Fields */
.budget-range {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.budget-range input {
    height: 40px;
    font-size: 13px;
}

.budget-range .searchandfilter>li {
    width: 100%;
}
.search-filter-component-combobox__listbox-toggle::before {
    content: none;
}
/* Advanced Search Section */
.search-fields-advanced {
    border-top: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.search-fields-advanced.show {
    display: block !important;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
        padding-top: 0;
    }

    to {
        opacity: 1;
        max-height: 500px;
        padding-top: 20px;
    }
}



.advanced-toggle,
.clear-filters {
    background: transparent;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 500;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}
.search-filter-input-button.search-filter-field__input {
    border: 2px solid #f2f2f2;
        transition: all 0.3s ease;

}
.advanced-toggle:hover,
.clear-filters:hover,
.search-filter-input-button.search-filter-field__input:hover {
    border: 2px solid #3b82f6 !important;
    color: #3b82f6;
    background: rgba(59, 130, 246, 0.05) !important;
    transform: translateY(-1px);
}

.advanced-toggle .toggle-icon {
    transition: transform 0.3s ease;
    font-size: 12px;
}

.advanced-toggle.active .toggle-icon {
    transform: rotate(180deg);
}

/* Main Search Button */
.search-button-row {
    margin-top: 10px;
}

.search-button-main input[type="submit"],
.search-button-main button {
    width: 100%;
    height: 56px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.search-button-main input[type="submit"]:hover,
.search-button-main button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.6);
}

.search-button-main input[type="submit"]:active,
.search-button-main button:active {
    transform: translateY(0);
}

/* Results Container */
.search-results-container {
    margin-top: 30px;
    background: white;
    border-radius: 16px;
    min-height: 100px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.search-results-container .searchandfilter-results {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

/* Loading State */
.search-results-container.loading {
    position: relative;
    opacity: 0.6;
}

.search-results-container.loading::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 3px solid #e5e7eb;
    border-top: 3px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 10;
}

@keyframes spin {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Search Results Info */
.search-results-container .sf-result-count {
    font-size: 16px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 20px;
    padding: 15px;
    background: #f9fafb;
    border-radius: 8px;
    border-left: 4px solid #3b82f6;
}

.search-results-container .woocommerce-no-products-found {
    text-align: center;
    padding: 60px 20px;
    color: #6b7280;
    font-size: 16px;
}
.no-products-found {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    grid-column: span 3 / span 3;
}
/* Autocomplete Dropdown */
.destination-autocomplete {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 2px solid #e5e7eb;
    border-top: none;
    border-radius: 0 0 12px 12px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.autocomplete-item {
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid #f3f4f6;
    transition: background 0.2s;
}

.autocomplete-item:hover {
    background: #f9fafb;
}

.autocomplete-item:last-child {
    border-bottom: none;
}

/* Required Field Indicator */
.search-field.required label::after {
    content: ' *';
    color: #ef4444;
    font-weight: 700;
}

/* Tour Info Display */
.tour-info {
    margin: 20px 0;
    padding: 15px;
    background: #f9fafb;
    border-radius: 8px;
    border-left: 4px solid #3b82f6;
}

.tour-info h4 {
    margin-bottom: 10px;
    color: #374151;
    font-size: 16px;
}

.tour-info p {
    margin: 5px 0;
    color: #6b7280;
    font-size: 14px;
}

.search-filter-input-text,
.search-filter-field__input {
    border: 0px;
    padding: 0px;
    font-size: 14px;
}
.search-filter-component-combobox .search-filter-component-combobox__selection, .search-filter-component-combobox input[type=text] {
    font-size: 14px !important;
    line-height: 1.4 !important;
}
/* Responsive Design */
@media (max-width: 1024px) {
    .search-fields-row {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .tour-search-wrapper {
        padding: 25px;
    }

    .search-controls-row {
        flex-direction: column;
        gap: 10px;
    }

    .advanced-toggle,
    .clear-filters {
        width: 100%;
        justify-content: center;
    }
    .banner_footer {
    margin: 30px 0px;
}
}

@media (max-width: 768px) {
    .banner_footer {
    margin: 20px 0px;
}
    .tour-search-filter {
        padding: 30px 0;
    }

    .tour-search-filter .container-fluid {
        padding: 0 15px;
    }

    .tour-search-wrapper {
        padding: 20px;
        border-radius: 12px;
    }

    .search-fields-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .budget-range {
        grid-template-columns: 1fr;
    }

    .tour-search-form .searchandfilter input,
    .tour-search-form .searchandfilter select {
        height: 52px;
        font-size: 16px;
        /* Prevents zoom on iOS */
    }

    .search-destination input[type="text"] {
        padding-left: 16px;
        background-image: none;
    }

    .field-date-input input[type="date"] {
        padding-right: 16px;
        background-image: none;
    }

    .search-button-main input[type="submit"],
    .search-button-main button {
        height: 60px;
        font-size: 18px;
    }
    .products .product .woocommerce-loop-product__title {
    font-size: 16px !important;
}
}

@media (max-width: 480px) {
    .tour-search-wrapper {
        padding: 15px;
        margin: 0 5px;
    }

    .search-field label {
        font-size: 12px;
        margin-bottom: 3px;
    }

    .search-form-container {
        gap: 8px;
    }

    .advanced-toggle,
    .clear-filters {
        padding: 12px 16px;
        font-size: 14px;
    }
}
.section-archive-product {
    background: #FCF7F1;
    position: relative;
}
.section-archive-product .products .product {
    width: 100%;
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}


