/* Shared styling for the remaining Photographically pages */

.page-wrap {
    max-width: 1180px;
    margin: 0 auto;
    padding: 34px clamp(18px, 4vw, 48px) 60px;
}

.page-intro {
    margin-bottom: 26px;
}

.page-intro h2,
.section-title h2 {
    font: normal 30px Georgia, serif;
    margin: 7px 0;
}

.page-intro > p:last-child,
.muted-text {
    color: var(--grey);
    font-size: 13px;
    line-height: 1.6;
}

.small-action,
.primary-button,
.outline-button,
.filter-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 9px;
    padding: 11px 16px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.small-action,
.primary-button {
    background: var(--black);
    color: #fff;
}

.small-action {
    margin-left: auto;
}

.outline-button {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--black);
}

.button-link {
    text-decoration: none;
}

.text-link {
    font-size: 12px;
    color: #3b83a0;
    font-weight: 700;
}

.field-label {
    display: block;
    margin: 15px 0 7px;
    font-size: 11px;
    font-weight: 700;
    color: #625f5d;
}

.text-field {
    width: 100%;
    padding: 12px 13px;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: #fff;
    color: var(--black);
    font: 13px Arial;
    outline: none;
}

.text-field:focus,
.message-composer textarea:focus {
    border-color: #7dbbd0;
    box-shadow: 0 0 0 3px #33ddff22;
}

.primary-button:hover,
.small-action:hover {
    opacity: .86;
}

.full-button {
    width: 100%;
    margin-top: 18px;
}

.form-feedback {
    font-size: 12px;
    color: #347b5c;
    margin-top: 10px;
    min-height: 16px;
}

.content-card,
.booking-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 15px;
    padding: 24px;
}

.section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 17px;
}

.section-title h2 {
    font-size: 23px;
}

.empty-state {
    text-align: center;
    padding: 58px 20px;
    background: #fff;
    border: 1px dashed #dcd8d3;
    border-radius: 14px;
}

.empty-icon {
    font-size: 32px;
    color: #9d9994;
}

.empty-state h3 {
    font: normal 22px Georgia, serif;
    margin: 12px 0 7px;
}

.empty-state p {
    font-size: 13px;
    color: var(--grey);
    margin-bottom: 18px;
}

.count-pill {
    background: #e6faff;
    border-radius: 20px;
    padding: 5px 9px;
    font-size: 11px;
    font-weight: bold;
}

/* MESSAGES */

.messages-layout {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 20px;
    height: calc(100vh - 120px);
    min-height: 550px;
}

.conversation-panel,
.chat-panel {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    min-width: 0;
}

.conversation-panel {
    padding: 20px;
}

.panel-heading,
.chat-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.panel-heading {
    justify-content: space-between;
    margin-bottom: 14px;
}

.panel-heading h2,
.chat-header h2 {
    font: normal 21px Georgia, serif;
}

.conversation-list {
    margin-top: 14px;
}

.conversation-item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 13px 5px;
    text-align: left;
    background: none;
    border: 0;
    border-bottom: 1px solid #f0eeeb;
    cursor: pointer;
}

.conversation-item.active {
    background: #f4fbfd;
    border-radius: 9px;
}

.conversation-copy {
    min-width: 0;
    flex: 1;
}

.conversation-copy strong,
.conversation-copy span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.conversation-copy strong {
    font-size: 12px;
    margin-bottom: 5px;
}

.conversation-copy span {
    font-size: 11px;
    color: var(--grey);
}

.conversation-time {
    font-size: 10px;
    color: var(--grey);
}

.avatar {
    width: 40px;
    height: 40px;
    flex: none;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #dceef1;
    color: #31596a;
    font-size: 12px;
    font-weight: bold;
}

.avatar-b {
    background: #f1e4d8;
    color: #805b3e;
}

.avatar-c {
    background: #e5e3f2;
    color: #555078;
}

.chat-panel {
    display: flex;
    flex-direction: column;
}

.chat-header {
    padding: 17px 20px;
    border-bottom: 1px solid var(--border);
}

.chat-header > div:nth-child(2) {
    flex: 1;
}

.chat-header p {
    font-size: 11px;
    color: var(--grey);
    margin-top: 4px;
}

.chat-messages {
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 13px;
    overflow: auto;
    flex: 1;
    background: #fdfcfb;
}

.message-bubble {
    max-width: 76%;
    padding: 11px 14px;
    border-radius: 13px;
    background: #f0eeeb;
    font-size: 12px;
    line-height: 1.5;
    align-self: flex-start;
    overflow-wrap: anywhere;
}

.message-bubble.mine {
    align-self: flex-end;
    background: #e4f8fc;
}

.message-bubble time {
    display: block;
    margin-top: 5px;
    font-size: 9px;
    color: #8b8884;
}

.message-composer {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    padding: 14px;
    border-top: 1px solid var(--border);
}

.message-composer textarea {
    flex: 1;
    resize: vertical;
    min-height: 42px;
    max-height: 110px;
    border: 1px solid var(--border);
    border-radius: 9px;
    padding: 12px;
    font: 12px Arial;
}

/* PROFILE */

.profile-hero,
.creator-hero {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 28px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 15px;
}

.profile-avatar,
.creator-avatar {
    width: 104px;
    height: 104px;
    flex: none;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: linear-gradient(145deg, #c8eaf0, #e8ddd0);
    color: #294f5c;
    font: normal 28px Georgia, serif;
}

.profile-identity,
.creator-info {
    flex: 1;
}

.profile-identity h2,
.creator-info h2 {
    font: normal 30px Georgia, serif;
    margin: 5px 0;
}

.profile-identity > p,
.creator-info > p {
    font-size: 12px;
    color: var(--grey);
    line-height: 1.6;
    margin: 5px 0;
}

.profile-identity #profileBio {
    max-width: 620px;
    color: #514d49;
}

.profile-stats {
    display: flex;
    gap: 24px;
    margin-top: 17px;
    font-size: 11px;
    color: var(--grey);
}

.profile-stats strong {
    color: var(--black);
    font-size: 14px;
}

.profile-tabs {
    display: flex;
    gap: 22px;
    border-bottom: 1px solid var(--border);
    margin: 28px 0 22px;
}

.tab-button {
    padding: 12px 4px;
    background: none;
    border: 0;
    border-bottom: 2px solid transparent;
    color: var(--grey);
    font-size: 12px;
    cursor: pointer;
}

.tab-button.active {
    border-color: var(--black);
    color: var(--black);
    font-weight: bold;
}

.profile-section[hidden] {
    display: none;
}

.app-dialog {
    width: min(480px, calc(100% - 28px));
    margin: auto;
    border: 0;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 20px 80px #0003;
}

.app-dialog::backdrop {
    background: #11152b77;
}

.dialog-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dialog-heading h2 {
    font: normal 25px Georgia, serif;
}

.icon-button {
    border: 0;
    background: none;
    font-size: 25px;
    cursor: pointer;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

.profile-post-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.profile-post-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
}

.profile-post-art {
    aspect-ratio: 1 / 1;
    background: linear-gradient(145deg, #d5e3e2, #9bada7 55%, #536d70);
}

.profile-post-card:nth-child(3n+2) .profile-post-art {
    background: linear-gradient(145deg, #d8c9b7, #9b8e82 55%, #5d6566);
}

.profile-post-card:nth-child(3n) .profile-post-art {
    background: linear-gradient(145deg, #c8d9e1, #8e9ea6 55%, #414f5a);
}

.profile-post-card p {
    padding: 12px;
    font-size: 11px;
    line-height: 1.5;
    color: #625f5d;
}

/* BOOKINGS */

.booking-filters {
    display: flex;
    gap: 8px;
    margin: 20px 0;
}

.filter-chip {
    background: #fff;
    border: 1px solid var(--border);
    color: #666;
}

.filter-chip.active {
    background: var(--black);
    color: #fff;
    border-color: var(--black);
}

.booking-list {
    display: grid;
    gap: 12px;
}

.booking-item {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 13px;
    padding: 18px;
}

.booking-date {
    width: 58px;
    min-width: 58px;
    text-align: center;
    padding: 9px 5px;
    border-radius: 9px;
    background: #eaf8fa;
}

.booking-date strong {
    display: block;
    font-size: 20px;
}

.booking-date span {
    font-size: 9px;
    text-transform: uppercase;
    color: #56727a;
}

.booking-details {
    flex: 1;
    min-width: 0;
}

.booking-details h3 {
    font-size: 14px;
    margin-bottom: 5px;
}

.booking-details p {
    font-size: 11px;
    color: var(--grey);
    line-height: 1.5;
}

.status-pill {
    font-size: 10px;
    font-weight: bold;
    padding: 6px 9px;
    border-radius: 20px;
    background: #fff2d8;
    color: #896421;
}

.status-pill.Accepted {
    background: #e2f4e9;
    color: #36744d;
}

.status-pill.Completed {
    background: #eceaf7;
    color: #5c5687;
}

.booking-controls {
    display: flex;
    gap: 6px;
}

.booking-controls button {
    border: 1px solid var(--border);
    background: white;
    border-radius: 7px;
    padding: 7px;
    font-size: 10px;
    cursor: pointer;
}

/* PHOTOGRAPHER PROFILE */

.creator-hero {
    margin-bottom: 25px;
}

.creator-avatar {
    background: linear-gradient(145deg, #e6d7c5, #c4dfe3);
}

.creator-info .creator-actions {
    display: flex;
    gap: 9px;
    margin-top: 15px;
}

.creator-columns {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(280px, .8fr);
    gap: 22px;
    align-items: start;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.portfolio-tile {
    aspect-ratio: 4 / 5;
    border-radius: 12px;
    background-size: cover;
    background-position: center;
}

.portfolio-one {
    background-image: linear-gradient(145deg, #9eb9bb, #e7d8c2 55%, #536b70);
}

.portfolio-two {
    background-image: linear-gradient(145deg, #d2c2ad, #6c7779 52%, #222f39);
}

.portfolio-three {
    background-image: linear-gradient(145deg, #d5dce0, #9a8b7e 55%, #434b53);
}

.booking-card h2 {
    font: normal 24px Georgia, serif;
    margin: 6px 0;
}

.booking-card form {
    margin-top: 12px;
}

/* CONTACT */

.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 480px);
    gap: 50px;
    align-items: start;
}

.contact-layout .page-intro h2 {
    font-size: 38px;
}

.contact-note {
    margin-top: 35px;
    padding: 20px;
    border-left: 3px solid var(--lime);
    background: #fff;
}

.contact-note p {
    font-size: 12px;
    line-height: 1.6;
    color: var(--grey);
    margin-top: 8px;
}

.contact-form {
    padding: 25px;
}

.no-bookings {
    text-align: center;
    padding: 45px 20px;
    background: #fff;
    border: 1px dashed var(--border);
    border-radius: 13px;
    color: var(--grey);
    font-size: 13px;
}

/* RESPONSIVE DESIGN */

@media (max-width: 900px) {

    .messages-layout {
        grid-template-columns: 260px minmax(0, 1fr);
    }

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

    .contact-layout {
        gap: 25px;
    }

    .profile-hero,
    .creator-hero {
        flex-wrap: wrap;
    }

}

@media (max-width: 700px) {

    .page-wrap {
        padding: 22px 15px 35px;
    }

    .messages-layout {
        height: auto;
        min-height: 0;
        grid-template-columns: 1fr;
    }

    .conversation-panel {
        max-height: 310px;
    }

    .chat-panel {
        min-height: 480px;
    }

    .chat-header .text-link {
        display: none;
    }

    .profile-hero,
    .creator-hero {
        padding: 20px;
        gap: 15px;
    }

    .profile-avatar,
    .creator-avatar {
        width: 76px;
        height: 76px;
    }

    .profile-identity h2,
    .creator-info h2 {
        font-size: 24px;
    }

    .profile-hero > .outline-button {
        margin-left: 90px;
    }

    .booking-item {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .booking-controls {
        width: 100%;
        padding-left: 74px;
    }

    .portfolio-grid {
        gap: 7px;
    }

    .contact-layout {
        grid-template-columns: 1fr;
    }

    .contact-layout .page-intro h2 {
        font-size: 31px;
    }

    .topbar .small-action {
        padding: 9px;
        font-size: 10px;
    }

    .profile-post-grid {
        gap: 8px;
    }

}
/* UPLOADED PHOTOGRAPHS */

.profile-gallery-image {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.discover-uploaded-image {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
}

.community-photo-card {
    cursor: default;
}

.community-photo-card:hover {
    transform: translateY(-3px);
    transition: transform 0.2s ease;
}

.profile-post-card {
    min-width: 0;
}

.profile-post-card p {
    overflow-wrap: anywhere;
}