:root {
    --primary-color: #368186;
    --secondary-color: #06b6d4;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --dark-color: #1f2937;
    --light-color: #f8fafc;
}

body {
    background: #F9F9F9 !important;
}

/* .sidebar {
    width: 390px !important;
} */

.profile-btn {
    position: absolute;
    right: 25px;
    top: -10px !important;
    background: #fff;
    padding: 5px 10px;
    border-radius: 50px;
    display: flex;
    gap: 10px;
    border: 2px solid #0000003b;
}

.main-content {
    /* margin-left: 280px; */
    padding: 20px;
}


.header-section {
    background: white;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.search-container {
    position: relative;
}

.search-input {
    border: 2px solid #d4d4d4 !important;
    padding: 10px 20px 10px 50px !important;
    border-radius: 30px !important;
    font-size: 16px;
    transition: all 0.3s ease;
}

.search-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #6b7280;
}

.location-info {
    /* background: linear-gradient(135deg, var(--success-color), var(--secondary-color)); */
    /* color: white; */
    padding: 5px 20px;
    border-radius: 12px;
    margin-bottom: 0px;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 25px;
    height: calc(100vh - 200px);
}

.results-section {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow-y: auto;
}

.map-section {
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    position: relative;
}

.map-container {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.map-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.health-center-card .btn-close{
    opacity: 1 !important;
    display: none;
}

.health-center-card.expanded .btn-close {
    display: block !important;
}

.health-center-card .view-details-btn{
    display: block;
    background: none;
    padding: 0;
    margin: auto;
    font-size: 16px !important;
    border: none;
    color: #000000;
    font-weight: 500;
    text-decoration: underline;
    transition: 0.2s linear;
}
    .health-center-card .view-details-btn:hover{
        color: #494cfa;
    }

.health-center-card.expanded .view-details-btn{
    display: none !important;
}

.health-center-card .action-like2{
    display: block;
}

.health-center-card.expanded .action-like2{
    display: none !important;
}

.health-center-card {
    background: white;
    border: 0.5px solid #494cfa;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
}

.health-center-card .tags-container {
    margin-bottom: 0 !important;
}


.health-center-card .tags-container .service-tag{ 
    background: #3681861A !important;
    color: #000000 !important;
}
    .health-center-card.expanded .tags-container .service-tag{ 
        background: #ffffff1f!important;
        color: #FFFFFF !important;
    }


.health-center-card.expanded .tags-container {
    margin-bottom: 10px !important;
}

.health-center-card.expanded h4 {
    width: 80%;
}

.health-center-card h4{
    font-size: 1.6rem !important;
    width: 80%;
}


.health-center-card span {
    background: var(--light-color);
    color: var(--dark-color);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    margin-right: 8px;
    margin-bottom: 5px;
    display: inline-block;
}

.health-center-card:hover{
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.health-center-card.expanded{
    background: #494cfa!important;
    color: white;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

.regular-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.regular-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.service-tag {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    margin-right: 8px;
    margin-bottom: 5px;
    display: inline-block;
}

.regular-tag {
    background: var(--light-color);
    color: var(--dark-color);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    margin-right: 8px;
    margin-bottom: 5px;
    display: inline-block;
}

.change-location {
    background: #368186 !important;
    color: white !important;
    border: none;
    border-radius: 30px;
    text-wrap: nowrap;

}

.report-btn {
    background: #fff !important;
    color: #368186;
    border: 2px solid #368186;
    font-weight: 600;
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 14px;
    z-index: 10 !important;
    transition: all 0.3s ease;
}

.report-btn:hover {
    background: #dc2626;
    transform: translateY(-1px);
}

.modal-content {
    border-radius: 15px;
    border: none;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

#reportModal .modal-header {
    /* padding: 20px 20px !important; */
    color: red;
    padding-bottom: 0 !important;
    border-radius: 15px 15px 0 0;
    border-bottom: none;
}

#reportModal .modal-body {
    padding-top: 10px !important;
}


.modal-header .text {
    padding-left: 20px;
    padding-top: 20px;
}

#reportModal .modal-dialog-right {
    padding: 2%  0;
    display: flex;
    align-items: end;
}

#reportModal .modal-content {
    /* display: none; */
}

#detailsModal  .modal-header {
    padding-right: 30px  !important;
    padding-top: 30px  !important;
    border-radius: 15px 15px 0 0;
    border-bottom: none;
}

#detailsModal  .modal-body {
    padding-top: 0px !important;
}

#detailsModal  .modal-body h4{
    color: #368186 !important;
    font-size: 1.5rem;
    font-weight: bold;
}

.popup-overlay {
position: fixed; 
 top: 0;
left: 0;
width: 100%;
height: 100vh;
background: rgba(0, 0, 0, 0.5);
z-index: 10000;
padding: 0 5%;
display: flex;
justify-content: center;
align-items: center;
}

.seacrch-card{
z-index: 100001 !important;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
background: white;
width: 95%;
margin: auto;
padding: 20px 40px;
border-radius: 10px;
max-width: 600px;
}

.seacrch-card  h5{
    color: #368186;
    font-size: 1.6rem !important;
    font-weight: bold;
}
.seacrch-card  select{
    border: 2px solid #b8b8b8 !important;
    padding: 10px 20px 10px 20px !important;
    border-radius: 10px !important;
    font-size: 16px;
    transition: all 0.3s ease;
}

.seacrch-card  .services-type{
    position: relative;
}
.seacrch-card  .services-type i{
    position: absolute;
    top: 50%;
    right: 30px;
    transform: translateY(60%);
    color: #98A4AE;
    font-size: 15px;
}

.seacrch-card  input{
    border: 2px solid #b8b8b8 !important;
    padding: 10px 20px 10px 20px !important;
    border-radius: 10px !important;
    font-size: 16px;
    transition: all 0.3s ease;
}

#searchForm button{
background: #3681861A;
color: var(--primary-teal);
border: none;
padding: 10px 20px;
border-radius: 5px;
cursor: pointer;
font-weight: bold;
transition: all 0.3s ease;
}

.details-send-btn{
    color: #D00404 !important;
    background: #DD4D4D1A !important;
}

.reportModal .modal-content {
    height: auto !important;
}

.form-control,
.form-select {
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    padding: 12px 15px;
    transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.btn-primary {
    color: #368186 !important;
    background:  #3681861A !important;
    border: none;
    padding: 12px 30px;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
}


.pagination {
    justify-content: center;
    margin-top: 25px;
}

.page-link {
    border: none;
    color: var(--primary-color);
    padding: 10px 15px;
    margin: 0 3px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.page-link:hover,
.page-item.active .page-link {
    background: var(--primary-color);
    color: white;
    transform: translateY(-1px);
}


.brand-text {
    color: white;
    font-weight: 700;
    font-size: 20px;
    margin: 0;
}

.brand-subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    margin: 0;
}

.modal.fade .modal-dialog {
    transform: translateX(100%);
    transition: transform 0.3s ease-out;
}

.modal.show .modal-dialog {
    transform: translateX(0);
}

.modal-dialog-right {
    position: fixed;
    right: 0;
    top: 0;
    margin: 0;
    height: 100vh;
    max-width: 500px;
    width: 100%;
}

.modal-dialog-right .modal-content {
    height: 100vh;
    border-radius: 0;
    overflow-y: auto;
}

.modal-backdrop.show {
    background-color: rgba(0, 0, 0, 0.7);
}

.modal-body {
    padding: 30px;
}

#header{
    padding-top: 0 !important;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.overlay.show {
    opacity: 1;
    visibility: visible;
}

.map-container {
    position: relative;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

#map {
    height: 100% !important;
    width: 100% !important;
    border-radius: 10px;
}


.loading {
    text-align: center;
    padding: 20px;
    color: #6c757d;
}

.error {
    display: block;
    text-align: center;
    padding: 20px;
    color: #dc3545;
    background: #f8d7da;
    border-radius: 10px;
    margin: 20px 0;
}

.location-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 30px;
    border-radius: 7px;
    box-shadow: 0 10px 18px #0c0c0d21;
    z-index: 1001;
    max-width: 550px;
    width: 90%;
    text-align: center;
    display: none;
  }
  
  .location-modal.show {
    display: block;
  }
  
  .location-modal h3 {
    color: #29343d;
    margin-bottom: 15px;
  }
  
  .location-modal p {
    color: var(--dark-gray);
    margin-bottom: 25px;
    line-height: 1.5;
  }
  
  .location-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
  }
  
  .btn-location {
    padding: 10px 20px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
  }
  
  .btn-allow {
    background: #3681861a !important;
    color: #368186;
    border-radius: 5px !important;
  }
  
  .btn-deny {
    border-radius: 5px !important;
    background: #ffe5ed;
    color: #ff6692 !important;
  }
  
  .location-status {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 10px 15px;
    border-radius: 25px;
    color: white;
    font-size: 0.9rem;
    z-index: 1000;
    display: none;
  }

  #user-location {
    font-weight: 500 !important; 
    width: 100%;
    /* color: #368186; */
  }

  .gm-style .gm-style-iw-c button{
    display: none !important;
  }

  .gm-style .gm-style-iw-c {
    border-radius: 10px !important;
    /* backdrop-filter: blur(2px) !important; */
    /* background: rgba(238, 238, 238, 0.849) !important; */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1) !important;
  }
  .gm-style-iw-d{
    padding: 0 !important;
  }
  /* .gm-style .gm-style-iw-tc::after {
    backdrop-filter: blur(2px) !important;
    background: rgba(238, 238, 238, 0.795) !important;
  } */

  .map-details-popup h6{
    font-weight: 600 !important;
    font-size: 18px !important;
    color: #000000 !important;
  }

  .map-details-popup span{
    font-weight: 400 !important;
    font-size: 16px !important;
    color: #000000 !important;
  }

  .hospital-name{
    font-size: 18px !important;
    font-weight: 600;
    color: #000000 !important;
}

.health-center-card h5 {
    font-size: 18px !important;
    font-weight: 600;
    color: #000000 !important;

}
.health-center-card h4 {
      font-size: 18px !important;
      font-weight: 600;
  }
  .health-center-card.expanded h4 {
    font-size: 18px !important;
  }


  /* Slide modal from right */
.modal-dialog-right {
    position: fixed;
    right: 0;
    margin: 0;
    height: 100%;
    transform: translateX(100%);
    transition: transform 0.3s ease-out;
  }
  
  .modal.fade .modal-dialog-right {
    transform: translateX(100%);
  }
  
  .modal.fade.show .modal-dialog-right {
    transform: translateX(0);
  }

  .modal-dialog-right {
    max-width: 400px; /* control width */
    width: 100%;
  }

  /* Formspree Success Popup Styles */
.formspree-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    justify-content: center;
    align-items: center;
  }
  
  .formspree-popup.show {
    display: flex;
  }
  
  .formspree-popup-content {
    background: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  }
  
  .formspree-popup-content h3 {
    color: #29343d;
    font-size: 18px !important;
    margin-bottom: 15px;
  }
  
  .formspree-popup-content p {
    margin-bottom: 20px;
    font-size: 16px !important;
    color: #29343d;
  }
  
  .formspree-popup-close {
    background: #3681861a;
    color: #368186;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
  }
  
  .formspree-popup-close:hover {
    background: #3681861a;
  }