/* ==========================
   SMART PEKUA - HOSPITALS
   Modern Hospital Cards
========================== */


/* ==========================
   Hospital List
========================== */

#hospitalList {

    padding: 0 5px 25px;

}


/* ==========================
   Hospital Card
========================== */

.hospital-card {

    position: relative;

    background: #fff;

    border-radius: 22px;

    overflow: hidden;

    margin: 18px 13px;

    box-shadow:
        0 5px 18px rgba(0, 0, 0, .08);

    border: 1px solid rgba(30, 136, 229, .06);

    transition:
        transform .25s ease,
        box-shadow .25s ease;

}


/* Card Touch */

.hospital-card:active {

    transform: scale(.985);

    box-shadow:
        0 3px 12px rgba(0, 0, 0, .10);

}


/* ==========================
   Hospital Image
========================== */

.hospital-image {

    width: 100%;

    height: 190px;

    object-fit: cover;

    display: block;

    border-radius: 22px 22px 0 0;

    transition:
        transform .5s ease;

}


/* Image Zoom */

.hospital-card:hover .hospital-image {

    transform: scale(1.03);

}


/* ==========================
   Hospital Info
========================== */

.hospital-info {

    padding: 18px 17px 19px;

}


/* ==========================
   Hospital Name
========================== */

.hospital-name {

    font-size: 22px;

    font-weight: 700;

    color: #222;

    margin: 0 0 10px;

    line-height: 1.35;

}


/* ==========================
   Hospital Type
========================== */

.hospital-type {

    display: inline-flex;

    align-items: center;

    background: #EAF5FF;

    color: #1976D2;

    padding: 6px 13px;

    border-radius: 30px;

    font-size: 14px;

    font-weight: 600;

    margin-bottom: 10px;

}


/* ==========================
   Hospital Information
========================== */

.hospital-address,
.hospital-time,
.hospital-phone {

    margin-top: 8px;

    color: #555;

    line-height: 1.6;

    font-size: 15px;

}


/* Address */

.hospital-address {

    color: #555;

}


/* Time */

.hospital-time {

    color: #666;

}


/* ==========================
   Buttons
========================== */

.hospital-buttons {

    display: flex;

    gap: 9px;

    margin-top: 17px;

}


.hospital-buttons a {

    flex: 1;

    min-height: 46px;

    display: flex;

    align-items: center;

    justify-content: center;

    box-sizing: border-box;

    padding: 10px 7px;

    border-radius: 13px;

    color: #fff;

    text-decoration: none;

    font-weight: 700;

    font-size: 14px;

    transition:
        transform .2s ease,
        filter .2s ease,
        box-shadow .2s ease;

}


/* Button Press */

.hospital-buttons a:active {

    transform: scale(.94);

    filter: brightness(.94);

}


/* Call */

.call-btn {

    background: #2E7D32;

    box-shadow:
        0 4px 10px rgba(46, 125, 50, .18);

}


/* Map */

.map-btn {

    background: #FB8C00;

    box-shadow:
        0 4px 10px rgba(251, 140, 0, .18);

}


/* Details */

.details-btn {

    background: #1976D2;

    box-shadow:
        0 4px 10px rgba(25, 118, 210, .18);

}


/* ==========================
   Favorite Button
========================== */

.hospital-card .favorite-btn {

    position: absolute;

    top: 13px;

    right: 13px;

    width: 44px;

    height: 44px;

    border: none;

    border-radius: 50%;

    background:
        rgba(255, 255, 255, .94);

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 22px;

    cursor: pointer;

    box-shadow:
        0 4px 12px rgba(0, 0, 0, .18);

    z-index: 5;

    transition:
        transform .2s ease,
        background .2s ease;

    backdrop-filter: blur(6px);

    -webkit-backdrop-filter: blur(6px);

}


.hospital-card .favorite-btn:active {

    transform: scale(.78);

}


.hospital-card .favorite-btn.active {

    background: #FFEBEE;

    color: #E53935;

}


/* ==========================
   Hospital Card Entrance
========================== */

.hospital-card {

    animation:
        hospitalCardIn
        .45s cubic-bezier(.22, .61, .36, 1)
        both;

}


@keyframes hospitalCardIn {

    from {

        opacity: 0;

        transform:
            translateY(18px)
            scale(.97);

    }

    to {

        opacity: 1;

        transform:
            translateY(0)
            scale(1);

    }

}


/* ==========================
   Search Box
========================== */

#hospitalSearch {

    margin:
        0 15px 5px;

    width:
        calc(100% - 30px);

    box-sizing: border-box;

}


/* ==========================
   Hospital Details
========================== */

#hospitalDetails {

    max-width: 700px;

    margin: auto;

}


.details-card {

    background: #fff;

    border-radius: 25px;

    overflow: hidden;

    box-shadow:
        0 8px 25px rgba(0, 0, 0, .08);

    margin: 20px 15px;

}


.details-image {

    width: 100%;

    height: 240px;

    object-fit: cover;

}


.details-content {

    padding: 20px;

}


.details-title {

    font-size: 26px;

    font-weight: 700;

    color: #222;

    margin-bottom: 15px;

    line-height: 1.35;

}


.details-badge {

    display: inline-block;

    background: #EAF5FF;

    color: #1976D2;

    padding: 8px 17px;

    border-radius: 30px;

    font-weight: 600;

    margin-bottom: 18px;

}


.details-item {

    display: flex;

    align-items: flex-start;

    gap: 12px;

    margin: 14px 0;

    font-size: 17px;

    color: #444;

    line-height: 1.7;

}


.details-item span {

    font-size: 21px;

    min-width: 28px;

}


/* ==========================
   Service Box
========================== */

.service-box {

    background: #F7FBFF;

    border-left:
        5px solid #2196F3;

    border-radius: 15px;

    padding: 18px;

    margin-top: 20px;

}


.service-box h3 {

    color: #1976D2;

    margin-bottom: 12px;

}


.service-box ul {

    margin: 0;

    padding-left: 22px;

}


.service-box li {

    margin: 10px 0;

    line-height: 1.6;

}


/* ==========================
   Details Buttons
========================== */

.button-group {

    display: flex;

    gap: 12px;

    margin-top: 25px;

}


.button-group a {

    flex: 1;

    min-height: 52px;

    display: flex;

    justify-content: center;

    align-items: center;

    border-radius: 14px;

    color: #fff;

    text-decoration: none;

    font-size: 17px;

    font-weight: 700;

    transition:
        transform .2s ease;

}


.button-group a:active {

    transform: scale(.95);

}


.button-group .call-btn {

    background: #2E7D32;

}


.button-group .map-btn {

    background: #1976D2;

    white-space: nowrap;

}


/* ==========================
   Mobile Responsive
========================== */

@media (max-width: 600px) {

    .hospital-card {

        margin:
            16px 12px;

        border-radius: 20px;

    }


    .hospital-image {

        height: 175px;

    }


    .hospital-info {

        padding:
            16px 15px 17px;

    }


    .hospital-name {

        font-size: 20px;

    }


    .hospital-buttons {

        gap: 8px;

    }


    .hospital-buttons a {

        min-height: 44px;

        font-size: 13px;

        border-radius: 12px;

    }


    .hospital-card .favorite-btn {

        width: 42px;

        height: 42px;

        top: 11px;

        right: 11px;

    }


    .details-title {

        font-size: 23px;

    }


    .details-item {

        font-size: 16px;

    }


    .button-group {

        flex-direction: column;

    }


    .button-group a {

        width: 100%;

    }

}


/* ==========================
   Very Small Screens
========================== */

@media (max-width: 360px) {

    .hospital-image {

        height: 160px;

    }


    .hospital-name {

        font-size: 19px;

    }


    .hospital-type {

        font-size: 13px;

    }


    .hospital-address,
    .hospital-time {

        font-size: 14px;

    }


    .hospital-buttons a {

        font-size: 12px;

        padding:
            9px 4px;

    }

}

/* ==========================
   Hospital Loading State
========================== */

.hospital-loading {

    text-align: center;

    padding: 55px 20px;

    color: #666;

}


.loading-icon {

    font-size: 55px;

    margin-bottom: 12px;

    animation:
        hospitalPulse 1.2s ease-in-out infinite;

}


.loading-spinner {

    width: 28px;
    height: 28px;

    margin: 0 auto 15px;

    border: 3px solid #EAF5FF;

    border-top-color: #1976D2;

    border-radius: 50%;

    animation:
        hospitalSpin .8s linear infinite;

}


.hospital-loading p {

    margin: 0;

    font-size: 15px;

}


@keyframes hospitalSpin {

    to {

        transform: rotate(360deg);

    }

}


@keyframes hospitalPulse {

    0%,
    100% {

        transform: scale(1);

        opacity: .7;

    }

    50% {

        transform: scale(1.1);

        opacity: 1;

    }

}


/* ==========================
   Hospital Empty State
========================== */

.hospital-empty {

    text-align: center;

    padding: 60px 20px;

    color: #555;

}


.hospital-empty .empty-icon {

    font-size: 58px;

    margin-bottom: 12px;

}


.hospital-empty h2 {

    margin: 0 0 8px;

    color: #333;

    font-size: 20px;

}


.hospital-empty p {

    margin: 0 auto;

    max-width: 300px;

    color: #777;

    font-size: 14px;

    line-height: 1.7;

}