/* =========================================================
   Holyday Professional Profile Editor
   Modern / Professional UI
   ========================================================= */

.holyday-profile-editor {
    --holyday-primary: #b08a57;
    --holyday-primary-dark: #8f6d43;
    --holyday-option-bg: #749383;
    --holyday-option-hover: #5f7b6e;
    --holyday-text: #252525;
    --holyday-muted: #777;
    --holyday-border: #e8e4df;
    --holyday-bg: #f7f6f4;
    --holyday-card: #ffffff;
    --holyday-radius: 14px;

    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    color: var(--holyday-text);
    font-size: 15px;
    line-height: 1.55;
}


/* =========================================================
   FORM
   ========================================================= */

.holyday-profile-editor-form {
    width: 100%;
}


/* =========================================================
   MESSAGES
   ========================================================= */

.holyday-profile-editor-message {
    margin-bottom: 24px;
    padding: 16px 20px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid transparent;
}

.holyday-profile-editor-message.is-success {
    background: #f1f8f3;
    border-color: #d5eadb;
    color: #285c38;
}

.holyday-profile-editor-message.is-error {
    background: #fff4f3;
    border-color: #f0d3d0;
    color: #8a3028;
}

.holyday-profile-editor-category-pending {
    margin-bottom: 24px;
    padding: 18px 20px;
    border-radius: 12px;
    background: #fff9ed;
    border: 1px solid #ead9b6;
    color: #765b28;
}

.holyday-profile-editor-category-pending strong {
    display: block;
    margin-bottom: 5px;
    font-size: 15px;
}

.holyday-profile-editor-category-pending p {
    margin: 0;
    font-size: 14px;
}


/* =========================================================
   SECTIONS / CARDS
   ========================================================= */

.holyday-profile-editor-section {
    background: var(--holyday-card);
    border: 1px solid var(--holyday-border);
    border-radius: var(--holyday-radius);
    padding: 30px;
    margin-bottom: 24px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.035);
}

.holyday-profile-editor-section > h2 {
    margin: 0 0 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--holyday-border);
    font-size: 21px;
    line-height: 1.3;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--holyday-text);
}


/* =========================================================
   BASIC INFORMATION
   ========================================================= */

.holyday-profile-editor-basic {
    position: relative;
}


/*
 * Desktop two-column layout.
 * The description and categories remain full width.
 */

@media (min-width: 900px) {

    .holyday-profile-editor-basic {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        column-gap: 28px;
    }

    .holyday-profile-editor-basic > h2 {
        grid-column: 1 / -1;
    }

    .holyday-profile-editor-name-field,
    .holyday-profile-editor-central-photo-field,
    .holyday-profile-editor-category-field,
    .holyday-profile-editor-description-field {
        grid-column: 1 / -1;
    }

    .holyday-profile-editor-phone-group {
        grid-column: 1;
    }

    .holyday-profile-editor-email-field,
    .holyday-profile-editor-member-since-field {
        grid-column: 2;
    }
}


/* =========================================================
   FIELDS
   ========================================================= */

.holyday-profile-editor-field {
    margin-bottom: 21px;
}

.holyday-profile-editor-field:last-child {
    margin-bottom: 0;
}

.holyday-profile-editor-field > label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    line-height: 1.4;
    font-weight: 600;
    color: #444;
}

.holyday-profile-editor-field input[type="text"],
.holyday-profile-editor-field input[type="url"],
.holyday-profile-editor-field input[type="email"],
.holyday-profile-editor-field input[type="tel"],
.holyday-profile-editor-field input[type="number"],
.holyday-profile-editor-field textarea,
.holyday-profile-editor-field select {
    width: 100%;
    min-height: 48px;
    padding: 11px 14px;
    border: 1px solid #ddd8d2;
    border-radius: 9px;
    background: #fff;
    color: var(--holyday-text);
    font-family: inherit;
    font-size: 14px;
    line-height: 1.5;
    box-sizing: border-box;
    transition:
        border-color 0.18s ease,
        box-shadow 0.18s ease,
        background-color 0.18s ease;
}

.holyday-profile-editor-field textarea {
    min-height: 135px;
    resize: vertical;
}

.holyday-profile-editor-field input:hover,
.holyday-profile-editor-field textarea:hover,
.holyday-profile-editor-field select:hover {
    border-color: #c8c0b8;
}

.holyday-profile-editor-field input:focus,
.holyday-profile-editor-field textarea:focus,
.holyday-profile-editor-field select:focus {
    outline: none;
    border-color: var(--holyday-primary);
    box-shadow: 0 0 0 3px rgba(176, 138, 87, 0.12);
    background: #fff;
}

.holyday-profile-editor-field input::placeholder,
.holyday-profile-editor-field textarea::placeholder {
    color: #aaa;
}


/* =========================================================
   FILE INPUTS
   ========================================================= */

.holyday-profile-editor-field input[type="file"] {
    width: 100%;
    box-sizing: border-box;
    padding: 10px;
    border: 1px dashed #d6d0c9;
    border-radius: 9px;
    background: #faf9f7;
    font-family: inherit;
    font-size: 13px;
}

.holyday-profile-editor-field input[type="file"]:hover {
    border-color: var(--holyday-primary);
}


/* =========================================================
   HELP TEXT
   ========================================================= */

.holyday-profile-editor small {
    display: block;
    margin-top: 8px;
    color: var(--holyday-muted);
    font-size: 12px;
    line-height: 1.5;
}


/* =========================================================
   READONLY INFORMATION
   ========================================================= */

.holyday-profile-editor-readonly {
    min-height: 48px;
    display: flex;
    align-items: center;
    box-sizing: border-box;
    padding: 11px 14px;
    border: 1px solid #e5e1dc;
    border-radius: 9px;
    background: #f8f7f5;
    color: #666;
    font-size: 14px;
}


/* =========================================================
   CATEGORY OPTIONS
   ========================================================= */

.holyday-profile-editor-categories {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.holyday-profile-editor-category-option {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 46px;
    padding: 10px 13px;
    border: 1px solid var(--holyday-border);
    border-radius: 9px;
    background: #faf9f7;
    cursor: pointer;
    box-sizing: border-box;
    transition:
        border-color 0.18s ease,
        background-color 0.18s ease,
        color 0.18s ease,
        transform 0.18s ease;
}

.holyday-profile-editor-category-option:hover {
    border-color: var(--holyday-option-bg);
    background: var(--holyday-option-hover);
    color: #fff;
}

.holyday-profile-editor-category-option input {
    margin: 0 9px 0 0;
    accent-color: var(--holyday-option-bg);
}

.holyday-profile-editor-category-option span {
    font-size: 13px;
    line-height: 1.4;
}


/* Selected category */
.holyday-profile-editor-category-option:has(input:checked) {
    border-color: var(--holyday-option-bg);
    background: var(--holyday-option-bg);
    color: #fff;
}

.holyday-profile-editor-category-option:has(input:checked) input {
    accent-color: #fff;
}


/* =========================================================
   DESCRIPTION COUNTER
   ========================================================= */

.holyday-profile-editor-description-counter {
    margin-top: 7px;
    text-align: right;
    color: #999;
    font-size: 12px;
}


/* =========================================================
   CURRENT CENTRAL PHOTO
   ========================================================= */

.holyday-profile-editor-current-photo {
    width: 100%;
    max-width: 340px;
    margin-bottom: 14px;
    overflow: hidden;
    border-radius: 12px;
    background: #f4f2ef;
}

.holyday-profile-editor-current-photo img {
    display: block;
    width: 100%;
    max-width: none !important;
    height: auto;
    object-fit: cover;
}


/* =========================================================
   TAXONOMIES
   ========================================================= */

.holyday-profile-editor-taxonomies {
    display: block;
}

.holyday-profile-editor-taxonomy {
    margin-bottom: 28px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--holyday-border);
}

.holyday-profile-editor-taxonomy:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: 0;
}

.holyday-profile-editor-taxonomy h3 {
    margin: 0 0 14px;
    font-size: 15px;
    line-height: 1.4;
    font-weight: 600;
    color: #444;
}

.holyday-profile-editor-taxonomy-options {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px;
}

.holyday-profile-editor-taxonomy-option {
    display: flex;
    align-items: center;
    min-height: 42px;
    padding: 8px 11px;
    border: 1px solid var(--holyday-border);
    border-radius: 8px;
    background: #faf9f7;
    cursor: pointer;
    box-sizing: border-box;
    transition:
        border-color 0.18s ease,
        background-color 0.18s ease,
        color 0.18s ease;
}

.holyday-profile-editor-taxonomy-option:hover {
    border-color: var(--holyday-option-bg);
    background: var(--holyday-option-hover);
    color: #fff;
}

.holyday-profile-editor-taxonomy-option input {
    flex: 0 0 auto;
    margin: 0 8px 0 0;
    accent-color: var(--holyday-option-bg);
}

.holyday-profile-editor-taxonomy-option span {
    font-size: 13px;
    line-height: 1.35;
}


/* Selected taxonomy */
.holyday-profile-editor-taxonomy-option:has(input:checked) {
    border-color: var(--holyday-option-bg);
    background: var(--holyday-option-bg);
    color: #fff;
}

.holyday-profile-editor-taxonomy-option:has(input:checked) input {
    accent-color: #fff;
}


/* =========================================================
   SERVICE AREAS
   ========================================================= */

.holyday-profile-editor-service-areas {
    position: relative;
}

.holyday-profile-editor-area-tree {
    width: 100%;
    padding: 4px;
    border: 1px solid var(--holyday-border);
    border-radius: 10px;
    background: #fbfaf8;
    box-sizing: border-box;
}

.holyday-profile-editor-area-node {
    margin: 0;
    padding: 0;
    border: 0;
}

.holyday-profile-editor-area-summary {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 6px 9px;
    list-style: none;
    border-radius: 7px;
    cursor: pointer;
    box-sizing: border-box;
    transition:
        background-color 0.15s ease,
        color 0.15s ease;
}

.holyday-profile-editor-area-summary:hover {
    background: var(--holyday-option-hover);
    color: #fff;
}

.holyday-profile-editor-area-summary::-webkit-details-marker {
    display: none;
}

.holyday-profile-editor-area-summary::marker {
    display: none;
}

.holyday-profile-editor-area-toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
}

.holyday-profile-editor-area-toggle::before {
    content: '';
    display: block;
    width: 6px;
    height: 6px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(-45deg);
    transition: transform 0.15s ease;
}

.holyday-profile-editor-area-node[open]
> .holyday-profile-editor-area-summary
.holyday-profile-editor-area-toggle::before {
    transform: rotate(45deg);
}

.holyday-profile-editor-area-option {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    cursor: pointer;
}

.holyday-profile-editor-area-option input {
    margin: 0;
    accent-color: var(--holyday-option-bg);
}

.holyday-profile-editor-area-option span {
    font-size: 13px;
}

.holyday-profile-editor-area-children {
    margin-left: 25px;
    padding: 3px 0 7px 13px;
    border-left: 1px solid #ddd8d2;
}

.holyday-profile-editor-area-children
.holyday-profile-editor-area-summary {
    min-height: 36px;
    padding-top: 4px;
    padding-bottom: 4px;
}

.holyday-profile-editor-area-leaf {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 36px;
    margin: 0;
    padding: 4px 9px;
    border-radius: 7px;
    cursor: pointer;
    box-sizing: border-box;
    transition:
        background-color 0.15s ease,
        color 0.15s ease;
}

.holyday-profile-editor-area-leaf:hover {
    background: var(--holyday-option-hover);
    color: #fff;
}

.holyday-profile-editor-area-leaf input {
    margin: 0;
    accent-color: var(--holyday-option-bg);
}

.holyday-profile-editor-area-tree
> .holyday-profile-editor-area-node {
    margin-bottom: 2px;
}

.holyday-profile-editor-area-tree
> .holyday-profile-editor-area-node
> .holyday-profile-editor-area-summary {
    min-height: 44px;
}

.holyday-profile-editor-area-tree
> .holyday-profile-editor-area-node.is-greece
> .holyday-profile-editor-area-summary {
    font-weight: 600;
}


/* Selected service area leaf */
.holyday-profile-editor-area-leaf:has(input:checked) {
    background: var(--holyday-option-bg);
    color: #fff;
}


/* Selected service area option */
.holyday-profile-editor-area-option:has(input:checked) {
    color: var(--holyday-option-bg);
    font-weight: 600;
}


/* =========================================================
   ONLINE PRESENCE
   ========================================================= */

.holyday-profile-editor-online-presence {
    display: block;
}

@media (min-width: 900px) {

    .holyday-profile-editor-online-presence {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 28px;
    }

    .holyday-profile-editor-online-presence > h2 {
        grid-column: 1 / -1;
    }

    .holyday-profile-editor-online-presence > small {
        grid-column: 1 / -1;
    }
}

.holyday-profile-editor-online-presence
.holyday-profile-editor-field {
    margin-bottom: 18px;
}

.holyday-profile-editor-online-presence
.holyday-profile-editor-field:last-of-type {
    margin-bottom: 0;
}


/* =========================================================
   LOCATIONS
   ========================================================= */

.holyday-profile-editor-locations {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.holyday-profile-editor-locations > h2 {
    grid-column: 1 / -1;
}

.holyday-profile-editor-locations
.holyday-profile-editor-location {
    margin: 0;
    padding: 22px;
    border: 1px solid var(--holyday-border);
    border-radius: 12px;
    background: #faf9f7;
    box-sizing: border-box;
}

.holyday-profile-editor-locations
.holyday-profile-editor-location h3 {
    margin: 0 0 19px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--holyday-border);
    font-size: 15px;
    font-weight: 600;
}

.holyday-profile-editor-locations
.holyday-profile-editor-field {
    margin-bottom: 15px;
}

.holyday-profile-editor-locations
.holyday-profile-editor-field:last-child {
    margin-bottom: 0;
}

.holyday-profile-editor-locations small {
    grid-column: 1 / -1;
    margin-top: 0;
}


/* =========================================================
   DYNAMIC ADDITIONAL LOCATIONS
   ========================================================= */

.holyday-profile-editor-location.is-hidden {
    display: none !important;
}

.holyday-profile-editor-add-location.is-hidden {
    display: none !important;
}


/* =========================================================
   GALLERY
   ========================================================= */

.holyday-profile-editor-gallery {
    display: block;
}

.holyday-profile-editor-gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 26px;
}

.holyday-profile-editor-gallery-item {
    min-width: 0;
}

.holyday-profile-editor-gallery-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 10px;
    background: #f3f1ee;
    border: 1px solid var(--holyday-border);
}

.holyday-profile-editor-gallery-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.25s ease;
}

.holyday-profile-editor-gallery-item:hover
.holyday-profile-editor-gallery-image img {
    transform: scale(1.025);
}

.holyday-profile-editor-gallery-delete {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 8px;
    color: #777;
    font-size: 12px;
    cursor: pointer;
}

.holyday-profile-editor-gallery-delete input {
    margin: 0;
    accent-color: #a34c45;
}

.holyday-profile-editor-gallery-empty {
    margin: 0 0 20px;
    padding: 25px;
    border: 1px dashed #d8d2ca;
    border-radius: 10px;
    background: #faf9f7;
    text-align: center;
    color: #888;
}

.holyday-profile-editor-gallery-upload {
    margin-top: 10px;
}

.holyday-profile-editor-gallery-upload input[type="file"] {
    width: 100%;
    max-width: 100%;
}


/* =========================================================
   SAVE BUTTON
   ========================================================= */

.holyday-profile-editor-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    margin-top: 4px;
    padding: 13px 30px;
    border: 0;
    border-radius: 10px;
    background: var(--holyday-primary);
    color: #fff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 5px 14px rgba(176, 138, 87, 0.20);
    transition:
        background-color 0.18s ease,
        transform 0.18s ease,
        box-shadow 0.18s ease;
}

.holyday-profile-editor-submit:hover {
    background: var(--holyday-primary-dark);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 7px 18px rgba(176, 138, 87, 0.25);
}

.holyday-profile-editor-submit:active {
    transform: translateY(0);
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1099px) {

    .holyday-profile-editor-section {
        padding: 25px;
    }

    .holyday-profile-editor-taxonomy-options {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .holyday-profile-editor-locations {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .holyday-profile-editor-locations > h2,
    .holyday-profile-editor-locations > small {
        grid-column: 1 / -1;
    }

    .holyday-profile-editor-gallery-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}


@media (max-width: 899px) {

    .holyday-profile-editor-section {
        padding: 22px;
    }

    .holyday-profile-editor-basic {
        display: block;
    }

    .holyday-profile-editor-online-presence {
        display: block;
    }

    .holyday-profile-editor-locations {
        grid-template-columns: 1fr;
    }

    .holyday-profile-editor-locations > h2,
    .holyday-profile-editor-locations > small {
        grid-column: auto;
    }
}


@media (max-width: 767px) {

    .holyday-profile-editor {
        font-size: 14px;
    }

    .holyday-profile-editor-section {
        padding: 18px;
        margin-bottom: 18px;
        border-radius: 12px;
    }

    .holyday-profile-editor-section > h2 {
        margin-bottom: 20px;
        padding-bottom: 13px;
        font-size: 18px;
    }

    .holyday-profile-editor-categories {
        grid-template-columns: 1fr;
    }

    .holyday-profile-editor-taxonomy-options {
        grid-template-columns: 1fr;
    }

    .holyday-profile-editor-gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 11px;
    }

    .holyday-profile-editor-locations
    .holyday-profile-editor-location {
        padding: 17px;
    }

    .holyday-profile-editor-submit {
        width: 100%;
        min-height: 50px;
    }
}


@media (max-width: 480px) {

    .holyday-profile-editor-section {
        padding: 15px;
    }

    .holyday-profile-editor-gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .holyday-profile-editor-gallery-delete {
        font-size: 11px;
    }
}


/* =========================================================
   TYPOGRAPHY OVERRIDES
   ========================================================= */

.holyday-profile-editor {
    font-size: 16px;
}

.holyday-profile-editor-section > h2 {
    font-size: 22px;
}

.holyday-profile-editor-phone-group h3 {
    font-size: 18px;
}

.holyday-profile-editor-field > label {
    font-size: 14px;
}

.holyday-profile-editor-field input[type="text"],
.holyday-profile-editor-field input[type="url"],
.holyday-profile-editor-field input[type="email"],
.holyday-profile-editor-field input[type="tel"],
.holyday-profile-editor-field input[type="number"],
.holyday-profile-editor-field textarea,
.holyday-profile-editor-field select {
    font-size: 15px;
}

.holyday-profile-editor-field input[type="file"] {
    font-size: 14px;
}

.holyday-profile-editor-field small,
.holyday-profile-editor-section > small {
    font-size: 13px;
}

.holyday-profile-editor-category-option span,
.holyday-profile-editor-taxonomy-option span,
.holyday-profile-editor-area-option span {
    font-size: 14px;
}

.holyday-profile-editor-taxonomy-group h3 {
    font-size: 16px;
}

.holyday-profile-editor-readonly {
    font-size: 15px;
}

.holyday-profile-editor-submit {
    font-size: 15px;
}

.holyday-profile-editor-message {
    font-size: 15px;
}

.holyday-profile-editor-gallery-delete {
    font-size: 13px;
}


@media (max-width: 767px) {

    .holyday-profile-editor {
        font-size: 15px;
    }

    .holyday-profile-editor-section > h2 {
        font-size: 19px;
    }
}


@media (max-width: 480px) {

    .holyday-profile-editor-gallery-delete {
        font-size: 13px;
    }
}



/* Larger labels for main profile fields */

.holyday-profile-editor-name-field > label,
.holyday-profile-editor-central-photo-field > label,
.holyday-profile-editor-category-field > label,
.holyday-profile-editor-description-field > label {
    font-size: 16px;
}

/* ---------------------------------------------------------
 * PMPro Account - Professional Profile Button
 * --------------------------------------------------------- */

#holyday-actionlink-profile {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 12px 28px !important;
    margin: 8px 0 !important;
    font-size: 17px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    text-decoration: none !important;
    border-radius: 6px;
    letter-spacing: 0.2px;
}

@media (max-width: 767px) {
    #holyday-actionlink-profile {
        width: 100%;
        min-height: 50px;
        padding: 12px 20px !important;
        font-size: 16px !important;
    }
}



/* Holyday — Public Profile button on PMPro Account page */
.holyday-account-profile-button-wrap {
    width: 100%;
    margin: 26px 0 30px;
}

.holyday-account-profile-button {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-width: 220px;
    min-height: 52px;
    padding: 12px 28px !important;
    box-sizing: border-box;
    background-color: rgb(116,147,131) !important;
    color: #ffffff !important;
    font-size: 17px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    text-align: center;
    text-decoration: none !important;
    border: none !important;
    border-radius: 6px;
    letter-spacing: 0.1px;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.holyday-account-profile-button:hover {
    background-color: rgb(96,124,109) !important;
    color: #ffffff !important;
    text-decoration: none !important;
    transform: translateY(-1px);
}

.holyday-account-profile-button:focus {
    background-color: rgb(116,147,131) !important;
    color: #ffffff !important;
    text-decoration: none !important;
    outline: none;
}

@media (max-width: 767px) {
    .holyday-account-profile-button-wrap {
        margin: 24px 0 28px;
    }

    .holyday-account-profile-button {
        min-width: 190px;
        min-height: 50px;
        padding: 11px 24px !important;
        font-size: 16px !important;
    }
}
