/* ═══════════════════════════════════════════════════════════════════
   public-profile.css  —  Public Profile Page  (pp-)
   Routes: /profile/{id:guid}
   Account types: TourGuide · Business · TravelAgency
   ═══════════════════════════════════════════════════════════════════ */

/* ── Wrapper ─────────────────────────────────────────────────────── */
.pp-wrapper {
    min-height: 100vh;
    background: #F5F5F5;
    padding-bottom: 4rem;
}

/* ── Loading / Not Found ─────────────────────────────────────────── */
.pp-loading,
.pp-not-found {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    gap: 1.2rem;
    color: #9E9E9E;
    text-align: center;
    padding: 2rem;
}

.pp-not-found-icon {
    font-size: 4rem;
    color: #E0E0E0;
}

/* ── Hero banner ─────────────────────────────────────────────────── */
.pp-hero {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.pp-hero__bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.pp-hero__scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.10) 0%,
        rgba(0, 0, 0, 0.60) 100%
    );
}

/* ── Profile card (overlaps hero) ────────────────────────────────── */
.pp-profile-card {
    position: relative;
    max-width: 1100px;
    margin: -90px auto 0;
    background: #fff;
    border-radius: 1.6rem;
    padding: 2rem 2.4rem 2rem;
    box-shadow: 0 4px 32px rgba(0, 0, 0, 0.09);
    display: flex;
    align-items: flex-start;
    gap: 1.8rem;
    z-index: 10;
}

/* ── Avatar ──────────────────────────────────────────────────────── */
.pp-avatar {
    width: 100px;
    height: 100px;
    min-width: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Inter', Arial, sans-serif;
    font-size: 2.2rem;
    font-weight: 800;
    color: #fff;
    border: 4px solid #fff;
    box-shadow: 0 3px 16px rgba(0, 0, 0, 0.18);
    flex-shrink: 0;
    margin-top: -2rem;
    letter-spacing: -0.02em;
}

/* ── Profile header ──────────────────────────────────────────────── */
.pp-header {
    flex: 1;
    min-width: 0;
}

.pp-name-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin-bottom: 0.5rem;
}

.pp-display-name {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.85rem;
    font-weight: 700;
    color: #282828;
    margin: 0;
    line-height: 1.2;
}

.pp-verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: #E0F7FA;
    color: #00796B;
    font-size: 0.73rem;
    font-weight: 700;
    padding: 0.28rem 0.7rem;
    border-radius: 2rem;
    white-space: nowrap;
    letter-spacing: 0.02em;
}

.pp-type-badge {
    display: inline-flex;
    align-items: center;
    background: #EEF6F6;
    color: #078282;
    font-size: 0.73rem;
    font-weight: 700;
    padding: 0.28rem 0.7rem;
    border-radius: 2rem;
    white-space: nowrap;
    letter-spacing: 0.02em;
}

/* ── Rating row ──────────────────────────────────────────────────── */
.pp-rating-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.45rem;
    flex-wrap: wrap;
}

.pp-stars {
    color: #F57F17;
    font-size: 1rem;
    letter-spacing: 0.04em;
}

.pp-rating-num {
    font-size: 0.9rem;
    font-weight: 700;
    color: #282828;
}

.pp-rating-count {
    font-size: 0.83rem;
    color: #9E9E9E;
}

/* ── Location row ────────────────────────────────────────────────── */
.pp-location-row {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: #666;
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.pp-location-row i {
    color: #078282;
    font-size: 0.9rem;
}

/* ── Actions (contact + social) ──────────────────────────────────── */
.pp-actions-row {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.pp-contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: #078282;
    color: #fff !important;
    padding: 0.55rem 1.3rem;
    border-radius: 0.8rem;
    font-weight: 700;
    font-size: 0.88rem;
    text-decoration: none;
    transition: background 0.18s, transform 0.12s;
    border: none;
    cursor: pointer;
}

.pp-contact-btn:hover {
    background: #056b6b;
    transform: translateY(-1px);
}

.pp-social-links {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.pp-social-link {
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 50%;
    border: 1.5px solid #E8E8E8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 0.88rem;
    text-decoration: none;
    transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.pp-social-link:hover {
    border-color: #078282;
    color: #078282;
    background: #EEF6F6;
}

/* ── Content area (two-column grid) ─────────────────────────────── */
.pp-content {
    max-width: 1100px;
    margin: 2rem auto 0;
    padding: 0 1rem;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 1.6rem;
    align-items: start;
}

/* ── Section card ────────────────────────────────────────────────── */
.pp-section {
    background: #fff;
    border-radius: 1.2rem;
    padding: 1.6rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    margin-bottom: 1.4rem;
}

.pp-section:last-child {
    margin-bottom: 0;
}

.pp-section-title {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #282828;
    margin: 0 0 1rem;
    padding-bottom: 0.65rem;
    border-bottom: 2px solid #F5F5F5;
}

/* ── Bio ─────────────────────────────────────────────────────────── */
.pp-bio {
    font-size: 0.94rem;
    line-height: 1.78;
    color: #444;
    margin: 0;
    white-space: pre-line;
}

/* ── Stat grid (sidebar) ─────────────────────────────────────────── */
.pp-stat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.pp-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    padding: 0.9rem 0.5rem;
    background: #F5F5F5;
    border-radius: 0.9rem;
    text-align: center;
}

.pp-stat-value {
    font-family: 'Inter', Arial, sans-serif;
    font-size: 1.45rem;
    font-weight: 800;
    color: #078282;
    line-height: 1;
}

.pp-stat-label {
    font-size: 0.7rem;
    color: #9E9E9E;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1.2;
}

/* ── Chip list ───────────────────────────────────────────────────── */
.pp-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.pp-chip {
    background: #EEF6F6;
    color: #056b6b;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.3rem 0.8rem;
    border-radius: 2rem;
    white-space: nowrap;
}

.pp-chip--gray {
    background: #F0F0F0;
    color: #555;
}

/* ── Info rows (label + value pairs) ─────────────────────────────── */
.pp-info-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0.6rem 0;
    border-bottom: 1px solid #F5F5F5;
    gap: 1rem;
    font-size: 0.88rem;
}

.pp-info-row:last-child {
    border-bottom: none;
}

.pp-info-label {
    color: #9E9E9E;
    font-size: 0.82rem;
    white-space: nowrap;
    flex-shrink: 0;
}

.pp-info-value {
    color: #282828;
    font-weight: 600;
    text-align: right;
    word-break: break-word;
}

/* ── Listings grid ───────────────────────────────────────────────── */
.pp-listings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.1rem;
}

.pp-listing-card {
    background: #fff;
    border-radius: 1.1rem;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.07);
    transition: transform 0.18s, box-shadow 0.18s;
    text-decoration: none;
    color: inherit;
    display: block;
    border: 1px solid #F0F0F0;
}

.pp-listing-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.pp-listing-img {
    width: 100%;
    height: 144px;
    object-fit: cover;
    display: block;
}

.pp-listing-body {
    padding: 1rem;
}

.pp-listing-type-label {
    font-size: 0.69rem;
    font-weight: 700;
    color: #078282;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    margin-bottom: 0.3rem;
}

.pp-listing-name {
    font-size: 0.93rem;
    font-weight: 700;
    color: #282828;
    margin-bottom: 0.3rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pp-listing-desc {
    font-size: 0.79rem;
    color: #666;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 0.7rem;
}

.pp-listing-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.pp-listing-price {
    font-size: 0.92rem;
    font-weight: 700;
    color: #078282;
}

.pp-listing-rating {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.79rem;
    color: #F57F17;
}

.pp-listing-rating-num {
    color: #444;
    font-weight: 600;
}

/* ── Package grid ────────────────────────────────────────────────── */
.pp-packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.1rem;
}

.pp-package-card {
    background: #fff;
    border-radius: 1.1rem;
    border-left: 4px solid #078282;
    padding: 1.3rem 1.4rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    transition: transform 0.18s, box-shadow 0.18s;
}

.pp-package-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.11);
}

.pp-package-duration {
    font-size: 0.72rem;
    font-weight: 700;
    color: #078282;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.4rem;
}

.pp-package-name {
    font-size: 0.98rem;
    font-weight: 700;
    color: #282828;
    margin-bottom: 0.45rem;
    line-height: 1.3;
}

.pp-package-desc {
    font-size: 0.8rem;
    color: #666;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 0.85rem;
}

.pp-package-price {
    font-size: 0.95rem;
    font-weight: 800;
    color: #078282;
}

.pp-package-price-label {
    font-size: 0.74rem;
    color: #9E9E9E;
    font-weight: 400;
}

/* ── Empty state ─────────────────────────────────────────────────── */
.pp-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2.5rem 1rem;
    color: #BDBDBD;
    gap: 0.6rem;
    text-align: center;
    font-size: 0.88rem;
}

/* ── Business hours block ────────────────────────────────────────── */
.pp-hours {
    font-size: 0.85rem;
    color: #444;
    line-height: 1.7;
    white-space: pre-line;
}

/* ── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 920px) {
    .pp-hero {
        height: 240px;
    }

    .pp-profile-card {
        margin: -70px 1rem 0;
        padding: 1.6rem;
    }

    .pp-content {
        grid-template-columns: 1fr;
    }

    .pp-sidebar {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }

    .pp-sidebar .pp-section {
        margin-bottom: 0;
    }
}

@media (max-width: 620px) {
    .pp-hero {
        height: 190px;
    }

    .pp-profile-card {
        flex-direction: column;
        align-items: flex-start;
        margin: -50px 0.75rem 0;
        padding: 1.2rem 1.3rem;
        gap: 1rem;
    }

    .pp-avatar {
        width: 80px;
        height: 80px;
        min-width: 80px;
        font-size: 1.7rem;
        margin-top: -1rem;
    }

    .pp-display-name {
        font-size: 1.4rem;
    }

    .pp-stat-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .pp-listings-grid {
        grid-template-columns: 1fr 1fr;
    }

    .pp-packages-grid {
        grid-template-columns: 1fr;
    }

    .pp-sidebar {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 400px) {
    .pp-listings-grid {
        grid-template-columns: 1fr;
    }

    .pp-stat-grid {
        grid-template-columns: 1fr 1fr;
    }
}
