/*
Theme Name: OceanWP Child
Theme URI: https://oceanwp.org/
Description: OceanWP Custom Child Theme built for Interlink Health.
Author: Nick
Author URI: https://oceanwp.org/
Template: oceanwp
Version: 1.0
*/

/* Parent stylesheet should be loaded from functions.php not using @import */


#sitewide-announcement {text-align: center; margin: 10px auto} /* Sitewide announcement we setup in ACF */

* *********** Header Search Functionality ********** */
/* Make the search trigger the anchor point */
#mwx_search_trigger {
    position: relative;
}

/* Override Elementor's full-width container behavior */
#mwx_search_overlay {
    display: none !important;
    position: absolute !important;
    top: 100% !important;
    right: 0 !important;
    width: 380px !important;
    min-width: unset !important;
    max-width: unset !important;
    padding: 12px !important;
    background: #fff !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15) !important;
    border-radius: 6px !important;
    z-index: 99999 !important;
    margin: 0 !important;
    /* Kill Elementor's full-width stretch */
    left: unset !important;
    align-self: unset !important;
}

#mwx_search_overlay.is-visible {
    display: flex !important;
}

/* Inner container — remove Elementor padding/margins */
#mwx_search_overlay .e-con-inner {
    padding: 0 !important;
    width: 100% !important;
}

/* Search widget full width inside box */
#mwx_search_overlay .elementor-widget-search,
#mwx_search_overlay .e-search,
#mwx_search_overlay .e-search-form {
    width: 100% !important;
}

/* Input styling */
#mwx_search_overlay .e-search-input {
    border: 1px solid #ddd !important;
    border-right: none !important;
    border-radius: 4px 0 0 4px !important;
    padding: 10px 15px !important;
    font-size: 14px !important;
    height: auto !important;
}

/* Submit button */
#mwx_search_overlay .e-search-submit {
    background: #1a3a6b !important; /* your navy — adjust to match */
    color: #fff !important;
    border-radius: 0 4px 4px 0 !important;
    padding: 10px 18px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    border: none !important;
    height: auto !important;
}

#SearchFilterForm .col-1 {clear:none!important}
#SearchFilterForm .col-md-3 {float:left!important}
#SearchFilterForm .row {width:100%!important}

#google-map {
    width: 100%;
    height: 550px;
    margin-top: 40px;
}



.rit-grad-grid {
            display: grid;
            grid-template-columns: repeat(5, 1fr); /* Forces exactly 5 columns */
            gap: 15px;
        }
        /* Responsive rules so it doesn\'t break on mobile */
        @media (max-width: 1024px) { .rit-grad-grid { grid-template-columns: repeat(3, 1fr); } }
        @media (max-width: 768px) { .rit-grad-grid { grid-template-columns: repeat(2, 1fr); } }
        @media (max-width: 480px) { .rit-grad-grid { grid-template-columns: 1fr; } }




/* Elementor and Simple Membership Display Conditions */

/* Hide by default - but not in Elementor editor */
body:not(.elementor-editor-active) .swpm-client-only,
body:not(.elementor-editor-active) .swpm-tools-only,
body:not(.elementor-editor-active) .swpm-client-overview-only,
body:not(.elementor-editor-active) .swpm-members-only {
    display: none !important;
}

/* Show to logged in members */
body.swpm-logged-in .swpm-members-only {
    display: block !important;
}

/* Show to specific levels */
body.swpm-client .swpm-client-only {
    display: block !important;
}

body.swpm-tools .swpm-tools-only {
    display: block !important;
}

body.swpm-client-overview .swpm-client-overview-only {
    display: block !important;
}

/* Hide member content from guests */
body.swpm-logged-in .swpm-guests-only {
    display: none !important;
}


/* header conditional button for network searches */
.swpm-header-btn {
    background-color: #73BF9A;
    color: #ffffff !important;
    padding: 12px 24px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    display: inline-block;
    transition: background-color 0.3s ease;
    line-height:1
}

.swpm-header-btn:hover {
    background-color: #3C9EDF;
    color: #ffffff !important;
}



/* ============================================
   Google Maps Marker Popup Styles
   ============================================ */

.popup-container {
    cursor: auto;
    height: 0;
    position: absolute;
    width: 260px; /* match .popup-bubble */
}

/* Anchor div - shifts the bubble up above/beside the marker */
.popup-bubble-anchor {
    position: absolute;
    width: 100%;
    bottom: 12px;   /* sits above the marker dot */
    left: 10px;     /* offset to the right of center */
}

/* The visible bubble */
.popup-bubble {
    position: absolute;
    top: 0;
    left: 0;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.25);
    padding: 10px 12px;
    width: 260px;        /* bumped up from 220px */
    font-size: 13px;
    line-height: 1.4;
    z-index: 99999;
    white-space: normal; /* changed from nowrap */
    word-wrap: break-word;
}

/* City/State heading at top of popup */
.facility-popup-heading {
    font-weight: 700;
    font-size: 13px;
    color: #1a3a6b;
    margin-bottom: 6px;
    border-bottom: 1px solid #e5e5e5;
    padding-bottom: 4px;
}

/* Reset list styles */
.popup-bubble ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.popup-bubble ul li {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    padding: 4px 0;
    border-bottom: 1px solid #f0f0f0;
}

.popup-bubble ul li:last-child {
    border-bottom: none;
}

/* Green bullet dot */
.popup-bubble .bullet {
    flex-shrink: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #a2ca4f;
    margin-top: 4px;
}

/* Text rows inside each list item */
.popup-paragraph {
    margin: 0;
    line-height: 1.3;
}

.popup-facility-name {
    font-weight: 600;
    color: #222;
    font-size: 12px;
}

.popup-facility-network {
    color: #555;
    font-size: 11px;
}

.popup-facility-service-type {
    color: #888;
    font-size: 11px;
    font-style: italic;
}