/* =========================================================
   전국 물때표 메인
   /tide/
========================================================= */

.tide-home {
    --home-navy: #071c2c;
    --home-navy-2: #0a3144;
    --home-teal: #0d9488;
    --home-teal-light: #67dfd7;

    --home-text: #102331;
    --home-muted: #71818d;

    --home-bg: #f4f8fa;
    --home-card: #ffffff;
    --home-line: #e2ebef;

    min-height: 100vh;

    background: var(--home-bg);

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


.tide-home *,
.tide-home *::before,
.tide-home *::after {
    box-sizing: border-box;
}


.tide-home-container {
    width: min(
        1320px,
        calc(100% - 48px)
    );

    margin: 0 auto;
}


/* =========================================================
   HERO
========================================================= */

.tide-home-hero {
    position: relative;

    overflow: hidden;

    padding:
        74px
        0
        72px;

    background:
        radial-gradient(
            circle at 78% 12%,
            rgba(40, 190, 197, 0.34),
            transparent 28%
        ),
        linear-gradient(
            135deg,
            #061928 0%,
            #0a3145 55%,
            #087b7a 100%
        );

    color: #ffffff;
}


.tide-home-hero::after {
    content: "";

    position: absolute;

    left: -10%;
    right: -10%;
    bottom: -100px;

    height: 180px;

    border-radius: 50% 50% 0 0;

    background:
        rgba(
            255,
            255,
            255,
            0.05
        );
}


.tide-home-hero__grid {
    position: relative;

    z-index: 1;

    display: grid;

    grid-template-columns:
        minmax(0, 0.9fr)
        minmax(520px, 1.1fr);

    gap: 70px;

    align-items: center;
}


.tide-home-eyebrow {
    display: inline-block;

    margin-bottom: 16px;

    color: #71e5dc;

    font-size: 12px;
    font-weight: 900;

    letter-spacing: 0.14em;
}


.tide-home-hero__copy h1 {
    margin: 0;

    color: #ffffff !important;

    font-size: clamp(
        48px,
        6vw,
        82px
    );

    font-weight: 900;

    line-height: 1;

    letter-spacing: -0.06em;
}


.tide-home-hero__copy > strong {
    display: block;

    margin-top: 18px;

    color: #7aeee5;

    font-size: 26px;
    font-weight: 800;
}


.tide-home-hero__copy > p {
    max-width: 560px;

    margin:
        20px
        0
        0;

    color:
        rgba(
            255,
            255,
            255,
            0.75
        ) !important;

    font-size: 16px;

    line-height: 1.8;
}


.tide-home-stats {
    display: flex;

    gap: 12px;

    margin-top: 30px;
}


.tide-home-stats > div {
    min-width: 155px;

    padding:
        15px
        18px;

    border:
        1px solid
        rgba(
            255,
            255,
            255,
            0.13
        );

    border-radius: 14px;

    background:
        rgba(
            4,
            25,
            39,
            0.36
        );

    backdrop-filter:
        blur(12px);
}


.tide-home-stats span {
    display: block;

    color:
        rgba(
            255,
            255,
            255,
            0.57
        );

    font-size: 11px;
}


.tide-home-stats strong {
    display: block;

    margin-top: 5px;

    color: #ffffff;

    font-size: 17px;
}


.tide-home-primary-button {
    display: inline-flex;

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

    min-width: 180px;

    margin-top: 26px;

    padding:
        14px
        20px;

    border:
        1px solid
        rgba(
            255,
            255,
            255,
            0.28
        );

    border-radius: 12px;

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

    color: #ffffff !important;

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

    transition:
        transform 0.2s ease,
        background 0.2s ease;
}


.tide-home-primary-button:hover {
    transform:
        translateY(-2px);

    background:
        rgba(
            255,
            255,
            255,
            0.14
        );
}


/* =========================================================
   MAP
========================================================= */

.tide-home-map-card {
    padding:
        20px
        24px
        24px;

    border:
        1px solid
        rgba(
            255,
            255,
            255,
            0.16
        );

    border-radius: 28px;

    background:
        rgba(
            5,
            28,
            43,
            0.28
        );

    backdrop-filter:
        blur(14px);
}


.tide-home-map-card__head {
    display: flex;

    justify-content: space-between;

    align-items: end;

    gap: 20px;

    padding:
        0
        2px
        12px;

    border-bottom:
        1px solid
        rgba(
            255,
            255,
            255,
            0.12
        );
}


.tide-home-map-card__head span {
    color: #7aeee5;

    font-size: 12px;
    font-weight: 800;
}


.tide-home-map-card__head strong {
    color: #ffffff;

    font-size: 18px;
}


.tide-home-map {
    position: relative;

    width: min(
        100%,
        470px
    );

    aspect-ratio: 2 / 2.45;

    margin:
        10px
        auto
        0;
}


.tide-home-map__image {
    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: contain;

    opacity: 0.72;

    filter:
        brightness(0)
        invert(93%)
        sepia(15%)
        saturate(900%)
        hue-rotate(130deg)
        brightness(105%);
}


.tide-map-pin {
    position: absolute;

    display: inline-flex;

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

    min-width: 76px;

    padding:
        8px
        11px;

    border:
        1px solid
        rgba(
            255,
            255,
            255,
            0.4
        );

    border-radius: 999px;

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

    color: #173247 !important;

    font-size: 12px;
    font-weight: 900;

    box-shadow:
        0 8px 24px
        rgba(
            0,
            0,
            0,
            0.15
        );

    transition:
        transform 0.2s ease,
        background 0.2s ease;
}


.tide-map-pin:hover {
    transform:
        translateY(-2px);

    background: #7aeee5;
}


.tide-map-pin.is-gyeonggi {
    left: 13%;
    top: 23%;
}


.tide-map-pin.is-gangwon {
    right: 15%;
    top: 13%;
}


.tide-map-pin.is-chungnam {
    left: 8%;
    top: 40%;
}


.tide-map-pin.is-jeonbuk {
    left: 13%;
    top: 57%;
}


.tide-map-pin.is-jeonnam {
    left: 13%;
    top: 73%;
}


.tide-map-pin.is-gyeongbuk {
    right: 4%;
    top: 43%;
}


.tide-map-pin.is-gyeongnam {
    right: 12%;
    top: 67%;
}

.tide-map-pin.is-jeju {
    left: 45%;
    bottom: 0;
}


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

.tide-home-section {
    padding:
        70px
        0;
}


.tide-home-section-title {
    display: flex;

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

    gap: 30px;

    margin-bottom: 28px;
}


.tide-home-section-title span {
    display: block;

    margin-bottom: 8px;

    color: var(--home-teal);

    font-size: 11px;
    font-weight: 900;

    letter-spacing: 0.12em;
}


.tide-home-section-title h2 {
    margin: 0;

    color: var(--home-text) !important;

    font-size: 34px;
    font-weight: 900;

    letter-spacing: -0.05em;
}


.tide-home-section-title p {
    margin:
        9px
        0
        0;

    color: var(--home-muted) !important;

    line-height: 1.7;
}


/* =========================================================
   POPULAR
========================================================= */

.tide-popular-grid {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 14px;
}


.tide-popular-card {
    display: grid;

    grid-template-columns:
        48px
        1fr
        auto;

    align-items: center;

    gap: 14px;

    padding:
        20px;

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

    border-radius: 18px;

    background: #ffffff;

    color: var(--home-text) !important;

    box-shadow:
        0 12px 36px
        rgba(
            32,
            75,
            90,
            0.06
        );

    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}


.tide-popular-card:hover {
    transform:
        translateY(-3px);

    border-color:
        rgba(
            13,
            148,
            136,
            0.45
        );

    box-shadow:
        0 18px 44px
        rgba(
            32,
            75,
            90,
            0.1
        );
}


.tide-popular-card__icon {
    display: flex;

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

    width: 48px;
    height: 48px;

    border-radius: 14px;

    background: #e9f8f7;

    color: var(--home-teal);

    font-size: 27px;
    font-weight: 900;
}


.tide-popular-card strong {
    display: block;

    color: var(--home-text);

    font-size: 18px;
}


.tide-popular-card div span {
    display: block;

    margin-top: 3px;

    color: var(--home-muted);

    font-size: 12px;
}


.tide-popular-card em {
    color: var(--home-teal);

    font-size: 18px;
    font-style: normal;
}


/* =========================================================
   REGIONS
========================================================= */

.tide-region-section {
    padding-top: 10px;
}


.tide-region-grid {
    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 16px;
}


.tide-region-card {
    scroll-margin-top: 110px;

    padding:
        24px;

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

    border-radius: 22px;

    background: #ffffff;

    box-shadow:
        0 12px 35px
        rgba(
            30,
            70,
            85,
            0.05
        );
}


.tide-region-card__head {
    display: flex;

    align-items: flex-start;

    gap: 12px;

    margin-bottom: 18px;
}


.tide-region-card__wave {
    display: flex;

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

    flex:
        0
        0
        42px;

    width: 42px;
    height: 42px;

    border-radius: 13px;

    background:
        linear-gradient(
            135deg,
            #0d9488,
            #2b86aa
        );

    color: #ffffff;

    font-size: 24px;
}


.tide-region-card h3 {
    margin: 0;

    color: var(--home-text) !important;

    font-size: 20px;
}


.tide-region-card__head p {
    margin:
        5px
        0
        0;

    color: var(--home-muted) !important;

    font-size: 12px;

    line-height: 1.5;
}


.tide-region-links {
    display: flex;

    flex-direction: column;

    gap: 7px;
}


.tide-region-links > a,
.tide-region-link {
    display: flex;

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

    gap: 10px;

    min-height: 38px;

    padding:
        9px
        12px;

    border-radius: 10px;

    background: #f4f8fa;

    color: #294052 !important;

    font-size: 13px;
}


.tide-region-links > a {
    transition:
        background 0.2s ease,
        color 0.2s ease;
}


.tide-region-links > a:hover {
    background: #e7f7f5;

    color: var(--home-teal) !important;
}


.tide-region-links em {
    color: var(--home-muted);

    font-size: 11px;
    font-style: normal;
}


.tide-region-link.is-coming {
    opacity: 0.55;
}


/* =========================================================
   INFO
========================================================= */

.tide-home-info-section {
    padding-top: 10px;
}


.tide-home-info-grid {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 16px;

    padding:
        28px;

    border-radius: 24px;

    background:
        linear-gradient(
            135deg,
            #eaf8fa,
            #f4fbfc
        );
}


.tide-home-info-grid article {
    padding:
        18px
        20px;
}


.tide-home-info-grid article > span {
    color: var(--home-teal);

    font-size: 12px;
    font-weight: 900;
}


.tide-home-info-grid h2 {
    margin:
        8px
        0
        8px;

    color: var(--home-text) !important;

    font-size: 19px;
}


.tide-home-info-grid p {
    margin: 0;

    color: var(--home-muted) !important;

    font-size: 13px;

    line-height: 1.7;
}


/* =========================================================
   SEO
========================================================= */

.tide-home-seo {
    padding:
        20px
        0
        90px;
}


.tide-home-seo h2 {
    margin:
        0
        0
        12px;

    color: var(--home-text) !important;

    font-size: 27px;
}


.tide-home-seo p {
    max-width: 900px;

    margin: 0;

    color: #5b6f7d !important;

    line-height: 1.8;
}


.tide-home-empty {
    padding:
        30px;

    border:
        1px dashed
        var(--home-line);

    border-radius: 16px;

    background: #ffffff;

    color: var(--home-muted);

    text-align: center;
}


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

@media (
    max-width: 1024px
) {

    .tide-home-hero {
        padding:
            44px
            0
            46px;
    }


    .tide-home-hero__grid {
        grid-template-columns:
            1fr;

        gap: 34px;
    }


    .tide-home-map-card {
        max-width: 650px;

        margin: 0 auto;
    }


    .tide-popular-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }


    .tide-region-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }

}


@media (
    max-width: 640px
) {

    .tide-home-container {
        width:
            calc(
                100%
                - 24px
            );
    }


    .tide-home-hero__copy h1 {
        font-size: 46px;
    }


    .tide-home-hero__copy > strong {
        font-size: 20px;
    }


    .tide-home-hero__copy > p {
        font-size: 14px;
    }


    .tide-home-stats {
        display: grid;

        grid-template-columns:
            1fr
            1fr;
    }


    .tide-home-stats > div {
        min-width: 0;
    }


    .tide-home-map-card {
        padding:
            16px
            12px
            18px;
    }


    .tide-home-map {
        width: 100%;
    }


    .tide-map-pin {
        min-width: 62px;

        padding:
            6px
            8px;

        font-size: 10px;
    }


    .tide-home-section {
        padding:
            48px
            0;
    }


    .tide-home-section-title h2 {
        font-size: 28px;
    }


    .tide-popular-grid,
    .tide-region-grid,
    .tide-home-info-grid {
        grid-template-columns:
            1fr;
    }


    .tide-home-info-grid {
        padding: 16px;
    }

}
