/**
 * Tree-Ripe Search Results — V6 Refined
 * Pixel-perfect match to search-v6-refined.html prototype
 * Version: 4.0.1
 */

/* ============================================
   SCOPED RESETS (replaces prototype's global resets)
   ============================================ */
.tr-sr {
    max-width: 1240px;
    margin: 0 auto;
    padding: clamp(32px, 5vw, 56px) clamp(20px, 4vw, 40px) 100px;
    font-family: 'Avenir Next', 'Avenir', -apple-system, BlinkMacSystemFont, sans-serif;
    color: #333333;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

.tr-sr a {
    text-decoration: none;
    color: inherit;
}

.tr-sr img {
    display: block;
    max-width: 100%;
}

.tr-sr button {
    font-family: inherit !important;
    cursor: pointer !important;
    border: none !important;
    background: none !important;
    padding: 0 !important;
    margin: 0 !important;
    line-height: inherit !important;
    color: inherit !important;
    font-size: inherit !important;
    font-weight: inherit !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    box-shadow: none !important;
    text-shadow: none !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    outline: none !important;
    min-height: auto !important;
    border-radius: 0 !important;
    height: auto !important;
    width: auto !important;
}

/* ============================================
   LAYOUT — Sidebar + Content
   ============================================ */
.tr-sr-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 48px;
    align-items: start;
}

/* ============================================
   HEADER — Clean, minimal
   ============================================ */
.tr-sr-header {
    grid-column: 1 / -1;
    margin-bottom: 8px;
}

.tr-sr-header-title {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 700;
    color: #333333;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.tr-sr-header-title span {
    color: #0F5E41;
}

.tr-sr-header-meta {
    font-size: 16px;
    color: #333333;
    margin-top: 8px;
}

.tr-sr-header-meta strong {
    color: #333333;
    font-weight: 700;
}

/* ============================================
   SIDEBAR — Vertical filter nav
   ============================================ */
.tr-sr-sidebar {
    position: sticky;
    top: 32px;
}

.tr-sr-sidebar-label {
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #333333;
    padding-bottom: 12px;
    margin-bottom: 8px;
    border-bottom: 2px solid #0F5E41;
}

.tr-sr-sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

/* Double-class selectors to beat .tr-sr button reset at (0,1,1) */
.tr-sr .tr-sr-sidebar-item {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 10px 14px !important;
    border-radius: 10px !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    color: #333333 !important;
    background: transparent !important;
    transition: all 0.15s ease !important;
    line-height: 1.6 !important;
    letter-spacing: normal !important;
    text-transform: none !important;
    box-shadow: none !important;
    text-shadow: none !important;
    min-height: auto !important;
    height: auto !important;
    width: 100% !important;
    margin: 0 !important;
    border: none !important;
}

.tr-sr .tr-sr-sidebar-item:hover {
    background: #E8F4EB !important;
    color: #0F5E41 !important;
}

.tr-sr .tr-sr-sidebar-item.is-active {
    background: #0F5E41 !important;
    color: #FFFFFF !important;
    font-weight: 600 !important;
}

.tr-sr .tr-sr-sidebar-item-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tr-sr .tr-sr-sidebar-item-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.tr-sr .tr-sr-sidebar-item-icon i {
    font-size: 16px;
}

.tr-sr .tr-sr-sidebar-item.is-active .tr-sr-sidebar-item-icon i {
    color: #FFFFFF !important;
}

.tr-sr .tr-sr-sidebar-item-count {
    font-size: 16px;
    font-weight: 700;
    color: #408469;
    min-width: 20px;
    text-align: right;
}

.tr-sr .tr-sr-sidebar-item.is-active .tr-sr-sidebar-item-count {
    color: #FFFFFF !important;
}

/* Sidebar CTA — Find a Fruit Stop (Kadence secondary button) */
.tr-sr-sidebar-cta {
    margin-top: 20px;
    text-align: center;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    justify-content: center !important;
    width: 100% !important;
}

.tr-sr-sidebar-cta i {
    font-size: 14px !important;
    flex-shrink: 0 !important;
    display: inline-block !important;
    vertical-align: middle !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* ============================================
   CONTENT AREA
   ============================================ */
.tr-sr-content {
    min-width: 0;
}

/* ============================================
   SECTIONS
   ============================================ */
.tr-sr-section {
    margin-bottom: clamp(44px, 5vw, 64px);
}

.tr-sr-section:last-child {
    margin-bottom: 0;
}

.tr-sr-section.is-hidden {
    display: none;
}

.tr-sr-section-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: clamp(18px, 2vw, 28px);
}

.tr-sr-section-left {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.tr-sr-section-title {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(20px, 2.5vw, 28px);
    font-weight: 700;
    color: #333333;
    letter-spacing: -0.01em;
}

.tr-sr-section-count {
    font-size: 16px;
    color: #408469;
    font-weight: 500;
}

.tr-sr-section-divider {
    flex: 1;
    height: 1px;
    background: #E6E0D6;
    margin-left: 20px;
}

.tr-sr-view-all {
    font-size: 16px;
    font-weight: 600;
    color: #0F5E41;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.2s ease;
}

.tr-sr-view-all:hover {
    gap: 10px;
}

.tr-sr-view-all i {
    font-size: 14px;
}

/* ============================================
   IMAGE CARD GRID
   ============================================ */
.tr-sr-grid {
    display: grid;
    gap: clamp(16px, 2vw, 24px);
}

.tr-sr-grid--3col {
    grid-template-columns: repeat(3, 1fr);
}

/* ============================================
   IMAGE CARDS — Rounded images, clean
   ============================================ */
.tr-sr-card {
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.tr-sr-card:hover {
    transform: translateY(-4px);
}

.tr-sr-card-img {
    display: block;
    aspect-ratio: 1;
    overflow: hidden;
    background: #eeeeee;
    border-radius: 14px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.3s ease;
}

.tr-sr-card:hover .tr-sr-card-img {
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
}

.tr-sr-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.tr-sr-card:hover .tr-sr-card-img img {
    transform: scale(1.06);
}

.tr-sr-card-body {
    padding: 14px 4px 4px;
}

.tr-sr-card-title {
    font-size: 16px;
    font-weight: 700;
    color: #333333;
    line-height: 1.3;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tr-sr-card-title a {
    color: inherit;
    text-decoration: none;
}

.tr-sr-card:hover .tr-sr-card-title {
    color: #0F5E41;
}

.tr-sr-card-price {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 18px;
    font-weight: 700;
    color: #0F5E41;
}

.tr-sr-card-price del {
    color: #408469;
    font-weight: 400;
    font-size: 16px;
    margin-right: 4px;
    font-family: 'Avenir Next', sans-serif;
}

.tr-sr-card-price ins {
    text-decoration: none;
}

.tr-sr-card-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 16px;
    font-weight: 600;
    color: #0F5E41;
    margin-top: 4px;
    transition: gap 0.2s ease;
}

.tr-sr-card-link:hover {
    gap: 9px;
}

.tr-sr-card-link i {
    font-size: 12px;
}

/* ============================================
   FAQ — Clean list with green dot
   ============================================ */
.tr-sr-faq-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.tr-sr-faq-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 0;
    border-bottom: 1px solid #E6E0D6;
    transition: all 0.2s ease;
}

.tr-sr-faq-item:first-child {
    padding-top: 0;
}

.tr-sr-faq-item:last-child {
    border-bottom: none;
}

.tr-sr-faq-item:hover {
    padding-left: 6px;
}

.tr-sr-faq-dot {
    width: 10px;
    height: 10px;
    flex-shrink: 0;
    background: #0F5E41;
    border-radius: 50%;
    margin-top: 8px;
}

.tr-sr-faq-item-content {
    flex: 1;
    min-width: 0;
}

.tr-sr-faq-item-title {
    font-size: 16px;
    font-weight: 700;
    color: #333333;
    line-height: 1.4;
}

.tr-sr-faq-item:hover .tr-sr-faq-item-title {
    color: #0F5E41;
}

.tr-sr-faq-item-excerpt {
    font-size: 16px;
    color: #333333;
    margin-top: 3px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tr-sr-faq-item-arrow {
    font-size: 14px;
    flex-shrink: 0;
    color: #408469;
    opacity: 0;
    margin-top: 4px;
    transition: all 0.2s ease;
}

.tr-sr-faq-item:hover .tr-sr-faq-item-arrow {
    opacity: 1;
}

/* ============================================
   BLOG — Horizontal cards
   ============================================ */
.tr-sr-blog-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.tr-sr-blog-card {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 20px;
    align-items: center;
    border-radius: 14px;
    overflow: hidden;
    transition: all 0.25s ease;
    padding: 4px;
}

.tr-sr-blog-card:hover {
    background: #E8F4EB;
    padding-left: 8px;
}

.tr-sr-blog-card-img {
    width: 100%;
    aspect-ratio: 3/2;
    border-radius: 12px;
    overflow: hidden;
    background: #eeeeee;
}

.tr-sr-blog-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.tr-sr-blog-card:hover .tr-sr-blog-card-img img {
    transform: scale(1.05);
}

.tr-sr-blog-card-body {
    padding: 4px 0;
}

.tr-sr-blog-card-title {
    font-size: 16px;
    font-weight: 700;
    color: #333333;
    line-height: 1.35;
    margin-bottom: 6px;
}

.tr-sr-blog-card:hover .tr-sr-blog-card-title {
    color: #0F5E41;
}

.tr-sr-blog-card-excerpt {
    font-size: 16px;
    color: #333333;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ============================================
   PAGES — Minimal list
   ============================================ */
.tr-sr-page-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 0;
    transition: padding-left 0.2s ease;
}

.tr-sr-page-item:hover {
    padding-left: 6px;
}

.tr-sr-page-dot {
    width: 8px;
    height: 8px;
    flex-shrink: 0;
    background: #408469;
    border-radius: 50%;
}

.tr-sr-page-item-title {
    font-size: 16px;
    font-weight: 600;
    color: #333333;
    flex: 1;
}

.tr-sr-page-item:hover .tr-sr-page-item-title {
    color: #0F5E41;
}

.tr-sr-page-item-arrow {
    font-size: 14px;
    color: #408469;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.tr-sr-page-item:hover .tr-sr-page-item-arrow {
    opacity: 1;
}

/* ============================================
   EMPTY STATE
   ============================================ */
.tr-sr-empty {
    text-align: center;
    padding: clamp(48px, 6vw, 100px) 24px;
}

.tr-sr-empty-icon {
    margin: 0 auto 24px;
    color: #408469;
    opacity: 0.4;
}

.tr-sr-empty-icon i {
    font-size: 60px;
}

.tr-sr-empty-title {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 700;
    color: #333333;
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}

.tr-sr-empty-desc {
    font-size: 16px;
    color: #333333;
    max-width: 420px;
    margin: 0 auto 32px;
    line-height: 1.6;
}

.tr-sr-empty-suggestions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.tr-sr-empty-tag {
    display: inline-block;
    padding: 10px 22px;
    font-size: 16px;
    font-weight: 600;
    color: #0F5E41;
    background: #E8F4EB;
    border-radius: 100px;
    transition: all 0.2s ease;
}

.tr-sr-empty-tag:hover {
    background: #0F5E41;
    color: #FFFFFF;
}

/* ============================================
   RESPONSIVE — Tablet: collapse sidebar
   ============================================ */
@media (max-width: 900px) {
    .tr-sr-layout {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .tr-sr-sidebar {
        position: static;
        margin-bottom: 32px;
    }

    .tr-sr-sidebar-label {
        display: none;
    }

    .tr-sr-sidebar-nav {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 6px;
    }

    .tr-sr-sidebar-item {
        padding: 9px 16px;
        font-size: 16px;
        border: 2px solid #E6E0D6;
        border-radius: 100px;
    }

    .tr-sr-sidebar-item:hover {
        border-color: #0F5E41;
        background: transparent;
    }

    .tr-sr-sidebar-item.is-active {
        border-color: #0F5E41;
    }

    .tr-sr-sidebar-cta {
        margin-top: 0;
    }

    .tr-sr-grid--3col {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ============================================
   RESPONSIVE — Mobile
   ============================================ */
@media (max-width: 768px) {
    .tr-sr-grid--3col {
        grid-template-columns: repeat(2, 1fr);
    }

    .tr-sr-blog-card {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .tr-sr-blog-card-img {
        aspect-ratio: 16/9;
    }

    .tr-sr-section-header {
        flex-direction: column;
        gap: 4px;
        align-items: flex-start;
    }

    .tr-sr-card:hover {
        transform: translateY(-2px);
    }

    .tr-sr-sidebar-nav {
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 4px;
    }

    .tr-sr-sidebar-nav::-webkit-scrollbar {
        display: none;
    }

    .tr-sr-sidebar-item {
        white-space: nowrap;
        flex-shrink: 0;
    }
}

/* ============================================
   RESPONSIVE — Small Mobile
   ============================================ */
@media (max-width: 480px) {
    .tr-sr-grid--3col {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .tr-sr-sidebar-item-count {
        display: none;
    }
}

/* ============================================
   UTILITY
   ============================================ */
.tr-sr-section.is-hidden {
    display: none;
}

@media (prefers-reduced-motion: reduce) {
    .tr-sr *,
    .tr-sr *::before,
    .tr-sr *::after {
        transition-duration: 0.01ms !important;
    }

    .tr-sr-card:hover,
    .tr-sr-empty-tag:hover {
        transform: none !important;
    }
}

@media print {
    .tr-sr-sidebar {
        display: none;
    }

    .tr-sr-layout {
        grid-template-columns: 1fr;
    }
}