/* Search Modal Styles */
.tg-header-search-icon {
    display: inline-flex;
    align-items: center;
}

.search-toggle-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: all 0.3s ease;
    border-radius: 4px;
}
.header-sticky .search-toggle-btn {
    color: #0b1030;
}

.search-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.05);
}

.search-toggle-btn svg {
    width: 20px;
    height: 20px;
}

/* Modal Overlay */
.search-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.search-modal.active {
    display: flex;
    opacity: 1;
}

.search-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
}

.search-modal-content {
    position: relative;
    width: 90%;
    max-width: 1200px;
    max-height: 90vh;
    margin: auto;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.search-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.05);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s ease;
}

.search-modal-close:hover {
    background: rgba(0, 0, 0, 0.1);
    transform: rotate(90deg);
}

.search-modal-close svg {
    width: 20px;
    height: 20px;
    color: #1a1a1a;
}

/* Modal Header */
.search-modal-header {
    padding: 30px 30px 20px;
    border-bottom: 1px solid #e5e5e5;
}

.search-modal-title {
    font-size: 24px;
    font-weight: 800;
    color: #0b1030;
    margin: 0 0 20px;
}

.search-modal-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

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

.search-modal-input {
    width: 100%;
    padding: 14px 16px 14px 48px!important;
    border: 2px solid #e5e5e5!important;
    border-radius: 8px!important;
    font-size: 16px;
    font-weight: 500;
    color: #1a1a1a;
    outline: none;
    transition: all 0.2s ease;
}

.search-modal-input:focus {
    border-color: #F8B803;
    box-shadow: 0 0 0 3px rgba(248, 184, 3, 0.1);
}

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

/* Modal Body */
.search-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 30px;
}

.section-title {
    font-size: 18px;
    font-weight: 700;
    color: #0b1030;
    margin: 0 0 20px;
}

/* Yacht Grid */
.yacht-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

/* Ana Sayfadaki MOST POPULAR Card Yapısı */
.mp-card {
    display: block;
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 1px 2px rgba(16,24,40,.05), 0 1px 3px rgba(16,24,40,.1);
    transition: transform .2s ease, box-shadow .2s ease;
    text-decoration: none;
    color: inherit;
}

.mp-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(16,24,40,.12);
}

.mp-thumb {
    position: relative;
    aspect-ratio: 16/9;
    background-size: cover;
    background-position: center;
}

.mp-thumb::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,.0) 0%, rgba(0,0,0,.05) 100%);
}

.mp-body {
    padding: 14px 16px;
}

.mp-title {
    font-weight: 700;
    color: #0b1030;
    font-size: 16px;
    margin-bottom: 5px;
}

.mp-price {
    color: #475467;
    font-weight: 600;
    margin-bottom: 3px;
}

.mp-meta {
    color: #667085;
    font-size: 14px;
    border-top: 1px solid #ccc;
    padding-top: 10px;
    text-align: center;
}

.mp-meta .dot {
    margin: 0 8px;
}

/* Yacht Type Badge */
.yacht-type-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(11, 16, 48, 0.9);
    color: #fff;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 5;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.yacht-type-badge.badge-charter {
    background: rgba(14, 165, 233, 0.9);
}

.yacht-type-badge.badge-sale {
    background: rgba(34, 197, 94, 0.9);
}

/* Loading Spinner */
.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: #666;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #F8B803;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 16px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-spinner p {
    margin: 0;
    font-size: 14px;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.no-results svg {
    width: 64px;
    height: 64px;
    color: #ddd;
    margin-bottom: 16px;
}

.no-results h4 {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin: 0 0 8px;
}

.no-results p {
    font-size: 14px;
    margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .search-modal-content {
        width: 95%;
        max-height: 95vh;
    }
    
    .search-modal-header {
        padding: 20px 20px 16px;
    }
    
    .search-modal-title {
        font-size: 20px;
        margin-bottom: 16px;
    }
    
    .search-modal-body {
        padding: 20px;
    }
    
    .yacht-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .search-modal-close {
        top: 12px;
        right: 12px;
        width: 36px;
        height: 36px;
    }
}

/* Scrollbar Styling */
.search-modal-body::-webkit-scrollbar {
    width: 8px;
}

.search-modal-body::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.search-modal-body::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.search-modal-body::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}
