/* Frontend Styles for Custom Directory Theme */

.cdt-working-hours-dropdown {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.cdt-wh-title {
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.cdt-wh-title:hover {
    background: #e9ecef;
}

.cdt-wh-arrow {
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: 5px;
    vertical-align: middle;
    border-top: 4px dashed;
    border-top: 4px solid \9;
    border-right: 4px solid transparent;
    border-left: 4px solid transparent;
}

.cdt-wh-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #ffffff;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    min-width: 330px;
    padding: 20px;
    border-radius: 12px;
    margin-top: 10px;
    border: 1px solid #f1f3f5;
    animation: cdtFadeIn 0.3s ease;
}

.cdt-working-hours-dropdown:hover .cdt-wh-content,
.cdt-working-hours-dropdown.active .cdt-wh-content {
    display: block !important;
}

@keyframes cdtFadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

.cdt-wh-table {
    width: 100%;
    border-collapse: collapse;
}

.cdt-wh-table tr {
    border-bottom: 1px solid #f1f3f5;
}

.cdt-wh-table tr:last-child {
    border-bottom: none;
}

.cdt-wh-table td {
    padding: 10px 0;
    font-size: 14px;
}

.cdt-wh-table .cdt-day {
    text-align: left;
    font-weight: 600;
    color: #495057;
    text-transform: capitalize;
}

.cdt-wh-table .cdt-time {
    text-align: right;
    color: #6c757d;
}

.cdt-24hrs {
    color: #2b8a3e;
    font-weight: 600;
}

.cdt-closed {
    color: #e03131;
    font-weight: 600;
}
