

.free-search-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
}

.free-search-wrapper {
    max-width: 1280px;
    margin: 0 auto;
}

.free-search-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 0 20px;
}

.free-search-title {
    font-size: 36px;
    font-weight: 800;
    color: #FF6F0F;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    line-height: 1.3;
}

.free-search-title i {
    font-size: 38px;
    animation: giftBounce 2s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes giftBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.free-search-subtitle {
    font-size: 18px;
    color: #495057;
    line-height: 1.6;
    padding: 0 10px;
}

.free-search-subtitle strong {
    color: #FF6F0F;
    font-weight: 700;
}

@media (max-width: 768px) {
    .free-search-header {
        margin-bottom: 30px;
        padding: 0 15px;
    }
    
    .free-search-title {
        font-size: 24px;
        flex-direction: column;
        gap: 8px;
        margin-bottom: 12px;
    }
    
    .free-search-title i {
        font-size: 28px;
    }
    
    .free-search-subtitle {
        font-size: 15px;
        line-height: 1.5;
        padding: 0;
    }
}

.free-search-box {
    background: #ffffff;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.08),
        0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(255, 111, 15, 0.1);
}

@media (min-width: 769px) {
    .free-search-box {
        padding: 40px 60px;
    }
}

.free-search-form {
    margin-bottom: 30px;
}

@media (min-width: 769px) {
    .free-search-form {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .free-search-form {
        max-width: 720px;
        margin-left: auto;
        margin-right: auto;
    }
}

.free-search-input-group {
    margin-bottom: 25px;
}

.free-search-input-row-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

.free-search-input-row-2 .free-search-input-group {
    margin-bottom: 0;
}

.free-search-input-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

.free-search-input-row .free-search-input-group {
    margin-bottom: 0;
}

@media (min-width: 769px) {
    .free-search-form-wrapper {
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        gap: 20px;
        margin-bottom: 25px;
    }
    
    .free-search-form-wrapper .free-search-input-group {
        margin-bottom: 0;
    }
    
    .free-search-input-row-2,
    .free-search-input-row {
        display: contents;
    }
}

@media (max-width: 768px) {
    .free-search-input-row-2,
    .free-search-input-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

.free-search-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 600;
    color: #212529;
    margin-bottom: 10px;
}

.free-search-label i {
    color: #FF6F0F;
    font-size: 16px;
}

.free-search-select,
.free-search-input {
    width: 100%;
    padding: 14px 18px;
    font-size: 16px;
    border: 2px solid #dee2e6;
    border-radius: 10px;
    background: #f8f9fa;
    color: #212529;
    transition: all 0.3s ease;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Malgun Gothic', sans-serif;
}

.free-search-select:focus,
.free-search-input:focus {
    outline: none;
    border-color: #FF6F0F;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(255, 111, 15, 0.1);
}

.free-search-btn {
    width: 100%;
    padding: 18px;
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    background: linear-gradient(135deg, #FF6F0F 0%, #FF8C42 100%);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(255, 111, 15, 0.3);
}

.free-search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 111, 15, 0.4);
}

.free-search-btn:active {
    transform: translateY(0);
}

.free-search-btn:disabled {
    background: #dee2e6;
    cursor: not-allowed;
    box-shadow: none;
}

.free-search-notice {
    margin-top: 25px;
    padding: 18px;
    background: rgba(255, 111, 15, 0.05);
    border-left: 4px solid #FF6F0F;
    border-radius: 8px;
    font-size: 14px;
    color: #495057;
    line-height: 1.8;
}

.free-search-notice i {
    color: #FF6F0F;
    margin-right: 6px;
}

.free-search-notice strong {
    color: #FF6F0F;
    font-weight: 700;
}

.free-search-register-link {
    color: #FF6F0F;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.free-search-register-link:hover {
    color: #ff8533;
    text-decoration: underline;
}

.free-search-results {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid rgba(255, 111, 15, 0.1);
}

.free-search-results-header {
    text-align: center;
    margin-bottom: 30px;
}

.free-search-results-header h3 {
    font-size: 24px;
    font-weight: 700;
    color: #28a745;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.free-search-results-header p {
    font-size: 16px;
    color: #6c757d;
}

.free-search-results-list {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 20px;
}

@media (max-width: 1199.98px) {
    .free-search-results-list {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 18px;
    }
}

@media (max-width: 767.98px) {
    .free-search-results-list {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 12px;
    }

    .free-search-result-card {
        border-radius: 14px;
        box-shadow: 0 8px 18px rgba(0, 0, 0, 0.15);
    }

    .free-search-result-image {
        height: 130px;
    }
}

@media (min-width: 992px) {
    .free-search-results-list {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (min-width: 1400px) {
    .free-search-results-list {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

.free-search-result-card {
    background: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.free-search-result-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    border-color: #FF6F0F;
}

.free-search-result-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: #f8f9fa;
}

.free-search-result-content {
    padding: 16px;
}

.free-search-result-title {
    font-size: 16px;
    font-weight: 600;
    color: #212529;
    margin-bottom: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.free-search-result-price {
    font-size: 18px;
    font-weight: 700;
    color: #FF6F0F;
    margin-bottom: 8px;
}

.free-search-result-location {
    font-size: 13px;
    color: #6c757d;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 6px;
}

.free-search-result-meta {
    font-size: 12px;
    color: #868e96;
    display: flex;
    gap: 8px;
    padding-top: 6px;
    border-top: 1px solid #e9ecef;
}

.free-search-result-meta-item {
    display: flex;
    align-items: center;
    gap: 3px;
}

.free-search-result-empty {
    padding: 40px 20px;
    border-radius: 16px;
    border: 1px dashed rgba(0, 0, 0, 0.15);
    background: #ffffff;
    text-align: center;
    font-size: 16px;
    color: #6c757d;
}

.free-search-pagination {
    margin-top: 30px;
    display: none;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.free-search-page-btn {
    min-width: 42px;
    padding: 10px 16px;
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: #ffffff;
    font-size: 14px;
    font-weight: 600;
    color: #495057;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.free-search-page-btn:hover {
    border-color: #FF6F0F;
    color: #FF6F0F;
}

.free-search-page-btn.is-active {
    background: linear-gradient(135deg, #FF6F0F 0%, #FF9F43 100%);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 6px 16px rgba(255, 111, 15, 0.25);
}

.free-search-page-btn.is-disabled,
.free-search-page-btn.is-disabled:hover {
    opacity: 0.5;
    cursor: default;
    border-color: rgba(0, 0, 0, 0.1);
    color: #adb5bd;
    background: #ffffff;
    box-shadow: none;
}

/* 검색 확인 모달 & 에러 모달 */
.free-search-confirm-modal,
.free-search-error-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    animation: modalFadeIn 0.3s ease;
}

.free-search-confirm-modal.active,
.free-search-error-modal.active {
    display: flex;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.free-search-confirm-content,
.free-search-error-content {
    background: #ffffff;
    border-radius: 20px;
    padding: 40px;
    max-width: 480px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideUp 0.4s ease;
    position: relative;
}

@keyframes modalSlideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.free-search-confirm-icon,
.free-search-error-icon {
    text-align: center;
    margin-bottom: 20px;
}

.free-search-confirm-icon i {
    font-size: 64px;
    color: #FF6F0F;
    animation: iconPulse 1.5s ease-in-out infinite;
}

.free-search-error-icon i {
    font-size: 64px;
    color: #dc3545;
    animation: iconShake 0.5s ease;
}

@keyframes iconShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

@keyframes iconPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.free-search-confirm-title,
.free-search-error-title {
    font-size: 24px;
    font-weight: 700;
    color: #212529;
    text-align: center;
    margin-bottom: 25px;
}

.free-search-error-message {
    text-align: center;
    font-size: 16px;
    color: #495057;
    line-height: 1.8;
    margin-bottom: 30px;
}

.free-search-error-btn {
    width: 100%;
    padding: 16px;
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    background: linear-gradient(135deg, #FF6F0F 0%, #FF8C42 100%);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(255, 111, 15, 0.3);
}

.free-search-error-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 111, 15, 0.4);
}

.free-search-confirm-info {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
}

.free-search-confirm-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    font-size: 16px;
}

.free-search-confirm-item:last-child {
    margin-bottom: 0;
}

.free-search-confirm-item i {
    color: #FF6F0F;
    font-size: 20px;
    width: 24px;
    text-align: center;
}

.free-search-confirm-label {
    font-weight: 600;
    color: #495057;
    min-width: 70px;
}

.free-search-confirm-value {
    font-weight: 700;
    color: #212529;
    flex: 1;
}

.free-search-confirm-buttons {
    display: flex;
    gap: 12px;
}

.free-search-confirm-btn {
    flex: 1;
    padding: 16px;
    font-size: 16px;
    font-weight: 700;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.free-search-confirm-btn-yes {
    background: linear-gradient(135deg, #FF6F0F 0%, #FF8C42 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(255, 111, 15, 0.3);
}

.free-search-confirm-btn-yes:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 111, 15, 0.4);
}

.free-search-confirm-btn-no {
    background: #6c757d;
    color: #ffffff;
}

.free-search-confirm-btn-no:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

/* 폼 → 결과 전환 애니메이션 */
@keyframes formFlipOut {
    0% {
        transform: rotateY(0deg) scale(1);
        opacity: 1;
    }
    50% {
        transform: rotateY(90deg) scale(0.8);
        opacity: 0.5;
    }
    100% {
        transform: rotateY(90deg) scale(0);
        opacity: 0;
    }
}

@keyframes resultsFlipIn {
    0% {
        transform: rotateY(-90deg) scale(0);
        opacity: 0;
    }
    50% {
        transform: rotateY(-90deg) scale(0.8);
        opacity: 0.5;
    }
    100% {
        transform: rotateY(0deg) scale(1);
        opacity: 1;
    }
}

.free-search-form.flipping-out {
    animation: formFlipOut 0.8s ease forwards;
}

.free-search-results.flipping-in {
    animation: resultsFlipIn 0.8s ease forwards;
}

/* 후킹 멘트 */
.free-search-hooking-message {
    margin-top: 40px;
    padding: 30px;
    background: linear-gradient(135deg, rgba(255, 111, 15, 0.1) 0%, rgba(255, 140, 66, 0.1) 100%);
    border-radius: 16px;
    border: 2px solid rgba(255, 111, 15, 0.2);
    text-align: center;
}

.free-search-hooking-message h4 {
    font-size: 22px;
    font-weight: 800;
    color: #FF6F0F;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.free-search-hooking-message h4 i {
    font-size: 24px;
    animation: sparkle 1.5s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
    50% {
        transform: scale(1.3) rotate(180deg);
        opacity: 0.7;
    }
}

.free-search-hooking-message p {
    font-size: 16px;
    color: #495057;
    line-height: 1.8;
    margin-bottom: 20px;
}

.free-search-hooking-message p strong {
    color: #FF6F0F;
    font-weight: 700;
}

.free-search-hooking-cta {
    display: inline-block;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    background: linear-gradient(135deg, #FF6F0F 0%, #FF8C42 100%);
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 111, 15, 0.3);
}

.free-search-hooking-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 111, 15, 0.4);
    color: #ffffff;
}

@media (max-width: 768px) {
    .free-search-section {
        padding: 60px 0;
    }
    
    .free-search-box {
        padding: 25px 20px;
    }
    
    .free-search-results-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .free-search-result-card {
        display: flex;
        flex-direction: column;
    }
    
    .free-search-result-content {
        display: flex;
        flex-direction: column;
        flex: 1;
    }
    
.free-search-result-content .c14 {
    margin-top: auto;
}

.c40 {
    font-size: 14px;
    color: #6c757d;
    line-height: 1.6;
    margin: 0;
    padding: 12px 16px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 3px solid #FF6F0F;
    display: flex;
    align-items: center;
    gap: 8px;
}

.c40 i {
    color: #FF6F0F;
    font-size: 16px;
    flex-shrink: 0;
}
    
    .free-search-confirm-content {
        padding: 30px 20px;
    }
    
    .free-search-confirm-buttons {
        flex-direction: column;
    }
    
    .free-search-hooking-message {
        padding: 20px;
    }
    
    .free-search-hooking-message h4 {
        font-size: 18px;
    }
}

/* 플로팅 도움말 버튼 (PC만) */
.floating-help-container {
    position: fixed;
    right: 30px;
    bottom: 30px;
    z-index: 900;
    display: none;
}

@media (min-width: 769px) {
    .floating-help-container {
        display: block;
    }
}

.floating-help-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FF6F0F 0%, #FF8C42 100%);
    box-shadow: 0 4px 20px rgba(255, 111, 15, 0.4);
    border: none;
    color: #ffffff;
    font-size: 26px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    animation: floatingBounce 3s ease-in-out infinite;
    position: relative;
}

@keyframes floatingBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.floating-help-btn:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 8px 30px rgba(255, 111, 15, 0.6);
}

.floating-help-btn.active {
    transform: rotate(45deg);
    animation: none;
}

.floating-help-menu {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.floating-help-menu-item {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.floating-help-menu.active .floating-help-menu-item {
    opacity: 1;
    pointer-events: auto;
}

.floating-help-menu.active .floating-help-menu-item:nth-child(1) {
    transform: translate(-50%, calc(-50% - 65px)) scale(1);
    z-index: 903;
}

.floating-help-menu.active .floating-help-menu-item:nth-child(2) {
    transform: translate(calc(-50% - 55px), calc(-50% - 55px)) scale(1);
    z-index: 902;
}

.floating-help-menu.active .floating-help-menu-item:nth-child(3) {
    transform: translate(calc(-50% - 65px), -50%) scale(1);
    z-index: 901;
}

.floating-help-menu-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 2px solid #FF6F0F;
    color: #FF6F0F;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.floating-help-menu-btn:hover {
    background: #FF6F0F;
    color: #ffffff;
    transform: scale(1.15);
    box-shadow: 0 6px 20px rgba(255, 111, 15, 0.4);
}

.floating-help-menu-label {
    position: fixed;
    background: rgba(0, 0, 0, 0.9);
    color: #ffffff;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 99999;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.floating-help-menu-btn:hover .floating-help-menu-label {
    opacity: 1;
}

