 * {
     margin: 0;
     padding: 0;
     box-sizing: border-box;
 }

 body {
     font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
     background-color: #f9fafb;
     color: #1f2937;
 }

 /* Navegacao */
 nav {
     background: linear-gradient(135deg, #059669 0%, #047857 100%);
     color: white;
     padding: 1rem 2rem;
     box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
 }

 .nav-container {
     max-width: 1200px;
     margin: 0 auto;
     display: flex;
     justify-content: space-between;
     align-items: center;
 }

 .logo {
     display: flex;
     align-items: center;
     gap: 1rem;
 }

 .logo-icon {
     /* background: white; */
     padding: 0.5rem;
     border-radius: 8px;
     display: flex;
     align-items: center;
     justify-content: center;
 }

 .logo-icon img {
     width: 40px;
     height: 40px;
 }

 .logo h1 {
     font-size: 1.5rem;
     font-weight: bold;
 }

 .nav-links {
     display: flex;
     gap: 1.5rem;
     list-style: none;
 }

 .nav-links a {
     color: white;
     text-decoration: none;
     padding: 0.5rem 1rem;
     border-radius: 8px;
     transition: background 0.3s;
 }

 .nav-links a:hover,
 .nav-links a.active {
     background: rgba(255, 255, 255, 0.2);
 }

 /* Main Content */
 main {
     max-width: 1200px;
     margin: 0 auto;
     padding: 2rem;
     /* height: 75vh; */
 }

 /* Page Header */
 .page-header {
     display: flex;
     justify-content: space-between;
     align-items: center;
     margin-bottom: 2rem;
 }

 .page-header h2 {
     font-size: 2.5rem;
     color: #1f2937;
 }

 .map-btn {
     background: #059669;
     color: white;
     border: none;
     padding: 0.75rem 1.5rem;
     border-radius: 8px;
     font-weight: bold;
     cursor: pointer;
     display: flex;
     align-items: center;
     gap: 0.5rem;
     transition: background 0.3s;
 }

 .map-btn img {
     width: 20px;
 }

 .map-btn:hover {
     background: #047857;
 }

 /* Hospital Cards */
 .hospital-card {
     background: white;
     border: 2px solid #e5e7eb;
     border-radius: 16px;
     padding: 2rem;
     margin-bottom: 1.5rem;
     transition: all 0.3s;
 }

 .hospital-card:hover {
     box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
     transform: translateY(-3px);
 }

 .hospital-header {
     display: flex;
     justify-content: space-between;
     align-items: start;
     margin-bottom: 1.5rem;
 }

 .hospital-title h3 {
     font-size: 1.5rem;
     color: #1f2937;
     margin-bottom: 0.5rem;
 }

 .hospital-type {
     display: inline-block;
     background: #dbeafe;
     color: #1e40af;
     padding: 0.5rem 1rem;
     border-radius: 20px;
     font-size: 0.9rem;
     font-weight: 600;
 }

 .hospital-icon {
     color: #2563eb;
     font-size: 2.5rem;
 }


 .hospital-icon img {
     width: 40px;
 }

 /* Hospital Details */
 .hospital-details {
     display: grid;
     gap: 1rem;
     margin-bottom: 1.5rem;
 }

 .detail-item {
     display: flex;
     align-items: center;
     gap: 0.75rem;
     color: #4b5563;
 }

 .detail-icon {
     color: #059669;
     font-size: 1.2rem;
 }


 .detail-icon img {
     width: 18px;
 }

 /* Services */
 .services {
     margin-bottom: 1.5rem;
 }

 .services-label {
     font-weight: 600;
     color: #374151;
     margin-bottom: 0.75rem;
 }

 .services-tags {
     display: flex;
     flex-wrap: wrap;
     gap: 0.5rem;
 }

 .service-tag {
     background: #d1fae5;
     color: #047857;
     padding: 0.5rem 1rem;
     border-radius: 20px;
     font-size: 0.9rem;
     font-weight: 500;
 }

 /* Action Button */
 .details-btn {
     width: 100%;
     background: #059669;
     color: white;
     border: none;
     padding: 1rem;
     border-radius: 8px;
     font-weight: bold;
     font-size: 1rem;
     cursor: pointer;
     transition: background 0.3s;
 }

 .details-btn:hover {
     background: #047857;
 }

 /* Footer */
 footer {
     background: #1f2937;
     color: white;
     padding: 2rem;
     text-align: center;
     margin-top: 3rem;
 }

 footer p {
     margin-bottom: 0.5rem;
 }

 .footer-subtitle {
     color: #9ca3af;
     font-size: 0.9rem;
 }

 /* Responsive */
 @media (max-width: 768px) {
     .nav-container {
         flex-direction: column;
         gap: 1rem;
     }

     .nav-links {
         flex-wrap: wrap;
         justify-content: center;
         gap: 0.5rem;
     }

     main {
         padding: 1rem;
     }

     .page-header {
         flex-direction: column;
         gap: 1rem;
         align-items: flex-start;
     }

     .page-header h2 {
         font-size: 2rem;
     }

     .map-btn {
         width: 100%;
         justify-content: center;
     }

     .hospital-header {
         flex-direction: column;
         gap: 1rem;
     }
 }

/* Estilos para avaliações nos cards */

.avaliacao-stats {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
}

.avaliacao-stats span {
    font-size: 14px;
}

.avaliar-container {
    margin-top: 10px;
}

.avaliar-btn {
    width: 100%;
    background: #fbbf24;
    color: #1f2937;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-size: 14px;
}

.avaliar-btn:hover {
    background: #f59e0b;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.3);
}

/* Seção de avaliações na página de detalhes */
.avaliacoes-section {
    margin-top: 30px;
    padding: 20px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
