/* Hero Section */
.hero-wrapper { 
    position: relative; 
    margin-bottom: 3rem; 
}

.hero-image { 
    position: relative; 
    height: 400px; 
    border-radius: 16px; 
    overflow: hidden; 
}

.hero-image img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
}

.hero-overlay { 
    position: absolute; 
    inset: 0; 
    background: rgba(0,0,0,0.6); 
}

.hero-content { 
    position: absolute; 
    top: 50%; 
    left: 50px; 
    transform: translateY(-50%); 
    z-index: 2; 
}

.hero-title { 
    font-size: 3.5rem; 
    font-weight: 800; 
    color: white; 
    line-height: 1.1; 
    margin: 0; 
}

.hero-subtitle { 
    font-size: 1.2rem; 
    color: rgba(255,255,255,0.9); 
    margin-top: 1rem; 
}

/* Info Card Overlay */
.info-card-overlay { 
    position: absolute; 
    bottom: -50px; 
    left: 50%; 
    transform: translateX(-50%); 
    width: 90%; 
    max-width: 900px; 
    z-index: 3; 
    background: white; 
    border-radius: 16px; 
    padding: 2rem; 
    box-shadow: 0 10px 40px rgba(0,0,0,0.1); 
}

.info-grid { 
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    gap: 2rem; 
}

.info-item { 
    display: flex; 
    align-items: center; 
    gap: 1rem; 
}

.info-icon { 
    width: 50px; 
    height: 50px; 
    background: #0891b2;
    border-radius: 12px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    color: white; 
    font-size: 24px; 
    flex-shrink: 0;
}

.info-content { 
    flex: 1; 
    min-width: 0;
}

.info-label { 
    display: block; 
    font-size: 0.85rem; 
    color: #6c757d; 
    margin-bottom: 4px; 
}

.info-value { 
    display: block; 
    font-size: 1.1rem; 
    font-weight: 600; 
    color: #1a1a1a; 
}

/* Section Header */
.section-header { 
    display: flex; 
    justify-content: space-between; 
    align-items: flex-start; 
    margin-bottom: 2rem; 
    margin-top: 4rem; 
}

.section-badge { 
    display: inline-block; 
    padding: 6px 16px; 
    background: #0891b2;
    color: white; 
    border-radius: 20px; 
    font-size: 0.85rem; 
    font-weight: 600; 
    margin-bottom: 0.5rem; 
}

.section-title { 
    font-size: 2rem; 
    font-weight: 700; 
    color: #1a1a1a; 
    margin: 0.5rem 0; 
}

.section-description { 
    color: #6c757d; 
    font-size: 1rem; 
    margin-top: 0.5rem; 
}

.section-actions { 
    display: flex; 
    gap: 1rem; 
    align-items: center; 
}

/* Back Button */
.btn-back {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 500;
    color: #495057;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-back:hover {
    border-color: #0891b2;
    background: #ecfeff;
    color: #0891b2;
}

/* Filter Dropdown */
.filter-dropdown { 
    position: relative; 
}

.filter-btn { 
    display: flex; 
    align-items: center; 
    gap: 8px; 
    padding: 12px 20px; 
    background: white; 
    border: 2px solid #e9ecef; 
    border-radius: 10px; 
    font-size: 0.95rem; 
    font-weight: 500; 
    color: #495057; 
    cursor: pointer; 
    transition: all 0.3s; 
}

.filter-btn:hover { 
    border-color: #0891b2;
    background: #f8f9fa; 
}

.filter-btn.active { 
    border-color: #0891b2;
    background: #ecfeff;
}

.dropdown-menu { 
    position: absolute; 
    top: 100%; 
    right: 0; 
    margin-top: 8px; 
    min-width: 220px; 
    background: white; 
    border-radius: 12px; 
    box-shadow: 0 4px 20px rgba(0,0,0,0.1); 
    padding: 8px; 
    z-index: 1000; 
    display: none; 
}

.dropdown-menu.show { 
    display: block; 
}

.dropdown-item { 
    display: flex; 
    align-items: center; 
    gap: 12px; 
    padding: 12px 16px; 
    color: #495057; 
    text-decoration: none; 
    border-radius: 8px; 
    transition: all 0.2s; 
    font-size: 0.95rem; 
}

.dropdown-item:hover { 
    background: #f8f9fa; 
    color: #0891b2;
}

.dropdown-item.active { 
    background: #0891b2;
    color: white; 
}

/* Refresh Button */
.btn-refresh { 
    width: 48px; 
    height: 48px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    background: white; 
    border: 2px solid #e9ecef; 
    border-radius: 10px; 
    color: #495057; 
    cursor: pointer; 
    transition: all 0.3s; 
    font-size: 20px; 
}

.btn-refresh:hover { 
    border-color: #0891b2;
    color: #0891b2;
    transform: rotate(90deg); 
}

.btn-refresh.spinning { 
    animation: spin 1s linear; 
}

@keyframes spin { 
    from { transform: rotate(0deg); } 
    to { transform: rotate(360deg); } 
}

/* Loading State */
.loading-state { 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    justify-content: center; 
    padding: 4rem 2rem; 
}

.spinner { 
    width: 50px; 
    height: 50px; 
    border: 4px solid #f3f3f3; 
    border-top: 4px solid #0891b2;
    border-radius: 50%; 
    animation: spin 1s linear infinite; 
}

.loading-state p { 
    margin-top: 1rem; 
    color: #6c757d; 
    font-size: 1rem; 
}

/* Error & Empty States */
.error-state, .empty-state { 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    justify-content: center; 
    padding: 4rem 2rem; 
    text-align: center; 
}

.error-state i, .empty-state i { 
    font-size: 4rem; 
    color: #dc3545; 
    margin-bottom: 1rem; 
}

.empty-state i { 
    color: #6c757d; 
}

.error-state h3, .empty-state h3 { 
    font-size: 1.5rem; 
    font-weight: 600; 
    margin-bottom: 0.5rem; 
}

.error-state p, .empty-state p { 
    color: #6c757d; 
    margin-bottom: 1.5rem; 
}

.btn-retry { 
    padding: 12px 24px; 
    background: #0891b2;
    color: white; 
    border: none; 
    border-radius: 10px; 
    font-weight: 600; 
    cursor: pointer; 
    transition: all 0.3s; 
}

.btn-retry:hover { 
    background: #0e7490;
    transform: translateY(-2px); 
    box-shadow: 0 4px 12px rgba(8, 145, 178, 0.3);
}

/* Summary Cards */
.summary-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.summary-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.summary-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    flex-shrink: 0;
}

.summary-content {
    flex: 1;
    min-width: 0;
}

.summary-label {
    display: block;
    font-size: 0.85rem;
    color: #6c757d;
    margin-bottom: 4px;
}

.summary-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
}

/* Hospitals Grid (for index page) */
.hospitals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.hospital-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.hospital-card:not(.disabled):hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

.hospital-card.disabled {
    opacity: 0.7;
}

.hospital-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.hospital-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.coming-soon-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #f59e0b;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.hospital-content {
    padding: 1.5rem;
}

.hospital-type-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: #0891b2;
    color: white;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.hospital-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1rem;
}

.hospital-info {
    margin-bottom: 1.5rem;
}

.info-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #64748b;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.info-row i {
    font-size: 1.125rem;
    color: #0891b2;
}

.btn-view-availability {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.875rem 1.5rem;
    background: #0891b2;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-view-availability:not(.disabled):hover {
    background: #0e7490;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(8, 145, 178, 0.3);
    color: white;
}

.btn-view-availability.disabled {
    background: #94a3b8;
    cursor: not-allowed;
}

/* Rooms Grid - 2 Cards per Row with Equal Heights */
.rooms-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

/* Enhanced Room Card Styles - Flat Design, No Gradient */
.room-card-new {
    background: white;
    border-radius: 12px;
    padding: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
    overflow: hidden;
    display: flex;
    flex-direction: row;
    min-height: 180px;
}

.room-card-new:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

/* Left Color Strip - Always Full Height */
.room-card-strip {
    display: flex;
}

.room-color-strip {
    width: 120px;
    min-width: 120px;
    background: #0891b2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.room-color-strip .strip-text {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    color: white;
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: 2px;
    text-align: center;
    padding: 1.5rem 0;
}

/* Card Content */
.room-card-content {
    flex: 1;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
}

.room-card-header {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f3f4f6;
}

.room-title-section h3 {
    font-weight: 700;
    color: #1f2937;
    margin: 0;
    line-height: 1.3;
    height: 1.625rem;
    white-space: nowrap;
    overflow: hidden;
    display: block;
}

/* Simple Info Rows */
.room-info-rows {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.info-row-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
}

.info-row-item i {
    font-size: 1.125rem;
    color: #0891b2;
    width: 20px;
    flex-shrink: 0;
}

.info-row-label {
    color: #6b7280;
    min-width: 140px;
}

.info-row-value {
    font-weight: 600;
    color: #1f2937;
    margin-left: auto;
}

.info-row-value.highlight-blue {
    color: #0891b2;
}

.info-row-value.highlight-green {
    color: #10b981;
}

.info-row-value.highlight-orange {
    color: #f59e0b;
}

.info-row-value.highlight-red {
    color: #ef4444;
}

/* Class Badge Colors - Solid, No Gradient */
.room-color-strip.kelas-utama { background: #8b5cf6; }
.room-color-strip.kelas-1 { background: #0891b2; }
.room-color-strip.kelas-2 { background: #10b981; }
.room-color-strip.kelas-3 { background: #f59e0b; }
.room-color-strip.icu { background: #ef4444; }
.room-color-strip.isolasi { background: #eab308; }
.room-color-strip.neoristi { background: #ec4899; }
.room-color-strip.other { background: #6b7280; }

/* Info Section */
.info-section { 
    margin-top: 3rem; 
}

.info-card-full { 
    background: white; 
    border-radius: 16px; 
    padding: 2rem; 
    box-shadow: 0 2px 8px rgba(0,0,0,0.08); 
}

.info-card-header { 
    display: flex; 
    align-items: center; 
    gap: 12px; 
    margin-bottom: 1.5rem; 
}

.info-card-header i { 
    font-size: 24px; 
    color: #0891b2;
}

.info-card-header h3 { 
    font-size: 1.25rem; 
    font-weight: 600; 
    margin: 0; 
}

.info-card-body ul { 
    list-style: none; 
    padding: 0; 
    margin: 0; 
}

.info-card-body li { 
    padding: 12px 0; 
    border-bottom: 1px solid #f0f0f0; 
    color: #495057; 
    line-height: 1.6; 
}

.info-card-body li:last-child { 
    border-bottom: none; 
}

.info-card-body li:before { 
    content: "✓"; 
    color: #0891b2;
    font-weight: bold; 
    margin-right: 12px; 
}

.hospital-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.hospital-info-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.hospital-info-item i {
    font-size: 1.5rem;
    color: #0891b2;
    margin-top: 0.25rem;
}

.hospital-info-item strong {
    display: block;
    color: #1e293b;
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
}

.hospital-info-item p {
    color: #64748b;
    margin: 0;
    font-size: 0.9rem;
}

/* Responsive - Tablet */
@media (max-width: 992px) {
    .summary-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .rooms-grid {
        grid-template-columns: 1fr;
    }

    .room-color-strip {
        width: 100px;
        min-width: 100px;
    }
    
    .info-grid { 
        grid-template-columns: 1fr; 
        gap: 1rem; 
    }
    
    .info-card-overlay {
        width: 95%;
        padding: 1.5rem;
    }
}

/* Responsive - Mobile */
@media (max-width: 768px) {
    /* Hero Wrapper */
    .hero-wrapper {
        margin-bottom: 0;
    }
    
    /* Hero Section Mobile */
    .hero-image { 
        height: 280px;
        border-radius: 12px;
    }
    
    .hero-title { 
        font-size: 1.75rem; 
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
        margin-top: 0.5rem;
    }
    
    .hero-content {
        left: 20px;
        right: 20px;
    }
    
    /* Info Card Overlay Mobile */
    .info-card-overlay {
        position: relative;
        bottom: auto;
        left: auto;
        transform: none;
        width: 100%;
        max-width: 100%;
        margin-top: 1rem;
        margin-left: 0;
        margin-right: 0;
        padding: 1.25rem;
        border-radius: 12px;
    }
    
    .info-grid { 
        grid-template-columns: 1fr; 
        gap: 1rem; 
    }
    
    .info-item {
        padding: 0.75rem;
        background: #f8f9fa;
        border-radius: 10px;
    }
    
    .info-icon {
        width: 42px;
        height: 42px;
        font-size: 20px;
    }
    
    .info-label {
        font-size: 0.75rem;
    }
    
    .info-value {
        font-size: 0.95rem;
    }
    
    /* Section Header Mobile */
    .section-header { 
        flex-direction: column; 
        gap: 1rem;
        margin-top: 2rem;
        align-items: stretch;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .section-description {
        font-size: 0.9rem;
    }
    
    .section-actions {
        width: 100%;
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .btn-back,
    .filter-btn,
    .btn-refresh {
        width: 100%;
        justify-content: space-between;
    }
    
    .btn-refresh {
        height: 48px;
    }
    
    /* Summary Cards Mobile */
    .summary-cards {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .summary-card {
        padding: 1.25rem;
    }
    
    .summary-icon {
        width: 45px;
        height: 45px;
        font-size: 20px;
    }
    
    .summary-label {
        font-size: 0.8rem;
    }
    
    .summary-value {
        font-size: 1.35rem;
    }
    
    /* Rooms Grid Mobile */
    .rooms-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .hospitals-grid {
        grid-template-columns: 1fr;
    }

    .room-card-new {
        min-height: auto;
    }

    .room-color-strip {
        width: 80px;
        min-width: 80px;
    }

    .room-color-strip .strip-text {
        font-size: 1rem;
        letter-spacing: 1.5px;
    }

    .room-card-content {
        padding: 1.25rem;
    }

    .info-row-label {
        min-width: 110px;
        font-size: 0.85rem;
    }
    
    .info-row-value {
        font-size: 0.9rem;
    }
    
    /* Info Section Mobile */
    .info-card-full {
        padding: 1.5rem;
    }
    
    .hospital-info-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
}

/* Responsive - Small Mobile */
@media (max-width: 576px) {
    /* Hero Section Small Mobile */
    .hero-image {
        height: 240px;
    }
    
    .hero-title {
        font-size: 1.5rem;
    }
    
    .hero-subtitle {
        font-size: 0.85rem;
    }
    
    .hero-content {
        left: 15px;
        right: 15px;
    }
    
    /* Info Card Overlay Small Mobile */
    .info-card-overlay {
        padding: 1rem;
        margin-top: 1rem;
    }
    
    .info-grid {
        gap: 0.875rem;
    }
    
    .info-item {
        padding: 0.625rem;
    }
    
    .info-icon {
        width: 38px;
        height: 38px;
        font-size: 18px;
    }
    
    .info-label {
        font-size: 0.7rem;
    }
    
    .info-value {
        font-size: 0.9rem;
    }
    
    /* Section Header Small Mobile */
    .section-title {
        font-size: 1.35rem;
    }
    
    .section-badge {
        font-size: 0.8rem;
        padding: 5px 14px;
    }
    
    .section-actions {
        gap: 0.625rem;
    }
    
    .filter-btn,
    .btn-back {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
    
    /* Summary Cards Small Mobile */
    .summary-card {
        padding: 1rem;
    }
    
    .summary-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .summary-label {
        font-size: 0.75rem;
    }
    
    .summary-value {
        font-size: 1.25rem;
    }
    
    /* Room Card Small Mobile */
    .room-card-new {
        flex-direction: column;
    }

    .room-card-strip {
        flex-direction: column;
    }

    .room-color-strip {
        width: 100%;
        min-width: 100%;
        padding: 0.875rem 0;
    }

    .room-color-strip .strip-text {
        writing-mode: horizontal-tb;
        transform: none;
        padding: 0;
        font-size: 0.95rem;
        letter-spacing: 2px;
    }
    
    .room-card-content {
        padding: 1rem;
    }
    
    .room-card-header {
        margin-bottom: 0.875rem;
        padding-bottom: 0.875rem;
    }
    
    .room-title-section h3 {
        font-size: 1rem !important;
        height: auto;
        white-space: normal;
    }
    
    .room-info-rows {
        gap: 0.625rem;
    }
    
    .info-row-item {
        font-size: 0.85rem;
    }
    
    .info-row-item i {
        font-size: 1rem;
    }
    
    .info-row-label {
        min-width: 95px;
        font-size: 0.8rem;
    }
    
    .info-row-value {
        font-size: 0.85rem;
    }
    
    /* Info Section Small Mobile */
    .info-card-full {
        padding: 1.25rem;
    }
    
    .info-card-header h3 {
        font-size: 1.1rem;
    }
    
    .info-card-body li {
        padding: 10px 0;
        font-size: 0.9rem;
    }
}

/* Extra Small Mobile (< 400px) */
@media (max-width: 400px) {
    .hero-image {
        height: 220px;
    }
    
    .hero-title {
        font-size: 1.35rem;
    }
    
    .hero-subtitle {
        font-size: 0.8rem;
    }
    
    .info-card-overlay {
        padding: 0.875rem;
    }
    
    .info-icon {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
    
    .section-title {
        font-size: 1.25rem;
    }
    
    .summary-value {
        font-size: 1.15rem;
    }
    
    .room-color-strip .strip-text {
        font-size: 0.85rem;
    }
}

/* Landscape Mode for Mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .hero-image {
        height: 200px;
    }
    
    .hero-title {
        font-size: 1.4rem;
    }
    
    .hero-subtitle {
        font-size: 0.8rem;
    }
    
    .info-card-overlay {
        margin-top: 0.75rem;
        padding: 1rem;
    }
    
    .info-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
    }
    
    .info-item {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .info-icon {
        width: 36px;
        height: 36px;
    }
    
    .summary-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .room-card-new {
        flex-direction: row;
    }
    
    .room-card-strip {
        flex-direction: row;
    }
    
    .room-color-strip {
        width: 80px;
        min-width: 80px;
    }
    
    .room-color-strip .strip-text {
        writing-mode: vertical-rl;
        transform: rotate(180deg);
        font-size: 0.9rem;
    }
}