/* ============================================
   HOTEL CARDS STYLING
   ============================================ */

/* Prevent pink/purple browser default focus states on booking form buttons */
.mb-booking-form button:focus,
.mb-booking-form button:active,
.mb-booking-form a:focus,
.mb-booking-form a:active {
    outline: none !important;
}

.mb-hotel-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
    margin-top: 30px;
}

@media (min-width: 768px) {
    .mb-hotel-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1200px) {
    .mb-hotel-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.mb-hotel-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 3px solid transparent;
}

.mb-hotel-card:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.mb-hotel-card.selected {
    border-color: #ff9800;
    box-shadow: 0 6px 20px rgba(255, 152, 0, 0.3);
}

.mb-hotel-image {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
    background-color: #e9ecef;
    position: relative;
}

/* Hotel Info Button */
.mb-hotel-info-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.98);
    border: none;
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 0.95em;
    font-weight: 600;
    color: #0099c5;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
    z-index: 10;
}

.mb-hotel-info-btn svg {
    flex-shrink: 0;
}

.mb-hotel-info-btn span {
    margin-left: 2px;
}

.mb-hotel-info-btn:hover {
    background: #0099c5;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 153, 197, 0.4);
}

.mb-hotel-info-btn:hover svg circle {
    fill: white;
}

.mb-hotel-info-btn:hover svg text {
    fill: #0099c5;
}

.mb-hotel-info-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 153, 197, 0.3);
    background: #0099c5;
    color: white;
}

.mb-hotel-info-btn:focus svg circle {
    fill: white;
}

.mb-hotel-info-btn:focus svg text {
    fill: #0099c5;
}

.mb-hotel-info-btn:active {
    background: #007a9e;
    color: white;
    transform: scale(0.98);
}

.mb-hotel-info-btn:active svg circle {
    fill: white;
}

.mb-hotel-info-btn:active svg text {
    fill: #007a9e;
}

.mb-hotel-content {
    padding: 20px;
}

.mb-hotel-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.mb-hotel-name {
    margin: 0;
    font-size: 1.3em;
    font-weight: 700;
    color: #212529;
}

.mb-hotel-rating {
    font-size: 1em;
    color: #ffc107;
    white-space: nowrap;
    display: flex;
    gap: 3px;
    align-items: center;
}

.mb-hotel-rating i.fas.fa-star,
.mb-hotel-rating i.fa-star {
    color: #ffa500;
    font-style: normal;
}

.mb-hotel-rating i.far.fa-star {
    color: #ddd;
    font-style: normal;
}

/* Ensure Font Awesome loads properly */
.mb-hotel-rating i::before,
.mb-hotel-modal-rating i::before {
    font-family: "Font Awesome 5 Free" !important;
    font-weight: 900;
}

.mb-hotel-description {
    color: #6c757d;
    font-size: 0.95em;
    line-height: 1.5;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mb-hotel-amenities {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.mb-amenity {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    background: #f8f9fa;
    border-radius: 20px;
    font-size: 0.85em;
    color: #495057;
}

.mb-hotel-select-btn {
    width: 100%;
    padding: 14px;
    background: #0099c5;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 15px;
}

.mb-hotel-select-btn:hover {
    background: #007a9e;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 122, 158, 0.3);
}

.mb-hotel-card.selected .mb-hotel-select-btn {
    background: #ff9800;
}

.mb-hotel-card.selected .mb-hotel-select-btn:hover {
    background: #f57c00;
}

/* Empty state styling */
.mb-error-message {
    text-align: center;
    padding: 40px;
    color: #6c757d;
    font-size: 1.1em;
}

/* Hotel Info Modal - Two Column Layout */
.mb-hotel-info-modal-content {
    background: white;
    border-radius: 12px;
    max-width: 1000px;
    width: 92%;
    max-height: 85vh;
    min-height: 600px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

/* Thinner header with bigger title */
.mb-hotel-info-modal-content .mb-info-modal-header {
    padding: 15px 20px;
    background: #0099c5;
    border-radius: 12px 12px 0 0;
}

.mb-hotel-info-modal-content .mb-info-modal-title {
    font-size: 1.1em;
    font-weight: 700;
}

.mb-hotel-info-modal-body-grid {
    display: flex;
    flex-direction: row;
    min-height: 500px;
}

/* Left section with blue background - fixed width */
.mb-hotel-modal-left-section {
    background: #0099c5;
    padding: 40px 30px;
    flex: 0 0 380px;
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Hotel title section - at top of blue area */
.mb-hotel-modal-title-section {
    margin-bottom: 30px;
}

.mb-hotel-modal-name {
    font-size: 2em;
    font-weight: 700;
    color: white;
    margin: 0 0 12px 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    line-height: 1.2;
}

.mb-hotel-modal-rating {
    font-size: 1.6em;
    color: #ffc107;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    display: flex;
    gap: 4px;
    align-items: center;
}

.mb-hotel-modal-rating i.fas.fa-star,
.mb-hotel-modal-rating i.fa-star {
    color: #ffa500;
    font-style: normal;
}

.mb-hotel-modal-rating i.far.fa-star {
    color: rgba(255, 255, 255, 0.4);
    font-style: normal;
    font-weight: 400;
}

/* Images wrapper - stacked vertically below title */
.mb-hotel-modal-images-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mb-hotel-modal-image {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    border: 4px solid white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.mb-hotel-modal-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Right section with white background - takes remaining space */
.mb-hotel-modal-info {
    background: white;
    padding: 40px;
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.mb-hotel-modal-description {
    color: #666;
    line-height: 1.7;
    margin-bottom: 25px;
    font-size: 0.95em;
}

.mb-hotel-modal-amenities-section {
    margin-top: auto;
    padding-top: 25px;
}

.mb-hotel-modal-amenities-section h3 {
    font-size: 1.3em;
    font-weight: 700;
    color: #212529;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mb-modal-amenities-grid {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.mb-modal-amenity-item {
    display: flex;
    align-items: center;
    gap: 15px;
    color: #333;
    padding: 8px 0;
}

.mb-modal-amenity-item i {
    font-size: 2em;
    color: #0099c5;
    width: 40px;
    text-align: center;
    flex-shrink: 0;
}

.mb-modal-amenity-item span {
    font-size: 1.05em;
    font-weight: 500;
    line-height: 1.4;
}

/* Modal Footer Buttons */
.mb-hotel-modal-footer {
    display: flex;
    gap: 15px;
    padding: 20px 30px;
    background: white;
    border-top: 2px solid #e9ecef;
}

.mb-hotel-modal-cancel-btn,
.mb-hotel-modal-select-btn {
    flex: 1;
    padding: 14px 20px;
    font-weight: 700;
    font-size: 0.95em;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid #0099c5;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mb-hotel-modal-cancel-btn {
    background: white;
    color: #0099c5;
}

.mb-hotel-modal-cancel-btn:hover {
    background: #f8f9fa;
}

.mb-hotel-modal-cancel-btn:focus,
.mb-hotel-modal-cancel-btn:active {
    outline: none !important;
    background: #e9ecef;
}

.mb-hotel-modal-select-btn {
    background: #0099c5;
    color: white;
}

.mb-hotel-modal-select-btn:hover {
    background: #007a9e;
    border-color: #007a9e;
}

.mb-hotel-modal-select-btn:focus,
.mb-hotel-modal-select-btn:active {
    outline: none !important;
    background: #007a9e;
    border-color: #007a9e;
}

/* Fix close button - clean X with no border */
.mb-hotel-info-modal-content .mb-info-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: transparent;
    border: none;
    color: white;
    font-size: 32px;
    font-weight: 300;
    font-family: Arial, sans-serif;
    width: auto;
    height: auto;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding: 0 !important;
    margin: 0 !important;
}

.mb-hotel-info-modal-content .mb-info-modal-close span {
    display: block;
}

.mb-hotel-info-modal-content .mb-info-modal-close:hover {
    opacity: 0.7;
    transform: scale(1.1);
}

.mb-hotel-info-modal-content .mb-info-modal-close:focus {
    outline: none;
}

.mb-hotel-info-modal-content .mb-info-modal-close:active {
    opacity: 0.5;
    transform: scale(0.95);
}

/* Responsive */
@media (max-width: 968px) {
    .mb-hotel-info-modal-body-grid {
        flex-direction: column;
    }
    
    .mb-hotel-modal-left-section {
        flex: 0 0 auto;
        padding: 30px 25px;
    }
    
    .mb-hotel-modal-title-section {
        text-align: center;
        margin-bottom: 25px;
    }
    
    .mb-hotel-modal-info {
        padding: 30px 25px;
    }
    
    .mb-hotel-modal-footer {
        flex-direction: column;
    }
}

