@import url(base.css);
@import url(base.responsive.css);

/* Change Nav color */
nav .nav__container .left__nav .right__menu ul li a, nav .nav__container .right__nav ul li a {
    color: var(--color-black);
    font-weight: 400;
}

/* Header Section */
header {
    height: 60vh;
    background: url(https://images.unsplash.com/photo-1593269233759-427ba69acca5?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=1170&q=80) no-repeat center center;
    background-size: cover;
    background-attachment: fixed;
    position: relative;
    top: 0;
}

.header__banner {
    height: 100%;
    margin-bottom: 5rem;
    display: flex;
    flex-direction: row-reverse;
    align-items: flex-end;
    padding: 28rem 5rem 0 0;
}

.search__prestation {
    background: var(--color-white);
    padding: 3rem 2rem;
    width: 30vw;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-radius: 8px;
    border: 1px solid var(--color-gray);
    bottom: -5rem;
    position: relative;
}

.search__prestation h1 {
    color: var(--color-black);
    font-size: 1.2rem;
    text-align: center;
    line-height: 1.9;
}

.search__prestation p {
    margin-bottom: 2rem;
    text-align: center;
    font-size: .9rem;
}

.search__prestation input, .search__prestation select {
    border: 1px solid var(--color-gray);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    width: 100%;
}

.search__prestation__submit {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 5rem;
}

.search__prestation__submit .form-group {
    display: flex;
    align-items: center;
    padding: 0;
}

.search__prestation__submit .form-group input {
    margin: 0;
}

.search__prestation__submit .form-group input:first-child {
    border-radius: 8px 0 0 8px;
}

.search__prestation__submit .form-group input:nth-child(2) {
    border-radius: 0 8px 8px 0;
}

/* Content section */
.content__container {
    display: flex;
    flex-direction: column;
    gap: 2rem
}
.content__container h1 {
    color: var(--color-black);
    font-size: 1.5rem;
}

.content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    row-gap: 2rem;
    column-gap: 1rem;
}

.content__card {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--color-gray);
    border-radius: 7px;
    overflow: hidden;
}

.card__header {
    height: 12rem;
    position: relative;
}

.card__header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.35);
}

.card__header img {
    height: 100%;
    object-fit: cover;
}

.card__header .availability {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--color-white);
    padding: 0.3rem .5rem;
    font-size: .6rem;
    border-radius: 1rem;
}

.card__author {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 1.5rem;
    position: absolute;
    bottom: 2rem;
    left: 1rem;
    gap: .5rem;
    color: var(--color-white)
}

.card__author img {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 100%;
}

.card__review {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 1.5rem;
    position: absolute;
    bottom: -.7rem;
    left: 1rem;
    gap: .5rem;
}

.card__review .star__review {
    background-color: var(--color-white);
    color: #F0CC46;
    border-radius: 2rem;
    padding: 0 .5rem;
    font-size: .9rem;
}

.card__review p {
    background-color: var(--color-white);
    border-radius: 2rem;
    padding: 0 .5rem;
    font-size: .9rem;

}

.card__body {
    padding: 1.5rem 1rem 1rem 1rem;
    color: var(--color-dark);
}

.card__body p {
    font-size: .8rem;
}

.card__body h3 {
    margin: 1rem 0;
    font-size: 1rem;
    font-weight: 600;
}

.card__body h4 {
    font-size: 1rem;
}

.body__domain {
    display: flex;
    align-items: center;
    gap: .5rem;
    opacity: .6;
}

.body__domain i {
    color: var(--color-first);
}

.body__skills {
    display: flex;
    align-items: center;
    gap: .3rem;
    margin-bottom: .6rem;
}

.body__skills span {
    background: rgba(238, 101, 71, .8);
    color: var(--color-white);
    font-size: .6rem;
    padding: .1rem .3rem;
    border-radius: 1rem;
}

/* Page détails */
.container__details {
    position: relative;
    top: 7.5rem;
    margin-bottom: 5rem;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-areas: 
        "head head"
        "details details"
        "prestation prestation"
        "other other"
    ;
}

/* Section Head */
.details__head {
    grid-area: head;
    height: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 0;
}

.info__user {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.info__user img {
    width: 3rem;
    height: 3rem;
    border-radius: 100%;
}

.info__user h3 {
    font-size: 1.25rem;
}

.button__group {
    display: flex;
    align-items: center;
}

.button__group button {
    background: var(--color-primary);
    opacity: 0.6;
    padding: .6rem;
    cursor: pointer;
}

.button__group button:first-child {
    border-radius: 8px 0 0 8px;
    border-right: 1px solid var(--color-gray);
}

.button__group button:nth-child(2) {
    border-radius: 0 8px 8px 0;
    border-left: 1px solid var(--color-gray);
}

.button__group button i {
    color: var(--color-black);
    font-size: 1.2rem;
}

/* Section details */
.details {
    grid-area: details;
    display: flex;
    gap: 3rem
}

.details img {
    width: 60vh;
    border-radius: 8px;
}

.info__details hr {
    border-color: var(--color-primary);
    width: 15vh;
    margin-top: 1rem;
}

.info__details .availability {
    background: rgba(0, 255, 0, .1);
    padding: 0.5rem .7rem;
    margin-bottom: 1rem;
    border-radius: 2rem;
    text-align: center;
    width: 20vh;
    text-align: center;
}

.info__details h3 {
    font-size: 1.2rem;
    font-weight: 400;
}

.info__details .review {
    display: flex;
    gap: 1rem;
    margin: 1rem 0;
    align-items: center;
}

.info__details .review h4 {
    font-weight: 400;
}

.info__details .review i {
    color: #F0CC46;
}

.info__details .location, .info__details .time {
    display: flex;
    gap: .5rem;
}

.info__details .time {
    margin-bottom: 1rem;
}

.info__details .time span {
    font-weight: 800;
}

/* Section details prestation */
.details__prestation {
    grid-area: prestation;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.details__prestation .prestation, .details__prestation .review {
    border: 1px solid var(--color-gray);
    border-radius: 4px;
    padding: 1rem;
}

.details__prestation .prestation h3, .details__prestation .review h3 {
    text-align: center;
    font-size: 1.3rem;
    color: var(--color-black);
    margin: 1rem 0 3rem;
}

.details__prestation .prestation .items {
    margin-bottom: 1.3rem;
}

.details__prestation .prestation .items h4 {
    font-size: 1.1rem;
    color: var(--color-primary);
}

/* Section all reviews */
.review h2{
    color: var(--color-primary);
    font-size: 2.7rem;
    margin-bottom: 1rem;
}

.review div {
    width: 100%;
}

.review .star {
    text-align: center;
    margin-top: 0;
    margin-bottom: 3rem;
}

.review .star i {
    color: #F0CC46;
    font-size: 1.2rem;
}

.details__prestation .review .comment {
    border-top: 1px solid var(--color-gray);
    padding: 1rem;
    text-align: left;
    width: 100%;
}

.details__prestation .review .comment h3 {
    text-align: left !important;
    font-size: 1rem;
    margin-bottom: 0;
}

/* Section Autre prestaition */
.details__other {
    grid-area: other;
}

.details__other h3 {
    margin-bottom: 2rem;
}

.grid__other__prestation {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

/* ===================== Page Search ============================== */
.search__page {
    background: var(--color-gray);
    width: 100vw;
    
}
.container__search {
    padding: 10rem 0 6rem;
    display: grid;
    grid-template-columns: 1.3fr 4fr;
    gap: 5rem
}

.sidebar__search {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.sidebar__search .breadcumb {
    display: flex;
    gap: 2rem;
}

.sidebar__search .breadcumb .current a {
    color: var(--color-dark);
    font-weight: 800;
}

.sidebar__search .all__services {
    background: #DDD;
    padding: 1rem;
    width: 100%;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}


.sidebar__search .all__services .filter h4{
    margin-bottom: 1rem;
}

.sidebar__search .all__services .filter .all__filter {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: .5rem;
}

.sidebar__search .all__services .filter .all__filter span {
    padding: 0.6rem;
    background: var(--color-white);
    border-radius: 6px;
    font-size: .7rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar__search .all__services .categories .category {
    padding: .5rem;
}

.sidebar__search .all__services .categories .category h5 {
    color: var(--color-gray);
    font-size: 1.2rem;
    margin-bottom: .5rem;
}

.sidebar__search .all__services .categories .category ul li {
    display: flex;
    gap: .5rem;
    align-items: center;
    padding: .2rem .5rem;
}

.sidebar__search .all__services .categories .category ul li label {
    font-size: .8rem;
}

.content__search {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.content__search .prestations {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.card__body.white-bg {
    background: var(--color-white);
}

.content__search .no__result {
    height: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: .5;
}

/* Price Range */
price-range {
    --thumb-size: .9rem;
    --thumb-color: var(--color-dark);
    --thumb-shadow-size: 5px;
    --track-size: 1px;
    --track-color: var(--color-white);
    --track-highlight-color: var(--color-primary);
  
    width: 100%;
    display: block;
  }
  
  /* Price Range Containers */
  price-range > div {
    position: relative;
    width: 100%;
    height: var(--thumb-size);
  }
  price-range > div > div {
    width: 100%;
    height: var(--track-size);
    background: var(--track-color);
    position: absolute;
    top: 0;
    bottom: 0;
    margin: auto;
  }
  
  /* Price Range Input */
  price-range input[type="range"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 100%;
    margin: 0;
    padding: 0;
    background: transparent;
    border: none;
    outline: none;
    pointer-events: none;
    position: absolute;
    top: 0;
    bottom: 0;
    margin: auto;
  }
  
  /* Price Range Input Track */
  price-range input[type="range"]::-webkit-slider-runnable-track {
    -webkit-appearance: none;
    height: 5px;
  }
  price-range input[type="range"]::-moz-range-track {
    -moz-appearance: none;
    height: 5px;
  }
  price-range input[type="range"]::-ms-track {
    appearance: none;
    height: 5px;
  }
  
  /* Price Range Input Thumb */
  price-range input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    margin-top: -5px;
    width: var(--thumb-size);
    height: var(--thumb-size);
    background: var(--thumb-color);
    border: none;
    border-radius: 50%;
    pointer-events: auto;
    cursor: pointer;
    box-shadow: 0 0 0 0 var(--thumb-color);
    transition: box-shadow 0.15s ease;
  }
  price-range input[type="range"]::-moz-range-thumb {
    -moz-appearance: none;
    width: var(--thumb-size);
    height: var(--thumb-size);
    background: var(--thumb-color);
    border: none;
    border-radius: 50%;
    pointer-events: auto;
    cursor: pointer;
    box-shadow: 0 0 0 0 var(--thumb-color);
    transition: box-shadow 0.15s ease;
  }
  price-range input[type="range"]::-ms-thumb {
    appearance: none;
    width: var(--thumb-size);
    height: var(--thumb-size);
    background: var(--thumb-color);
    border: none;
    border-radius: 50%;
    pointer-events: auto;
    cursor: pointer;
    box-shadow: 0 0 0 0 var(--thumb-color);
    transition: box-shadow 0.15s ease;
  }
  
  price-range input[type="range"]::-webkit-slider-thumb:hover {
    box-shadow: 0 0 0 var(--thumb-shadow-size) var(--thumb-color);
  }
  price-range input[type="range"]::-moz-range-thumb:hover {
    box-shadow: 0 0 0 var(--thumb-shadow-size) var(--thumb-color);
  }
  price-range input[type="range"]::-ms-thumb:hover {
    box-shadow: 0 0 0 var(--thumb-shadow-size) var(--thumb-color);
  }
  
  /* Price Range Output */
  price-range output {
    display: block;
    margin-top: 1rem;
    text-align: center;
    font-size: .8rem;
  }