/* =========================================================
   ADVERTISEMENT DETAIL PAGE
   Loaded only on the /ad/{advertisement} page — see the
   @push('styles') block in advertisement-details.blade.php
========================================================= */

.user-detail-page {
    padding: 60px 0 90px;
    background: #f8f9fb;
}

/* ---------- Profile Header ---------- */
.user-profile-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 35px;
}

.profile-label,
.small-label {
    display: block;
    color: #d81681;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    margin-bottom: 7px;
}

.profile-title {
    font-size: 42px;
    line-height: 1.1;
    font-weight: 700;
    color: #171717;
    margin: 0;
}

.profile-location {
    margin: 10px 0 0;
    color: #777;
    font-size: 15px;
}

.profile-location i {
    color: #d81681;
    margin-right: 5px;
}

.profile-head-actions {
    display: flex;
    gap: 10px;
}

.profile-icon-btn,
.profile-share-btn {
    height: 46px;
    border: 1px solid #e5e5e5;
    background: #fff;
    border-radius: 8px;
    transition: all .3s ease;
}

.profile-icon-btn {
    width: 46px;
    color: #d81681;
    font-size: 18px;
}

.profile-share-btn {
    padding: 0 20px;
    color: #333;
    font-size: 14px;
    font-weight: 600;
}

.profile-icon-btn:hover,
.profile-share-btn:hover {
    background: #d81681;
    color: #fff;
    border-color: #d81681;
}

/* ---------- Common Card ---------- */
.info-card {
    background: #fff;
    border-radius: 18px;
    padding: 30px;
    box-shadow: 0 10px 35px rgba(0, 0, 0, .08);
}

.section-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 25px;
}

.section-card-head h2 {
    margin: 0;
    color: #171717;
    font-size: 22px;
    font-weight: 700;
}

.section-head-icon {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border-radius: 10px;
    background: rgba(216, 22, 129, .08);
    color: #d81681;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ---------- Gallery ---------- */
.profile-gallery {
    padding: 15px;
}

.profile-main-swiper {
    position: relative;
    overflow: hidden;
    border-radius: 14px;
}

.profile-main-image {
    width: 100%;
    height: 620px;
    overflow: hidden;
    background: #eee;
}

.profile-main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.profile-prev,
.profile-next {
    width: 44px !important;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .92);
    color: #d81681 !important;
}

.profile-prev::after,
.profile-next::after {
    display: none;
}

.profile-prev i,
.profile-next i {
    font-size: 14px;
}

.profile-prev { left: 18px; }
.profile-next { right: 18px; }

.profile-image-counter {
    position: absolute;
    z-index: 5;
    right: 15px;
    bottom: 15px;
    background: rgba(0, 0, 0, .65);
    color: #fff;
    border-radius: 30px;
    padding: 8px 13px;
    font-size: 12px;
}

.profile-image-counter i {
    margin-right: 5px;
}

.profile-thumb-swiper {
    padding-bottom: 2px;
}

.profile-thumb {
    height: 90px;
    overflow: hidden;
    border-radius: 9px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all .3s ease;
}

.profile-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-thumb-swiper .swiper-slide-thumb-active .profile-thumb {
    border-color: #d81681;
}

/* ---------- Right Profile Card ---------- */
.profile-name-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
}

.profile-name-row h2 {
    font-size: 27px;
    font-weight: 700;
    margin: 8px 0 5px;
}

.profile-name-row p {
    color: #777;
    margin: 0;
    font-size: 14px;
}

.profile-name-row p i {
    color: #d81681;
}

.online-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #2e9d60;
    font-size: 12px;
    font-weight: 600;
}

.online-status span {
    width: 8px;
    height: 8px;
    background: #2e9d60;
    border-radius: 50%;
}

.verified-badge {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #d81681;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ---------- Profile Stats ---------- */
.profile-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin: 28px 0;
    background: #faf5f8;
    border-radius: 12px;
    overflow: hidden;
}

.profile-stat {
    padding: 18px 8px;
    text-align: center;
    border-right: 1px solid #eadde4;
}

.profile-stat:last-child {
    border-right: 0;
}

.profile-stat span,
.profile-stat small {
    display: block;
    color: #777;
    font-size: 16px;
}

.profile-stat strong {
    display: block;
    color: #171717;
    font-size: 24px;
    line-height: 1.2;
    margin: 4px 0;
}

/* ---------- Contact Buttons ---------- */
.contact-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.contact-btn {
    min-height: 70px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    border-radius: 10px;
    background: #f7f7f7;
    text-decoration: none;
    color: #222;
    transition: all .3s ease;
}

.contact-btn:first-child {
    grid-column: span 2;
}

.contact-btn:hover {
    background: #d81681;
    color: #fff;
    transform: translateY(-2px);
}

.contact-btn-icon {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    border-radius: 8px;
    background: rgba(216, 22, 129, .1);
    color: #d81681;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-btn:hover .contact-btn-icon {
    background: rgba(255, 255, 255, .2);
    color: #fff;
}

.contact-btn small,
.contact-btn strong {
    display: block;
}

.contact-btn small {
    font-size: 16px;
    color: #888;
    margin-bottom: 2px;
}

.contact-btn:hover small {
    color: rgba(255, 255, 255, .75);
}

.contact-btn strong {
    font-size: 16px;
}

.contact-btn-primary {
    background: #d81681;
    color: #fff;
}

.contact-btn-primary .contact-btn-icon {
    background: rgba(255, 255, 255, .18);
    color: #fff;
}

.contact-btn-primary small {
    color: rgba(255, 255, 255, .75);
}

/* ---------- About ---------- */
.profile-description {
    color: #666;
    font-size: 15px;
    line-height: 1.8;
}

.profile-description p:last-child {
    margin-bottom: 0;
}

/* ---------- Personal Details ---------- */
.details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
}

.detail-item {
    padding: 16px 10px;
    border-bottom: 1px solid #eee;
}

.detail-item:nth-child(odd) {
    padding-left: 0;
    padding-right: 25px;
    border-right: 1px solid #eee;
}

.detail-item:nth-child(even) {
    padding-left: 25px;
}

.detail-item:nth-last-child(-n + 2) {
    border-bottom: 0;
}

.detail-label {
    display: block;
    color: #999;
    font-size: 16px;
    margin-bottom: 5px;
}

.detail-item strong {
    color: #222;
    font-size: 16px;
}

/* ---------- Preferences / Tags ---------- */
.preference-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.preference-tag {
    padding: 9px 14px;
    background: #faf5f8;
    color: #555;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid #f0e0e9;
    transition: all .3s ease;
}

.preference-tag:hover {
    background: #d81681;
    color: #fff;
    border-color: #d81681;
}

/* ---------- Note ---------- */
.profile-note {
    border-left: 4px solid #d81681;
}

.profile-note p {
    color: #666;
    font-size: 14px;
    line-height: 1.7;
}

/* ---------- Working Hours ---------- */
.working-hours {
    border-top: 1px solid #eee;
}

.hours-row {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    font-size: 16px;
}

.hours-row span {
    color: #777;
}

.hours-row strong {
    color: #333;
    font-weight: 600;
}

.hours-row.active strong,
.hours-row.active span {
    color: #d81681;
}

/* ---------- Location ---------- */
.location-box {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 17px;
    border-radius: 12px;
    background: #faf5f8;
    margin-bottom: 15px;
}

.location-icon {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    border-radius: 50%;
    background: #d81681;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.location-box strong {
    font-size: 14px;
}

.location-box p {
    color: #888;
    font-size: 16px;
    margin: 4px 0 0;
}

.map-btn {
    height: 45px;
    width: 100%;
    border-radius: 8px;
    border: 1px solid #d81681;
    color: #d81681;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 600;
    transition: all .3s ease;
}

.map-btn:hover {
    background: #d81681;
    color: #fff;
}

/* ---------- Quick Details ---------- */
.quick-details > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 13px 0;
    border-bottom: 1px solid #eee;
}

.quick-details > div:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.quick-details span {
    color: #888;
    font-size: 16px;
}

.quick-details strong {
    color: #222;
    font-size: 16px;
}

/* ---------- Sticky Right Column ---------- */
.profile-sticky {
    position: sticky;
    top: 30px;
}

/* ---------- Legal ---------- */
.profile-legal {
    margin: 50px 0 30px;
    padding-top: 25px;
    border-top: 1px solid #ddd;
}

.profile-legal > span {
    display: block;
    font-size: 20px;
    font-weight: 700;
    color: #999;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.profile-legal p {
    margin: 0;
    color: #999;
    font-size: 16px;
    line-height: 1.7;
}

/* ---------- Comment Form ---------- */
.profile-comment-card {
    background: #fff;
}

.form-group label {
    display: block;
    color: #444;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 7px;
}

.profile-comment-card .form-control {
    border: 1px solid #e4e4e4;
    border-radius: 8px;
    min-height: 46px;
    font-size: 16px;
    padding: 11px 13px;
    box-shadow: none;
}

.profile-comment-card textarea.form-control {
    height: 115px;
    resize: none;
}

.profile-comment-card .form-control:focus {
    border-color: #d81681;
    box-shadow: 0 0 0 3px rgba(216, 22, 129, .08);
}

.comment-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 25px;
}

.rating-box > span {
    display: block;
    font-size: 16px;
    color: #888;
    margin-bottom: 7px;
}

.rating-stars {
    display: flex;
    gap: 5px;
}

.rating-stars i {
    color: #d81681;
    font-size: 22px;
    cursor: pointer;
}

.submit-comment-btn {
    border: 0;
    border-radius: 8px;
    background: #d81681;
    color: #fff;
    padding: 13px 22px;
    font-size: 16px;
    font-weight: 600;
    transition: all .3s ease;
}

.submit-comment-btn:hover {
    background: #b90f6c;
    transform: translateY(-2px);
}

.submit-comment-btn i {
    margin-left: 8px;
}

/* ---------- Responsive ---------- */
@media (max-width: 1199px) {
    .profile-main-image { height: 560px; }
    .profile-title { font-size: 36px; }
}

@media (max-width: 991px) {
    .user-detail-page { padding: 45px 0 70px; }

    .user-profile-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .profile-head-actions { width: 100%; }
    .profile-share-btn { flex: 1; }
    .profile-main-image { height: 600px; }
    .profile-sticky { position: static; }
}

@media (max-width: 767px) {
    .user-detail-page { padding: 30px 0 50px; }
    .user-profile-head { margin-bottom: 25px; }
    .profile-title { font-size: 30px; }

    .info-card {
        padding: 20px;
        border-radius: 14px;
    }

    .profile-gallery { padding: 10px; }
    .profile-main-image { height: 500px; }
    .profile-thumb { height: 70px; }

    .profile-stats { grid-template-columns: repeat(2, 1fr); }
    .profile-stat:nth-child(2) { border-right: 0; }
    .profile-stat:nth-child(-n + 2) { border-bottom: 1px solid #eadde4; }

    .contact-actions { grid-template-columns: 1fr; }
    .contact-btn:first-child { grid-column: auto; }

    .details-grid { grid-template-columns: 1fr; }

    .detail-item,
    .detail-item:nth-child(odd),
    .detail-item:nth-child(even) {
        padding: 13px 0;
        border-right: 0;
    }

    .detail-item:last-child { border-bottom: 0; }
    .section-card-head h2 { font-size: 19px; }

    .comment-bottom {
        align-items: flex-start;
        flex-direction: column;
    }

    .submit-comment-btn { width: 100%; }
}

@media (max-width: 480px) {
    .profile-main-image { height: 430px; }

    .profile-prev,
    .profile-next {
        width: 36px;
        height: 36px;
    }

    .profile-name-row h2 { font-size: 22px; }
    .profile-stats { margin: 20px 0; }
    .profile-stat strong { font-size: 21px; }
    .profile-title { font-size: 27px; }
}
