/**
 * Thai Travel Hotel Search - Premium Green Theme
 * Matching the flight search plugin style
 *
 * Colors:
 * Primary dark:    #00450C
 * Primary:         #166534
 * Primary medium:  #15803d
 * Primary light:   #22c55e
 * Primary lighter: #34d399
 * Accent light:    #dcfce7
 * Accent border:   #86efac
 */

/* ═══════════════════════════════════════════════
   RESET & BASE
   ═══════════════════════════════════════════════ */
.ths-search-wrapper *,
.ths-results-header *,
.ths-hotels-list *,
.ths-modal-overlay *,
.ths-mini-widget * {
    box-sizing: border-box;
}

/* ═══════════════════════════════════════════════
   SEARCH FORM
   ═══════════════════════════════════════════════ */
.ths-search-wrapper {
    max-width: 1100px;
    margin: 30px auto;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(0, 69, 12, 0.12);
    background: #fff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.ths-search-header {
    background: linear-gradient(135deg, #166534 0%, #22c55e 100%);
    padding: 32px 36px 28px;
    text-align: center;
}

.ths-search-title {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.5px;
}

.ths-search-subtitle {
    margin: 8px 0 0;
    color: #dcfce7;
    font-size: 15px;
    font-weight: 400;
    opacity: 0.92;
}

.ths-search-form {
    padding: 28px 36px 32px;
}

.ths-form-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 18px;
}

.ths-form-group {
    display: flex;
    flex-direction: column;
}

.ths-form-group label {
    font-size: 13px;
    font-weight: 600;
    color: #166534;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ths-label-icon {
    font-size: 14px;
}

.ths-form-group input,
.ths-form-group select {
    padding: 12px 14px;
    border: 2px solid #d1d5db;
    border-radius: 10px;
    font-size: 15px;
    color: #1f2937;
    background: #f9fafb;
    transition: border-color 0.25s, box-shadow 0.25s;
    width: 100%;
    appearance: none;
    -webkit-appearance: none;
}

.ths-form-group select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23166534' stroke-width='2' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
    cursor: pointer;
}

.ths-form-group input:focus,
.ths-form-group select:focus {
    outline: none;
    border-color: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.18);
    background: #fff;
}

.ths-input-wrap {
    position: relative;
}

/* Autocomplete Dropdown */
.ths-autocomplete-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 2px solid #86efac;
    border-top: none;
    border-radius: 0 0 10px 10px;
    max-height: 260px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.ths-autocomplete-item {
    padding: 10px 14px;
    cursor: pointer;
    font-size: 14px;
    color: #1f2937;
    border-bottom: 1px solid #f3f4f6;
    transition: background 0.15s;
}

.ths-autocomplete-item:hover,
.ths-autocomplete-item.ths-ac-active {
    background: #dcfce7;
    color: #166534;
}

.ths-autocomplete-item .ths-ac-country {
    color: #6b7280;
    font-size: 12px;
    margin-left: 6px;
}

/* Search Button */
.ths-form-actions {
    margin-top: 22px;
    text-align: center;
}

.ths-search-btn {
    display: inline-block;
    background: linear-gradient(135deg, #166534, #22c55e);
    color: #fff;
    border: none;
    padding: 15px 60px;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 1.2px;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 16px rgba(22, 101, 52, 0.3);
    text-transform: uppercase;
}

.ths-search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(22, 101, 52, 0.4);
}

.ths-search-btn:active {
    transform: translateY(0);
}

.ths-search-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Spinner */
.ths-spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 3px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: ths-spin 0.7s linear infinite;
    vertical-align: middle;
    margin-right: 6px;
}

@keyframes ths-spin {
    to { transform: rotate(360deg); }
}

/* ═══════════════════════════════════════════════
   RESULTS HEADER
   ═══════════════════════════════════════════════ */
.ths-results-header {
    background: linear-gradient(135deg, #166534, #15803d);
    color: #fff;
    padding: 18px 28px;
    border-radius: 12px;
    margin: 28px auto 0;
    max-width: 1100px;
    font-size: 15px;
    box-shadow: 0 4px 16px rgba(22, 101, 52, 0.2);
}

.ths-results-header-content {
    text-align: center;
}

.ths-results-icon {
    font-size: 20px;
    margin-right: 4px;
}

/* Sort Bar */
.ths-sort-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1100px;
    margin: 16px auto;
    padding: 12px 20px;
    background: #f0fdf4;
    border: 1px solid #86efac;
    border-radius: 10px;
    font-size: 14px;
}

.ths-results-count {
    color: #166534;
    font-weight: 600;
}

.ths-sort-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ths-sort-controls label {
    color: #555;
    font-size: 13px;
    font-weight: 500;
}

.ths-sort-select {
    padding: 6px 12px;
    border: 1px solid #86efac;
    border-radius: 8px;
    font-size: 13px;
    color: #166534;
    background: #fff;
    cursor: pointer;
}

/* ═══════════════════════════════════════════════
   HOTEL CARDS
   ═══════════════════════════════════════════════ */
.ths-hotels-list {
    max-width: 1100px;
    margin: 16px auto 40px;
}

.ths-hotel-card {
    display: flex;
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.06);
    border: 1px solid #e5e7eb;
    transition: box-shadow 0.25s, transform 0.25s;
}

.ths-hotel-card:hover {
    box-shadow: 0 8px 32px rgba(22, 101, 52, 0.12);
    transform: translateY(-2px);
}

/* Image */
.ths-hotel-image {
    width: 300px;
    min-width: 300px;
    min-height: 240px;
    position: relative;
    overflow: hidden;
    background: #f3f4f6;
    flex-shrink: 0;
}

.ths-image-carousel {
    width: 100%;
    height: 100%;
    position: relative;
}

.ths-carousel-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.ths-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.45);
    color: #fff;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 20px;
    line-height: 30px;
    text-align: center;
    cursor: pointer;
    z-index: 5;
    transition: background 0.2s;
    padding: 0;
}

.ths-carousel-btn:hover {
    background: rgba(0,0,0,0.7);
}

.ths-carousel-prev { left: 8px; }
.ths-carousel-next { right: 8px; }

.ths-carousel-counter {
    position: absolute;
    bottom: 8px;
    right: 10px;
    background: rgba(0,0,0,0.55);
    color: #fff;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 12px;
    z-index: 5;
}

.ths-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #dcfce7, #f0fdf4);
    font-size: 60px;
    min-height: 240px;
}

/* Info */
.ths-hotel-info {
    flex: 1;
    padding: 20px 22px;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.ths-hotel-name {
    margin: 0 0 6px;
    font-size: 19px;
    font-weight: 700;
    color: #1f2937;
    line-height: 1.3;
}

.ths-hotel-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.ths-stars {
    display: inline-flex;
    gap: 1px;
}

.ths-star {
    font-size: 16px;
    line-height: 1;
}

.ths-star-full { color: #f59e0b; }
.ths-star-half { color: #fbbf24; opacity: 0.7; }
.ths-star-empty { color: #d1d5db; }

.ths-rating-score {
    font-weight: 700;
    color: #166534;
    font-size: 14px;
}

.ths-rating-count {
    color: #6b7280;
    font-size: 13px;
}

.ths-hotel-type-badge {
    display: inline-block;
    background: #dcfce7;
    color: #166534;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Amenities pills */
.ths-hotel-amenities {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}

.ths-amenity-pill {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    background: #f0fdf4;
    color: #15803d;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 16px;
    border: 1px solid #bbf7d0;
    white-space: nowrap;
}

.ths-amenity-small {
    font-size: 11px;
    padding: 3px 8px;
}

/* Essential tags */
.ths-hotel-essential {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}

.ths-essential-tag {
    display: inline-block;
    background: #fef3c7;
    color: #92400e;
    font-size: 11px;
    font-weight: 500;
    padding: 3px 10px;
    border-radius: 12px;
}

/* Nearby brief */
.ths-hotel-nearby-brief {
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 8px;
}

.ths-nearby-icon {
    font-size: 12px;
}

/* Details toggle */
.ths-details-toggle {
    background: none;
    border: none;
    color: #166534;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    padding: 4px 0;
    margin-top: auto;
    text-align: left;
    transition: color 0.2s;
}

.ths-details-toggle:hover {
    color: #22c55e;
}

/* Expanded details */
.ths-hotel-details-expanded {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e5e7eb;
}

.ths-detail-section {
    margin-bottom: 10px;
    font-size: 13px;
    color: #374151;
}

.ths-detail-section strong {
    color: #166534;
    display: block;
    margin-bottom: 4px;
}

.ths-detail-amenities {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 4px;
}

.ths-nearby-list {
    margin: 4px 0 0 18px;
    padding: 0;
    list-style: disc;
}

.ths-nearby-list li {
    margin-bottom: 3px;
    font-size: 12px;
    color: #555;
}

.ths-time-badge {
    display: inline-block;
    background: #f0fdf4;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 12px;
    margin-right: 6px;
    border: 1px solid #bbf7d0;
}

/* Price Section */
.ths-hotel-price {
    width: 220px;
    min-width: 220px;
    padding: 20px 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #f0fdf4 0%, #fff 100%);
    border-left: 1px solid #e5e7eb;
    text-align: center;
    flex-shrink: 0;
}

.ths-price-per-night {
    margin-bottom: 4px;
}

.ths-price-currency {
    font-size: 13px;
    color: #6b7280;
    font-weight: 500;
}

.ths-price-amount {
    font-size: 28px;
    font-weight: 800;
    color: #166534;
    letter-spacing: -0.5px;
}

.ths-price-label {
    display: block;
    font-size: 12px;
    color: #6b7280;
    margin-top: 2px;
}

.ths-price-total {
    font-size: 13px;
    color: #374151;
    margin-bottom: 6px;
}

.ths-price-total strong {
    color: #15803d;
}

.ths-price-nights {
    display: block;
    font-size: 11px;
    color: #9ca3af;
}

.ths-price-disclaimer {
    font-size: 10px;
    color: #9ca3af;
    line-height: 1.3;
    margin-bottom: 14px;
    padding: 0 4px;
}

/* Book Now Button */
.ths-book-now-btn {
    display: block;
    width: 100%;
    background: linear-gradient(135deg, #166534, #22c55e);
    color: #fff;
    border: none;
    padding: 12px 20px;
    font-size: 15px;
    font-weight: 700;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 3px 12px rgba(22, 101, 52, 0.25);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.ths-book-now-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 20px rgba(22, 101, 52, 0.35);
}

/* ═══════════════════════════════════════════════
   MODAL OVERLAY
   ═══════════════════════════════════════════════ */
.ths-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
}

.ths-modal {
    background: #fff;
    border-radius: 16px;
    max-width: 620px;
    width: 100%;
    max-height: 92vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
    animation: ths-modal-in 0.3s ease-out;
}

@keyframes ths-modal-in {
    from { opacity: 0; transform: translateY(20px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.ths-modal-header {
    background: linear-gradient(135deg, #166534, #22c55e);
    padding: 24px 28px;
    border-radius: 16px 16px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.ths-modal-header-text h3 {
    margin: 0;
    color: #fff;
    font-size: 20px;
    font-weight: 700;
}

.ths-modal-header-text p {
    margin: 4px 0 0;
    color: #dcfce7;
    font-size: 13px;
}

.ths-modal-close {
    background: rgba(255,255,255,0.2);
    border: none;
    color: #fff;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    flex-shrink: 0;
    line-height: 1;
}

.ths-modal-close:hover {
    background: rgba(255,255,255,0.35);
}

.ths-modal-body {
    padding: 28px;
}

/* Booking Summary in Modal */
.ths-booking-summary {
    background: #f0fdf4;
    border: 1px solid #86efac;
    border-radius: 12px;
    padding: 18px;
    margin-bottom: 24px;
}

.ths-booking-summary-row {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
    font-size: 14px;
    color: #374151;
}

.ths-booking-summary-row.ths-summary-total {
    border-top: 2px solid #22c55e;
    margin-top: 8px;
    padding-top: 10px;
    font-weight: 700;
    font-size: 16px;
    color: #166534;
}

.ths-booking-summary-row .ths-summary-label {
    color: #555;
}

/* Booking Form */
.ths-booking-form .ths-form-row {
    margin-bottom: 18px;
}

.ths-booking-form label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #166534;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.ths-booking-form input[type="text"],
.ths-booking-form input[type="email"],
.ths-booking-form input[type="tel"],
.ths-booking-form select,
.ths-booking-form textarea {
    width: 100%;
    padding: 11px 14px;
    border: 2px solid #d1d5db;
    border-radius: 10px;
    font-size: 14px;
    color: #1f2937;
    background: #f9fafb;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.ths-booking-form input:focus,
.ths-booking-form select:focus,
.ths-booking-form textarea:focus {
    outline: none;
    border-color: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.15);
    background: #fff;
}

.ths-booking-form textarea {
    resize: vertical;
    min-height: 70px;
}

/* Promo Section in Modal */
.ths-promo-section {
    background: #fef3c7;
    border: 1px solid #fbbf24;
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 20px;
}

.ths-promo-section h4 {
    margin: 0 0 8px;
    font-size: 14px;
    color: #92400e;
}

.ths-promo-input-row {
    display: flex;
    gap: 8px;
}

.ths-promo-input-row input {
    flex: 1;
    padding: 9px 12px;
    border: 2px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    text-transform: uppercase;
}

.ths-promo-apply-btn {
    background: #166534;
    color: #fff;
    border: none;
    padding: 9px 18px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s;
}

.ths-promo-apply-btn:hover {
    background: #15803d;
}

.ths-promo-remove-btn {
    background: #dc2626;
    color: #fff;
    border: none;
    padding: 9px 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.ths-promo-remove-btn:hover {
    background: #b91c1c;
}

.ths-promo-msg {
    margin-top: 8px;
    font-size: 13px;
    padding: 6px 10px;
    border-radius: 6px;
}

.ths-promo-msg.ths-promo-success {
    background: #dcfce7;
    color: #166534;
}

.ths-promo-msg.ths-promo-error {
    background: #fee2e2;
    color: #dc2626;
}

.ths-promo-applied-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #dcfce7;
    color: #166534;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
}

/* Booking Price Display */
.ths-booking-price-display {
    background: #f0fdf4;
    border: 2px solid #86efac;
    border-radius: 12px;
    padding: 16px 18px;
    margin-bottom: 20px;
}

.ths-booking-price-row {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    font-size: 14px;
    color: #374151;
}

.ths-booking-price-row.ths-price-row-discount {
    color: #dc2626;
}

.ths-booking-price-row.ths-price-row-final {
    border-top: 2px solid #22c55e;
    margin-top: 8px;
    padding-top: 10px;
    font-size: 18px;
    font-weight: 800;
    color: #166534;
}

/* Disclaimer */
.ths-booking-disclaimer {
    background: #fffbeb;
    border-left: 4px solid #f59e0b;
    padding: 12px 16px;
    border-radius: 0 8px 8px 0;
    font-size: 12px;
    line-height: 1.5;
    color: #92400e;
    margin-bottom: 18px;
}

/* Terms checkbox */
.ths-terms-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 20px;
}

.ths-terms-check input[type="checkbox"] {
    margin-top: 3px;
    width: 18px;
    height: 18px;
    accent-color: #166534;
    cursor: pointer;
    flex-shrink: 0;
}

.ths-terms-check label {
    font-size: 13px;
    color: #374151;
    cursor: pointer;
    text-transform: none;
    font-weight: 400;
    letter-spacing: 0;
}

.ths-terms-link {
    color: #166534;
    font-weight: 600;
    text-decoration: underline;
    cursor: pointer;
}

.ths-terms-link:hover {
    color: #22c55e;
}

/* Confirm Button */
.ths-confirm-booking-btn {
    display: block;
    width: 100%;
    background: linear-gradient(135deg, #166534, #22c55e);
    color: #fff;
    border: none;
    padding: 15px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
    box-shadow: 0 4px 16px rgba(22, 101, 52, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ths-confirm-booking-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(22, 101, 52, 0.4);
}

.ths-confirm-booking-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
}

/* ═══════════════════════════════════════════════
   TERMS MODAL
   ═══════════════════════════════════════════════ */
.ths-terms-modal {
    max-width: 560px;
}

.ths-terms-content {
    padding: 28px;
}

.ths-terms-content h4 {
    color: #166534;
    font-size: 16px;
    margin: 0 0 14px;
}

.ths-terms-content ul {
    padding-left: 20px;
    margin: 0 0 16px;
}

.ths-terms-content li {
    font-size: 13px;
    color: #374151;
    margin-bottom: 8px;
    line-height: 1.5;
}

.ths-terms-contact {
    background: #f0fdf4;
    border-radius: 10px;
    padding: 14px 18px;
    font-size: 13px;
    color: #374151;
}

.ths-terms-contact strong {
    color: #166534;
}

/* ═══════════════════════════════════════════════
   SUCCESS MESSAGE
   ═══════════════════════════════════════════════ */
.ths-booking-success {
    text-align: center;
    padding: 30px 24px;
}

.ths-booking-success .ths-success-icon {
    font-size: 56px;
    display: block;
    margin-bottom: 16px;
}

.ths-booking-success h3 {
    color: #166534;
    margin: 0 0 12px;
    font-size: 22px;
}

.ths-booking-success p {
    color: #374151;
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 20px;
}

.ths-success-close-btn {
    background: #166534;
    color: #fff;
    border: none;
    padding: 12px 40px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.ths-success-close-btn:hover {
    background: #22c55e;
}

/* ═══════════════════════════════════════════════
   LOADING OVERLAY
   ═══════════════════════════════════════════════ */
.ths-loading-overlay {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    text-align: center;
    max-width: 1100px;
    margin: 20px auto;
}

.ths-loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #dcfce7;
    border-top-color: #22c55e;
    border-radius: 50%;
    animation: ths-spin 0.8s linear infinite;
    margin-bottom: 16px;
}

.ths-loading-text {
    color: #166534;
    font-size: 16px;
    font-weight: 500;
}

/* Error Message */
.ths-error-message {
    max-width: 1100px;
    margin: 20px auto;
    padding: 20px 24px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-left: 4px solid #ef4444;
    border-radius: 10px;
    color: #991b1b;
    font-size: 15px;
    text-align: center;
}

/* ═══════════════════════════════════════════════
   MINI WIDGET
   ═══════════════════════════════════════════════ */
.ths-mini-widget {
    max-width: 900px;
    margin: 20px auto;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0, 69, 12, 0.1);
    background: #fff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.ths-mini-header {
    background: linear-gradient(135deg, #166534, #22c55e);
    padding: 16px 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ths-mini-icon {
    font-size: 22px;
}

.ths-mini-title {
    color: #fff;
    font-size: 18px;
    font-weight: 700;
}

.ths-mini-form {
    padding: 18px 24px;
}

.ths-mini-row {
    display: flex;
    gap: 12px;
    align-items: flex-end;
    flex-wrap: wrap;
}

.ths-mini-field {
    flex: 1;
    min-width: 130px;
}

.ths-mini-dest {
    flex: 2;
    position: relative;
}

.ths-mini-field label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: #166534;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ths-mini-field input,
.ths-mini-field select {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    color: #1f2937;
    background: #f9fafb;
    transition: border-color 0.2s;
}

.ths-mini-field input:focus,
.ths-mini-field select:focus {
    border-color: #22c55e;
    outline: none;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.15);
}

.ths-mini-btn-wrap {
    flex: 0 0 auto;
    min-width: auto;
}

.ths-mini-search-btn {
    background: linear-gradient(135deg, #166534, #22c55e);
    color: #fff;
    border: none;
    padding: 10px 28px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 3px 12px rgba(22, 101, 52, 0.25);
    white-space: nowrap;
}

.ths-mini-search-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 18px rgba(22, 101, 52, 0.35);
}

.ths-mini-autocomplete {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1000;
}

/* ═══════════════════════════════════════════════
   DATEPICKER OVERRIDES
   ═══════════════════════════════════════════════ */
.ui-datepicker {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    border-radius: 12px !important;
    border: 2px solid #86efac !important;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12) !important;
    padding: 8px !important;
    z-index: 10001 !important;
}

.ui-datepicker-header {
    background: linear-gradient(135deg, #166534, #22c55e) !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 8px !important;
}

.ui-datepicker-title {
    color: #fff !important;
}

.ui-datepicker th {
    color: #166534 !important;
    font-weight: 600 !important;
}

.ui-datepicker td a {
    text-align: center !important;
    border-radius: 6px !important;
}

.ui-datepicker td a:hover {
    background: #dcfce7 !important;
    color: #166534 !important;
}

.ui-datepicker td a.ui-state-active {
    background: #166534 !important;
    color: #fff !important;
}

.ui-datepicker .ui-datepicker-prev,
.ui-datepicker .ui-datepicker-next {
    cursor: pointer !important;
}

/* ═══════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════ */

/* Tablets */
@media (max-width: 900px) {
    .ths-form-grid {
        grid-template-columns: 1fr 1fr;
    }

    .ths-form-group-dest {
        grid-column: 1 / -1;
    }

    .ths-hotel-card {
        flex-direction: column;
    }

    .ths-hotel-image {
        width: 100%;
        min-width: 100%;
        height: 220px;
        min-height: 220px;
    }

    .ths-hotel-price {
        width: 100%;
        min-width: 100%;
        border-left: none;
        border-top: 1px solid #e5e7eb;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 12px;
        padding: 16px 20px;
        justify-content: center;
    }

    .ths-price-per-night {
        margin-bottom: 0;
    }

    .ths-price-disclaimer {
        margin-bottom: 0;
        order: 3;
        width: 100%;
        text-align: center;
    }

    .ths-book-now-btn {
        width: auto;
        padding: 12px 40px;
    }

    .ths-price-total {
        margin-bottom: 0;
    }
}

/* Phones */
@media (max-width: 600px) {
    .ths-search-wrapper {
        margin: 15px 10px;
        border-radius: 12px;
    }

    .ths-search-header {
        padding: 22px 20px 18px;
    }

    .ths-search-title {
        font-size: 22px;
    }

    .ths-search-subtitle {
        font-size: 13px;
    }

    .ths-search-form {
        padding: 18px 20px 22px;
    }

    .ths-form-grid {
        grid-template-columns: 1fr;
    }

    .ths-search-btn {
        width: 100%;
        padding: 14px;
        font-size: 16px;
    }

    .ths-results-header {
        margin: 16px 10px 0;
        padding: 14px 16px;
        font-size: 13px;
        border-radius: 10px;
    }

    .ths-sort-bar {
        flex-direction: column;
        gap: 8px;
        margin: 10px;
        padding: 10px 14px;
    }

    .ths-hotels-list {
        margin: 10px;
    }

    .ths-hotel-card {
        flex-direction: column;
        border-radius: 12px;
        margin-bottom: 16px;
    }

    .ths-hotel-image {
        width: 100%;
        min-width: 100%;
        height: 200px;
        min-height: 200px;
    }

    .ths-hotel-info {
        padding: 16px;
    }

    .ths-hotel-name {
        font-size: 17px;
    }

    .ths-hotel-price {
        width: 100%;
        min-width: 100%;
        border-left: none;
        border-top: 1px solid #e5e7eb;
        flex-direction: column;
        padding: 16px;
    }

    .ths-book-now-btn {
        width: 100%;
    }

    .ths-modal {
        margin: 10px;
        max-height: 95vh;
        border-radius: 12px;
    }

    .ths-modal-body {
        padding: 18px;
    }

    .ths-modal-header {
        padding: 18px 20px;
    }

    .ths-mini-row {
        flex-direction: column;
    }

    .ths-mini-field {
        min-width: 100%;
    }

    .ths-mini-search-btn {
        width: 100%;
        padding: 12px;
    }
}
