@import url(./common.css);

main.booking_page {
    margin-top: 0;
    padding: 0 clamp(16px, 12vw, 350px);
    box-sizing: border-box;
}

/* Page gutter lives on main; keep section sides flat vs common.css */
main.booking_page > section {
    padding-left: 0;
    padding-right: 0;
}

/* ============================================
   Booking Hero
============================================ */
#booking_hero {
    padding: clamp(16px, 10vw, 150px) 0 clamp(20px, 3vw, 40px);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.booking_label {
    font-size: clamp(10px, 1vw, 13px);
    font-weight: 600;
    letter-spacing: 0.18em;
    color: var(--bookink1);
    text-transform: uppercase;
}

#booking_hero h2 {
    font-size: clamp(24px, 4.5vw, 58px);
    font-weight: 800;
    letter-spacing: -0.01em;
    line-height: 1.1;
    color: var(--black);
}

.booking_sub {
    font-size: clamp(13px, 1.2vw, 16px);
    font-weight: 300;
    color: var(--ink1);
    max-width: 520px;
    line-height: 1.7;
}


/* ============================================
   Category Grid
============================================ */
#booking_categories {
    padding: 0 0 clamp(20px, 3vw, 40px);
}

.booking_toolbar {
    margin-bottom: clamp(16px, 2vw, 24px);
}

.booking_region_filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.booking_region_btn {
    appearance: none;
    border: 1px solid rgba(18, 18, 18, 0.12);
    background: #fff;
    color: #666;
    border-radius: 999px;
    padding: 10px 18px;
    font-size: clamp(12px, 1.1vw, 14px);
    font-weight: 600;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.booking_region_btn:hover {
    border-color: rgba(206, 120, 49, 0.4);
    color: var(--bookink1);
}

.booking_region_btn.is-active {
    background: var(--bookink1);
    border-color: var(--bookink1);
    color: #fff;
}

.category_grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

/* ============================================
   Category Card
============================================ */
.category_card {
    border: 1px solid rgba(18, 18, 18, 0.08);
    border-radius: 4px;
    padding: clamp(24px, 3vw, 40px);
    display: flex;
    flex-direction: column;
    gap: 20px;
    background: var(--white);
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
    position: relative;
    overflow: hidden;
}

.category_card:hover {
    border-color: rgba(18, 18, 18, 0.18);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.07);
    transform: translateY(-3px);
}

.booking_hospital_card {
    flex-direction: row;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 6px;
}

.booking_hospital_card:hover {
    transform: none;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

.booking_hospital_thumb {
    display: block;
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    border-radius: 4px;
    overflow: hidden;
    background: rgba(18, 18, 18, 0.04);
}

.booking_hospital_thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.25s ease;
}

.booking_hospital_card:hover .booking_hospital_thumb img {
    transform: scale(1.04);
}

.booking_hospital_body {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.booking_hospital_meta {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.booking_hospital_region {
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--bookink1);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.booking_hospital_name {
    margin: 0;
    font-size: clamp(13px, 1.1vw, 15px);
    font-weight: 700;
    line-height: 1.2;
    color: var(--black);
}

.booking_hospital_name a {
    color: inherit;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.booking_hospital_name a:hover {
    color: var(--bookink3);
}

.booking_whatsapp_btn,
.booking_view_btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.2s ease, transform 0.2s ease;
}

.booking_whatsapp_btn {
    min-width: 56px;
    height: 36px;
    padding: 0 14px;
    border-radius: 999px;
    background: #25D366;
    color: #fff;
    font-size: 18px;
}

.booking_whatsapp_btn:hover {
    background: #1ebe57;
    transform: scale(1.03);
}

.booking_view_btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(18, 18, 18, 0.06);
    color: var(--black);
    font-size: 12px;
}

.booking_view_btn:hover {
    background: rgba(18, 18, 18, 0.12);
}

.booking_loading,
.booking_empty {
    grid-column: 1 / -1;
    font-size: clamp(13px, 1.1vw, 16px);
    color: var(--ink1);
    padding: 24px 0;
}

.card_icon {
    font-size: clamp(20px, 2.5vw, 30px);
    color: var(--bookink2);
    line-height: 1;
}

.card_icon i {
    background: transparent;
}

.card_content {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.card_tag {
    font-size: clamp(9px, 0.85vw, 11px);
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--bookink1);
}

.card_content h3 {
    font-size: clamp(15px, 1.6vw, 20px);
    font-weight: 700;
    color: var(--black);
    line-height: 1.2;
}

.card_content p {
    font-size: clamp(12px, 1vw, 14px);
    font-weight: 300;
    color: var(--ink1);
    line-height: 1.65;
}

/* ============================================
   Book Button
============================================ */
.card_book_btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: clamp(10px, 1.2vw, 14px) clamp(16px, 2vw, 24px);
    background: var(--black);
    color: var(--white);
    font-size: clamp(11px, 0.95vw, 13px);
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: 2px;
    align-self: flex-start;
    transition: background 0.25s ease, letter-spacing 0.25s ease;
}

.card_book_btn i {
    background: transparent;
    font-size: 1.15em;
    color: inherit;
}

.card_book_btn:hover {
    background: var(--bookink3);
    letter-spacing: 0.12em;
}

/* CTA card variant */
.card_cta {
    background: linear-gradient(135deg, rgba(108, 128, 124, 0.06) 0%, rgba(87, 122, 115, 0.12) 100%);
    border-color: rgba(108, 128, 124, 0.2);
}

.card_cta .card_icon {
    color: var(--bookink3);
}

.cta_btn {
    background: var(--bookink3);
}

.cta_btn:hover {
    background: var(--black);
}

/* ============================================
   Contact Strip
============================================ */
#booking_contact {
    padding: clamp(40px, 6vw, 80px) 0;
    border-top: 1px solid rgba(18, 18, 18, 0.07);
}

.contact_strip {
    display: flex;
    align-items: center;
    gap: clamp(24px, 4vw, 60px);
    flex-wrap: wrap;
}

.contact_item {
    display: flex;
    align-items: center;
    gap: 14px;
}

.contact_item > i {
    font-size: clamp(18px, 2vw, 24px);
    color: var(--bookink2);
    background: transparent;
    min-width: 24px;
}

.contact_item > div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.contact_label {
    font-size: clamp(9px, 0.85vw, 11px);
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink1);
}

.contact_item a {
    font-size: clamp(12px, 1.1vw, 15px);
    font-weight: 500;
    color: var(--black);
    transition: color 0.2s ease;
}

.contact_item a:hover {
    color: var(--bookink3);
}

.contact_divider {
    width: 1px;
    height: 40px;
    background: rgba(18, 18, 18, 0.1);
    flex-shrink: 0;
}

/* ============================================
   Responsive
============================================ */
@media (max-width: 1024px) {
    .category_grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    main.booking_page {
        padding-left: clamp(12px, 5vw, 48px);
        padding-right: clamp(12px, 5vw, 48px);
    }

    #booking_hero {
        padding: clamp(16px, 4vw, 32px) 0 clamp(16px, 3vw, 24px);
    }

    #booking_categories {
        padding: 0 0 clamp(16px, 3vw, 24px);
    }

    #booking_contact {
        padding: clamp(24px, 5vw, 40px) 0;
    }
}

@media (max-width: 640px) {
    .category_grid {
        grid-template-columns: 1fr;
    }

    .booking_hospital_thumb {
        width: 56px;
        height: 56px;
    }

    .contact_strip {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
    }

    .contact_divider {
        display: none;
    }
}

@media (max-width: 480px) {
    main.booking_page {
        padding-left: 12px;
        padding-right: 12px;
    }

    #booking_hero {
        padding: 16px 0 16px;
    }

    #booking_categories {
        padding: 0 0 16px;
    }

    #booking_contact {
        padding: 24px 0;
    }
}
