/**
 * NAX Hospital Directory - Minimal CSS
 * เน้นความเร็วในการโหลด ใช้ CSS เท่าที่จำเป็น
 */

/* Container */
.nax-hospital-listing,
.nax-hospital-single {
    max-width: 100%;
    margin: 0 auto;
}

/* Grid Layout - แสดงรายการ */
.nax-hospital-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.nax-hospital-item {
    border: 1px solid #e0e0e0;
    padding: 20px;
    border-radius: 4px;
    background: #fff;
    transition: box-shadow 0.2s;
}

.nax-hospital-item:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Typography */
.nax-hospital-title {
    margin: 0 0 12px;
    font-size: 1.25em;
    line-height: 1.4;
}

.nax-hospital-title a {
    color: #2271b1;
    text-decoration: none;
}

.nax-hospital-title a:hover {
    text-decoration: underline;
}

/* Services List */
.nax-hospital-services ul,
.nax-services-list {
    margin: 10px 0;
    padding-left: 20px;
    list-style: disc;
}

.nax-hospital-services li,
.nax-services-list li {
    margin: 4px 0;
}

/* Contact Info */
.nax-hospital-address,
.nax-hospital-phone {
    margin: 8px 0;
    font-size: 0.95em;
    color: #444;
}

.nax-hospital-phone a {
    color: #2271b1;
    text-decoration: none;
}

/* Buttons */
.nax-hospital-actions {
    margin-top: 15px;
    display: flex;
    gap: 10px;
}

.nax-btn {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.9em;
    text-align: center;
    cursor: pointer;
    border: 1px solid;
    transition: all 0.2s;
}

.nax-btn-primary {
    background: #2271b1;
    color: #fff;
    border-color: #2271b1;
}

.nax-btn-primary:hover {
    background: #135e96;
    border-color: #135e96;
    color: #fff;
}

.nax-btn-secondary {
    background: #fff;
    color: #2271b1;
    border-color: #2271b1;
}

.nax-btn-secondary:hover {
    background: #f0f6fc;
}

.nax-btn-lg {
    padding: 12px 24px;
    font-size: 1em;
}

/* Single Hospital Detail */
.nax-hospital-single {
    padding: 20px 0;
}

.nax-hospital-header {
    margin-bottom: 30px;
    text-align: center;
}

.nax-hospital-name {
    font-size: 2em;
    margin: 0 0 15px;
    color: #1e1e1e;
}

/* Service Badges */
.nax-hospital-services-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin: 15px 0;
}

.nax-service-badge {
    display: inline-block;
    padding: 6px 16px;
    background: #2271b1;
    color: #fff;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: 500;
}

.nax-hospital-nav {
    margin: 20px 0;
}

/* Content Sections */
.nax-hospital-important,
.nax-hospital-services-detail,
.nax-hospital-service-info,
.nax-hospital-contact,
.nax-hospital-description {
    background: #f9f9f9;
    border-left: 4px solid #2271b1;
    padding: 20px;
    margin: 20px 0;
}

.nax-hospital-important {
    background: #fff3cd;
    border-color: #ffc107;
}

.nax-hospital-important h2 {
    color: #856404;
    margin-top: 0;
}

.nax-hospital-single h2 {
    font-size: 1.5em;
    margin: 0 0 15px;
}

.nax-hospital-single h3 {
    font-size: 1.2em;
    margin: 15px 0 10px;
}

.nax-hospital-single p {
    line-height: 1.6;
    margin: 10px 0;
}

/* Contact Section */
.nax-hospital-contact {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 25px;
    margin: 20px 0;
}

.nax-contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 15px;
}

.nax-contact-item {
    display: flex;
    gap: 12px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 6px;
    border-left: 3px solid #2271b1;
}

.nax-contact-icon {
    font-size: 1.5em;
    flex-shrink: 0;
}

.nax-contact-content {
    flex: 1;
}

.nax-contact-content strong {
    display: block;
    margin-bottom: 5px;
    color: #1e1e1e;
}

.nax-contact-content p {
    margin: 3px 0;
    color: #444;
}

.nax-contact-content a {
    color: #2271b1;
    text-decoration: none;
}

.nax-contact-content a:hover {
    text-decoration: underline;
}

/* Highlight Boxes */
.nax-highlight-box,
.nax-cta-box {
    margin: 15px 0;
    padding: 15px 20px;
    border-radius: 6px;
}

.nax-highlight-box {
    background: #e7f3ff;
    border-left: 4px solid #2271b1;
}

.nax-cta-box {
    background: #f0f6fc;
    border-left: 4px solid #00a32a;
}

.nax-hotline {
    font-size: 1.2em;
    font-weight: bold;
    text-align: center;
    margin: 10px 0 0;
}

.nax-hotline a {
    color: #00a32a;
    text-decoration: none;
}

/* Service Sections */
.nax-service-intro {
    font-style: italic;
    color: #666;
    margin-bottom: 20px;
}

.nax-service-sections {
    display: grid;
    gap: 20px;
}

.nax-service-section {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
}

.nax-service-section h3 {
    margin-top: 0;
    color: #2271b1;
    border-bottom: 2px solid #f0f0f1;
    padding-bottom: 10px;
}

.nax-service-content ul {
    margin: 10px 0;
    padding-left: 25px;
}

.nax-service-content li {
    margin: 5px 0;
    line-height: 1.6;
}

/* Image */
.nax-hospital-image {
    margin: 20px 0;
}

.nax-hospital-image img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

/* No Results */
.nax-no-results {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    font-size: 1.1em;
}

/* Responsive */
@media (max-width: 768px) {
    .nax-hospital-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .nax-hospital-actions {
        flex-direction: column;
    }

    .nax-hospital-name {
        font-size: 1.5em;
    }

    .nax-hospital-important,
    .nax-hospital-services-detail,
    .nax-hospital-service-info,
    .nax-hospital-contact,
    .nax-hospital-description {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .nax-hospital-item {
        padding: 15px;
    }

    .nax-btn {
        padding: 6px 12px;
        font-size: 0.85em;
    }
}
