/* Search & Breadcrumbs Custom Styles */

/* =========================================
   Breadcrumbs
   ========================================= */
.breadcrumb-nav {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.75rem; /* Small font */
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #555;
    margin-bottom: 20px;
}

.breadcrumb-nav a {
    text-decoration: none;
    color: #888;
    transition: color 0.3s ease;
}

.breadcrumb-nav a:hover {
    color: #BC5D41; /* Brand accent color */
}

.breadcrumb-nav .divider {
    margin: 0 8px;
    color: #ccc;
}

.breadcrumb-nav .current {
    color: #333;
    font-weight: 600;
}

/* =========================================
   Desktop Search Icon
   ========================================= */
.search-trigger {
    background: none;
    border: none;
    color: #2F4F4F; /* Deep Forest Green */
    font-size: 1.2rem;
    cursor: pointer;
    margin-left: 20px;
    transition: transform 0.3s ease, color 0.3s ease;
}

.search-trigger:hover {
    color: #BC5D41;
    transform: scale(1.1);
}

/* Search Modal */
.search-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    background-image: radial-gradient(#2F4F4F 0.5px, transparent 0.5px);
    background-size: 20px 20px;
    z-index: 9999;
    display: none; /* Hidden by default */
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 100px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.search-modal.active {
    display: flex;
    opacity: 1;
}

.search-modal-close {
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 2rem;
    background: none;
    border: none;
    cursor: pointer;
    color: #2F4F4F;
}

.search-modal-input-wrapper {
    width: 100%;
    max-width: 600px;
    position: relative;
    border-bottom: 2px solid #2F4F4F;
}

.search-modal-input {
    width: 100%;
    border: none;
    background: transparent;
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: #2F4F4F;
    padding: 10px 0;
    outline: none;
}

.search-modal-input::placeholder {
    color: #2F4F4F;
    opacity: 0.3;
}

.search-results-container {
    width: 100%;
    max-width: 800px;
    margin-top: 40px;
    max-height: 60vh;
    overflow-y: auto;
    padding: 0 20px;
}

.search-result-item {
    display: block;
    padding: 20px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    text-decoration: none;
    transition: background 0.2s ease;
}

.search-result-item:hover {
    background: rgba(188, 93, 65, 0.05);
}

.search-result-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    color: #2F4F4F;
    margin-bottom: 5px;
    display: block;
}

.search-result-meta {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.85rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
}

/* =========================================
   Mobile Search Input
   ========================================= */
.mobile-search-input-wrapper {
    width: 100%;
    padding: 20px 30px 10px 30px;
    box-sizing: border-box;
    position: relative;
}

.mobile-search-input {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    color: #fff;
    font-family: 'DM Sans', sans-serif;
    font-size: 1rem;
    padding: 10px 0;
    outline: none;
    border-radius: 0; /* Remove iOS border radius */
}

.mobile-search-input::placeholder {
    color: #fff;
    opacity: 0.7;
}

.mobile-search-results {
    padding: 0 30px;
    margin-bottom: 20px;
    max-height: 200px;
    overflow-y: auto;
    display: none; /* Hidden until search */
}

.mobile-search-results.active {
    display: block;
}

.mobile-result-item {
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    display: block;
    text-decoration: none;
}

.mobile-result-title {
    color: #fff;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    display: block;
}

.mobile-result-category {
    color: rgba(255,255,255,0.6);
    font-size: 0.75rem;
    text-transform: uppercase;
}
