/* =========================================
   JOUK - SHARE EXPERIENCE
========================================= */


/* ============== RESET ============== */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    width: 100%;
    min-height: 100%;
}

body {
    background: #f8f5ef;
    color: #171a16;
    font-family: "Plus Jakarta Sans", Arial, sans-serif;
}


/* =========================================
   HEADER
========================================= */

.main-header {
    width: 100%;
    height: 72px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 55px;

    background: #f8f5ef;
    border-bottom: 1px solid #ddd8ce;
}


/* LOGO */

.logo {
    font-family: "Playfair Display", Georgia, serif;

    font-size: 22px;
    letter-spacing: 4px;

    text-decoration: none;
    color: #111;
}


/* NAVIGATION */

.main-header nav {
    display: flex;
    align-items: center;

    gap: 40px;
}

.main-header nav a {
    text-decoration: none;

    color: #222;

    font-size: 14px;
    font-weight: 400;
}

.main-header nav a:hover {
    opacity: 0.6;
}


/* PROFILE ICON */

.profile-icon {
    width: 34px;
    height: 34px;

    display: flex;
    align-items: center;
    justify-content: center;

    text-decoration: none;

    color: #111;

    font-size: 22px;
}


/* =========================================
   PAGE
========================================= */

.share-page {
    width: 100%;

    padding: 35px 20px 70px;
}


/* MAIN CONTAINER */

.share-container {
    width: 100%;

    max-width: 720px;

    margin: 0 auto;
}


/* =========================================
   PAGE HEADING
========================================= */

.page-heading {
    display: flex;

    align-items: flex-start;

    gap: 15px;

    margin-bottom: 25px;
}


/* BACK BUTTON */

.back-btn {
    width: 40px;
    height: 40px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    border: 1px solid #dedbd3;

    background: #ffffff;

    text-decoration: none;

    color: #18251d;

    font-size: 22px;

    transition: 0.2s;
}

.back-btn:hover {
    background: #ece9e1;
}


/* TITLE */

.page-heading h1 {
    font-family: "Playfair Display", Georgia, serif;

    font-size: 31px;
    font-weight: 600;

    line-height: 1.2;

    margin-bottom: 4px;
}

.page-heading p {
    font-size: 13px;

    color: #777;
}


/* =========================================
   PLACE BOX
========================================= */

.place-box {
    width: 100%;
    height: 115px;

    display: flex;
    align-items: center;

    gap: 18px;

    background: #ffffff;

    border: 1px solid #e1ddd4;

    border-radius: 12px;

    overflow: hidden;

    margin-bottom: 30px;
}


/* DEAD SEA IMAGE */

.place-image {
    width: 180px;
    height: 115px;

    object-fit: cover;

    display: block;

    flex-shrink: 0;
}


/* PLACE INFO */

.place-info {
    display: flex;

    flex-direction: column;

    justify-content: center;
}

.place-info h2 {
    font-family: "Playfair Display", Georgia, serif;

    font-size: 20px;
    font-weight: 600;

    margin-bottom: 5px;
}

.place-info p {
    font-size: 13px;

    color: #777;
}


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

.form-section {
    width: 100%;

    margin-bottom: 27px;
}


/* LABEL */

.form-section > label {
    display: block;

    font-size: 14px;
    font-weight: 600;

    margin-bottom: 9px;
}

.form-section > label span {
    color: #777;

    font-weight: 400;
}


/* DESCRIPTION */

.section-description {
    color: #777;

    font-size: 12px;

    margin-top: -5px;

    margin-bottom: 11px;
}


/* =========================================
   TEXT AREA
========================================= */

#experienceText {
    width: 100%;
    height: 125px;

    display: block;

    resize: none;

    padding: 15px;

    border: 1px solid #d7d4cc;

    border-radius: 8px;

    background: #faf9f6;

    color: #222;

    font-family: "Plus Jakarta Sans", Arial, sans-serif;

    font-size: 13px;

    line-height: 1.6;

    outline: none;

    transition: 0.2s;
}

#experienceText::placeholder {
    color: #929292;
}

#experienceText:focus {
    border-color: #263c2d;

    background: #ffffff;
}


/* =========================================
   PHOTOS
========================================= */

.photo-list {
    display: flex;

    align-items: center;

    gap: 12px;

    flex-wrap: wrap;

    margin-top: 10px;
}


/* ADD PHOTO */

.add-photo {
    width: 105px;
    height: 105px;

    border: 1px dashed #aaa;

    border-radius: 8px;

    background: #faf9f6;

    display: flex !important;

    flex-direction: column;

    align-items: center;
    justify-content: center;

    gap: 5px;

    cursor: pointer;

    margin: 0 !important;

    transition: 0.2s;
}

.add-photo:hover {
    background: #eeece6;

    border-color: #263c2d;
}

.add-photo span {
    font-size: 29px;

    font-weight: 300;

    line-height: 1;
}

.add-photo small {
    font-size: 11px;

    color: #555;
}


/* PHOTO PREVIEW */

.photo-preview {
    position: relative;

    width: 105px;
    height: 105px;

    border-radius: 8px;

    overflow: hidden;
}

.photo-preview img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}


/* =========================================
   STARS
========================================= */

.stars {
    display: flex;

    align-items: center;

    gap: 5px;

    margin-top: 5px;
}

.stars button {
    border: none;

    outline: none;

    background: transparent;

    color: #e8a52a;

    font-size: 34px;

    line-height: 1;

    padding: 0;

    cursor: pointer;

    transition: 0.15s;
}

.stars button:hover {
    transform: scale(1.12);
}


/* =========================================
   TAGS
========================================= */

.tags {
    display: flex;

    align-items: center;

    flex-wrap: wrap;

    gap: 8px;

    margin-top: 5px;
}

.tag {
    border: 1px solid #ddd9d0;

    background: #eeece6;

    color: #252525;

    padding: 8px 15px;

    border-radius: 30px;

    font-family: "Plus Jakarta Sans", Arial, sans-serif;

    font-size: 11px;

    cursor: pointer;

    transition: 0.2s;
}

.tag:hover {
    background: #dedbd3;
}

.tag.active {
    background: #20382a;

    border-color: #20382a;

    color: #ffffff;
}


/* =========================================
   SHARE BUTTON
========================================= */

.share-btn {
    width: 100%;
    height: 52px;

    display: flex;

    align-items: center;
    justify-content: center;

    gap: 12px;

    border: none;

    border-radius: 8px;

    background: #1d3526;

    color: #ffffff;

    font-family: "Plus Jakarta Sans", Arial, sans-serif;

    font-size: 14px;
    font-weight: 600;

    cursor: pointer;

    margin-top: 5px;

    transition: 0.2s;
}

.share-btn span {
    font-size: 19px;
}

.share-btn:hover {
    background: #14281c;
}


/* =========================================
   TABLET / MOBILE
========================================= */

@media (max-width: 700px) {

    .main-header {
        padding: 0 20px;
    }

    .main-header nav {
        gap: 17px;
    }

    .main-header nav a {
        font-size: 12px;
    }

    .share-page {
        padding: 25px 18px 50px;
    }

    .page-heading h1 {
        font-size: 27px;
    }

    .place-box {
        height: 105px;
    }

    .place-image {
        width: 140px;
        height: 105px;
    }
}


/* =========================================
   SMALL MOBILE
========================================= */

@media (max-width: 480px) {

    .main-header {
        padding: 0 15px;
    }

    .logo {
        font-size: 18px;
    }

    .main-header nav {
        gap: 10px;
    }

    .place-image {
        width: 120px;
    }

    .page-heading {
        gap: 10px;
    }

    .page-heading h1 {
        font-size: 24px;
    }

    .tags {
        gap: 6px;
    }
/* =========================================
   SHARE EXPERIENCE - JS STATES
========================================= */


/* SELECTED STAR */

.stars button.selected {
    color: #d99b28;
}


/* SELECTED TAG */

.tag.selected {
    background: #243a2d !important;
    color: #ffffff !important;
    border-color: #243a2d !important;
}


/* PHOTO PREVIEW */

.photo-preview {
    width: 95px;
    height: 95px;

    position: relative;

    overflow: hidden;

    border-radius: 8px;
}

.photo-preview img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
}


/* REMOVE PHOTO */

.remove-photo {
    position: absolute;

    top: 5px;
    right: 5px;

    width: 22px;
    height: 22px;

    padding: 0;

    border: none;
    border-radius: 50%;

    background: rgba(0, 0, 0, 0.65);
    color: white;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 16px;
    line-height: 1;

    cursor: pointer;
}
/* =========================================
   SELECTED TAG - FINAL
========================================= */

.tag.selected {
    background: #14271d !important;
    background-color: #14271d !important;

    color: #ffffff !important;

    border-color: #14271d !important;

    opacity: 1 !important;

    font-weight: 600;

    box-shadow: none;
}
}

.tag.selected:hover,
.tag.selected:focus,
.tag.selected:active {
    background: #14271d !important;
    background-color: #14271d !important;

    color: #ffffff !important;

    border-color: #14271d !important;

    opacity: 1 !important;
}


