/* 추천 나무 슬라이드 스타일 */

.recommended-trees-slider {
    width: 100%;
    opacity: 0;
}

.recommended-trees-slider.loaded {
    opacity: 1;
}

.recommended-trees-swiper {
    width: 100%;
}

.tree-card {
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.tree-image {
    width: 100%;
    height: 0;
    padding-bottom: 64.1%;
    /* 184/287 = 0.641 */
    overflow: hidden;
    position: relative;
    border-radius: 15px;
}

.tree-image-link {
    cursor: pointer;
}

.tree-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.no-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 14px;
}

.tree-info {
    padding: 15px 0px;
    flex: 1;
    display: flex;
    flex-direction: column;
    color: #333;
}

.tree-name {
    font-size: 18px;
    font-weight: bold;
    margin: 0 0 10px 0;
    color: #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tree-name-link {
    cursor: pointer;
}

.recommend-info {
    display: flex;
    align-items: center;
    margin-left: 10px;
}

.heart-icon {
    width: 14px;
    height: 16px;
    margin-right: 2px;
}

.recommend-count {
    font-size: 12px;
    color: #838383;
    font-weight: 400;
}

.address {
    font-size: 14px;
    color: #555;
    margin: 0 0 3px 0;
    line-height: 1.4;
}

.farm-name {
    font-size: 14px;
    color: #555;
    margin: 0 0 6px 0;
}

.farm-link {
    color: #555;
    text-decoration: none;
    cursor: pointer;
}

.farm-link:hover {
    color: #333;
    text-decoration: underline;
}

.price {
    font-size: 16px;
    font-weight: bold;
    color: #555555;
    margin: auto 0 0 0;
}


/* 반응형 디자인 */

@media (max-width: 768px) {
    .tree-info {
        padding: 15px 0px;
    }
    .tree-name {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .tree-info {
        padding: 15px 0px;
    }
    .tree-name {
        font-size: 16px;
    }
    .address,
    .farm-name {
        font-size: 14px;
    }
    .price {
        font-size: 16px;
    }
}


/* 관리자 페이지 스타일 */

.card {
    background: #fff;
    border: 1px solid #ccd0d4;
    border-radius: 4px;
    padding: 20px;
    margin-bottom: 20px;
}

.card h2 {
    margin-top: 0;
    margin-bottom: 15px;
}

.wp-list-table th,
.wp-list-table td {
    padding: 10px;
}

.form-table th {
    width: 150px;
}

.form-table td input[type="number"] {
    width: 100px;
}

.form-table td select {
    width: 300px;
}


/* 인기 농원 슬라이드 스타일 */

.popular-farms-slider {
    width: 100%;
    overflow: hidden;
}

.popular-farms-swiper {
    width: 100%;
    height: auto;
}

.popular-farms-slider .farm-card {
    background: #F4FAF7;
    border-radius: 8px;
    padding: 20px;
    cursor: pointer;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.popular-farms-slider .farm-card:hover {
    transform: translateY(-5px);
}

.popular-farms-slider .farm-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.popular-farms-slider .farm-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.popular-farms-slider .farm-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.popular-farms-slider .farm-info {
    flex: 1;
}

.popular-farms-slider .farm-name {
    font-size: 16px;
    font-weight: bold;
    color: #000;
    margin: 0 0 8px 0;
}

.popular-farms-slider .farm-address {
    font-size: 14px;
    color: #333;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.popular-farms-slider .owned-trees-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.popular-farms-slider .trees-title-section {
    display: flex;
    align-items: flex-end;
    gap: 2px;
}

.popular-farms-slider .tree-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.popular-farms-slider .tree-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.popular-farms-slider .trees-info {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.popular-farms-slider .trees-title {
    font-size: 14px;
    font-weight: 500;
    color: #0F4229;
    margin: 0;
}

.popular-farms-slider .trees-list {
    font-size: 14px;
    color: #606060;
    margin: 0;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}


/* 인기 농원 반응형 디자인 */


/* @media (max-width: 768px) {
    .farm-card {
        height: 180px;
        padding: 15px;
    }
    .farm-name {
        font-size: 16px;
    }
    .farm-address {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .farm-card {
        height: 160px;
        padding: 12px;
    }
    .farm-name {
        font-size: 15px;
    }
    .farm-address {
        font-size: 12px;
    }
    .trees-title {
        font-size: 13px;
    }
    .trees-list {
        font-size: 11px;
    }
} */


/* 최근 견적 문의 카드 스타일 - 최신 트렌드 디자인 */

.recent-estimates-cards {
    width: 100%;
    margin: 0 auto;
}

.recent-estimates-cards .estimates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
}

.recent-estimates-cards .estimate-card {
    background: #ffffff;
    border-radius: 8px;
    padding: 24px;
    border: 1px solid #e8e8e8;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    cursor: pointer;
}

.recent-estimates-cards .estimate-card.estimate-completed {
    background: #fbfbfb;
}

.recent-estimates-cards .estimate-completed-badge {
    position: absolute;
    top: 22px;
    right: 16px;
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    padding: 4px 12px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 500;
    z-index: 2;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.2);
}

.recent-estimates-cards .estimate-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.recent-estimates-cards .estimate-header {}

.recent-estimates-cards .estimate-title {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 8px 0;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-right: 70px;
}

.recent-estimates-cards .estimate-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: #666;
}

.recent-estimates-cards .estimate-author {
    background: #f8f9fa;
    padding: 4px 8px;
    border-radius: 8px;
    font-weight: 500;
    color: #495057;
}

.recent-estimates-cards .estimate-date {
    color: #999;
    font-weight: 400;
}

.recent-estimates-cards .estimate-details {
    flex: 1;
    display: flex;
    display: none !important;
    flex-direction: column;
    gap: 16px;
}

.recent-estimates-cards .detail-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.recent-estimates-cards .detail-label {
    font-size: 13px;
    color: #666;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.recent-estimates-cards .detail-icon {
    width: 14px;
    height: 14px;
    opacity: 0.7;
}

.recent-estimates-cards .detail-value {
    font-size: 15px;
    color: #333;
    line-height: 1.5;
    word-break: break-word;
    font-weight: 500;
}

.recent-estimates-cards .tree-list {
    font-size: 15px;
    color: #333;
    line-height: 1.4;
    word-break: break-word;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.recent-estimates-cards .estimate-pending-badge {
    position: absolute;
    top: 22px;
    right: 16px;
    background: #795548;
    color: white;
    padding: 4px 12px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 500;
    z-index: 2;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(255, 152, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 2px;
}

.recent-estimates-cards .loading-text {
    color: white;
}

.recent-estimates-cards .loading-dots {
    display: flex;
    gap: 1px;
}

.recent-estimates-cards .loading-dots .dot {
    color: white;
    font-weight: 700;
    animation: loadingDots 1.5s infinite;
}

.recent-estimates-cards .loading-dots .dot:nth-child(1) {
    animation-delay: 0s;
}

.recent-estimates-cards .loading-dots .dot:nth-child(2) {
    animation-delay: 0.2s;
}

.recent-estimates-cards .loading-dots .dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes loadingDots {
    0%,
    20% {
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    80%,
    100% {
        opacity: 0;
    }
}


/* 견적 문의 카드 반응형 디자인 */

@media (max-width: 768px) {
    .recent-estimates-cards .estimates-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    .recent-estimates-cards .estimate-card {
        padding: 15px;
    }
    .recent-estimates-cards .estimate-title {
        font-size: 16px;
    }
    .recent-estimates-cards .detail-value {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .recent-estimates-cards .estimate-card {
        padding: 12px;
    }
    .recent-estimates-cards .estimate-title {
        font-size: 15px;
    }
    .recent-estimates-cards .detail-label {
        font-size: 11px;
    }
    .recent-estimates-cards .detail-value {
        font-size: 12px;
    }
    .recent-estimates-cards .estimate-pending-badge,
    .recent-estimates-cards .estimate-completed-badge {
        top: 11px;
    }
}