
/* ============================================================
   White Lotus Search — style.css
   Matches the White Lotus Hospital blue / white brand palette
   ============================================================ */
/* ---- Wrapper ---- */
.wl-search-wrapper {
    position: relative;
    max-width: 760px;
    margin: 0 auto;
}
/* ---- Search bar row ---- */
.wl-search-bar {
    display: flex;
    gap: 0;
    border: 2px solid #1a4fba;
    border-radius: 4px;
    overflow: hidden;
    background: #fff;
}
.wl-search-input {
    flex: 1;
    padding: 12px 18px;
    font-size: 15px;
    border: none;
    outline: none;
    color: #222;
    background: #fff;
    min-width: 0;
}
.wl-search-input::placeholder {
    color: #999;
}
.wl-search-btn {
    padding: 12px 28px;
    background: #1a4fba;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s;
    letter-spacing: 0.02em;
}
.wl-search-btn:hover,
.wl-search-btn:focus {
    background: #163f96;
    outline: 2px solid #163f96;
    outline-offset: 2px;
}
/* ---- Results dropdown ---- */
.wl-search-results {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #d0d8ee;
    border-radius: 4px;
    box-shadow: 0 6px 24px rgba(26, 79, 186, 0.12);
    z-index: 9999;
    max-height: 420px;
    overflow-y: auto;
}
.wl-search-results[hidden] {
    display: none;
}
/* ---- Section headings ---- */
.wl-results-section-title {
    padding: 8px 16px 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #1a4fba;
    background: #f0f4ff;
    border-bottom: 1px solid #d0d8ee;
    user-select: none;
}
/* ---- Individual result items ---- */
.wl-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    text-decoration: none;
    color: #222;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.15s;
    cursor: pointer;
}
.wl-result-item:last-child {
    border-bottom: none;
}
.wl-result-item:hover,
.wl-result-item:focus {
    background: #eef2fc;
    text-decoration: none;
    outline: none;
}
/* Doctor avatar */
.wl-result-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    background: #d0d8ee;
    border: 1px solid #c5cfe8;
}
/* Placeholder avatar (no image) */
.wl-result-avatar-placeholder {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    flex-shrink: 0;
    background: #1a4fba;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
}
/* Specialty icon */
.wl-result-icon {
    width: 38px;
    height: 38px;
    border-radius: 6px;
    background: #e8f0fe;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.wl-result-icon svg {
    width: 20px;
    height: 20px;
    fill: #1a4fba;
}
/* Text block */
.wl-result-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.wl-result-name {
    font-size: 14px;
    font-weight: 600;
    color: #1a3a7a;
    line-height: 1.3;
}
.wl-result-sub {
    font-size: 12px;
    color: #666;
    line-height: 1.3;
}
/* ---- Status messages ---- */
.wl-search-status {
    padding: 14px 16px;
    font-size: 14px;
    color: #555;
    text-align: center;
}
.wl-search-status.loading {
    color: #1a4fba;
}
/* ---- Highlighted query match ---- */
.wl-highlight {
    background: #fff3b0;
    border-radius: 2px;
    padding: 0 1px;
}
/* ---- Responsive ---- */
@media (max-width: 480px) {
    .wl-search-btn {
        padding: 12px 16px;
        font-size: 14px;
    }
    .wl-search-input {
        font-size: 14px;
        padding: 12px 12px;
    }
}

/* ============================================================
   Results Page Styles (?wls=query)
   ============================================================ */

.wl-search-results-page {
margin:auto;
}

h1.wl-results-page-title {
font-size: clamp(22px, calc(29.5px + (42 - 29.5) * ((100vw - 1366px) / (1920 - 1366))), 42px) !important;
margin-bottom:40px;
}

.wl-results-section {
    margin-bottom: 40px;
}

.wl-result-card:hover .wl-result-card-image img {
  transform: scale(1.04) !important;
}
h2.wl-results-section-heading img {
    display: none !important;
}
h2.wl-results-section-heading  {
font-size: clamp(18px, calc(22px + (32 - 22) * ((100vw - 1366px) / (1920 - 1366))), 32px) !important;
margin-bottom:30px !important;
}

/* ---- Cards grid ---- */

.search-main-section {
    margin-top: 6%;
    margin-bottom:6%;
}
.wl-results-grid {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.wl-result-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    flex: 0 0 calc(25% - 15px);
    max-width: calc(25% - 15px);
  
}
.wl-result-card:hover .wl-result-card-title, .wl-result-card:hover .wl-result-card-subtitle{
    color: var(--color-accent-orange) !important;
}

.wl-result-card:hover {

}

/* Card image */
.wl-result-card-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #eef2fc;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
}

.wl-result-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
}

.wl-result-card-placeholder {
    width: 100%;
    height: 100%;
    min-height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1a4fba;
    color: #fff;
    font-size: 52px;
    font-weight: 700;
}

.wl-result-card-placeholder.specialty,.wl-result-card-image {
    background: #b8ddf4;
    background-image: url(https://staging.ccomdigital.in/client/white-lotus/wp-content/uploads/2026/06/profile-photo-bg.webp);
    background-size: cover;
    background-repeat: no-repeat;
    border-radius: 20px;
    line-height: 0;
}

/* Card content */
.wl-result-card-content {
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.wl-result-card-title {
   font-size: clamp(16px, calc(16px + (24 - 16) * ((100vw - 1366px) / (1920 - 1366))), 24px);
    line-height: 1.2;
    font-family: var(--font-GeistsemiBold);
    margin-bottom: 7px;
    color: var(--e-global-color-text);
}


.wl-result-card-subtitle {
  color: var(--e-global-color-text) !important;
    font-size: var(--font-size-18) !important;
    line-height: 1.2;
    font-family: var(--font-geistregular);

}
wl-result-card-subtitle{
      color: var(--e-global-color-text) !important;
}

.wl-result-card-price {
    font-size: 14px;
    font-weight: 700;
    color: #1a4fba;
    margin: 6px 0 0;
}

/* Package image in dropdown */
.wl-result-package-image-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
    background: #eef2fc;
    display: flex;
    align-items: center;
    justify-content: center;
}
.wl-result-package-image { width: 100%; height: 100%; object-fit: cover; }
.wl-result-package-placeholder { font-size: 22px; }
.wl-result-price { font-size: 12px; font-weight: 700; color: #1a4fba; }
.wl-result-desc  { font-size: 11px; color: #888; line-height: 1.4; }

/* No results */
.wl-no-results-message {
   font-size: 20px;
    padding: 40px;
    text-align: center;
    background: #b8ddf4;
    border-radius: 8px;
    border: 1px solid #d0d8ee;
    color:var(--e-global-color-primary);
}

/* Responsive */
@media (max-width: 768px) {
    .wl-results-grid {     grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .search-main-section {
    margin-top: 60px;
    margin-bottom:60px;
}

}
@media (max-width: 480px) {
    .wl-results-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .wl-result-card-title { font-size: 13px; }
    .wl-result-card-content { padding: 10px 12px; }
}


@media (max-width:1024px){
    .wl-result-card{
        flex:0 0 calc(33.333% - 14px);
        max-width:calc(33.333% - 14px);
    }
}

@media (max-width:768px){
    .wl-result-card{
        flex:0 0 calc(50% - 10px);
        max-width:calc(50% - 10px);
    }
}

@media (max-width:480px){
    .wl-result-card{
        flex:0 0 100%;
        max-width:100%;
    }
}
