/* Hospital Listing Styles */
.page-title {
    margin-bottom: 20px;
    font-size: 32px;
    color: #333;
}

.hospital-list {
    margin-top: 30px;
}

.hospital-card {
    background-color: white;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    border: 1px solid #eaeaea;
}

.hospital-name {
    font-size: 24px;
    margin-bottom: 10px;
    color: #333;
}

.hospital-address {
    margin-bottom: 15px;
    color: #555;
}

.hours-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.hour-badge {
    background-color: #eadacd;
    border-radius: 20px;
    padding: 8px 15px;
    font-size: 14px;
    display: inline-block;
}

.hospital-description {
    margin-bottom: 25px;
    line-height: 1.6;
}

.features-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.feature-badge {
    background-color: #f5f5f5;
    border-radius: 20px;
    padding: 8px 15px;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.feature-badge i {
    font-size: 16px;
}

.feature-positive {
    background-color: #eadacd;
}

.feature-negative {
    background-color: #f5f5f5;
    color: #777;
}

.get-directions-btn {
    background-color: #d4c0a9; /* Theme color, slightly darker for button contrast */
    color: white;
    border: none;
    border-radius: 4px;
    padding: 12px 20px;
    cursor: pointer;
    width: 100%;
    font-size: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    transition: background-color 0.3s;
    text-decoration: none;
}

.get-directions-btn:hover {
    background-color: #c4b095; /* Darker shade for hover state */
    color: white;
    text-decoration: none;
}

/* Search Container */
.search-container {
    margin: 20px 0 30px 0;
    position: relative;
}

.search-wrapper {
    display: flex;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.search-input {
    width: 100%;
    padding: 12px 15px;
    border: none;
    font-size: 16px;
    outline: none;
}

.search-icon {
    display: flex;
    align-items: center;
    padding: 0 15px;
    background-color: #eadacd;
    color: #333;
}

.clear-button {
    position: absolute;
    right: 60px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #888;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.clear-button:hover {
    color: #333;
}

.results-info {
    margin-top: 10px;
    font-size: 14px;
    color: #666;
}

#no-results-message {
    text-align: center;
    padding: 30px;
    background-color: #f8f8f8;
    border-radius: 8px;
    margin: 20px 0;
    display: none;
    color: #666;
}

/* Hours table container and responsive styles */
.hours-table-container {
    width: 100%;
    margin-bottom: 15px;
}

/* Hours table styles */
.hours-table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
    font-size: 14px;
    table-layout: fixed;
    min-width: 0 !important; /* Override the min-width from main.css */
}

/* Force the table to be responsive */
.hours-table-container .hours-table {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
}

.hours-table th, .hours-table td {
    border: 1px solid #e0e0e0;
    padding: 8px;
    text-align: center;
}

.hours-table th {
    background-color: #eadacd;
    font-weight: 500;
}

.hours-table td:first-child {
    text-align: left;
    font-weight: 500;
}

.hours-table .open-time {
    color: #d4c0a9;
    font-weight: bold;
    font-size: 16px;
}

.hours-table .closed-time {
    color: #757575;
}

/* Special notes and phone styling */
.special-notes, .hospital-phone {
    margin-top: 5px;
    margin-bottom: 15px;
    font-size: 13px;
    color: #555;
}

.special-notes {
    font-style: italic;
}

.special-notes i, .hospital-phone i {
    margin-right: 5px;
}

@media (max-width: 768px) {
    .hours-row, .features-row {
        gap: 8px;
    }
    
    .hour-badge, .feature-badge {
        font-size: 12px;
        padding: 6px 12px;
    }
    
    .hospital-name {
        font-size: 20px;
    }
    
    .search-input {
        font-size: 14px;
        padding: 10px 12px;
    }
    
    .clear-button {
        right: 50px;
    }
    
    .hours-table {
        font-size: 13px;
    }
    
    .hours-table th, .hours-table td {
        padding: 6px 4px;
    }
}

@media (max-width: 576px) {
    .hours-table {
        font-size: 11px;
    }
    
    .hours-table th, .hours-table td {
        padding: 3px 1px;
        width: auto !important; /* Allow cells to size naturally */
    }
    
    .hours-table .open-time {
        font-size: 14px;
    }
    
    /* Override any styles from main.css that might cause horizontal scrolling */
    .hours-table-container {
        margin-left: 0;
        margin-right: 0;
        width: 100%;
        padding: 0;
        overflow-x: visible !important;
    }
    
    /* Ensure first column doesn't take too much space */
    .hours-table td:first-child {
        width: 30% !important;
    }
    
    /* Make day columns equal width */
    .hours-table th:not(:first-child),
    .hours-table td:not(:first-child) {
        width: 10% !important;
    }
}
