/* --- Local Winery Directory - Main Stylesheet --- */

/* --- Winery Directory Styles --- */
.lwd-directory-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); 
    gap: 40px; 
}
.lwd-winery-card { border: 1px solid #e9e9e9; border-radius: 8px; background: #ffffff; text-align: left; box-shadow: 0 4px 15px rgba(0,0,0,0.05); transition: all 0.3s ease-in-out; overflow: hidden; display: flex; flex-direction: column; }
.lwd-winery-card:hover { transform: translateY(-8px); box-shadow: 0 12px 25px rgba(0,0,0,0.1); }
.lwd-card-image img { width: 100%; height: auto; }
.lwd-card-content { padding: 30px; flex-grow: 1; display: flex; flex-direction: column; }
.lwd-title { font-size: 24px; margin-top: 0; margin-bottom: 15px; }
.lwd-title a { color: #1e464b; text-decoration: none; transition: color 0.3s ease; }
.lwd-title a:hover { color: #2a636b; }
.lwd-excerpt { color: #666; line-height: 1.6; margin-bottom: 25px; flex-grow: 1; }
.lwd-card-hours { margin-top: 20px; padding-top: 20px; border-top: 1px solid #eee; }
.lwd-card-hours-title { font-size: 16px; font-weight: bold; margin-bottom: 10px; color: #333; }
.lwd-card-hours ul { list-style: none; padding: 0; margin: 0; font-size: 14px; color: black; }
.lwd-card-hours li { display: flex; justify-content: space-between; padding: 4px 0; }

/* --- Winery Hours Table Styles --- */
.lwd-hours-table-wrapper { margin: 40px 0;}
.lwd-table-title { text-align: center; font-size: 28px; margin-bottom: 20px; color: #06354b; }
.lwd-table-scroll { overflow-x: auto; }
.lwd-hours-table { width: 100%;  border-collapse: collapse; border: 2px solid #A0103D; }
.lwd-hours-table th, .lwd-hours-table td { padding: 12px 15px; border: 2px solid white; border-radius: 8px; text-align: left; }
.entry-content .lwd-hours-table th { background-color: #A0103D; color: white; }
.lwd-hours-table tbody tr:nth-child(odd) td { background-color: rgba(160, 16, 61, 0.2); color: black; }
.lwd-hours-table tbody tr:nth-child(even) td { background-color: rgba(160, 16, 61, 0.1); color: black; }


/* --- Single Winery Page Styles --- */
.single-winery #content-area.fullwidth { width: 100%; padding-right: 0; }
.single-winery .container::before,
.tax-route .container::before { 
    display: none !important; 
}
.winery-featured-image { margin-bottom: 30px; }
.winery-info-box { margin-top: 40px; padding: 30px; border: 2px solid #06354b; border-radius: 8px; }
.winery-info-box h3 { margin-top: 0; }
.winery-buttons { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 15px; }
.winery-buttons .et_pb_button { background-color: #06354b; color: #ffffff !important; border-radius: 5px; padding: 12px 24px !important; line-height: 1.2 !important; font-weight: bold !important; transition: background-color 0.3s ease; }
.winery-buttons .et_pb_button:hover { background-color:  #27bcd6 !important; }
.winery-buttons a[href^="tel:"] { background-color: #06354b; }
.winery-buttons a[href^="tel:"]:hover { background-color: #27bcd6; }
.winery-buttons a[href^="mailto:"] { background-color: #06354b; }
.winery-buttons a[href^="mailto:"]:hover { background-color: #27bcd6; }
.winery-hours-section ul { list-style: none; padding: 0; }
.winery-hours-section li { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid #27bcd6; }
.winery-hours-section li:last-child { border-bottom: none; }
.winery-route { font-style: italic; }
.winery-route a { color: #A0103D; text-decoration: none; border-bottom: 1px dotted #A0103D; }
.winery-route a:hover { color: #df1e5c; border-bottom-color: #df1e5c; }

/* --- Responsive Hours Table Styles --- */
@media screen and (max-width: 767px) {
    .lwd-table-scroll {
        border: none;
        box-shadow: none;
    }
    .lwd-hours-table thead {
        display: none; /* Hide desktop headers on mobile */
    }
    .lwd-hours-table, .lwd-hours-table tbody, .lwd-hours-table tr, .lwd-hours-table td {
        display: block;
    }
    .lwd-hours-table tr {
        margin-bottom: 25px;
        border: 1px solid #A0103D;
        border-radius: 8px;
        box-shadow: 0 4px 15px rgba(0,0,0,0.05);
        overflow: hidden;
    }
    .lwd-hours-table td {
        text-align: right;
        border: none;
        border-bottom: 1px dotted #CC87A3;
        position: relative;
        padding-left: 50%;
    }
    .lwd-hours-table td:last-child {
        border-bottom: 0;
    }
    .lwd-hours-table td::before {
        content: attr(data-label);
        position: absolute;
        left: 15px;
        font-weight: bold;
        text-align: left;
    }
    .lwd-hours-table td:first-child {
        padding-left: 15px;
        padding-top: 15px;
        padding-bottom: 15px;
        text-align: center;
        font-weight: bold;
        font-size: 1.2em;
        background-color: #A0103D;
        color: white;
        border-bottom: 1px solid white;
    }
    .lwd-hours-table td:first-child::before {
        display: none;
    }
    /* This hides the closed days on mobile */
    .lwd-hours-table td.lwd-day-closed {
        display: none;
    }
}

/* --- Breadcrumb Styles --- */
.lwd-breadcrumbs {
    margin-bottom: 25px;
    font-size: 14px;
    color: #666;
}
.lwd-breadcrumbs a {
    color: #1e464b;
    text-decoration: none;
}
.lwd-breadcrumbs a:hover {
    text-decoration: underline;
}
