/* Title */
.directory-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 20px;
}

/* Alphabet Filter */
.new-alphabet-filter {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 40px;
}

.new-alphabet-filter-link {
    margin: 0 5px;
    font-size: 1.2rem;
    text-decoration: none;
    color: #007bff;
    font-weight: bold;
    cursor: pointer;
}

.new-alphabet-filter-link:hover,
.new-alphabet-filter-link:focus {
    text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .new-alphabet-filter-link {
        flex: 1 1 20%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .new-alphabet-filter-link {
        flex: 1 1 30%;
        text-align: center;
    }
}

/* Search Bar */
.search-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background-color: #f8f8f8;
    border-radius: 5px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.search-bar input[type="text"],
.search-bar select {
    flex: 1;
    margin: 0 5px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
}

.search-bar input[type="text"]::placeholder {
    color: #999;
}

.search-bar button {
    padding: 8px 12px;
    border: none;
    background-color: #007bff;
    color: white;
    font-size: 14px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-bar button:hover {
    background-color: #0056b3;
}

@media (max-width: 768px) {
    .search-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .search-bar input[type="text"],
    .search-bar select,
    .search-bar button {
        margin: 5px 0;
    }
}

/* Partner Cards */
.new-partner-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-radius: 15px; /* Bordes redondeados */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Sombra */
    transition: transform 0.3s, box-shadow 0.3s; /* Transición para el hover */
    overflow: hidden; /* Asegura que los bordes redondeados contengan el contenido */
}

.new-partner-card:hover {
    transform: translateY(-10px); /* Efecto de elevación en hover */
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2); /* Sombra más intensa en hover */
}

.new-card-img-container {
    width: 100%;
    height: 200px; /* Altura fija para todas las imágenes */
    position: relative;
    background-color: #f8f9fa; /* Color de fondo para imágenes que no llenan el contenedor */
    display: flex;
    justify-content: center;
    align-items: center;
}

.new-card-img-top {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    mix-blend-mode: multiply; /* Eliminar fondo blanco */
}

.new-card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px; /* Espaciado interno */
    background: #fff; /* Fondo blanco */
}
.new-card-title {
    color: #0056b3;
}
.new-card-title, .new-card-text {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.new-card-text span {
    white-space: nowrap; /* Evita el salto de línea */
}

.btn-primary {
    align-self: flex-start;
    margin-top: auto;
    background-color: #007bff; /* Color del botón */
    border: none;
    border-radius: 5px; /* Bordes redondeados */
    padding: 10px 20px; /* Espaciado interno */
    transition: background-color 0.3s; /* Transición para el hover */
}

.btn-primary i {
    margin-right: 10px; /* Espaciado entre el icono y el texto del botón */
}

.btn-primary:hover {
    background-color: #0056b3; /* Color del botón en hover */
}

/* No Members Found Message */
#no-members-message {
    display: none;
    text-align: center;
    color: red;
    font-size: 1.2em;
    margin-top: 20px;
}

/* Ajustes para el modal */
.modal-content {
    border-radius: 10px;
}

#map {
    width: 100%;
    height: 400px;
}
