header .image {
    max-width: 1300px;
    padding: 0 20px;
    width: 100%;
    height: 70vh;
    position: relative;
    margin: 75px auto;
}

header .image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 40px;
    filter: brightness(0.75);
}

header .image .location-data {
    position: absolute;
    top: 7%;
    left: max(7%, 35px);;
    z-index: 1;
    color: white;
    max-width: 80vw;
}
header .image .location-data h3 {
    margin: 0px;
    color: white;
    font-size: 14px;
    font-weight: normal;
}
header .image .location-data h1 {
    margin-top: 0px;
    font-size: 35px;
}

header .search-wrapper {
    position: absolute;
    bottom: -58px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    z-index: 1;
}

header .search {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    background: var(--primary-bg);
    border-radius: 15px;
    padding: 25px;
    height: 130px;
    box-shadow: rgba(149, 157, 165, 0.3) 0px 8px 24px;
    gap: 25px;
    overflow: hidden;
}
header .search .section {
    flex: 1;
    cursor: pointer;
    min-width: 0;
    display: none;
}

header .search .section-mobile {
    flex: 1;
}

header .search h4 {
    font-size: 18px;
    margin: 0px 0px 12.5px 0px;
    position: relative;
    display: inline-block   ;
}
header .search h4::before {
    content: "";
    position: absolute;
    bottom: 7px;
    width: 100%;
    height: 2px;
    background: var(--secondary);
    z-index: -1;
}
header .search u {
    display: block;
    font-size: 14px;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

header .search-input {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    z-index: 1;
    width: 80%;
    background-color: var(--primary-bg);
    border-radius: 15px;
    box-shadow: rgba(149, 157, 165, 0.3) 0px 8px 24px;
    transition: .3s;
}

header .location .location-input,
header .location-results,
header .tag-input,
header .ratings,
header .search input {
    display: none;
}

header .location input {
    display: block;
    padding: 0px;
    border: none;
    background: transparent;
    border-radius: 0;
    font-size: 14px;
}

header .location .search-input {
    width: 40%;
    left: 0;
}

header .location .location-results {
    margin: 12.5px 0px;
    display: block;
    max-height: 300px;
    overflow-y: auto;
    padding: 20px;
}

.location-result {
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    transition: .3s;
    padding: 5px;
    border-radius: 10px;
}
.location-result:hover {
    background: var(--secondary-bg);
}
.location-result:not(:last-child) {
    margin-bottom: 12.5px;
}

.location-result .icon {
    padding: 5px;
    width: 50px;
    height: 50px;
    font-size: 30px;
    background: var(--secondary-bg);
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.location-result .address-data {
    width: calc(100% - 65px);
}

.location-result p {
    margin: 0;
    color: var(--tertiary-text);
    font-size: 14px;
}

header .tags .search-input {
    width: 75%;
    left: 50%;
    transform: translateX(-50%);
}

header .tags .tag-input {
    display: block;
    margin: 12.5px 0px;
    max-height: 300px;
    overflow-y: auto;
    position: relative;
}

header .tags .tag-input button.primary-btn {
    position: absolute;
    top: 12.5px;
    right: 25px;
}

header .tags .tags-block {
    padding: 25px 0px 0px 25px;
}

header .tags .tag-list {
    display: flex;
    gap: 10px;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 5px 25px 10px 0px;
}

header .reviews .search-input {
    width: 40%;
    left: 60%;
}

header .reviews .ratings {
    display: block;
    padding: 37.5px 25px;
}

header .section-split {
    width: 2px;
    border-radius: 50px;
    height: 60%;
    background: var(--secondary-bg);
    display: none;
}

header button.search-btn {
    height: 66px;
    width: 66px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
}
header button.search-btn iconify-icon {
    font-size: 30px;
}

.discovery-tags {
    display: flex;
    gap: 5vw;
    overflow-x: auto;
}

.tag {
    color: var(--tertiary-text);
    transition: .3s;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    padding: 10px 0px;
    position: relative;
    white-space: nowrap;
}
.tag::before {
    content: "";
    position: absolute;
    bottom: 0;
    height: 2px;
    width: 100%;
    background: transparent;
    border-radius: 50px;
    transition: .3s;
}

.tag iconify-icon {
    font-size: 25px;
    display: flex;
    justify-content: center;
    position: relative;
}
.tag span {
    display: block;
}
.tag:hover,
.tag.active {
    color: var(--primary-text);
}
.tag:hover::before,
.tag.active::before {
    content: "";
    position: absolute;
    bottom: 0;
    height: 2px;
    width: 100%;
    background: var(--primary-text);
    border-radius: 50px;
}

.locations {
    margin: 25px 0;
    display: none;
    gap: 15px;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}
.locations.active {
    display: grid;
}

.random-location {
    text-align: center;
}



/* EXPERIMENTAL */
header .search::before {
  content: "";
  position: absolute;
  top: 0%;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.5) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-20deg);
  pointer-events: none;
}

/* Trigger animation on hover */
header .search:hover::before {
  animation: shine 0.8s ease-in-out forwards;
}

@keyframes shine {
  from {
    left: -75%;
  }
  to {
    left: 125%;
  }
}




@media (min-width: 640px) {
    header .image {
        margin: 100px auto;
    }
}

@media (min-width: 768px) {
    header .search .section {
        display: block;
    }

    header .section-split {
        display: block;
    }

    header .section-mobile {
        display: none;
    }
}

@media (min-width: 1024px) {
    header .image .location-data {
        top: 15%;
    }

    header .image .location-data h1 {
        font-size: 55px;
    }

    .discovery-tags {
        justify-content: center;
        gap: 50px;
    }
}