@import url('https://fonts.googleapis.com/css2?family=Gaegu:wght@400;700&display=swap');

:root {
    --cream: #fffaf5;
    --white: #ffffff;
    --text: #282825;
    --muted: #77736d;
    --border: #ece7e1;
    --coral: #ff806c;
    --coral-hover: #f36e5a;
    --yellow: #ffd86f;
    --sage: #bfd2ba;
    --sky: #b9dce8;
    --shadow:0 8px 30px rgba(40, 40, 37, 0.08);
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth;
}

.logo {
    font-size: 30px;
    font-weight: 700;
}

button, input {
    font: inherit;
}

button {
    cursor: pointer;
}

.hidden { 
    display: none !important;
}

/*header*/
.site-header {
    background: rgba(255, 250, 245, 0.96);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar {
    width: min(1400px, 94%);
    margin: auto;
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    color: var(--text);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: "Gaegu", cursive;
    font-size: 29px;
    font-weight: 700;
}

.logo-sun {
    font-family: sans-serif;
    color: #f5b800;
    font-size: 30px;
}

.my-trip-button {
    text-decoration: none;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 8px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 10px 15px;
    font-weight: 600px
}

.trip-count {
    width: 25px;
    height: 25px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--coral);
    color: white;
    border-radius: 50%;
    font-size: 12px;
}

/*hero*/
.hero {
    width: min(1450px, 94%);
    margin: 30px auto 50px;
    padding: 60px 20px;

    border-radius: 34px;

    background-image:
        /* linear-gradient(rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0.28)), */
        url("images/collage.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    text-align: center;
}

.hero-overlay-card {
    max-width: 1100px;
    margin: 0 auto;

    background: rgba(255, 250, 245, 0.92);
    backdrop-filter: blur(4px);

    border: 1px solid rgba(236, 231, 225, 0.9);
    border-radius: 30px;

    padding: 40px 28px 32px;

    box-shadow: 0 8px 30px rgba(40, 40, 37, 0.08);
}

.hero h1 {
    font-family: "Gaegu", cursive;
    font-size: clamp(54px, 8vw, 95px);
    line-height: 0.95;
    max-width: 900px;
    margin: 0 auto 14px;
    color: var(--text);
    padding: 15px;
}

.hero h1 span {
    color: var(--coral);
}

.hero-copy {
    max-width: 700px;
    margin: 0 auto 28px;
    color: var(--muted);
    line-height: 1.6;
    font-size: 17px;
}

.eyebrow {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.13em;
    color: var(--coral);
    margin-bottom: 12px;
}

/*trip search*/
.trip-search-wrapper {
    max-width: 1120px;
    margin: auto;
    position: relative;
    z-index: 20;
}

.trip-search-bar {
    background: white;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) 1px minmax(0, 1.1fr) 1px minmax(0, 0.9fr) auto;
    align-items: center;
    padding: 8px;
    border-radius: 24px;
    box-shadow: var(--shadow);
    text-align: left;
}

.search-section {
    position: relative;
    min-width: 0;
}

.search-divider {
    height: 45px;
    background: var(--border);
}

.search-trigger {
    width: 100%;
    border: none;
    background: transparent;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    text-align: left;
    border-radius: 17px;
}

.search-trigger:hover {
    background: #faf7f3;
}

.search-icon {
    font-size: 20px;
}

.search-trigger-copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.search-trigger-copy small {
    color: var(--muted);
    margin-bottom: 2px;
}

.search-trigger-copy strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.explore-button {
    border: none;
    background: var(--coral);
    color: white;
    min-height: 56px;
    border-radius: 18px;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 700;
    transition: 0.2s;
}

.explore-button:hover {
    background: var(--coral-hover);
    transform: translateY(-1px);
}

/*dropdown*/
.search-dropdown {
    position: absolute;
    top: calc(100% + 17px);
    left: 0;
    width: 390px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 24px;
    box-shadow: var(--shadow);
    display: none;
    z-index: 50;
}

.search-dropdown.open {
    display: block;
}

.dates-dropdown {
    left: auto;
    right: 0;
}

.dropdown-heading h2 {
    font-family: "Gaegu", cursive;
    font-size: 31px;
    margin: 0;
}

.dropdown-heading p {
    color: var(--muted);
    margin: 5px 0 18px;
}

.google-input-container {
    width: 100%;
    margin-bottom: 18px;
}

gmp-place-autocomplete {
    width: 100%
}

.dropdown-caption {
    margin: 17px 0 8px;
    font-size: 12px;
    font-weight: 700;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.popular-destinations {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px;
}

.popular-destination {
    border: none;
    background: #faf8f5;
    border-radius: 14px;
    padding: 10px;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 10px;
}

.popular-destination:hover {
    background: #f3eee8;
}

.destination-emoji {
    font-size: 22px;
}

.popular-destination > span:last-child {
    display: flex;
    flex-direction: column;
}

.location-tip {
    background: #f4f6ef;
    padding: 13px;
    border-radius: 14px;
    display: flex;
    gap: 9px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
}

.location-tip p {
    margin: 0;
}

/*dates*/
.dates-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;

    gap: 12px;
}


.date-field {
    display: flex;
    flex-direction: column;

    gap: 6px;
}


.date-field label {
    font-size: 13px;
    font-weight: 600;
}


.date-field input {
    width: 100%;

    border: 1px solid var(--border);

    border-radius: 12px;

    padding: 12px;
}


.date-error {
    min-height: 20px;

    font-size: 13px;

    color: #b64035;
}


.apply-button {
    width: 100%;

    border: none;

    padding: 12px 16px;

    border-radius: 13px;

    background: var(--text);
    color: white;

    font-weight: 700;
}


.setup-message {
    color: #b64035;

    min-height: 20px;

    margin-top: 17px;
}


/* ======================================
   DISCOVERY
====================================== */

.discover-section {
    width: min(1450px, 94%);

    margin: auto;

    padding: 50px 0 90px;
}


.discover-heading {
    display: flex;

    justify-content: space-between;
    align-items: end;

    gap: 20px;

    margin-bottom: 18px;
}


.discover-heading h2 {
    font-family: "Gaegu", cursive;

    font-size: clamp(42px, 5vw, 68px);

    margin: 0;
}


.discover-heading h2 span {
    color: var(--coral);
}


.discover-heading p:last-child {
    margin-top: 3px;

    color: var(--muted);
}


.edit-trip-button {
    border: 1px solid var(--border);

    background: white;

    padding: 11px 17px;

    border-radius: 999px;

    font-weight: 600;
}


.trip-info-bar {
    display: flex;
    flex-wrap: wrap;

    gap: 8px;

    margin: 20px 0;
}


.trip-info-bar span {
    background: white;

    border: 1px solid var(--border);

    padding: 9px 13px;

    border-radius: 999px;

    font-size: 13px;
}


/* filters*/

.category-scroll {
    display: flex;

    overflow-x: auto;

    gap: 8px;

    padding: 10px 0 20px;

    scrollbar-width: none;
}


.category-scroll::-webkit-scrollbar {
    display: none;
}


.category-button {
    flex: 0 0 auto;

    border: 1px solid var(--border);

    background: white;

    border-radius: 999px;

    padding: 11px 16px;

    font-weight: 600;
}


.category-button.active {
    background: var(--text);
    color: white;

    border-color: var(--text);
}


.feed-status {
    min-height: 30px;

    color: var(--muted);

    font-size: 14px;
}


/*pinterest like grid*/

.places-grid {
    columns: 5;
    column-gap: 18px;
}

.saved-grid {
    width: 100%;
}


.place-card {
    display: inline-block;

    width: 100%;

    margin: 0 0 22px;

    break-inside: avoid;

    background: transparent;
}


.place-image-wrap {
    position: relative;

    overflow: hidden;

    border-radius: 20px;

    background: #eee9e3;
}


.place-image {
    display: block;

    width: 100%;
    height: auto;

    min-height: 210px;

    object-fit: cover;
}


.no-photo {
    min-height: 240px;

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

    font-size: 48px;

    background:
        linear-gradient(
            145deg,
            var(--sky),
            var(--sage)
        );
}


.pin-button {
    position: absolute;

    top: 12px;
    right: 12px;

    width: 44px;
    height: 44px;

    border: none;

    border-radius: 50%;

    background: rgba(255, 255, 255, 0.94);

    font-size: 22px;

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


.pin-button.saved {
    background: var(--coral);
    color: white;
}


.photo-credit {
    position: absolute;

    bottom: 7px;
    left: 8px;

    max-width: calc(100% - 16px);

    padding: 4px 6px;

    border-radius: 7px;

    background: rgba(0, 0, 0, 0.55);

    color: white;

    font-size: 9px;
}


.photo-credit a {
    color: white;
}


.place-info {
    padding: 10px 4px 0;
}


.place-info h3 {
    font-size: 16px;

    margin: 0 0 5px;
}


.place-meta {
    display: flex;
    flex-wrap: wrap;

    gap: 8px;

    color: var(--muted);

    font-size: 12px;
}


.place-address {
    color: var(--muted);

    font-size: 12px;

    line-height: 1.4;

    margin: 6px 0;
}


.maps-link {
    color: var(--text);

    font-size: 12px;

    font-weight: 600;
}


.google-credit {
    text-align: center;

    color: var(--muted);

    font-size: 11px;

    margin-top: 30px;
}


/* saved*/

.saved-section {
    width: min(1450px, 94%);
    margin: auto;
    padding: 45px 0 80px;
    display: none;
}

.saved-section.has-saved-places {
    display: block;
}


.saved-heading {
    margin-bottom: 25px;
}


.saved-heading h2 {
    font-family: "Gaegu", cursive;

    font-size: 55px;

    margin: 0;
}


.saved-heading > p:last-child {
    color: var(--muted);
}


.empty-saved {
    width: 100%;
    max-width: 550px;

    background: white;
    border: 1px dashed #d9d2ca;
    border-radius: 24px;

    padding: 45px 25px;
    text-align: center;

    margin: 0 auto;
}

.empty-saved span {
    display: block;
    font-size: 42px;
    margin-bottom: 12px;
}

.empty-saved h3 {
    margin: 0 0 8px;
}

.empty-saved p {
    margin: 0;
    color: var(--muted);
}


/*toast*/

.toast {
    position: fixed;

    bottom: 25px;
    left: 50%;

    transform: translate(-50%, 30px);

    opacity: 0;

    pointer-events: none;

    background: var(--text);
    color: white;

    padding: 13px 20px;

    border-radius: 999px;

    z-index: 200;

    transition: 0.25s;
}


.toast.show {
    opacity: 1;

    transform: translate(-50%, 0);
}


/*footer*/

footer {
    border-top: 1px solid var(--border);

    width: min(1450px, 94%);

    margin: auto;

    padding: 35px 0 50px;

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

    color: var(--muted);
}


/*reponsiveness*/

@media (max-width: 1200px) {

    .places-grid,
    .saved-grid {
        columns: 4;
    }

}


@media (max-width: 950px) {

    .trip-search-bar {
        grid-template-columns: 1fr;
        gap: 5px;

        border-radius: 20px;
    }


    .search-divider {
        display: none;
    }


    .search-trigger {
        border-bottom: 1px solid var(--border);
    }


    .explore-button {
        width: 100%;
    }


    .search-dropdown,
    .dates-dropdown {
        width: 100%;

        left: 0;
        right: auto;
    }


    .places-grid,
    .saved-grid {
        columns: 3;
    }

}


@media (max-width: 680px) {

    .hero {
        padding-top: 55px;
    }


    .hero h1 {
        font-size: 58px;
    }


    .places-grid,
    .saved-grid {
        columns: 2;
        column-gap: 12px;
    }


    .place-card {
        margin-bottom: 16px;
    }

    .popular-destinations {
        grid-template-columns: 1fr;
    }
}


html,
body,
body *,
button,
input,
select,
textarea,
a {
    font-family: "Gaegu", cursive !important;
}