* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background: #ffffff;
    min-height: 100vh;
    padding: 0;
}

.widget-container {
    max-width: 100%;
    margin: 0;
    background: white;
    border-radius: 0;
    box-shadow: none;
    overflow: hidden;
}

.widget-header {
    background: #1a1a1a;
    color: #ffffff;
    padding: 32px 24px;
    text-align: left;
    border-bottom: none;
}

.widget-header h1 {
    font-size: 28px;
    line-height: 1.2;
    margin-bottom: 8px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.02em;
}

.widget-header p {
    font-size: 14px;
    line-height: 1.5;
    color: #cccccc;
    font-weight: 400;
}

.main-content {
    display: flex;
    gap: 0;
    min-height: calc(100vh - 200px);
}

.filters-section {
    width: 300px;
    min-width: 300px;
    padding: 24px;
    background: #f8f8f8;
    border-right: 1px solid #e5e5e5;
    overflow-y: auto;
    max-height: calc(100vh - 150px);
    position: sticky;
    top: 0;
}

.filters-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 20px;
}

.filter-group {
    background: #ffffff;
    border-radius: 0;
    padding: 16px 0;
    border: none;
    border-bottom: 1px solid #e5e5e5;
    margin-bottom: 0;
    transition: none;
}

.filter-group:hover {
    border-color: #e5e5e5;
}

.filter-group label {
    display: block;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 16px;
    margin-top: 0;
    font-size: 16px;
    line-height: 1.5;
    text-transform: none;
    letter-spacing: -0.01em;
    padding: 0;
}

.filter-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #d0d0d0;
    border-radius: 0;
    font-size: 14px;
    line-height: 1.5;
    transition: border-color 0.2s;
    background: #ffffff;
    font-family: inherit;
}

.filter-input:focus {
    outline: none;
    border-color: #1a1a1a;
    box-shadow: none;
}

.filter-checkboxes {
    max-height: 200px;
    overflow-y: auto;
    padding: 0;
}

.filter-checkbox-item {
    display: flex;
    align-items: center;
    padding: 6px 0;
    border-radius: 0;
    transition: none;
    cursor: pointer;
}

.filter-checkbox-item:hover {
    background: transparent;
}

.filter-checkbox-item input[type="checkbox"] {
    margin-right: 8px;
    cursor: pointer;
    width: 16px;
    height: 16px;
    accent-color: #1a1a1a;
}

.filter-checkbox-item label {
    cursor: pointer;
    font-weight: 400;
    font-size: 14px;
    line-height: 1.5;
    color: #1a1a1a;
    text-transform: none;
    letter-spacing: 0;
    margin: 0;
    flex: 1;
}

/* Hierarchical category styles */
.filter-main-category {
    font-weight: 600;
    margin-top: 8px;
    margin-bottom: 4px;
}

.filter-main-category:first-child {
    margin-top: 0;
}

.filter-main-category label {
    font-weight: 600;
    color: #1a1a1a;
}

.filter-sub-category {
    padding-left: 24px;
    margin-bottom: 2px;
}

.filter-sub-category label {
    font-weight: 400;
    color: #666666;
    font-size: 13px;
}

.active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 0;
    margin-bottom: 20px;
    padding: 16px 0;
    border-bottom: 1px solid #e5e5e5;
}

.active-filter-tag {
    background: #1a1a1a;
    color: #ffffff;
    padding: 4px 10px;
    border-radius: 0;
    font-size: 12px;
    line-height: 1.4;
    font-weight: 400;
    display: flex;
    align-items: center;
    gap: 6px;
}

.active-filter-tag .remove {
    cursor: pointer;
    font-weight: bold;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.active-filter-tag .remove:hover {
    opacity: 1;
}

.clear-all-btn {
    background: #1a1a1a;
    color: #ffffff;
    border: none;
    padding: 6px 12px;
    border-radius: 0;
    cursor: pointer;
    font-size: 12px;
    line-height: 1.4;
    transition: opacity 0.2s;
    font-weight: 400;
    font-family: inherit;
}

.clear-all-btn:hover {
    opacity: 0.8;
}

.results-section {
    flex: 1;
    padding: 24px;
    background: #ffffff;
    overflow-y: auto;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.results-count {
    font-size: 14px;
    line-height: 1.5;
    color: #1a1a1a;
    font-weight: 400;
}

.results-count .number {
    color: #1a1a1a;
    font-size: 14px;
    font-weight: 600;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.category-card {
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 0;
    padding: 20px;
    transition: border-color 0.2s;
    display: flex;
    flex-direction: column;
    box-shadow: none;
}

.category-card:hover {
    transform: none;
    box-shadow: none;
    border-color: #1a1a1a;
}

.category-card-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 15px;
}

.category-room {
    font-size: 16px;
    line-height: 1.4;
    font-weight: 600;
    color: #1a1a1a;
    flex: 1;
    text-align: left;
}

.category-id {
    background: #f8f8f8;
    color: #666666;
    padding: 2px 8px;
    border-radius: 0;
    font-size: 11px;
    line-height: 1.4;
    font-weight: 400;
}

.category-facets {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
    margin-bottom: 15px;
}

.category-card-button {
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid #e5e5e5;
}

.buchen-btn {
    width: 100%;
    background: #1a1a1a;
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    border-radius: 0;
    font-size: 14px;
    line-height: 1.5;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
    text-transform: none;
    letter-spacing: 0;
    font-family: inherit;
}

.buchen-btn:hover {
    opacity: 0.9;
}

.buchen-btn:active {
    opacity: 0.8;
}

.buchen-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.buchen-btn.in-cart {
    background: #28a745;
}

.buchen-btn.overlap {
    background: #dc3545;
    opacity: 0.7;
}

.cart-section {
    width: 320px;
    min-width: 320px;
    padding: 24px;
    background: #f8f8f8;
    border-left: 1px solid #e5e5e5;
    overflow-y: auto;
    max-height: calc(100vh - 150px);
    position: sticky;
    top: 0;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e5e5e5;
}

.cart-header h2 {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
}

.cart-count-badge {
    background: #1a1a1a;
    color: #ffffff;
    padding: 4px 10px;
    border-radius: 0;
    font-size: 12px;
    font-weight: 600;
}

.cart-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cart-item {
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 0;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cart-item-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
}

.cart-item-title {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    flex: 1;
}

.cart-item-remove {
    background: transparent;
    border: none;
    color: #dc3545;
    cursor: pointer;
    font-size: 18px;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s;
}

.cart-item-remove:hover {
    opacity: 0.7;
}

.cart-item-details {
    font-size: 12px;
    color: #666666;
    line-height: 1.5;
}

.cart-item-id {
    font-size: 11px;
    color: #999999;
}

.cart-empty {
    text-align: center;
    padding: 40px 20px;
    color: #999999;
}

.cart-empty-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.cart-actions {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e5e5e5;
}

.bestellen-btn {
    width: 100%;
    background: #1a1a1a;
    color: #ffffff;
    border: none;
    padding: 12px 20px;
    border-radius: 0;
    font-size: 14px;
    line-height: 1.5;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
    text-transform: none;
    letter-spacing: 0;
    font-family: inherit;
}

.bestellen-btn:hover:not(:disabled) {
    opacity: 0.9;
}

.bestellen-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.cart-limit-warning {
    background: #fff3cd;
    color: #856404;
    padding: 8px 12px;
    border-radius: 0;
    font-size: 12px;
    margin-bottom: 16px;
    border: 1px solid #ffc107;
}

/* Overlay styles */
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.overlay.active {
    display: flex;
}

.overlay-content {
    background: #ffffff;
    padding: 32px;
    max-width: 500px;
    width: 90%;
    border-radius: 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.overlay-title {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 16px;
}

.overlay-message {
    font-size: 16px;
    color: #333333;
    margin-bottom: 24px;
    line-height: 1.5;
}

.overlay-buttons {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.overlay-btn {
    padding: 10px 24px;
    border: none;
    border-radius: 0;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
    font-family: inherit;
}

.overlay-btn-nein {
    background: #f8f8f8;
    color: #1a1a1a;
}

.overlay-btn-nein:hover {
    opacity: 0.8;
}

.overlay-btn-ja {
    background: #1a1a1a;
    color: #ffffff;
}

.overlay-btn-ja:hover {
    opacity: 0.9;
}

.overlay-btn-ja:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.promocode-section {
    margin-bottom: 20px;
    padding: 16px;
    background: #f8f8f8;
    border: 1px solid #e5e5e5;
}

.promocode-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.promocode-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d0d0d0;
    border-radius: 0;
    font-size: 14px;
    line-height: 1.5;
    font-family: inherit;
    background: #ffffff;
    box-sizing: border-box;
}

.promocode-input:focus {
    outline: none;
    border-color: #1a1a1a;
    box-shadow: none;
}

.promocode-error {
    color: #dc3545;
    font-size: 12px;
    margin-top: 6px;
    display: none;
}

.promocode-error.show {
    display: block;
}

.personalization-section {
    margin-bottom: 20px;
    padding: 16px;
    background: #f8f8f8;
    border: 1px solid #e5e5e5;
}

.personalization-section h3 {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 16px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 6px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d0d0d0;
    border-radius: 0;
    font-size: 14px;
    line-height: 1.5;
    font-family: inherit;
    background: #ffffff;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #1a1a1a;
    box-shadow: none;
}

.form-group select {
    cursor: pointer;
}

.booking-result {
    display: none;
}

.booking-result.active {
    display: block;
}

.booking-result-title {
    font-size: 18px;
    font-weight: 700;
    color: #28a745;
    margin-bottom: 16px;
}

.booking-result-info {
    font-size: 14px;
    color: #333333;
    margin-bottom: 12px;
    line-height: 1.6;
}

.booking-result-link {
    display: inline-block;
    margin-top: 8px;
    padding: 8px 16px;
    background: #1a1a1a;
    color: #ffffff;
    text-decoration: none;
    border-radius: 0;
    font-size: 14px;
    font-weight: 600;
}

.booking-result-link:hover {
    opacity: 0.9;
}

.facet-item {
    display: flex;
    align-items: center;
    padding: 6px 0;
    background: transparent;
    border-radius: 0;
}

.facet-label {
    font-weight: 400;
    color: #666666;
    min-width: 100px;
    font-size: 13px;
    line-height: 1.5;
    text-transform: none;
    letter-spacing: 0;
}

.facet-value {
    color: #1a1a1a;
    font-size: 13px;
    line-height: 1.5;
    flex: 1;
    text-align: right;
    font-weight: 400;
}

.availability-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    text-align: right;
}

.availability-high {
    background: #d4edda;
    color: #155724;
}

.loading {
    text-align: center;
    padding: 40px;
    color: #6c757d;
}

.loading::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #1a1a1a;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-left: 10px;
}

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

.no-results {
    text-align: center;
    padding: 60px 20px;
    color: #6c757d;
}

.no-results-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.no-results h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #495057;
}

/* Scrollbar styling */
.filter-checkboxes::-webkit-scrollbar {
    width: 6px;
}

.filter-checkboxes::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.filter-checkboxes::-webkit-scrollbar-thumb {
    background: #cccccc;
    border-radius: 0;
}

.filter-checkboxes::-webkit-scrollbar-thumb:hover {
    background: #999999;
}

/* Responsive design */
@media (max-width: 1024px) {
    .main-content {
        flex-direction: column;
    }

    .filters-section {
        width: 100%;
        min-width: 100%;
        max-height: none;
        position: relative;
        border-right: none;
        border-bottom: 1px solid #e9ecef;
    }

    .filters-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .cart-section {
        width: 100%;
        min-width: 100%;
        max-height: none;
        position: relative;
        border-left: none;
        border-top: 1px solid #e5e5e5;
    }
}

@media (max-width: 768px) {
    .results-grid {
        grid-template-columns: 1fr;
    }
}

