/* ============================================
   Piktorfesték Stores - Flat 3-Column Grid Design
   ============================================ */

:root {
    /* Colors - Woodmart integration */
    --pf-primary: var(--wd-primary-color, #e52d2e);
    --pf-primary-hover: #cf2e2e;
    --pf-text-color: var(--wd-text-color, #333);

    /* Card system - Flat design */
    --pf-card-bg: #f7f7f7;
    --pf-card-border: 1px solid rgba(0, 0, 0, 0.08);

    /* Spacing - Compact */
    --pf-space-sm: 12px;
    --pf-space-md: 20px;
    --pf-space-lg: 30px;

    /* Typography */
    --pf-heading-weight: 600;
    --pf-heading-weight-bold: 700;

    /* Border radius */
    --pf-border-radius: 0;
}

/* ============================================
   Store Single Layout
   ============================================ */

.pf-store-single {
    /* Width controlled by container */
}

/* Header */
.pf-store-header {
    margin-bottom: var(--pf-space-lg);
    padding-bottom: var(--pf-space-md);
    border-bottom: 2px solid var(--pf-primary);
}

.pf-store-title {
    font-size: 28px;
    font-weight: var(--pf-heading-weight-bold);
    color: var(--pf-text-color);
    margin: 0 0 10px 0;
    line-height: 1.3;
}

.pf-store-hq-badge {
    display: inline-block;
    background: var(--pf-primary);
    color: #fff;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

/* ============================================
   3 Column Grid System
   ============================================ */

.pf-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: var(--pf-space-lg);
}

/* Grid Items - Card Style */
.pf-grid-item {
    background: var(--pf-card-bg);
    padding: var(--pf-space-md);
    min-height: 250px;
}

.pf-grid-item h3 {
    font-size: 16px;
    font-weight: var(--pf-heading-weight-bold);
    margin: 0 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--pf-primary);
    color: var(--pf-text-color);
}

/* Empty card (when no data) */
.pf-empty-card {
    background: transparent;
    min-height: 0;
}

/* Responsive - Mobile Stack */
@media (max-width: 768px) {
    .pf-info-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .pf-grid-item {
        min-height: auto;
    }
}

/* ============================================
   Featured Image
   ============================================ */

.pf-featured-image {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.pf-featured-image img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ============================================
   Contact & Hours Cards
   ============================================ */

.pf-contact-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pf-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    line-height: 1.5;
}

.pf-contact-item .dashicons {
    color: #777;
    font-size: 18px;
    flex-shrink: 0;
    margin-top: 2px;
}

.pf-contact-item a {
    color: var(--pf-text-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

.pf-contact-item a:hover {
    color: var(--pf-primary);
}

/* Hours Table */
.pf-hours-table {
    width: 100%;
    font-size: 14px;
}

.pf-hours-table tr {
    border-bottom: 1px solid #e1e1e1;
}

.pf-hours-table tr:last-child {
    border-bottom: none;
}

.pf-hours-table th,
.pf-hours-table td {
    padding: 8px 0;
    text-align: left;
    font-weight: normal;
}

.pf-hours-table th {
    color: #777;
}

.pf-hours-table td {
    text-align: right;
    color: var(--pf-text-color);
}

.pf-hours-table tr.pf-today {
    background: rgba(229, 45, 46, 0.05);
}

.pf-hours-table tr.pf-today th,
.pf-hours-table tr.pf-today td {
    font-weight: 600;
    color: var(--pf-primary);
}

/* ============================================
   Map Card
   ============================================ */

.pf-map-card h3 {
    margin-bottom: 15px;
}

.pf-store-map {
    width: 100%;
    height: 200px;
    margin-bottom: 10px;
}

.pf-directions-link {
    text-align: center;
    margin: 10px 0 0 0;
}

.pf-btn {
    display: inline-block;
    padding: 8px 20px;
    background: var(--pf-primary);
    color: #fff !important;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.2s ease;
}

.pf-btn:hover {
    background: var(--pf-primary-hover);
}

/* ============================================
   Special Info Cards
   ============================================ */

.pf-card-info {
    background: #f5f5f5;
    border-left: 4px solid var(--pf-primary);
}

.pf-card-info p {
    font-size: 14px;
    line-height: 1.6;
    margin: 8px 0;
}

.pf-card-info p:last-child {
    margin-bottom: 0;
}

.pf-special-day {
    background: #fff8dc;
    border-left: 4px solid #ffa500;
}

.pf-special-day p {
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
}

.pf-discount-highlight {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 10px 0 0 0;
    font-size: 15px;
    font-weight: 600;
}

.pf-discount-badge {
    display: inline-block;
    background: var(--pf-primary);
    color: #fff;
    padding: 4px 12px;
    font-size: 16px;
    font-weight: bold;
}

/* ============================================
   Store Description
   ============================================ */

.pf-store-description {
    background: var(--pf-card-bg);
    padding: var(--pf-space-md);
    margin-bottom: var(--pf-space-lg);
    line-height: 1.6;
    font-size: 14px;
}

.pf-store-description p:last-child {
    margin-bottom: 0;
}

/* ============================================
   Services Grid - 3 Column
   ============================================ */

.pf-services-section {
    margin-bottom: var(--pf-space-lg);
}

.pf-section-title {
    font-size: 20px;
    font-weight: var(--pf-heading-weight-bold);
    margin: 0 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--pf-primary);
    color: var(--pf-text-color);
}

.pf-services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.pf-service-card {
    background: var(--pf-card-bg);
    padding: var(--pf-space-md);
    text-align: center;
}

.pf-service-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pf-service-icon img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.pf-service-icon .dashicons {
    font-size: 48px;
    color: var(--pf-primary);
}

.pf-service-card h4 {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 10px 0;
    color: var(--pf-text-color);
}

.pf-service-description {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    text-align: center;
}

.pf-service-description p {
    margin: 0 0 8px;
}

.pf-service-description p:last-child {
    margin-bottom: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .pf-services-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

/* ============================================
   Gallery - Single Image Display
   ============================================ */

.pf-gallery-section {
    margin-bottom: var(--pf-space-lg);
}

.pf-gallery-single {
    max-width: 400px;
}

.pf-gallery-single .gallery {
    margin: 0;
}

.pf-gallery-single .gallery-item {
    padding: 0;
}

.pf-gallery-single img {
    width: 100%;
    height: auto;
    display: block;
}

/* ============================================
   Info Boxes (Parking, Directions)
   ============================================ */

.pf-store-info-box {
    background: var(--pf-card-bg);
    padding: var(--pf-space-md);
    margin-bottom: 16px;
}

.pf-store-info-box:last-child {
    margin-bottom: 0;
}

.pf-store-info-box h3 {
    font-size: 16px;
    font-weight: var(--pf-heading-weight-bold);
    color: var(--pf-text-color);
    margin: 0 0 var(--pf-space-sm) 0;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--pf-primary);
}

.pf-store-parking p,
.pf-store-directions p {
    line-height: 1.7;
    color: #555;
    margin: 8px 0;
    font-size: 14px;
}

/* ============================================
   Archive - Store List & Maps
   ============================================ */

/* Archive page styling */
.pf-stores-archive {
    max-width: 1200px;
    margin: 0 auto;
}

.pf-stores-archive h2 {
    font-size: 24px;
    font-weight: var(--pf-heading-weight-bold);
    color: var(--pf-text-color);
    margin: 0 0 20px 0;
    padding-bottom: var(--pf-space-md);
    border-bottom: 2px solid var(--pf-primary);
}

/* Store cards in archive */
.pf-store-card-archive {
    background: var(--pf-card-bg);
    padding: var(--pf-space-md);
    margin-bottom: 16px;
}

.pf-store-card-archive h3 {
    font-size: 18px;
    font-weight: var(--pf-heading-weight);
    margin: 0 0 10px 0;
}

.pf-store-card-archive h3 a {
    color: var(--pf-text-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

.pf-store-card-archive h3 a:hover {
    color: var(--pf-primary);
}

/* Map containers in archive */
.pf-stores-map-section {
    margin-bottom: 40px;
}

.pf-stores-map-section h3 {
    font-size: 20px;
    font-weight: var(--pf-heading-weight-bold);
    margin: 0 0 16px 0;
    color: var(--pf-text-color);
}

#pf-stores-map,
#pf-stores-map-budapest,
#pf-stores-map-other {
    width: 100%;
    height: 500px;
}

/* Info window styling */
.pf-map-info-window {
    padding: 10px;
    max-width: 250px;
}

.pf-map-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: var(--pf-text-color);
}

.pf-map-address,
.pf-map-phone {
    font-size: 13px;
    margin: 4px 0;
    color: #666;
}

.pf-map-phone a {
    color: var(--pf-primary);
    text-decoration: none;
}

.pf-map-link {
    margin-top: 8px;
}

.pf-map-link a {
    color: var(--pf-primary);
    font-weight: 600;
    font-size: 13px;
    text-decoration: none;
}

.pf-map-link a:hover {
    text-decoration: underline;
}

/* ============================================
   Legacy Archive Page Support
   ============================================ */

.pf-stores-page {
    padding-bottom: 60px;
}

.pf-section-title-legacy {
    font-size: 36px;
    font-weight: 800;
    color: var(--pf-primary);
    margin: 0 0 30px;
}

@media (max-width: 768px) {
    .pf-section-title-legacy {
        font-size: 28px;
    }
}

@media (max-width: 576px) {
    .pf-section-title-legacy {
        font-size: 24px;
        margin-top: -20px;
    }
}

.pf-stores-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 60px;
}

@media (max-width: 991px) {
    .pf-stores-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .pf-stores-grid {
        grid-template-columns: repeat(2, 1fr);
        margin-bottom: 40px;
    }
}

@media (max-width: 576px) {
    .pf-stores-grid {
        grid-template-columns: 1fr;
    }
}

.pf-store-card {
    padding: 20px;
    border: 1px solid rgba(0, 0, 0, 0.11);
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: #fff;
}

.pf-store-title a {
    color: inherit;
    text-decoration: none;
}

.pf-store-title a:hover {
    color: var(--pf-primary);
}

.pf-store-info {
    list-style: none;
    margin: 0 0 10px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pf-store-info li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.pf-store-info .pf-icon {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin-top: 2px;
}

.pf-store-info .pf-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.pf-store-info .pf-text {
    font-size: 14px;
    line-height: 1.5;
    color: #333;
}

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

.pf-store-info .pf-text a:hover {
    color: var(--pf-primary);
}

.pf-store-btn {
    display: inline-block;
    padding: 10px 20px;
    background: var(--pf-primary);
    color: #fff !important;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    margin-top: auto;
    transition: background 0.3s ease;
}

.pf-store-btn:hover {
    background: var(--pf-primary-hover);
    color: #fff !important;
}

/* =====================================================
   Stores Dropdown Shortcode
   ===================================================== */

.pf-stores-dropdown {
    padding: 20px;
    max-width: 100%;
}

.pf-stores-dropdown-grid {
    display: grid;
    grid-template-columns: repeat(var(--pf-dropdown-columns, 3), 1fr);
    gap: 15px;
}

.pf-dropdown-store-card {
    display: block;
    background: var(--pf-card-bg, #f7f7f7);
    padding: 15px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

.pf-dropdown-store-card:hover {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.pf-dropdown-store-name {
    color: var(--pf-primary, #e52d2e);
    margin: 0 0 10px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
}

.pf-hq-badge {
    display: inline-block;
    background: var(--pf-primary, #e52d2e);
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 6px;
    margin-left: 5px;
    vertical-align: middle;
    text-transform: uppercase;
}

.pf-dropdown-store-info {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 6px;
    font-size: 12px;
    line-height: 1.4;
    color: #555;
}

.pf-dropdown-store-info:last-child {
    margin-bottom: 0;
}

.pf-dropdown-store-info .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
    color: var(--pf-primary, #e52d2e);
    flex-shrink: 0;
    margin-top: 1px;
}

.pf-dropdown-store-info span:last-child {
    flex: 1;
}

.pf-stores-dropdown-footer {
    margin-top: 20px;
    text-align: center;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
}

.pf-stores-dropdown-footer .pf-btn {
    display: inline-block;
    padding: 10px 25px;
    background: var(--pf-primary, #e52d2e);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease;
}

.pf-stores-dropdown-footer .pf-btn:hover {
    background: var(--pf-primary-hover, #cf2e2e);
    color: #fff;
}

/* Dropdown responsive */
@media (max-width: 992px) {
    .pf-stores-dropdown-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .pf-stores-dropdown-grid {
        grid-template-columns: 1fr;
    }

    .pf-stores-dropdown {
        padding: 15px;
    }
}
