#hotel-deals-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
    display: inline-block;
}
        
.deals-tabs {
    margin-bottom: 30px;
}

.tabs-header {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 15px;
}

.tab-button {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    padding: 5px 15px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    white-space: nowrap;
}

.tab-button:hover {
    background: #e3f2fd;
    border-color: #1976d2;
}

.tab-button.active {
    background: #1976d2;
    color: white;
    border-color: #1976d2;
}

.advanced-filters {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 15px;
}

.filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 15px;
}

.filter-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.filter-group input,
.filter-group select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.toggle-advanced-filters,
.btn-apply-filters {
    background: #6c757d;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    display: none;
}

.toggle-advanced-filters:hover,
.btn-apply-filters:hover {
    background: #5a6268;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.results-count {
    font-weight: 600;
    color: #2c3e50;
}

#quick-sort {
    padding: 5px 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.deals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.deal-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.deal-card:hover {
    transform: translateY(-5px);
}

.deal-header {
    position: relative;
    padding: 0 1rem;
}
.deal-image {
    width: 100%;
    position: relative;
    display: table;
}
.deal-image img {
    width: 100%;
    display: block;
    height: 200px;
    object-fit: cover;
}
.deal-id {
    position: absolute;
    top: 10px;
    right: 10px;
    width: auto;
    background: var(--color-yellow);
    color: var(--color-wheat);
    padding: 8px 12px;
    border-radius: 10px;
    font-size: 13px;
    max-width: calc(100% - 20px);
    line-height: 1;
    text-align: right;
}

.deal-title {
    margin: 20px 0 10px 0;
    font-size: 1rem;
    line-height: 1.4;
    font-weight: normal;
}

.deal-price {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 5px;
}

.deal-nights {
    opacity: 0.9;
    font-size: 14px;
}

.deal-body {
    padding: 15px;
}

.deal-description {
    color: #6c757d;
    margin-bottom: 15px;
    font-size: 14px;
    line-height: 1.4;
}

.deal-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 15px;
}

.deal-detail {
    text-align: center;
    padding: 8px;
    background: #f8f9fa;
    border-radius: 5px;
}

.deal-detail-label {
    font-size: 12px;
    color: #6c757d;
    margin-bottom: 3px;
}

.deal-detail-value {
    font-weight: 600;
    color: #2c3e50;
}

.deal-features {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.feature-tag {
    background: #e3f2fd;
    color: #1976d2;
    padding: 3px 8px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 500;
}

.feature-tag.free-child {
    background: #e8f5e8;
    color: #2e7d32;
}

.feature-tag.free-adult {
    background: #fff3e0;
    color: #f57c00;
}

.loading {
    text-align: center;
    padding: 50px;
    color: #6c757d;
    font-size: 18px;
}

.no-deals {
    text-align: center;
    padding: 50px;
    color: #dc3545;
    font-size: 18px;
    background: #f8d7da;
    border-radius: 10px;
}

.hotel-name {
    font-size: 1rem;
    margin-bottom: 0;
    background: linear-gradient(2deg, #000 0%, rgba(0, 0, 0, 0) 80%);
    padding: 20% 10px 10px;
    display: inline-block;
    font-weight: 400;
    position: absolute;
    left: 0;
    width: 100%;
    bottom: 0;
    color: var(--color-wheat);
    text-align: right;
}

/* שיפור התגי האזור */
.feature-tag.location-tag {
    background: #f3e5f5;
    color: #7b1fa2;
    font-weight: 600;
}

/* כפתור ניקוי הכל */
.clear-all-btn {
    background: #dc3545 !important;
    color: white !important;
    border-color: #dc3545 !important;
    font-weight: 600;
}

.clear-all-btn:hover {
    background: #c82333 !important;
    border-color: #bd2130 !important;
}

/* פילטרים פעילים */
.active-filters {
    background: #e9ecef;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    display: none !important;
}

.active-filters-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 10px;
    display: block;
}

.active-filters-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.active-filter-tag {
    background: #007bff;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.remove-filter {
    background: rgba(255,255,255,0.3);
    border: none;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
}

.remove-filter:hover {
    background: rgba(255,255,255,0.5);
}

/* שיפור הטאבים לבחירה מרובה */
.tab-button.multiple-select {
    position: relative;
    transition: all 0.3s ease;
}

.tab-button.multiple-select.active {
    background: #28a745;
    color: white;
    border-color: #28a745;
    transform: scale(1.05);
}

.tab-button.multiple-select.active::after {
    content: "✓";
    position: absolute;
    top: -5px;
    right: -5px;
    background: #fff;
    color: #28a745;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    border: 2px solid #28a745;
}

/* שיפור פילטרים מתקדמים */
.filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 15px;
}

.filter-group {
    display: flex;
    flex-direction: column;
}

.filter-group label {
    margin-bottom: 5px;
    font-weight: 500;
    color: #495057;
}

.filter-group input,
.filter-group select {
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.filter-group input:focus,
.filter-group select:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0,123,255,0.25);
}

/* כפתור שיתוף URL */
.share-filters-btn {
    background: #17a2b8;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    margin-left: 10px;
    transition: all 0.3s ease;
    display: none;
}

.share-filters-btn:hover {
    background: #138496;
    transform: translateY(-1px);
}

.share-filters-btn:active {
    transform: translateY(0);
}

/* הודעת שיתוף */
.share-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #28a745;
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 1000;
    transform: translateX(350px);
    transition: transform 0.3s ease;
    font-weight: 500;
}

.share-notification.show {
    transform: translateX(0);
}

/* הוספת סמלים לכפתורים */
.share-filters-btn::before {
    content: "🔗 ";
    margin-right: 5px;
}

.clear-all-btn::before {
    content: "🗑️ ";
    margin-right: 5px;
}

/* שיפור פילטרים פעילים עם URL indicator */
.active-filters-label::after {
    content: " (נשמר ב-URL)";
    font-size: 12px;
    color: #6c757d;
    font-weight: normal;
}

/* אנימציה לטעינת פילטרים מה-URL */
.tab-button.loaded-from-url {
    animation: highlightFromURL 1s ease-out;
}

@keyframes highlightFromURL {
    0% {
        background: #ffc107;
        transform: scale(1.1);
    }
    100% {
        background: #28a745;
        transform: scale(1.05);
    }
}

/* שיפור תצוגת URL parameters בכותרת */
.url-status {
    background: #e3f2fd;
    border: 1px solid #1976d2;
    border-radius: 5px;
    padding: 8px 12px;
    margin-bottom: 15px;
    font-size: 14px;
    color: #1976d2;
    display: none !important;
}

.url-status.has-params {
    display: block;
}

.url-status::before {
    content: "🔗 ";
    margin-right: 5px;
}

/* שיפור מיון עם URL status */
#quick-sort.changed-from-url {
    border-color: #28a745;
    box-shadow: 0 0 0 2px rgba(40,167,69,0.25);
}

@media (max-width: 768px) {
    .active-filters-list {
        justify-content: center;
    }
    
    .active-filter-tag {
        font-size: 13px;
        padding: 5px 10px;
    }
    
    .tab-button.multiple-select.active::after {
        width: 18px;
        height: 18px;
        font-size: 11px;
    }
    
    .filters-grid {
        grid-template-columns: 1fr;
    }

    .hotel-name {
        font-size: 13px;
        padding: 4px 8px;
    }
    .tabs-header {
        justify-content: center;
    }
    
    .tab-button {
        font-size: 14px;
        padding: 5px 15px;
    }
    
    .filters-grid {
        grid-template-columns: 1fr;
    }
    
    .results-header {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }
    
    .deals-grid {
        grid-template-columns: 1fr;
    }
    
    /* שיפור כפתור שיתוף במובייל */
    .share-filters-btn {
        margin-left: 0;
        margin-top: 10px;
        width: 100%;
    }
    
    /* שיפור הודעת שיתוף במובייל */
    .share-notification {
        right: 10px;
        left: 10px;
        text-align: center;
        transform: translateY(-100px);
    }
    
    .share-notification.show {
        transform: translateY(0);
    }
    
    /* הסתרת חלק מהטקסט ב-URL status במובייל */
    .active-filters-label::after {
        display: none;
    }
}