/* Blog Search Hero Styles */
.blog-search-hero {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    max-width: 600px;
    width: 90%;
    z-index: 10;
}

.blog-search-form {
    width: 100%;
}

.blog-search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50px;
    padding: 8px 8px 8px 50px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transition: box-shadow 0.3s ease;
}

.blog-search-input-wrapper:hover,
.blog-search-input-wrapper:focus-within {
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.25);
}

.blog-search-icon {
    position: absolute;
    left: 18px;
    color: #666;
    pointer-events: none;
}

.blog-search-input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 16px;
    padding: 9px 5px;
    color: #333;
    outline: none;
}

.blog-search-input::placeholder {
    color: #999;
}

.blog-search-button {
    background: linear-gradient(135deg, #c9a84c 0%, #f5d78e 100%);
    color: #11315f;
    border: none;
    border-radius: 40px;
    padding: 12px 32px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.blog-search-button:hover {
    background: linear-gradient(135deg, #a97c00 0%, #c9a84c 100%);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(201, 168, 76, 0.4);
}

/* Search Results Popup */
.blog-search-popup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.blog-search-popup-content {
    background: white;
    border-radius: 16px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    margin-top: 30px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.blog-search-popup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px 15px;
    border-bottom: 1px solid #e5e7eb;
    flex-wrap: wrap;
    gap: 16px;
}

.blog-search-popup-header h3 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    color: #11315f;
}

.blog-search-destination-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    padding: 10px 10px;
}

.destination-link {
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(17, 49, 95, 0.3);
    color: #11315f;
    text-decoration: none;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.destination-link:hover {
    background: rgb(161 161 161 / 8%);
    color: #f98ab8 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.blog-search-popup-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #11315f;
    padding: 5px 0px 5px 0px;
}

.blog-search-popup-close {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog-search-popup-close:hover {
    background: #f3f4f6;
    color: #11315f;
}

.blog-search-results {
    padding: 24px;
    overflow-y: auto;
    max-height: calc(90vh - 80px);
}

.blog-search-results-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.blog-search-result-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    border: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    padding: 16px;
    text-decoration: none;
    color: inherit;
}

.blog-search-result-card.no-image {
    padding: 20px;
}

.blog-search-result-card:hover {
    box-shadow: 0 4px 12px rgb(0 0 0 / 8%);
    transform: translateX(0px);
}

.blog-search-result-image {
    position: relative;
    width: 100px;
    height: 100px;
    overflow: hidden;
    border-radius: 8px;
    flex-shrink: 0;
    margin-right: 16px;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog-search-result-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.blog-search-result-content {
    flex: 1;
    padding: 0;
}

.blog-search-result-date {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #666;
    margin-bottom: 4px;
}

.blog-search-result-date svg {
    flex-shrink: 0;
}

.blog-search-result-title {
    margin: 0 0 4px 0;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
    text-align: left;
}

.blog-search-result-title a {
    color: #11315f;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-search-result-title a:hover {
    color: #c9a84c;
}

.blog-search-result-excerpt {
    font-size: 13px;
    color: #666;
    line-height: 1.4;
    margin: 0 0 8px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-align: left;
}

.blog-search-result-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #c9a84c;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-search-result-link svg {
    transition: transform 0.3s ease;
}

.blog-search-result-link:hover {
    color: #11315f;
}

.blog-search-result-link:hover svg {
    transform: translateX(4px);
}

.blog-search-loading,
.blog-search-no-results,
.blog-search-error {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    font-size: 16px;
}

@media (max-width: 768px) {
    .blog-search-hero {
        bottom: 40px;
        width: 95%;
    }

    .blog-search-input-wrapper {
        flex-wrap: wrap;
        padding: 8px 7px 8px 35px;
        border-radius: 30px;
    }

    .blog-search-input {
        width: 100%;
        margin-bottom: 0px;
    }

    .blog-search-button {
        width: auto;
        padding: 10px 24px;
    }

    .blog-search-popup-content {
        max-height: 90vh;
    }

    .blog-search-results {
        padding: 5px;
    }

    .blog-search-results-grid {
        grid-template-columns: 1fr;
    }

    .blog-search-result-image {
        height: 135px;
        margin-right: 10px;
    }
    .blog-search-icon {
        left: 12px;
    }
    .blog-search-popup {
        padding: 5px;
    }
    .blog-search-popup-header {
        padding: 5px 5px;
        gap: 0px;
        display: flow;
    }
    .blog-search-destination-links {
        gap: 3px;
        padding: 2px 2px;
    }
    .destination-link {
        padding: 4px 7px;
    }
    .blog-search-popup-header h3 {
        font-size: 12px;
    }
    .blog-search-result-card {
        padding: 8px;
    }
    .blog-search-destination-links {
        padding: 3px 0px;
    }
}
