/* Blinking animation for action button labels */
@keyframes blink {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.3;
    }
}

.profile-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    height: 100%;
}

.page-content {
    background-color: white !important;
}

.form-grid-3 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.profile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2px;
    padding-bottom: 2px;
    border-bottom: 1px solid #e0e0e0;
}

.proposal-id {
    color: #666;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: space-between;
}

.proposal-id span {
    color: #014f86;
    font-weight: 600;
}

/* Premium icon for profile cards - golden crown icon without text */
.premium-icon-small {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem 0.5rem;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 50%, #ffd700 100%);
    border-radius: 0.375rem;
    color: #1b4e4f;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(255, 215, 0, 0.3);
    transition: all 0.3s ease;
    flex-shrink: 0;
    margin-left: auto;
}

.premium-icon-small:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(255, 215, 0, 0.4);
}

.premium-icon-small i {
    font-size: 1rem;
    line-height: 1;
}

/* Feminine version of premium icon - softer colors */
.premium-icon-feminine {
    background: linear-gradient(135deg, #ff69b4 0%, #ffb6c1 50%, #ff69b4 100%) !important;
    box-shadow: 0 2px 4px rgba(255, 105, 180, 0.3) !important;
}

.premium-icon-feminine:hover {
    box-shadow: 0 4px 8px rgba(255, 105, 180, 0.4) !important;
}

.time-ago {
    color: #666;
    font-size: 14px;
}

.profile-content {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.profile-photo {
    flex-shrink: 0;
}

.photo-placeholder {
    width: 120px;
    height: 150px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    position: relative;
}

.photo-icon {
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 50%;
    margin-bottom: 10px;
}

.photo-text {
    font-size: 11px;
    text-align: center;
    font-weight: 600;
    line-height: 1.2;
}

.profile-details {
    flex: 1;
    display: flex;
    justify-content: space-between;
    /* gap: 5px; */
    flex-wrap: wrap;
    min-width: 0;
}

.details-left,
.details-right {
    flex: 1;
    min-width: 200px;
}

.detail-item {
    /* margin-bottom: 1px; */
    font-size: 15px;
}

.detail-label {
    color: #333;
    font-weight: 600;
    display: inline-block;
    min-width: 105px;
}

.detail-value {
    color: #666;
}

.country-city {
    color: #d32f2f;
    font-weight: 600;
    font-size: 18px;
    margin-bottom: 15px;
}

.profile-actions {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.action-btn {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    color: #666;
    font-size: 14px;
    padding: 5px 10px;
    border-radius: 4px;
    transition: background 0.3s;
}

.action-btn:hover {
    background: #f5f5f5;
}

.action-btn i {
    font-size: 20px;
}

/* ---------- Profile card action buttons (Like/Favorite) ----------
   These rules style the buttons rendered by `assets/js/app/profile-card.js`.
   Tweak colors, sizes, spacing here to change the look & feel. */

/* Layout for the actions column inside profile cards */
.profile-card .profile-actions,
.profile-photo .profile-actions {
    margin: 0;
    padding: 0;
    flex-direction: column;
    align-items: flex-start;
    width: 130px;
    gap: 0;
}

.profile-card .profile-actions .action-btn {
    margin: 0;
    padding: 0;
    gap: 2px;
    background: transparent;
    line-height: 1;
}

.profile-card .profile-actions .action-btn:hover {
    background: transparent;
}

.profile-card .profile-actions .action-btn-text {
    color: #666;
    font-size: 13px;
    line-height: 1;
}

.profile-card .profile-actions .action-btn-icon {
    width: 22px;
    height: 22px;
    border-radius: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: #666; /* icon color via inheritance */
    transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.profile-photo .profile-actions .action-btn-icon,
.profile-card .profile-actions .action-btn-icon {
    width: 22px;
    height: 22px;
    border-radius: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: #666;
    transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

/* Smaller FontAwesome icon for like/favorite inside cards */
.profile-card .profile-actions .action-btn-icon i {
    font-size: 15px;
    line-height: 1;
}

.profile-card .profile-actions .action-btn:hover .action-btn-icon {
    transform: translateY(-1px);
}

/* Like states */
.profile-card .profile-actions .action-btn-icon.like.active {
    background: transparent !important;
    border: none !important;
    color: #d50000 !important; /* icon color */
}

/* Favorite states */
.profile-card .profile-actions .action-btn-icon.favorite.active {
    background: transparent !important;
    border: none !important;
    color: #debc00 !important; /* icon color (gold) */
}

/* Ensure the font-awesome icon inherits the active color */
.profile-card .profile-actions .action-btn-icon.like.active i,
.profile-card .profile-actions .action-btn-icon.favorite.active i {
    color: inherit !important;
}

/* Fallback/global active styling (in case markup differs and the scoped selectors don't match) */
.action-btn-icon.like.active {
    background: transparent !important;
    border: none !important;
    color: #d50000 !important;
}

.action-btn-icon.favorite.active {
    background: transparent !important;
    border: none !important;
    color: #debc00 !important;
}

.action-btn-icon.like.active i,
.action-btn-icon.favorite.active i {
    color: inherit !important;
}

/* Color the text based on the icon state (text doesn't carry .active in cards) */
.action-btn-icon.like.active + .like-text {
    color: #d50000 !important;
    font-weight: 600;
}

.action-btn-icon.favorite.active + .favorite-text {
    color: #debc00 !important;
    font-weight: 600;
}

.photo-count {
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.view-details-btn {
    background: #7cb342;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background 0.3s;
}

.view-details-btn:hover {
    background: #689f38;
}

/* Responsive Styles */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    .profile-card {
        padding: 15px;
        margin-bottom: 8px;
    }

    .profile-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .proposal-id {
        font-size: 13px;
    }

    .profile-content {
        flex-direction: column;
        align-items: center;
    }

    .profile-photo {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .profile-photo .profile-img {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        aspect-ratio: 1 / 1;
        object-fit: cover;
    }

    .photo-placeholder {
        width: 100%;
        max-width: 100%;
        aspect-ratio: 1 / 1;
    }

    .profile-actions {
        justify-content: center;
        width: 100%;
        margin-top: 10px !important;
        padding-top: 10px !important;
    }
    
    .profile-photo .profile-actions {
        margin-top: 10px !important;
        padding-top: 10px !important;
    }

    .profile-details {
        width: 100%;
        flex-direction: column;
        gap: 0;
    }

    .details-left,
    .details-right {
        min-width: 100%;
        margin-bottom: 0;
    }

    .detail-label {
        min-width: 110px;
        font-size: 14px;
    }

    .detail-value {
        font-size: 14px;
    }

    .country-city {
        font-size: 16px;
    }
}

@media (max-width: 576px) {
    .profile-card {
        padding: 12px;
    }

    .photo-placeholder {
        width: 120px;
        height: 150px;
    }

    .detail-item {
        margin-bottom: 1px;
        font-size: 14px;
    }

    .detail-label {
        min-width: 100px;
        font-size: 13px;
    }

    .detail-value {
        font-size: 13px;
    }

    .country-city {
        font-size: 15px;
        margin-bottom: 12px;
    }

    .view-details-btn {
        width: 100%;
        justify-content: center;
        padding: 10px 20px;
    }
}

@media (min-width: 769px) and (max-width: 991px) {
    .detail-label {
        min-width: 110px;
        font-size: 14px;
    }

    .detail-value {
        font-size: 14px;
    }
}

.location-search-wrapper {
    position: relative;
    margin-bottom: 15px;
}

.location-search-wrapper .input-group {
    display: flex;
    gap: 10px;
    align-items: center;
}

#searchInput {
    flex: 1;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
}

.suggestions {
    width: 100%;
    background: white;
    border: 1px solid #ccc;
    border-top: none;
    max-height: 200px;
    overflow-y: auto;
    border-radius: 0 0 6px 6px;
    position: absolute;
    z-index: 999;
}

.suggestions div {
    padding: 8px;
    cursor: pointer;
}

.suggestions div:hover {
    background: #f0f0f0;
}

.locate-btn {
    background: white;
    border: 2px solid #333;
    color: #333;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 500;
    cursor: pointer;
}

.locate-btn:hover {
    background: #333;
    color: white;
}