/* ===== HOME PAGE STYLES ===== */

/* Remove outer container styling for home page */
main.page-shell {
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background-color: transparent !important;
}

/* Toggle Switch Styling */
.switch-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
    flex-shrink: 0;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #444;
    transition: 0.3s;
    border-radius: 26px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #1A5D32;
}

input:checked + .slider:before {
    transform: translateX(24px);
}

/* Post Feed Styles */
.post-card {
    background: var(--bg-surface, #111111);
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 1rem;
}

.post-title {
    color: var(--text-primary, #FFFFFF);
    font-weight: 700;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.post-image {
    margin-bottom: 1rem;
    border-radius: 8px;
    overflow: hidden;
}

.post-image img {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
    display: block;
}

.post-body {
    color: var(--text-primary, #FFFFFF);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.post-cta {
    margin-bottom: 1rem;
}

.post-meta {
    color: var(--text-muted, #B0B0B0);
    font-size: 0.85rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-color, #333333);
}

/* Reviews Carousel Styles */
.reviews-carousel {
    position: relative;
}

.reviews-slideshow {
    position: relative;
    width: 100%;
    min-height: 200px;
    overflow: hidden;
    border-radius: 8px;
}

.reviews-slides-container {
    position: relative;
    width: 100%;
    min-height: 200px;
}

.review-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 200px;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 0;
    visibility: hidden;
    padding: 1rem;
}

.review-slide.active {
    opacity: 1;
    z-index: 10;
    visibility: visible;
}

.review-slide-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    color: var(--text-muted, #B0B0B0);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
}

.review-stars {
    color: #FFD700;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.review-text {
    color: var(--text-primary, #FFFFFF);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 0.75rem;
    font-style: italic;
}

.review-author {
    color: var(--text-muted, #B0B0B0);
    font-size: 0.85rem;
    text-align: right;
}

.review-verified {
    color: var(--accent-green, #0E6B3B);
    font-size: 0.75rem;
    margin-left: 0.5rem;
}

/* Gallery Slideshow Styles */
.gallery-slideshow {
    position: relative;
    overflow: hidden;
}

/* Hide slideshow until JavaScript initializes */
.slideshow-container:not(.initialized),
.flash-sales-slideshow-container:not(.initialized) {
    opacity: 0;
}

.slideshow-container.initialized,
.flash-sales-slideshow-container.initialized {
    opacity: 1;
    transition: opacity 0.3s ease;
}

.slideshow-container {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
    border-radius: 8px;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 0;
    visibility: hidden;
}

.slide.active {
    opacity: 1;
    z-index: 10;
    visibility: visible;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
    padding: 2rem 1rem 1rem;
    z-index: 2;
    display: none;
}

.slide-caption h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.slide-caption p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.9;
}

.slideshow-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 100;
    transition: background 0.3s ease, opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
    opacity: 0;
}

.slideshow-container:hover .slideshow-arrow {
    opacity: 1;
}

.slideshow-arrow:hover {
    background: rgba(14, 107, 59, 0.8);
}

.slideshow-arrow:focus-visible {
    opacity: 1;
    background: rgba(14, 107, 59, 0.8);
}

.slideshow-prev {
    left: 10px;
}

.slideshow-next {
    right: 10px;
}

.slideshow-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 100;
    pointer-events: auto;
    display: none;
}

.slideshow-dot {
    pointer-events: auto;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slideshow-dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

.slideshow-dot.active {
    background: var(--accent-green, #0E6B3B);
    transform: scale(1.2);
}

/* Flash Sales Carousel Styles */
.flash-sales-carousel {
    position: relative;
    overflow: hidden;
}

.flash-sales-slideshow-container {
    position: relative;
    width: 100%;
    min-height: 400px;
    height: auto;
    overflow: hidden;
    border-radius: 8px;
}

.flash-sale-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    min-height: 400px;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    text-decoration: none;
    color: inherit;
}

.flash-sale-slide.active {
    opacity: 1;
    z-index: 1;
}

.flash-sale-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 400px;
    max-height: 500px;
}

.flash-sale-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0E6B3B 0%, #1A5D32 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.flash-sale-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(14, 107, 59, 0.95), transparent);
    color: white;
    padding: 2rem 1.25rem 1rem;
    z-index: 2;
    margin-top: auto;
}

.flash-sale-caption h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
}

.flash-sale-caption .urgency-text {
    margin: 0 0 0.75rem 0;
    font-size: 0.95rem;
    color: #ffcc00;
    font-weight: 600;
    line-height: 1.4;
}

.flash-sale-caption .live-badge {
    display: inline-block;
    background: #dc3545;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 700;
    animation: pulse 2s infinite;
}

.flash-sale-caption .scheduled-badge {
    display: inline-block;
    background: #0E6B3B;
    color: white;
    padding: 0.125rem 0.5rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.flash-sales-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10;
    transition: opacity 0.3s ease, background 0.3s ease;
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.flash-sales-slideshow-container:hover .flash-sales-arrow {
    opacity: 1;
}

.flash-sales-arrow:hover,
.flash-sales-arrow:focus-visible {
    background: rgba(14, 107, 59, 0.9);
    opacity: 1;
}

.flash-sales-prev {
    left: 8px;
}

.flash-sales-next {
    right: 8px;
}

.flash-sales-dots {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.flash-sales-slideshow-container:hover .flash-sales-dots {
    opacity: 1;
    gap: 6px;
    z-index: 10;
}

.flash-sales-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.flash-sales-dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

.flash-sales-dot.active {
    background: #0E6B3B;
    transform: scale(1.2);
}

/* Clickable slots and day cards */
.slot-clickable,
.day-clickable {
    text-decoration: none;
    color: inherit;
    display: block;
    cursor: pointer;
    transition: all 0.2s ease;
}

.slot-clickable:hover,
.day-clickable:hover {
    background-color: rgba(14, 107, 59, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.slot-clickable:hover .slot-badge,
.day-clickable:hover .badge {
    background-color: #0E6B3B;
}

/* Contact Map Styles */
.contact-map-container {
    margin-top: 1rem;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 2px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.contact-map-container:hover {
    border-color: var(--accent-green);
    box-shadow: var(--shadow-md);
}

#contact-map {
    width: 100%;
    height: 200px;
    border-radius: var(--radius-sm);
}

.contact-address-link {
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    padding: 2px 4px;
    border-radius: 4px;
}

.contact-address-link:hover {
    color: var(--accent-green);
    text-decoration: underline;
    background-color: rgba(14, 107, 59, 0.1);
}

.contact-address-link:focus {
    outline: 2px solid var(--accent-green);
    outline-offset: 2px;
}

.get-directions-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 10px 16px;
    background-color: var(--accent-green);
    color: #FFFFFF !important;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: var(--font-weight-bold);
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    letter-spacing: 0.5px;
    margin-top: 1rem;
    justify-content: center;
}

.get-directions-btn:hover {
    background-color: var(--accent-green-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.get-directions-btn:focus-visible {
    outline: 2px solid var(--accent-green);
    outline-offset: 2px;
}

.get-directions-btn i {
    font-size: 16px;
}

/* Loading States */
.loading-skeleton {
    background: linear-gradient(90deg, var(--bg-surface-light) 25%, var(--bg-surface) 50%, var(--bg-surface-light) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
    border-radius: var(--radius-sm);
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Empty States */
.empty-state {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--text-muted);
}

.empty-state-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .slideshow-container {
        height: 250px;
    }

    .slideshow-arrow {
        width: 32px;
        height: 32px;
        font-size: 1.2rem;
        opacity: 1;
    }

    .slide-caption h4 {
        font-size: 1rem;
    }

    .slide-caption p {
        font-size: 0.85rem;
    }

    .flash-sales-slideshow-container {
        min-height: 300px;
    }

    .flash-sale-slide {
        min-height: 300px;
    }

    .flash-sale-slide img {
        min-height: 300px;
    }

    .flash-sale-caption h4 {
        font-size: 1rem;
    }

    .flash-sale-caption .urgency-text {
        font-size: 0.85rem;
    }

    .flash-sales-arrow {
        opacity: 1;
    }

    #contact-map {
        height: 180px;
    }

    .get-directions-btn {
        padding: 12px 16px;
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .slideshow-container {
        height: 200px;
    }

    .flash-sales-slideshow-container {
        min-height: 250px;
    }

    .flash-sale-slide {
        min-height: 250px;
    }

    .flash-sale-slide img {
        min-height: 250px;
    }

    .post-card {
        padding: 1rem;
    }

    .post-image img {
        max-height: 250px;
    }
}
