.fg-card {
    border: 3px solid #2ecc71;
    border-radius: 14px;
	border: 3px solid #16a34a; 
    padding: 20px;
    max-width: 420px;
    background: #ffffff;
    box-shadow: 0 6px 18px rgba(0,0,0,.12);
    font-family: inherit;
}

.fg-card h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.fg-card strong {
    font-size: 1.1rem;
    display: block;
    margin-bottom: 6px;
}

.fg-card p {
    margin: 6px 0;
}

.fg-maps {
    margin: 14px 0;
}

.fg-btn-maps {
    display: inline-block;
    padding: 10px 16px;
    background: #1d9bf0;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
}

.fg-btn-maps:hover {
    background: #157acb;
}

.fg-card small {
    display: block;
    margin-top: 12px;
    color: #555;
}
/* ===============================
   CRUZ VERDE FARMACIA
   =============================== */

.fg-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.fg-cross {
    position: relative;
    width: 26px;
    height: 26px;
    animation: fg-blink 1.6s infinite ease-in-out;
}

.fg-cross::before,
.fg-cross::after {
    content: "";
    position: absolute;
    background-color: #16a34a; /* verde farmacia */
    border-radius: 3px;
}

/* Barra vertical */
.fg-cross::before {
    width: 8px;
    height: 26px;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
}

/* Barra horizontal */
.fg-cross::after {
    width: 26px;
    height: 8px;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
}

/* Animación suave */
@keyframes fg-blink {
    0%   { opacity: 1; }
    50%  { opacity: 0.35; }
    100% { opacity: 1; }
}
/* Imagen */
.fg-image {
    margin: 12px 0;
    text-align: center;
}

.fg-img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,.12);
}

/* ===============================
   LISTA DE FARMACIAS
   =============================== */

.fg-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.fg-item {
    border: 2px solid #e5e7eb;
    border-radius: 14px;
    padding: 16px;
    background: #ffffff;
    transition: all .25s ease;
	text-align: center;
}

/* ===============================
   ICONO ACTIVO (CRUZ COMPLETA)
   =============================== */

.fg-item {
    position: relative;
}

/* Contenedor del icono */
.fg-active-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    z-index: 3;
}

/* Cruz */
.fg-active-icon .fg-cross {
    position: relative;
    width: 22px;
    height: 22px;
    animation: fg-blink 1.6s infinite ease-in-out;
}

/* Barra vertical */
.fg-active-icon .fg-cross::before {
    content: "";
    position: absolute;
    width: 6px;
    height: 22px;
    background-color: #16a34a;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    border-radius: 3px;
}

/* Barra horizontal */
.fg-active-icon .fg-cross::after {
    content: "";
    position: absolute;
    width: 22px;
    height: 6px;
    background-color: #16a34a;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 3px;
}


.fg-active-icon .fg-cross::after {
    width: 20px;
    height: 6px;
}
.fg-turno-fechas {
    margin-top: 18px;
	text-align: center;
    font-size: 0.85rem;
    color: #166534; /* verde oscuro */
    font-weight: 600;
}

/* Inactiva */
.fg-item.is-inactive {
    opacity: 0.55;
    filter: grayscale(40%);
}

.fg-item-header {
    margin-bottom: 8px;
}

.fg-status {
    font-size: 0.85rem;
    font-weight: 600;
}
.fg-item-image {
    display: flex;
    justify-content: center;
    margin: 10px 0 12px;
}

.fg-item-image img {
    display: block;
    max-width: 140px;
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,.12);
}

.fg-item-name {
    display: block;
	text-align: center;
    font-size: 1rem;
    margin-bottom: 4px;
}

.fg-item-address,
.fg-item-phone {
	text-align: center;
    margin: 4px 0;
    font-size: 0.9rem;
}

/* Botón solo visible en activa */
.fg-item.is-active .fg-btn-maps {
    display: inline-block;
    margin-top: 10px;
	margin: 10px auto 0;
}
/* ===============================
   FARMACIA ACTIVA – BORDE Y SOMBRA
   =============================== */

/* Estado activo */
.fg-item.is-active {
    border: 2px solid #16a34a; /* verde farmacia */
    box-shadow:
        0 8px 20px rgba(22, 163, 74, 0.25),
        0 0 0 2px rgba(22, 163, 74, 0.15);
    background-color: #ffffff;
}

/* Suavizar transición */
.fg-item {
    transition: border-color 0.25s ease,
                box-shadow 0.25s ease,
                transform 0.25s ease;
}

/* (Opcional) pequeño realce */
.fg-item.is-active:hover {
    transform: translateY(-2px);
}


/* Ocultar botón en inactivas */
.fg-item.is-inactive .fg-btn-maps {
    display: none;
}


