/* 필터 모달 스타일 */
.filter-modal {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-top: 5px;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    min-width: 250px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.filter-modal.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

/* 드롭다운 메뉴 스타일 */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-top: 5px;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    min-width: 250px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.dropdown-locations {
    width:400px;
    max-height: 400px;
    overflow-y: auto;
}

.dropdown-item {
    padding: 16px 20px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    border-radius: 12px;
    margin-bottom: 4px;
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
}

.dropdown-item:last-child {
    margin-bottom: 0;
}

.dropdown-item:hover {
    background-color: #f7f7f7;
}

.dropdown-item-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.dropdown-item-content {
    flex: 1;
}

.dropdown-item-title {
    font-size: 16px;
    font-weight: 600;
    color: #222;
    margin-bottom: 2px;
}

.dropdown-item-desc {
    font-size: 14px;
    color: #717171;
    line-height: 1.3;
}

.people-stepper {
    min-width: 300px;
    max-height: 400px;
    overflow-y: auto;
    padding: 16px;
}

.filter-modal-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 20px;
}

.filter-modal-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.filter-section-title {
    font-size: 14px;
    font-weight: 700;
    color: #000;
    margin: 0 0 12px 0;
    padding: 0;
    border: none;
}

.filter-options {
    display: flex;
    flex-direction: row;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-option-btn {
    padding: 10px 24px;
    margin: 0;
    font-size: 14px;
    font-weight: 500;
    color: #666;
    background-color: #fff;
    border: 1px solid #d9d9d9;
    border-radius: 24px;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.filter-option-btn:hover {
    background-color: #f5f5f5;
    border-color: #bfbfbf;
}

.filter-option-btn.selected {
    background-color: #7800FF;
    color: #fff;
    border-color: #7800FF;
    font-weight: 600;
}

.dropdown-menu.show.filter-modal {
    max-height: none;
    min-width: 600px;
    left: -150px;
    right: -150px;
    overflow-y: visible;
    overflow-x: visible;
}

/* 상단 필터 바 */
.search-filter-bar {
    background: white;
    border-bottom: 1px solid #e0e0e0;
    position: fixed;
    top: 164px;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 8px 0;
    transition: top 0.3s ease;
}

body.hide-top-header .search-filter-bar {
    top: 100px;
}

.filter-bar-container {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: nowrap;
    justify-content: flex-start;
}

.filter-bar-left {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 4 1 0;
    min-width: 0;
}

.filter-bar-left .search-bar-wrapper {
    flex: 1 1 0;
    min-width: 0;
}

.filter-bar-left .search-inputs {
    width: 100%;
}

.filter-bar-right {
    display: flex;
    align-items: center;
    flex: 6 1 0;
    min-width: 0;
    justify-content: flex-end;
}

.search-container-right {
    display: flex;
    align-items: center;
    flex: 6 1 0;
    min-width: 0;
    justify-content: stretch;
}

.search-filter-bar .search-form-wrapper {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    width: 100%;
}

.search-filter-bar .search-form {
    background: #fff;
    border-radius: 50px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.1);
    border: 1px solid #ddd;
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    flex: 1 1 auto;
    min-width: 0;
    box-sizing: border-box;
}

.search-filter-bar .search-fields {
    display: flex;
    align-items: center;
    position: relative;
    flex: 1 1 0;
    min-width: 0;
}

.search-filter-bar .search-field {
    position: relative;
    flex: 0 0 33.3333%;
    width: 33.3333%;
    max-width: 33.3333%;
    min-width: 0;
    border-right: 1px solid #ddd;
    cursor: pointer;
    transition: background-color 0.2s ease, border-radius 0.2s ease, opacity 0.2s ease;
    padding: 4px 6px;
    margin: 0;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.search-filter-bar .search-field:last-of-type {
    border-right: none;
}

.search-filter-bar .search-field:hover {
    background-color: #f7f7f7;
    border-radius: 50px;
}

.search-filter-bar .search-field.active {
    z-index: 1001;
}

.search-filter-bar .search-field label {
    font-size: 11px;
    font-weight: 600;
    color: #222;
    margin-bottom: 0;
    display: block;
    padding: 4px 12px 0 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-filter-bar .search-field input:not(.time-range-input) {
    border: none;
    background: transparent;
    padding: 0 12px 4px 12px;
    font-size: 13px;
    color: #717171;
    font-weight: 400;
    outline: none;
    cursor: pointer;
    min-width: 0;
    width: 100%;
    max-width: none;
    appearance: none;
    box-sizing: border-box;
    line-height: 1.25;
    min-height: calc(1.25em + 4px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-filter-bar .search-field input:not(.time-range-input)::placeholder {
    color: #717171;
    font-weight: 400;
}

.search-filter-bar .search-field input:not(.time-range-input).selected {
    color: #222;
}

.search-filter-bar .search-field.is-step-locked {
    opacity: 0.55;
    cursor: not-allowed;
}

.search-filter-bar .search-field.is-step-locked:hover {
    background-color: transparent;
}

.search-filter-bar .search-field.is-step-locked input:not(.time-range-input),
.search-filter-bar .search-field.is-step-locked .datetime-input-wrap {
    cursor: not-allowed;
}

.search-filter-bar .search-field.is-step-locked .dropdown-menu.show {
    display: none !important;
}

.search-filter-bar .search-btn {
    background: #7a04ff;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    padding: 5px;
    margin: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(122, 4, 255, 0.3);
    flex: 0 0 auto;
    align-self: center;
}

.search-filter-bar #people-filter-input:not(:placeholder-shown),
.search-filter-bar .datetime-input-wrap.selected {
    color: #222;
}

.search-filter-bar .search-btn img {
    width: 13px;
    height: 13px;
}

/* 날짜·시간 통합 패널 (compact) */
.search-field[data-field="datetime"] .dropdown-menu.datetime-picker-menu {
    left: auto;
    right: 0;
    padding: 12px;
    width: min(100vw - 32px, 300px);
    min-width: min(100%, 300px);
    max-width: 300px;
    max-height: none;
    height: auto;
    overflow: visible;
    box-sizing: border-box;
    transform: translateY(-10px);
}

.search-field[data-field="datetime"] .dropdown-menu.datetime-picker-menu.show {
    transform: translateY(0);
}

.search-field[data-field="datetime"] {
    align-items: stretch;
}

.search-field[data-field="datetime"] .datetime-input-wrap {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: calc(1.25em + 4px);
    padding: 0 12px 4px 12px;
    cursor: pointer;
    box-sizing: border-box;
}

.search-field[data-field="datetime"] .datetime-placeholder {
    flex: 1 1 auto;
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0;
    color: #717171;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    pointer-events: none;
    box-sizing: border-box;
}

.search-field[data-field="datetime"] .datetime-placeholder[hidden] {
    display: none !important;
}

.search-field[data-field="datetime"] .datetime-input-wrap.selected {
    color: #222;
}

.search-field[data-field="datetime"] .datetime-display {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.search-field[data-field="datetime"] .datetime-display[hidden] {
    display: none !important;
}

.search-field[data-field="datetime"] .datetime-date-text {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 12px;
    font-weight: 500;
    color: #222;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-field[data-field="datetime"] .datetime-time-summary {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1px;
    flex: 0 0 auto;
}

.search-field[data-field="datetime"] .datetime-time-start {
    color: #7a04ff;
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
}

.search-field[data-field="datetime"] .datetime-time-end {
    color: #ea580c;
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
}

.search-field[data-field="datetime"] .datetime-panel {
    width: 100%;
    box-sizing: border-box;
}

.search-field[data-field="datetime"] .datetime-panel-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.search-field[data-field="datetime"] .datetime-time-picker {
    display: none;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.search-field[data-field="datetime"] .datetime-time-picker.is-visible {
    display: block;
}

.search-field[data-field="datetime"] .custom-calendar-compact {
    padding: 0;
    width: 100%;
    box-sizing: border-box;
}

.search-field[data-field="datetime"] .custom-calendar.custom-calendar--embedded {
    width: 100%;
    max-width: 100%;
    margin: 0;
    box-sizing: border-box;
}

.search-field[data-field="datetime"] .time-slots.experience-search-time-slots {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.search-field[data-field="datetime"] .time-range-fields {
    padding-top: 0;
    border-top: none;
    width: 100%;
    box-sizing: border-box;
}

.search-field .time-picker-panel {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100%;
    max-width: 100%;
    align-items: stretch;
    box-sizing: border-box;
}

.search-field .time-badge-grid {
    --time-badge-start: #7a04ff;
    --time-badge-start-soft: #f5f0ff;
    --time-badge-start-border: #d4b8ff;
    --time-badge-end: #ea580c;
    --time-badge-end-soft: #fff7ed;
    --time-badge-end-border: #fdba74;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    cursor: default;
}

.search-field[data-field="datetime"] .datetime-time-picker .time-badge.time-slot {
    width: 100%;
    min-height: 34px;
    padding: 4px 2px;
    box-sizing: border-box;
}

.search-field .time-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 6px 4px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    color: #222;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.25;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.search-field .time-badge-slot {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    width: 100%;
}

.search-field .time-badge-row {
    display: block;
    white-space: nowrap;
}

.search-field .time-badge-key {
    font-weight: 600;
}

.search-field .time-badge:hover {
    border-color: #222;
    background: #f7f7f7;
}

.search-field .time-badge.range-start {
    border-color: var(--time-badge-start);
    background: var(--time-badge-start);
    color: #fff;
}

.search-field .time-badge.range-end {
    border-color: var(--time-badge-end);
    background: var(--time-badge-end);
    color: #fff;
}

.search-field .time-badge.in-range {
    border-color: #7dd3fc;
    background: #f0f9ff;
    color: #0369a1;
    font-weight: 600;
}

.search-field .time-badge.in-range .time-badge-label {
    color: inherit;
}

.search-field .time-badge.disabled {
    cursor: not-allowed;
    pointer-events: none;
    border-color: var(--time-badge-start-border);
    background: var(--time-badge-start-soft);
    color: var(--time-badge-start);
    opacity: 0.55;
}

.search-field .time-badge.disabled.range-start {
    border-color: var(--time-badge-start);
    background: var(--time-badge-start);
    color: #fff;
    opacity: 1;
}

.search-field .time-range-fields {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    padding: 12px 0 0;
    background: none;
    border: none;
    border-top: 1px solid #ebebeb;
    border-radius: 0;
    cursor: default;
    box-sizing: border-box;
}

.search-field .time-range-fields * {
    cursor: default !important;
}

.search-field .time-range-summary-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    width: 100%;
    box-sizing: border-box;
}

.search-field .time-range-field {
    --time-range-accent: #7a04ff;
    --time-range-accent-soft: #f5f0ff;
    --time-range-accent-border: #d4b8ff;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    min-width: 0;
    padding: 4px 0;
    background: none;
    border: none;
    border-radius: 0;
    box-shadow: none;
}

.search-field .time-range-field--start {
    --time-range-accent: #7a04ff;
    --time-range-accent-soft: #f5f0ff;
    --time-range-accent-border: #d4b8ff;
}

.search-field .time-range-field--end {
    --time-range-accent: #ea580c;
    --time-range-accent-soft: #fff7ed;
    --time-range-accent-border: #fdba74;
}

.search-field .time-range-field:has(.time-range-input:not(:placeholder-shown)) {
    background: none;
    border: none;
    box-shadow: none;
}

.search-field .time-range-key {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
}

.search-field .time-range-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    display: inline-block;
}

.search-field .time-range-dot--start {
    background: #7a04ff;
}

.search-field .time-range-dot--end {
    background: #ea580c;
}

.search-field .time-range-key-text {
    font-size: 14px;
    font-weight: 800;
    line-height: 1.2;
    color: var(--time-range-accent);
}

.search-field .time-range-input {
    flex: 0 0 auto;
    width: 5ch;
    min-width: 0;
    box-sizing: border-box;
    padding: 0;
    border: none;
    background: transparent;
    color: #222;
    font-size: 14px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.03em;
    text-align: left;
    outline: none;
    cursor: default;
}

.search-field .time-range-input::placeholder {
    color: #c4c4c4;
    font-weight: 500;
    font-size: 12px;
    line-height: 1.2;
}

.search-field .time-range-input:not(:placeholder-shown) {
    color: #222;
}

.search-field .time-range-guide {
    margin: 2px 0 0;
    font-size: 13px;
    font-weight: 500;
    color: #222;
    letter-spacing: -0.01em;
    text-align: left;
}

.people-stepper {
    min-width: 280px;
}

.stepper-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.stepper-row:last-child {
    border-bottom: none;
}

.stepper-info {
    flex: 1;
}

.stepper-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.stepper-desc {
    font-size: 12px;
    color: #666;
}

.stepper-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.stepper-btn {
    width: 32px;
    height: 32px;
    border: 1px solid #ddd;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #666;
}

.stepper-btn:hover {
    border-color: #333;
    background: #f8f8f8;
}

.stepper-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    border-color: #f0f0f0;
}

.stepper-btn:disabled:hover {
    border-color: #f0f0f0;
    background: #fff;
}

.stepper-value {
    min-width: 20px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.search-filter-bar .filter-button.is-hidden,
.search-filter-bar .filter-button[hidden] {
    display: none !important;
}

.filter-button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 3px 16px;
    border: 2px solid #333;
    border-radius: 24px;
    background: white;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s;
    white-space: nowrap;
}

.filter-button:hover {
    background: #f5f5f5;
}

.search-bar-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
}

.site-name {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    white-space: nowrap;
}

.search-inputs {
    flex: 1;
    display: flex;
    align-items: center;
    background: white;
    border: 1px solid #ddd;
    border-radius: 28px;
    padding: 3px 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.search-input-item {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4px 12px;
    flex: 1;
    position: relative;
}

.search-input-item:last-of-type {
    border-right: none;
}

.search-input-item input[type="text"],
.search-input-item select,
.search-input-item input[type="date"],
.search-input-item span {
    border: none;
    background: transparent;
    font-size: 13px;
    color: #333;
    font-weight: 500;
    outline: none;
    min-width: auto;
    cursor: pointer;
    width: 100%;
}

.search-input-item input[type="text"].selected {
    color: #333;
    font-weight: 600;
}

.search-input-item input[type="text"]::placeholder {
    color: #999;
    font-weight: 400;
}

.location-item {
    gap: 4px;
    padding: 8px 8px;
    flex-direction: row;
}

.location-icon {
    font-size: 16px;
    flex-shrink: 0;
}

.location-item input {
    text-align: right;
    padding-right: 8px;
}

.people-item {
    flex-direction: row;
    padding: 8px 12px;
}

.people-item label {
    border: none;
    color: #333;
    font-size: 13px;
    margin: 0;
}

/* Responsive Design for Filter Modal */
@media (max-width: 768px) {
    .filter-modal-container {
        gap: 16px;
        padding: 16px;
    }

    .filter-modal-section {
        gap: 10px;
    }

    .filter-section-title {
        font-size: 13px;
    }

    .filter-option-btn {
        padding: 8px 16px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .filter-modal-container {
        gap: 12px;
        padding: 12px;
    }

    .filter-section-title {
        font-size: 12px;
    }

    .filter-option-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
}

/* Airbnb 스타일 3단 레이아웃 */
.search-layout-container {
    padding: 20px 0;
    max-width: 1300px;
    margin: 0 auto;
    min-height: calc(100vh - 300px);
}

/* 좌측 필터 패널 */
.search-filter-panel {
    position: sticky;
    top: 20px;
    height: fit-content;
}

.filter-section {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.filter-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e0e0e0;
}

.filter-group {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.filter-group:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.filter-group-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #333;
}

.filter-checkbox {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    cursor: pointer;
    font-size: 14px;
}

.filter-checkbox input[type="radio"],
.filter-checkbox input[type="checkbox"] {
    margin-right: 8px;
    cursor: pointer;
}

.filter-range {
    width: 100%;
    margin-bottom: 10px;
}

.filter-price-display {
    font-size: 13px;
    color: #666;
    text-align: center;
}

.rating-filter {
    margin-right: 8px;
}

.filter-reset-btn {
    width: 100%;
    padding: 10px;
    background: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    transition: background 0.3s;
    margin-top: 15px;
}

.filter-reset-btn:hover {
    background: #e0e0e0;
}

/* 중앙 검색 결과 */
.search-results-main {
    background: white;
    border-radius: 12px;
}

.search-results-section {
    padding: 0;
}

.search-results-container {
    margin: 0;
}

.search-results-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

/* 전체 상품 카드를 감싸는 링크 */
.subject-content-link {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    border-radius: 12px;
}

/* .subject-content-link:hover {
    text-decoration: none;
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.12);
}

.subject-content-link:active {
    transform: translateY(-2px);
} */

/* search.php에서 subject-content-item을 grid에서 사용하는 경우 */
.search-results-grid .subject-content-item {
    flex: none; /* experience.css의 flex 설정 무시 */
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
}

/* 우측 선택 항목 패널 */
.search-selections-panel {
    position: sticky;
    top: 20px;
    height: fit-content;
}

.selections-section {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border: 1px solid #f0f0f0;
}

.selections-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e0e0e0;
}

.selection-item {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.selection-item:last-of-type {
    border-bottom: none;
}

.selection-item-label {
    font-size: 13px;
    font-weight: 600;
    color: #666;
    margin-bottom: 5px;
}

.selection-item-value {
    font-size: 14px;
    color: #333;
    font-weight: 500;
    margin: 0;
}

.selection-item-counter {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 8px;
}

.counter-btn {
    width: 32px;
    height: 32px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    transition: all 0.2s;
}

.counter-btn:hover {
    border-color: #333;
    background: #f5f5f5;
}

.counter-input {
    width: 50px;
    height: 32px;
    border: 1px solid #ddd;
    border-radius: 6px;
    text-align: center;
    font-weight: 600;
    color: #333;
}

.selection-filters {
    margin: 15px 0;
}

.selection-filters-title {
    font-size: 13px;
    font-weight: 600;
    color: #666;
    margin-bottom: 8px;
}

.filter-tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}

.filter-tag-label {
    font-size: 12px;
    color: #666;
    font-weight: 500;
    margin-right: 4px;
}

.filter-tag {
    display: inline-block;
    background: #f0f0f0;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    color: #333;
    border: 1px solid #ddd;
}

.booking-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    margin-top: 20px;
}

.booking-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(102, 126, 234, 0.3);
}

.search-no-results {
    text-align: center;
    padding: 60px 40px;
}

.no-results-icon {
    font-size: 80px;
    color: #ccc;
    margin-bottom: 20px;
}

.no-results-title {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
}

.no-results-desc {
    font-size: 16px;
    color: #999;
    margin-bottom: 30px;
}

.back-to-browse-btn {
    display: inline-block;
    padding: 12px 30px;
    background: #667eea;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: background 0.3s;
}

.back-to-browse-btn:hover {
    background: #764ba2;
}


.content-type-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
}

.content-type-badge.visiting {
    background: #FF6B35;
}

.content-type-badge.coming {
    background: #7B68EE;
}

.subject-content-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.favorite-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.favorite-btn:hover {
    background: #fff;
    transform: scale(1.1);
}

.favorite-btn svg {
    width: 18px;
    height: 18px;
    transition: all 0.3s ease;
}

.favorite-btn .heart-svg {
    fill: none;
    stroke: #7a04ff;
    stroke-width: 2;
}

.favorite-btn.active .heart-svg {
    fill: #7a04ff;
    stroke: #7a04ff;
}

.subject-content-image {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
    border-radius: 12px;
}

.subject-content-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.subject-content-item:hover .subject-content-image img {
    transform: scale(1.1);
}

.subject-content-info {
    padding: 20px 0;
}

.subject-content-name {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    margin-bottom: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.subject-content-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.4;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.subject-content-price {
    display: flex;
    align-items: center;
    gap: 8px;
}

.discount {
    color: #7800ff;
    font-size: 16px;
    font-weight: 600;
}

.original-price {
    font-size: 14px;
    color: #999;
    text-decoration: line-through;
}

.price {
    color: #333;
    font-size: 18px;
    font-weight: 700;
}

/* 반응형 디자인 */
@media (max-width: 1300px) {
    .search-layout-container {
        grid-template-columns: 250px 1fr 300px;
        gap: 30px;
        padding: 30px;
    }

    .search-results-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .search-layout-container {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px;
    }

    .search-filter-panel,
    .search-selections-panel {
        position: static;
    }

    .search-results-grid {
        grid-template-columns: 1fr;
    }
}

/* 커스텀 달력 스타일 */
.custom-calendar-compact {
    padding: 15px;
    cursor: default;
}

.dropdown-menu.custom-calendar-compact.show {
    cursor: default;
}

.custom-calendar-compact .calendar-nav,
.custom-calendar-compact .calendar-day:not(.disabled),
.custom-calendar-compact .shortcut-btn,
.custom-calendar-compact button.shortcut-btn-clear {
    cursor: pointer;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 0 10px;
}

.calendar-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: #222;
    margin: 0;
}

.calendar-nav {
    background: none;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
    font-size: 14px;
    color: #333;
}

.calendar-nav:hover {
    background-color: #f7f7f7;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    margin-bottom: 8px;
}

.calendar-weekday {
    padding: 8px 4px;
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: #717171;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    margin-bottom: 15px;
}

.calendar-day {
    padding: 12px 4px;
    text-align: center;
    font-size: 13px;
    border-radius: 6px;
    transition: all 0.2s ease;
    color: #222;
    position: relative;
}

.calendar-day:hover {
    background-color: #f7f7f7;
}

.calendar-day.today {
    background-color: #e3f2fd;
    color: #1976d2;
    font-weight: 600;
}

.calendar-day.selected {
    background-color: #7800FF;
    color: #fff;
    font-weight: 600;
}

.calendar-day.other-month {
    color: #ccc;
}

.calendar-day.disabled {
    color: #ddd;
    cursor: not-allowed;
}

.calendar-day.disabled:hover {
    background-color: transparent;
}

.calendar-shortcuts {
    border-top: 1px solid #f0f0f0;
    padding-top: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.shortcut-btn {
    padding: 6px 12px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 18px;
    font-size: 12px;
    color: #495057;
    transition: all 0.2s ease;
}

.shortcut-btn:hover {
    background-color: #e9ecef;
    border-color: #dee2e6;
}

.shortcut-btn.active {
    background-color: #7800FF;
    border-color: #7800FF;
    color: #fff;
}

.shortcut-btn-clear {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    min-width: 30px;
    height: 30px;
    padding: 0;
    margin: 0;
    border-radius: 50%;
    color: #666;
    border-color: #ddd;
    background: #fff;
    line-height: 1;
}

.shortcut-btn-clear i {
    font-size: 12px;
    pointer-events: none;
}

.shortcut-btn-clear:hover {
    color: #222;
    border-color: #999;
    background: #f5f5f5;
}

/* 페이징 스타일 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 40px;
    padding: 30px 0;
}

.pagination-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 8px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pagination-btn:hover:not(.disabled):not(.active) {
    border-color: #7a04ff;
    color: #7a04ff;
    background: #f9f5ff;
}

.pagination-btn.active {
    background: #7a04ff;
    border-color: #7a04ff;
    color: #fff;
}

.pagination-btn.disabled {
    background: #f5f5f5;
    border-color: #e0e0e0;
    color: #999;
    cursor: not-allowed;
}

.pagination-ellipsis {
    color: #999;
    padding: 0 4px;
}

.dropdown-item.is-disabled {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
}

.search-field .time-slots-placeholder {
    margin: 0;
    padding: 12px 8px;
    font-size: 12px;
    color: #717171;
    text-align: center;
}

.search-field .time-badge-cell {
    position: relative;
    min-width: 0;
}

.search-field .time-badge.time-slot {
    width: 100%;
    min-height: 34px;
    padding: 4px 2px;
    box-sizing: border-box;
}

.search-field .time-badge.time-slot.time-blocked.disabled {
    border-color: #e5e7eb;
    background: #f3f4f6;
    color: #9ca3af;
    opacity: 1;
    cursor: not-allowed;
    pointer-events: none;
}

.search-field .time-badge-label {
    display: block;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.2;
}

.search-field .time-badge.range-pick-disabled {
    opacity: 0.35;
    cursor: not-allowed;
    pointer-events: none;
}

.search-field .time-badge.range-single {
    border-color: var(--time-badge-start);
    background: var(--time-badge-start);
    color: #fff;
}

.custom-calendar-compact .calendar-day {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 38px;
    padding: 6px 0 4px;
}

.custom-calendar-compact .calendar-day-num {
    flex: 0 0 auto;
    line-height: 1.2;
    font-size: 13px;
}

.custom-calendar-compact .calendar-day-today-label {
    display: block;
    flex: 0 0 auto;
    font-size: 9px;
    font-weight: 600;
    color: #16a34a;
    line-height: 1;
    margin-top: 1px;
}

.custom-calendar-compact .calendar-day-status-label {
    display: block;
    flex: 0 0 auto;
    font-size: 9px;
    font-weight: 600;
    line-height: 1;
    margin-top: 1px;
}

.custom-calendar-compact .calendar-day-status-label--holiday {
    color: #9ca3af;
}

.custom-calendar-compact .calendar-day-status-label--closed {
    color: #b0b0b0;
}

.custom-calendar-compact .calendar-day.selected .calendar-day-status-label {
    color: #fff;
}

.custom-calendar-compact .calendar-weekday:first-child {
    color: #ef4444;
}

.custom-calendar-compact .calendar-weekday:last-child {
    color: #2563eb;
}

.custom-calendar-compact .calendar-day.today {
    background: transparent;
    font-weight: 500;
}

.custom-calendar-compact .calendar-day.today:not(.selected) .calendar-day-num {
    color: #16a34a;
    font-weight: 600;
}

.custom-calendar-compact .calendar-day.selected {
    background-color: #22c55e;
    color: #fff;
    font-weight: 600;
}

.custom-calendar-compact .calendar-day.selected .calendar-day-num {
    color: #fff;
}

.custom-calendar-compact .calendar-day.sunday:not(.selected):not(.disabled) .calendar-day-num {
    color: #ef4444;
}

.custom-calendar-compact .calendar-day.saturday:not(.selected):not(.disabled) .calendar-day-num {
    color: #2563eb;
}

.custom-calendar-compact .calendar-day.disabled .calendar-day-num {
    color: #d1d5db;
}

.custom-calendar-compact .calendar-day.holiday.disabled .calendar-day-num,
.custom-calendar-compact .calendar-day.capacity-unavailable.disabled .calendar-day-num {
    color: #d1d5db;
}