/* Εφημερεύοντα Φαρμακεία Χανίων */
.efc {
    --efc-green: #28a745;
    --efc-green-light: #2ecc40;
    --efc-dark: #343a40;
    --efc-grey: #6c757d;
    --efc-closed: #e8590c;
    --efc-text: #333;
    font-size: 15px;
    color: var(--efc-text);
}

.efc *,
.efc *::before,
.efc *::after {
    box-sizing: border-box;
}

.efc-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 24px;
    margin: 0 0 20px;
}

.efc-filter {
    flex: 0 1 280px;
    margin: 0;
}

.efc-filter select {
    width: 100%;
}

.efc-filter label {
    display: block;
    font-weight: 700;
    margin-bottom: 6px;
}

.efc-filter select {
    max-width: 100%;
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #fff;
    font-size: 15px;
}

.efc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.efc-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--efc-closed);
    border-radius: 4px;
    overflow: hidden;
}

.efc-card.is-open,
.efc-card.is-duty {
    border-color: var(--efc-green);
}

/* Επόμενες μέρες: εφημερεύει, χωρίς «ανοιχτό τώρα» */
.efc-card.is-duty .efc-cross {
    color: var(--efc-green-light);
}

.efc-card[hidden] {
    display: none;
}

/* Επάνω σκούρα μπάρα */
.efc-head {
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 86px;
    padding: 10px 18px;
    background: var(--efc-dark);
    color: #fff;
}

.efc-cross {
    flex: 0 0 auto;
    width: 64px;
    height: 64px;
    color: var(--efc-grey);
}

.efc-cross svg {
    display: block;
    width: 100%;
    height: 100%;
}

.efc-card.is-open .efc-cross {
    color: var(--efc-green-light);
    filter: drop-shadow(0 0 12px rgba(46, 204, 64, 0.7));
}

.efc-hours {
    font-size: 15px;
    line-height: 1.6;
    text-transform: uppercase;
}

.efc-status {
    display: inline-block;
    margin-top: 4px;
    padding: 1px 8px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
    background: var(--efc-grey);
    color: #fff;
}

.efc-card.is-open .efc-status {
    background: var(--efc-green-light);
    color: #10331a;
}

/* Σώμα κάρτας */
.efc-body {
    flex: 1 1 auto;
    padding: 20px;
}

.efc-name {
    margin: 0 0 16px;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
}

/* Λατινική εκδοχή (για τουρίστες), μικρότερη κάτω από το ελληνικό */
.efc-latin {
    display: block;
    margin: 2px 0 0;
    font-size: 12px;
    line-height: 1.4;
    color: #6c757d;
    letter-spacing: 0.02em;
}

.efc-name + .efc-latin {
    margin: -12px 0 16px;
}

.efc-info {
    list-style: none;
    margin: 0;
    padding: 0;
}

.efc-info li {
    display: flex;
    gap: 16px;
    margin: 0 0 8px;
    line-height: 1.6;
}

.efc-info .efc-icon {
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    margin-top: 3px;
    color: var(--efc-dark);
}

.efc-info strong {
    font-weight: 700;
}

.efc-info a {
    color: inherit;
    text-decoration: none;
}

.efc-info a:hover,
.efc-info a:focus {
    text-decoration: underline;
}

/* Κάτω πράσινη μπάρα με κουμπιά */
.efc-actions {
    display: flex;
    background: var(--efc-green);
}

.efc-actions a {
    flex: 1 1 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 66px;
    color: #fff;
    transition: background-color 0.15s ease;
}

.efc-actions a:hover,
.efc-actions a:focus-visible {
    background: rgba(0, 0, 0, 0.12);
}

.efc-actions a:focus-visible {
    outline: 3px solid #fff;
    outline-offset: -3px;
}

.efc-actions svg {
    width: 38px;
    height: 38px;
}

.efc-sr {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.efc.is-loading .efc-grid {
    opacity: 0.5;
    transition: opacity 0.15s ease;
}

.efc-error {
    padding: 12px 16px;
    border: 1px solid var(--efc-closed);
    border-radius: 4px;
    background: #fff4ee;
}
