/**
 * Business Grid Styles - Featured Hotels Design
 */

.ktm-business-grid-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Hotels Search Banner */
.ktm-hotels-search-banner {
    position: relative;
    background: linear-gradient(135deg, #0ea5e9 0%, #3b82f6 50%, #2563eb 100%);
    padding: 80px 20px 60px;
    margin: 0 -20px 50px -20px;
    border-radius: 0 0 24px 24px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    width: calc(100% + 40px);
}

.ktm-hotels-search-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 400"><defs><linearGradient id="wave" x1="0%" y1="0%" x2="100%" y2="0%"><stop offset="0%" style="stop-color:rgba(255,255,255,0.15);stop-opacity:1" /><stop offset="100%" style="stop-color:rgba(255,255,255,0.05);stop-opacity:1" /></linearGradient></defs><path d="M0,200 Q300,150 600,200 T1200,200 L1200,400 L0,400 Z" fill="url(%23wave)"/></svg>') no-repeat bottom;
    background-size: cover;
    opacity: 0.4;
}

.ktm-hotels-search-banner::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1), transparent 70%);
    border-radius: 50%;
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(-30px, -30px) rotate(180deg); }
}

.ktm-hotels-search-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.ktm-hotels-search-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.ktm-hotels-search-icon {
    font-size: 40px;
    line-height: 1;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}

.ktm-hotels-search-title {
    font-size: 36px;
    font-weight: 800;
    color: #ffffff;
    margin: 0;
    text-shadow: 0 3px 12px rgba(0, 0, 0, 0.25);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.3;
    text-align: center;
}

.ktm-hotels-search-bar {
    display: flex;
    gap: 16px;
    background: rgba(255, 255, 255, 0.98);
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
    align-items: flex-end;
    flex-wrap: wrap;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    max-width: 900px;
    margin: 0 auto;
}

.ktm-search-field {
    flex: 1;
    min-width: 240px;
}

.ktm-search-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    color: #374151;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.ktm-search-label-icon {
    font-size: 16px;
    color: #ef4444;
}

.ktm-search-select {
    width: 100%;
    padding: 14px 45px 14px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 15px;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath fill='%236b7280' d='M7 10L2 5h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    color: #374151;
    font-weight: 500;
    min-height: 48px;
}

.ktm-search-select:hover {
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.ktm-search-select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
    background-color: #f8fafc;
}

.ktm-search-select option {
    padding: 12px;
    font-size: 16px;
}

.ktm-search-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 36px;
    min-width: 140px;
    min-height: 48px;
    background: linear-gradient(135deg, #0ea5e9 0%, #3b82f6 100%);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.35);
    position: relative;
    overflow: hidden;
}

.ktm-search-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.ktm-search-btn:hover::before {
    left: 100%;
}

.ktm-search-btn:hover {
    background: linear-gradient(135deg, #0284c7 0%, #2563eb 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.5);
}

.ktm-search-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.ktm-search-btn-icon {
    font-size: 20px;
    display: inline-block;
}

.ktm-search-btn-text {
    display: inline-block;
}

@media (max-width: 992px) {
    .ktm-hotels-search-title {
        font-size: 32px;
    }
    
    .ktm-hotels-search-icon {
        font-size: 36px;
    }
    
    .ktm-hotels-search-bar {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .ktm-hotels-search-banner {
        padding: 60px 15px 50px;
        margin: 0 -15px 40px -15px;
        border-radius: 0 0 20px 20px;
        width: calc(100% + 30px);
    }
    
    .ktm-hotels-search-header {
        flex-direction: column;
        gap: 10px;
        margin-bottom: 30px;
    }
    
    .ktm-hotels-search-title {
        font-size: 26px;
        text-align: center;
    }
    
    .ktm-hotels-search-icon {
        font-size: 32px;
    }
    
    .ktm-hotels-search-bar {
        flex-direction: column;
        padding: 20px;
        gap: 16px;
        max-width: 100%;
    }
    
    .ktm-search-field {
        width: 100%;
        min-width: auto;
    }
    
    .ktm-search-btn {
        width: 100%;
        padding: 16px;
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .ktm-hotels-search-banner {
        padding: 50px 12px 40px;
        margin: 0 -12px 30px -12px;
        width: calc(100% + 24px);
    }
    
    .ktm-hotels-search-title {
        font-size: 22px;
    }
    
    .ktm-hotels-search-icon {
        font-size: 28px;
    }
    
    .ktm-hotels-search-bar {
        padding: 18px 15px;
    }
    
    .ktm-search-select {
        padding: 12px 40px 12px 14px;
        font-size: 14px;
        min-height: 44px;
    }
    
    .ktm-search-btn {
        padding: 14px;
        font-size: 15px;
        min-height: 44px;
    }
}

/* Filters */
.ktm-business-grid-filters {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
    align-items: flex-end;
    padding: 25px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.ktm-filter-group {
    flex: 1;
    min-width: 200px;
}

.ktm-filter-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.ktm-filter-select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    background: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.ktm-filter-select:hover {
    border-color: #0073aa;
}

.ktm-filter-select:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

/* Grid */
.ktm-business-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 30px;
}

.ktm-business-grid[data-columns="3"] {
    grid-template-columns: repeat(3, 1fr);
}

.ktm-business-grid[data-columns="2"] {
    grid-template-columns: repeat(2, 1fr);
}

.ktm-business-grid[data-columns="1"] {
    grid-template-columns: 1fr;
}

/* Business Card */
.ktm-business-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.ktm-business-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* Sponsored Badge - Star Only */
.ktm-sponsored-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.badge-icon {
    font-size: 24px;
    line-height: 1;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

/* Image */
.ktm-card-image {
    width: 100%;
    height: 240px;
    overflow: hidden;
    background: #f0f0f0;
    position: relative;
}

.ktm-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.ktm-business-card:hover .ktm-card-img {
    transform: scale(1.1);
}

.ktm-card-image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 14px;
}

/* Content */
.ktm-card-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Title */
.ktm-card-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 12px 0;
    color: #333;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Price */
.ktm-card-price {
    font-size: 22px;
    font-weight: 700;
    color: #333;
    margin-bottom: 12px;
    line-height: 1.2;
}

.ktm-card-price .price-label {
    font-size: 16px;
    font-weight: 500;
    color: #666;
}

.ktm-card-price .price-contact {
    font-size: 16px;
    font-weight: 500;
    color: #666;
}

/* Items Count */
.ktm-card-count {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
    font-size: 14px;
    color: #666;
}

.ktm-card-count .count-number {
    font-weight: 600;
    color: #333;
}

.ktm-card-count .count-label {
    color: #666;
    text-transform: lowercase;
}

/* Rating */
.ktm-card-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.ktm-stars {
    display: flex;
    gap: 2px;
    line-height: 1;
}

.ktm-stars .star {
    font-size: 18px;
    color: #ddd;
    transition: color 0.2s;
}

.ktm-stars .star.filled {
    color: #ffc107;
}

.ktm-reviews {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

/* Location */
.ktm-card-location {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid #f0f0f0;
}

.location-icon {
    width: 20px;
    height: 20px;
    color: #4285f4;
    flex-shrink: 0;
}

.location-text {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

/* Empty State */
.ktm-business-grid-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 20px;
    color: #999;
}

.ktm-business-grid-empty p {
    font-size: 18px;
    margin: 0;
}

/* Loading */
.ktm-business-grid-loading {
    text-align: center;
    padding: 60px;
    color: #666;
    font-size: 16px;
}

/* Load More Button Wrapper */
.ktm-business-grid-load-more-wrapper {
    text-align: center;
    margin-top: 50px;
    margin-bottom: 30px;
    padding: 20px 0;
}

/* Load More Button */
.ktm-business-grid-load-more-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 40px;
    min-width: 180px;
    background: linear-gradient(135deg, #0073aa 0%, #005a87 100%);
    color: #ffffff;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 115, 170, 0.25);
    position: relative;
    overflow: hidden;
    font-family: inherit;
    text-transform: none;
    letter-spacing: 0.3px;
}

.ktm-business-grid-load-more-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.ktm-business-grid-load-more-btn:hover::before {
    left: 100%;
}

.ktm-business-grid-load-more-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #005a87 0%, #004d73 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 115, 170, 0.35);
}

.ktm-business-grid-load-more-btn:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 115, 170, 0.3);
}

.ktm-business-grid-load-more-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 2px 8px rgba(0, 115, 170, 0.2);
}

.ktm-business-grid-load-more-btn:focus {
    outline: none;
    box-shadow: 0 4px 12px rgba(0, 115, 170, 0.25), 0 0 0 3px rgba(0, 115, 170, 0.2);
}

.ktm-business-grid-load-more-btn:focus:not(:focus-visible) {
    box-shadow: 0 4px 12px rgba(0, 115, 170, 0.25);
}

/* Button Content */
.ktm-business-grid-load-more-btn .btn-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
}

.ktm-business-grid-load-more-btn .btn-text {
    display: inline-block;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.ktm-business-grid-load-more-btn .btn-loading {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.ktm-business-grid-load-more-btn.loading .btn-text {
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
}

.ktm-business-grid-load-more-btn.loading .btn-loading {
    display: flex;
    opacity: 1;
}

/* Loading Spinner */
.ktm-business-grid-load-more-btn .btn-spinner {
    width: 18px;
    height: 18px;
    border: 2.5px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: ktm-spin 0.8s linear infinite;
    flex-shrink: 0;
}

@keyframes ktm-spin {
    to {
        transform: rotate(360deg);
    }
}

.ktm-business-grid-load-more-btn .btn-loading-text {
    display: inline-block;
    font-size: 16px;
    font-weight: 600;
}

/* Responsive Load More Button */
@media (max-width: 768px) {
    .ktm-business-grid-load-more-wrapper {
        margin-top: 40px;
        padding: 15px 0;
    }
    
    .ktm-business-grid-load-more-btn {
        padding: 14px 32px;
        min-width: 160px;
        font-size: 15px;
    }
    
    .ktm-business-grid-load-more-btn .btn-spinner {
        width: 16px;
        height: 16px;
        border-width: 2px;
    }
}

@media (max-width: 480px) {
    .ktm-business-grid-load-more-btn {
        padding: 12px 28px;
        min-width: 140px;
        font-size: 14px;
    }
    
    .ktm-business-grid-load-more-btn .btn-loading-text {
        font-size: 14px;
    }
}

/* Responsive */
@media (max-width: 1400px) {
    .ktm-business-grid {
        gap: 25px;
    }
}

@media (max-width: 1200px) {
    .ktm-business-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
    }
}

@media (max-width: 992px) {
    .ktm-business-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .ktm-business-grid-filters {
        flex-direction: column;
    }
    
    .ktm-filter-group {
        width: 100%;
    }
    
    .ktm-card-image {
        height: 220px;
    }
}

@media (max-width: 768px) {
    .ktm-business-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .ktm-business-grid-wrapper {
        padding: 20px 15px;
    }
    
    .ktm-card-image {
        height: 200px;
    }
    
    .ktm-card-title {
        font-size: 18px;
    }
    
    .ktm-card-price {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .ktm-business-grid-filters {
        padding: 20px;
    }
    
    .ktm-card-content {
        padding: 16px;
    }
}
