/* Smart Hotel Booking Form Styles */
 * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    }


#shb-check-avail {
    max-width: 480px !important;
    margin: 30px auto !important;
    padding: 25px !important;
    background: #ffffff !important;
    border: 1px solid #ddd !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08) !important;
    font-family: Arial, sans-serif !important;
}

#shb-check-avail p {
    margin-bottom: 18px !important;
}

#shb-check-avail label {
    font-weight: 600 !important;
    color: #333 !important;
    display: block !important;
    margin-bottom: 6px !important;
}

#shb-check-avail input[type="date"],
#shb-check-avail input[type="number"],
#shb-check-avail input[type="text"],
#shb-check-avail textarea {
    width: 100% !important;
    padding: 10px 12px !important;
    border: 1px solid #ccc !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    transition: border-color 0.2s ease !important;
}

#shb-check-avail input:focus,
#shb-check-avail textarea:focus {
    border-color: #0073aa !important;
    outline: none !important;
    box-shadow: 0 0 0 2px rgba(0,115,170,0.2) !important;
}

#shb-check-avail textarea {
    resize: vertical !important;
}

#shb-check-avail button.button {
    background: #0073aa !important;
    color: #fff !important;
    font-weight: 600 !important;
    padding: 12px 20px !important;
    border: none !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    transition: background 0.2s ease !important;
}

#shb-check-avail button.button:hover {
    background: #005f8d !important;
}

#shb-check-avail .shb-loading {
    font-size: 14px !important;
    color: #666 !important;
}

.search-results-wrapper {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px; 
    margin-left: -15px;
    gap:20px;

}

.search-results-wrapper .hotel-card {
      display: flex;
      background: rgba(255,255,255,0.7);
      border-radius: 12px;
      overflow: hidden;
      box-shadow: 0 4px 12px rgba(0,0,0,0.1);
      max-width: 800px;
      margin: auto;
      margin-bottom: 25px;
      position: relative;
      width: 48%;
    }

    .search-results-wrapper .hotel-image {
      flex: 1;
      min-width: 280px;
      position: relative;
    }

    .search-results-wrapper .hotel-image img {
      width: 100%;
      height: 300px;
      object-fit: cover;
    }

    .search-results-wrapper .hotel-info {
      flex: 2;
      padding: 20px;
    }

    .search-results-wrapper .hotel-location {
      color: #666;
      font-size: 14px;
      margin-bottom: 8px;
      display: flex;
       margin-top: 15px;
    }

    .search-results-wrapper .hotel-name {
      font-size: 22px;
      font-weight: bold;
      margin: 0;
    }

    .search-results-wrapper .stars {
      color: gold;
      margin: 6px 0;
    }

    .search-results-wrapper .hotel-meta {
      display: flex;
      gap: 12px;
      margin: 12px 0;
      flex-wrap: wrap;
    }

     .search-results-wrapper .meta-item {
      background: #f1f1f1;
      padding: 6px 12px;
      border-radius: 6px;
      font-size: 13px;
    }

     .search-results-wrapper .hotel-desc {
      font-size: 14px;
      color: #444;
      margin: 12px 0;
    }

     .search-results-wrapper .hotel-price {
      font-size: 16px;
      margin-top: 8px;
    }

     .search-results-wrapper .old-price {
      text-decoration: line-through;
      color: #888;
      margin-right: 8px;
    }

     .search-results-wrapper .new-price {
      color: #e63946;
      font-weight: bold;
    }

     .search-results-wrapper .hotel-card a {
      margin-top: 16px;
      padding: 10px 18px;
      background: #4a60ff;
      color: #fff;
      border: none;
      border-radius: 8px;
      cursor: pointer;
      font-size: 14px;
      margin-top: 15px;
      display: inline-block;
    }

     .search-results-wrapper .hotel-card a:hover {
      background: #3a4ddf;
    }

    
    /* Loader overlay */
    .search-results-wrapper .loader-overlay,
    .hotel_availability_data .loader-overlay{
      position: fixed;
      top: 0; left: 0;
      width: 100%; height: 100%;
      background: rgba(255,255,255,0.7);
      display: flex;
      justify-content: center;
      align-items: center;
      z-index: 9999;
    }

    /* Spinner */
     .search-results-wrapper .spinner,
     .hotel_availability_data .spinner{
      min-width: 40px;
      min-height: 40px;
      border: 4px solid #ddd;
      border-top: 4px solid rgb(26, 46, 126);
      border-radius: 50%;
      animation: spin 1s linear infinite;
      overflow: hidden;
    }

    .hotel_availability_data .container {
        max-width: 1400px;
        margin: 0 auto;
        background: rgba(255, 255, 255, 0.95);
        border-radius: 20px;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
        padding: 30px;
        backdrop-filter: blur(10px);
    }

    .hotel_availability_data h1 {
        text-align: center;
        color: #2c3e50;
        margin-bottom: 30px;
        font-size: 2.5rem;
        font-weight: 700;
        background: linear-gradient(45deg, #667eea, #764ba2);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }

     .hotel_availability_data .table-wrapper {
        overflow-x: auto;
        border-radius: 15px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }

     .hotel_availability_data table {
        width: 100%;
        border-collapse: collapse;
        background: white;
        font-size: 14px;
    }

     .hotel_availability_data thead {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
    }

     .hotel_availability_data th {
        padding: 18px 15px;
        text-align: left;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        font-size: 12px;
        position: sticky;
        top: 0;
        z-index: 10;
    }

     .hotel_availability_data tbody tr {
        transition: all 0.3s ease;
        border-bottom: 1px solid #e8ecf4;
    }

     .hotel_availability_data tbody tr:hover {
        background: linear-gradient(90deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }

     .hotel_availability_data tbody tr:nth-child(even) {
        background-color: #f8f9fc;
    }

     .hotel_availability_data tbody tr:nth-child(even):hover {
        background: linear-gradient(90deg, rgba(102, 126, 234, 0.08) 0%, rgba(118, 75, 162, 0.08) 100%);
    }

     .hotel_availability_data td {
        padding: 16px 15px;
        vertical-align: top;
        line-height: 1.5;
    }

     .hotel_availability_data .status-badge {
        padding: 6px 12px;
        border-radius: 20px;
        font-weight: 600;
        font-size: 11px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

     .hotel_availability_data .status-ok{
        background: linear-gradient(135deg, #28a745, #20c997);
        color: white;
    }

      .hotel_availability_data td button.book-hotel {
        background: linear-gradient(135deg, #28a745, #20c997);
        color: white;
        padding: 6px 12px;
        border-radius: 20px;
        font-weight: 600;
        font-size: 11px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }


     .hotel_availability_data .status-rq {
        background: linear-gradient(135deg, #ffc107, #fd7e14);
        color: white;
    }

     .hotel_availability_data .price-tag {
        font-weight: 700;
        font-size: 16px;
        color: #2c3e50;
        background: linear-gradient(135deg, #f8f9fa, #e9ecef);
        padding: 8px 12px;
        border-radius: 8px;
        display: inline-block;
    }

     .hotel_availability_data .board-type {
        background: linear-gradient(135deg, #17a2b8, #6f42c1);
        color: white;
        padding: 4px 8px;
        border-radius: 15px;
        font-size: 11px;
        font-weight: 600;
    }

     .hotel_availability_data .room-info {
        display: flex;
        flex-direction: column;
        gap: 4px;
    }

     .hotel_availability_data .room-name {
        font-weight: 600;
        color: #2c3e50;
    }

     .hotel_availability_data .room-category {
        color: #6c757d;
        font-size: 12px;
    }

     .hotel_availability_data .occupancy-info {
        background: #f8f9fc;
        padding: 8px;
        border-radius: 8px;
        font-size: 12px;
    }

     .hotel_availability_data .refundable-badge {
  
        color: red;
        font-size: 10px;
        font-weight: 600;
        margin-left: 8px;
    }

     .hotel_availability_data .loading {
        text-align: center;
        padding: 40px;
        color: #6c757d;
        font-size: 18px;
    }

     .hotel_availability_data .loading::after {
        content: '...';
        animation: dots 1.5s steps(5, end) infinite;
    }

    .hotel_availability_data .status{
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      gap:10px
    }

    @keyframes dots {
        0%, 20% { color: rgba(0,0,0,0); text-shadow: .25em 0 0 rgba(0,0,0,0), .5em 0 0 rgba(0,0,0,0); }
        40% { color: #6c757d; text-shadow: .25em 0 0 rgba(0,0,0,0), .5em 0 0 rgba(0,0,0,0); }
        60% { text-shadow: .25em 0 0 #6c757d, .5em 0 0 rgba(0,0,0,0); }
        80%, 100% { text-shadow: .25em 0 0 #6c757d, .5em 0 0 #6c757d; }
    }



    .booking_modal .open-modal-btn {
        background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
        color: white;
        border: none;
        padding: 18px 40px;
        border-radius: 12px;
        font-size: 1.2rem;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s ease;
        box-shadow: 0 10px 25px rgba(79, 70, 229, 0.3);
    }

    .booking_modal .open-modal-btn:hover {
        transform: translateY(-3px);
        box-shadow: 0 15px 35px rgba(79, 70, 229, 0.4);
    }

    /* Modal Styles */
    .booking_modal {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.7);
        display: none;
        align-items: center;
        justify-content: center;
        z-index: 1000;
        padding: 20px;
        justify-content:center;
    }

    .booking_modal .modal-container {
        background: white;
        border-radius: 15px;
        box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
        max-width: 1000px;
        width: 100%;
        max-height: fit-content;
        overflow: hidden;
        transform: scale(0.7);
        opacity: 0;
        transition: all 0.3s ease;
    }


    .booking_modal.active  {
        display: flex;
    }
    .booking_modal.active .modal-container {
        transform: scale(1);
        opacity: 1;
    }

    .booking_modal .modal-header {
        background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
        color: white;
        padding: 25px 30px;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .booking_modal .modal-title {
        font-size: 1.8rem;
        font-weight: 300;
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .booking_modal .close-modal {
        background: rgba(255, 255, 255, 0.2);
        border: none;
        color: white;
        padding: 8px 12px;
        border-radius: 8px;
        cursor: pointer;
        font-size: 1.2rem;
        transition: all 0.3s ease;
    }

    .booking_modal .close-modal:hover {
        background: rgba(255, 255, 255, 0.3);
        transform: scale(1.1);
    }

    .booking_modal .modal-body {
        padding: 30px;
        max-height: calc(90vh - 140px);
        overflow-y: auto;
    }

    .booking_modal .section {
        margin-bottom: 30px;
    }

    .booking_modal .section-header {
        background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
        padding: 20px;
        border-radius: 10px 10px 0 0;
        border: 1px solid #e5e7eb;
        border-bottom: none;
    }

    .booking_modal .section-title {
        font-size: 1.3rem;
        color: #1f2937;
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .booking_modal .section-content {
        border: 1px solid #e5e7eb;
        border-radius: 0 0 10px 10px;
        padding: 25px;
        background: #fafafa;
    }

    .booking_modal .passenger-card {
        border: 2px solid #e5e7eb;
        border-radius: 12px;
        margin-bottom: 20px;
        overflow: hidden;
        transition: all 0.3s ease;
        background: white;
    }

    .booking_modal .passenger-card.primary {
        border-color: #f59e0b;
        box-shadow: 0 5px 15px rgba(245, 158, 11, 0.2);
    }

    .booking_modal .passenger-card:hover {
        border-color: #4f46e5;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    }

    .booking_modal .passenger-header {
        background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
        color: white;
        padding: 12px 20px;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .booking_modal .passenger-header.primary {
        background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    }

    .booking_modal .passenger-number {
        font-weight: 600;
        font-size: 1rem;
    }

    .booking_modal .remove-passenger {
        background: rgba(255, 255, 255, 0.2);
        border: none;
        color: white;
        padding: 6px 12px;
        border-radius: 5px;
        cursor: pointer;
        font-size: 0.85rem;
        transition: all 0.3s ease;
    }

    .booking_modal .remove-passenger:hover {
        background: rgba(255, 255, 255, 0.3);
        transform: scale(1.05);
    }

    .booking_modal .passenger-content {
        padding: 20px;
    }

    .booking_modal .form-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 15px;
        margin-bottom: 15px;
    }

    .booking_modal .basic-grid {
        display: grid;
        grid-template-columns: 1fr 1fr 100px;
        gap: 15px;
        margin-bottom: 15px;
    }

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

    .booking_modal .form-group label {
        font-weight: 600;
        color: #374151;
        margin-bottom: 6px;
        font-size: 0.85rem;
    }

    .booking_modal .form-group input,
    .booking_modal .form-group select {
        padding: 10px 14px;
        border: 2px solid #e5e7eb;
        border-radius: 6px;
        font-size: 0.9rem;
        transition: all 0.3s ease;
        background: white;
    }

    .booking_modal .form-group input:focus,
    .booking_modal .form-group select:focus {
        outline: none;
        border-color: #4f46e5;
        box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
    }

    .booking_modal .required {
        color: #ef4444;
    }

    .booking_modal .add-passenger-btn {
        background: linear-gradient(135deg, #10b981 0%, #059669 100%);
        color: white;
        border: none;
        padding: 12px 25px;
        border-radius: 8px;
        font-size: 0.95rem;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        gap: 8px;
        margin: 15px 0;
    }

    .booking_modal .add-passenger-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
    }

    .booking_modal .modal-footer {
        padding: 20px 30px;
        background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
        border-top: 1px solid #e5e7eb;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .booking_modal .submit-btn {
        background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
        color: white;
        border: none;
        padding: 12px 30px;
        border-radius: 8px;
        font-size: 1rem;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .booking_modal .submit-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(79, 70, 229, 0.3);
    }

    .booking_modal .cancel-btn {
        background: #6b7280;
        color: white;
        border: none;
        padding: 12px 25px;
        border-radius: 8px;
        font-size: 1rem;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .booking_modal .cancel-btn:hover {
        background: #4b5563;
        transform: translateY(-2px);
    }

    .booking_modal .holder-badge {
        margin-top: 12px;
        padding: 10px;
        background: #fef3c7;
        border-radius: 6px;
        border-left: 4px solid #f59e0b;
    }

    .booking_modal .holder-badge strong {
        color: #92400e;
        font-size: 0.9rem;
    }

    .booking_modal .holder-badge p {
        margin: 3px 0 0 0;
        color: #92400e;
        font-size: 0.8rem;
    }

    .booking_modal .additional-passenger {
        background: #f8f9fa;
    }

    .booking_modal .additional-passenger .passenger-content {
        padding: 15px 20px;
    }

        .booking_success {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.5);
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 9999;
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s ease-out;
        }

        .booking_success.show {
            opacity: 1;
            visibility: visible;
        }

        .booking_success * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        .booking_success .modal-container {
            background: white;
            border-radius: 12px;
            box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
            max-width: 900px;
            width: 90%;
            max-height: 90vh;
            overflow-y: auto;
            position: relative;
            transform: scale(0.95);
            transition: transform 0.3s ease-out;
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
        }

        .booking_success.show .modal-container {
            transform: scale(1);
        }

        .booking_success .modal-header {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            padding: 24px;
            border-radius: 12px 12px 0 0;
            text-align: center;
            position: relative;
        }

        .booking_success .modal-header h1 {
            font-size: 28px;
            font-weight: 600;
            margin-bottom: 8px;
        }

        .booking_success .modal-header p {
            opacity: 0.9;
            font-size: 16px;
        }

        .booking_success .success-icon {
            background: rgba(255, 255, 255, 0.2);
            border-radius: 50%;
            width: 60px;
            height: 60px;
            margin: 0 auto 16px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 24px;
        }

        .booking_success .modal-content {
            padding: 24px;
        }

        .booking_success .section {
            margin-bottom: 32px;
        }

        .booking_success .section-title {
            font-size: 20px;
            font-weight: 600;
            color: #374151;
            margin-bottom: 16px;
            padding-bottom: 8px;
            border-bottom: 2px solid #e5e7eb;
        }

        .booking_success .info-table {
            width: 100%;
            border-collapse: collapse;
            background: white;
            border-radius: 8px;
            overflow: hidden;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
            margin-bottom: 16px;
        }

        .booking_success .info-table th,
        .booking_success .info-table td {
            padding: 12px 16px;
            text-align: left;
            border-bottom: 1px solid #e5e7eb;
        }

        .booking_success .info-table th {
            background-color: #f9fafb;
            font-weight: 600;
            color: #374151;
            font-size: 14px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .booking_success .info-table td {
            color: #6b7280;
            font-size: 14px;
        }

        .booking_success .info-table tr:last-child th,
        .booking_success .info-table tr:last-child td {
            border-bottom: none;
        }

        .booking_success .info-table tr:hover {
            background-color: #f9fafb;
        }

        .booking_success .guests-table {
            width: 100%;
            border-collapse: collapse;
            background: white;
            border-radius: 8px;
            overflow: hidden;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
        }

        .booking_success .guests-table th,
        .booking_success .guests-table td {
            padding: 12px 10px;
            text-align: left;
            border-bottom: 1px solid #e5e7eb;
            font-size: 13px;
        }

        .booking_success .guests-table th {
            background-color: #f9fafb;
            font-weight: 600;
            color: #374151;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .booking_success .guests-table td {
            color: #6b7280;
        }

        .booking_success .guests-table tr:last-child td {
            border-bottom: none;
        }

        .booking_success .guests-table tr:hover {
            background-color: #f9fafb;
        }

        .booking_success .status-badge {
            background: #10b981;
            color: white;
            padding: 4px 12px;
            border-radius: 20px;
            font-size: 12px;
            font-weight: 600;
            text-transform: uppercase;
        }

        .booking_success .price-highlight {
            font-size: 18px;
            font-weight: 700;
            color: #059669;
        }

        .booking_success .close-btn {
            position: absolute;
            top: 20px;
            right: 20px;
            background: rgba(255, 255, 255, 0.2);
            border: none;
            color: white;
            width: 32px;
            height: 32px;
            border-radius: 50%;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 18px;
            transition: background-color 0.2s;
        }

        .booking_success .close-btn:hover {
            background: rgba(255, 255, 255, 0.3);
        }

        .booking_success .modal-footer {
            padding: 24px;
            background: #f9fafb;
            border-top: 1px solid #e5e7eb;
            text-align: center;
            border-radius: 0 0 12px 12px;
        }

        .booking_success .modal-footer button {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            border: none;
            padding: 12px 24px;
            border-radius: 6px;
            font-size: 16px;
            font-weight: 600;
            cursor: pointer;
            transition: transform 0.2s;
        }

        .booking_success .modal-footer button:hover {
            transform: translateY(-1px);
        }

        @media (max-width: 768px) {
          
        }







    @media (max-width: 768px) {
         .hotel_availability_data .container {
            padding: 15px;
            margin: 10px;
        }
        
         .hotel_availability_data h1 {
            font-size: 1.8rem;
            margin-bottom: 20px;
        }
        
         .hotel_availability_data th,  
         .hotel_availability_data td {
            padding: 12px 8px;
            font-size: 12px;
        }
        
         .hotel_availability_data .price-tag {
            font-size: 14px;
            padding: 6px 10px;
        }

       .search-results-wrapper .hotel-card {
        flex: 0 0 49%;
        max-width: 49%;
      }

      .booking_modal .modal-container {
            margin: 10px;
            max-height: 95vh;
        }
        
        .booking_modal .form-grid,
        .booking_modal .basic-grid {
            grid-template-columns: 1fr;
        }
        
        .booking_modal .modal-header {
            padding: 20px;
        }
        
       .booking_modal .modal-body {
            padding: 20px;
        }

        .booking_modal .modal-footer {
            padding: 15px 20px;
            flex-direction: column;
            gap: 10px;
        }

        .booking_modal .modal-footer button {
            width: 100%;
        }

        .booking_success .modal-container {
            width: 95%;
            margin: 10px;
        }
        
        .booking_success .guests-table {
            font-size: 11px;
        }
        
        .booking_success .guests-table th,
        .booking_success .guests-table td {
            padding: 8px 6px;
        }

    }