/* farm.css */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #f3f4f6;
    color: #1f2937;
    line-height: 1.6;
}

/* Navigation */
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; */
}

/* Info Banner */
.info-banner {
    background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
    color: white;
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.info-banner-icon {
    font-size: 2rem;
}

.info-banner-icon img {
    width: 40px;
}

.info-banner-text h3 {
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
}

.info-banner-text p {
    opacity: 0.95;
}

/* Page Header */
.page-header {
    text-align: center;
    margin-bottom: 2rem;
}

.page-header h2 {
    font-size: 2rem;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.page-subtitle {
    color: #6b7280;
    font-size: 1.5rem;
}

/* Filter Section */
.filter-section {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.filter-icon {
    font-size: 1.5rem;
}

.filter-label {
    font-weight: 600;
    color: #374151;
}

.filter-select {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
}

.filter-select:focus {
    outline: none;
    border-color: #059669;
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.1);
}

/* Farmacia Card */
.farmacia-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;


}

.farmacia-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.farmacia-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}


.farmacias-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.farmacia-title {
    flex: 1;
}

.farmacia-title h3 {
    font-size: 1.5rem;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.badge-plantao {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: #d1fae5;
    color: #047857;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.farmacia-icon {
    font-size: 2.5rem;
}

.farmacia-icon img {
    width: 40px;
}

/* Farmacia Details */
.farmacia-details {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #4b5563;
}

.detail-icon {
    font-size: 1.25rem;
}


.detail-icon img {
    width: 18px;
}

/* Services */
.farmacia-services {
    margin-bottom: 1.5rem;
}

.farmacia-services p {
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.75rem;
}

.farmacia-services ul {
    list-style: none;
    padding-left: 0;
}

.farmacia-services li {
    padding: 0.5rem 0;
    color: #6b7280;
    border-bottom: 1px solid #f3f4f6;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.farmacia-services li:before {
    content: "✓";
    color: #7c3aed;
    font-weight: bold;
}

.farmacia-services li:last-child {
    border-bottom: none;
}

/* Details Button */
.details-btn {
    width: 100%;
    padding: 0.75rem;
    background: #7c3aed;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.details-btn img {
    width: 20px;
    margin-right: 0.5rem;
}

.details-btn:hover {
    background: #6d28d9;
}

/* Botão de Medicamentos */
.medicamentos-btn {
    width: 100%;
    padding: 0.75rem;
    background: #059669;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.medicamentos-btn img {
    width: 20px;
}

.medicamentos-btn:hover {
    background: #047857;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
}

/* Ajuste para o botão de detalhes existente */
.details-btn {
    width: 100%;
    padding: 0.75rem;
    background: #7c3aed;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.details-btn:hover {
    background: #6d28d9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
}

/* Container dos botões */
.farmacia-card .button-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 15px;
}

/* Responsivo para os botões */
@media (max-width: 480px) {
    .farmacia-card .button-container {
        grid-template-columns: 1fr;
    }
}

/* Empty State */
.empty-message {
    text-align: center;
    padding: 3rem 1rem;
    background: white;
    border-radius: 12px;
    margin-top: 2rem;
}

.empty-message h3 {
    font-size: 1.5rem;
    color: #6b7280;
    margin-bottom: 1rem;
}

.empty-message p {
    color: #9ca3af;
}

/* Footer */
footer {
    background: #1f2937;
    color: white;
    text-align: center;
    padding: 2rem;
    margin-top: 4rem;
}

.footer-subtitle {
    color: #9ca3af;
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

/* 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;
    }

    .filter-section {
        flex-direction: column;
        align-items: flex-start;
    }

    .filter-select {
        width: 100%;
    }

    .farmacia-header {
        flex-direction: column;
        gap: 1rem;
    }
}



/* Botão Avaliar */
.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);
}

.avaliar-container {
    margin-top: 10px;
}

.avaliacoes-section {
    margin-top: 30px;
    padding: 20px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
