﻿body {
    margin: 0;
}

.Home-Layout {
    margin: 0 1% 1% 1%;
    position: relative;
}

.home-header {
    padding: 65px 4px 20px;
    text-align: center;
}

    .home-header h1 {
        margin: 30px 8px 8px;
        font-weight: 700;
        font-size:48px;
    }

    .home-header h2 {
        font-size: 18px;
        color: #666;
    }

/* #region Location Body UI */

/* Location Block */

.search-card {
    max-width: 1300px;
    margin: auto;
    background: #fff;
    border: 1px solid #cdeff3;
    border-radius: 12px;
    box-shadow: 0 5px 13px rgba(0,0,0,0.2);
    overflow: visible;
}

.container {
    display: grid;
    /* padding: 21px 40px 0px; need to change while display the advance search*/
    padding: 21px 40px 30px;
    gap: 10px;
    grid-template-columns: 70% 30%;
}

    .container row {
        padding-top: 35px;
    }

.search-card-label {
    display: block;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
}

.input-box {
    display: flex;
    align-items: center;
    border: 1px solid #d9d9d9;
    border-radius: 8px;
    height: 40px;
    padding: 0 18px;
    background: white;
}

    .input-box i {
        color: #c5c5c5;
        margin-right: 12px;
        font-size: 22px;
    }

    .input-box input {
        border: none;
        outline: none;
        width: 100%;
        font-size: 16px;
    }

.select-box {
    position: relative;
}

    .select-box select {
        width: 100%;
        height: 40px;
        border: 1px solid #d9d9d9;
        border-radius: 8px;
        padding: 0 45px 0 35px;
        appearance: none;
        font-size: 16px;
        outline: none;
    }

    .select-box .select-icon {
        position: absolute;
        left: 15px;
        top: 50%;
        transform: translateY(-50%);
        color: #00a7b5;
        pointer-events: none;
    }

    .select-box .dropdown-icon {
        position: absolute;
        right: 15px;
        top: 50%;
        transform: translateY(-50%);
        color: #5c777d;
        pointer-events: none;
    }

.Location-btn-area {
    width: 250px;
    margin: auto;
    margin-top: 2%;
}

.Location-next-button {
    width: 100%;
    height: 40px;
    border: none;
    border-radius: 8px;
    background: #005b61;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}

    .Location-next-button:hover {
        background: #00484d;
    }

.autocomplete {
    position: relative;
}

.suggestion-list {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #e6edf3;
    border-radius: 10px;
    max-height: 280px;
    overflow-y: auto;
    box-shadow: 0 12px 35px rgba(0,0,0,.12);
    z-index: 9999;
    padding: 8px 0;
}

.suggestion-list-top {
    display: none;
    position: absolute;
    bottom: calc(100% + 8px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #e6edf3;
    border-radius: 10px;
    max-height: 320px;
    overflow-y: auto;
    box-shadow: 0 12px 35px rgba(0,0,0,.12);
    z-index: 9999;
    padding: 8px 0;
}

.suggestion-item {
    position: relative; 
    padding: 10px 45px 10px 24px;
    font-size: 16px;
    color: #243746;
    cursor: pointer;
    border-bottom: 1px solid #edf2f7;
    transition: .2s;
}

    .suggestion-item:last-child {
        border-bottom: none;
    }

    /* Right arrow */
    .suggestion-item::after {
        content: "\203A"; /* › */
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 30px;
        color: #8a96a3;
        transition: .2s;
    }

    .suggestion-item:hover,
    .suggestion-item.hover {
        background: #eef9fa;
        color: #008b97;
        border-left: 4px solid #00a7b5;
        padding-left: 20px;
    }

        .suggestion-item:hover::after,
        .suggestion-item.hover::after {
            color: #00a7b5;
            right: 16px;
        }

.suggestion-list::-webkit-scrollbar,
.suggestion-list-top::-webkit-scrollbar {
    width: 8px;
}

.suggestion-list::-webkit-scrollbar-thumb,
.suggestion-list-top::-webkit-scrollbar-thumb {
    background: #00a7b5;
    border-radius: 20px;
}

.suggestion-list::-webkit-scrollbar-track,
.suggestion-list-top::-webkit-scrollbar-track {
    background: #f3f5f7;
}

.autocomplete.active .suggestion-list,
.autocomplete.active .suggestion-list-top {
    display: block;
}

/* Advanced Search Block */

/* .advanced-search {
        border-top: 1px solid #d6e6ea;
        background: #f7fafb;
        margin-top: 1%;
    }

    .advanced-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 12px 40px;
        cursor: pointer;
        color: #005b61;
        font-weight: 600;
    }

        .advanced-header small {
            color: #999;
        }

    .advanced-body {
        display: none;
        grid-template-columns: 50% 50%;
        gap: 20px;
        padding: 0 40px 20px;
    }

        .advanced-body.show {
            display: grid;
        }
 */

/* #endregion Location Body UI */


/* #region Category and Search Keyword Body UI */

.location-panel {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0px 28px;
    background: #fff;
    border: 1px solid #dde7ee;
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(0,0,0,.08);
    width: 100%;
    max-width: 1300px;
    margin: auto;
    cursor: pointer;
    transition: .25s;
}

    .location-panel:hover {
        box-shadow: 0 12px 28px rgba(0,0,0,.12);
    }

.location-info {
    display: flex;
    align-items: center;
    gap: 40px;
}

.location-item {
    display: flex;
    align-items: center;
    gap: 18px;
}

.location-panel-icon-circle {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: #e9f8f7;
    color: #007b83;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
}

.location-text {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.location-panel-label {
    font-size: 16px;
    color: #4b5563;
}

.location-panel-value {
    font-size: 16px;
    font-weight: 700;
    color: #007b83;
}

.divider {
    width: 1px;
    height: 49px;
    background: #d9dee3;
}

.change-location {
    display: flex;
    align-items: center;
    gap: 14px;
    color: #007b83;
    font-size: 16px;
    font-weight: 600;
}

    .change-location i:last-child {
        font-size: 16px;
    }

.exclamation-icon-circle {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1px solid #ff0000;
    color: #007b83;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 16px;
}
/* Category Block */

.category-section {
    max-width: 1300px;
    margin: auto;
    padding: 30px 10px 0px;
}

    .category-section h1 {
        margin: 0;
        font-size: 20px;
        font-weight: 700;
        color: #222;
        padding-left: 15px;
    }

    .category-section h2 {
        margin: 5px 0 20px;
        color: #8d8d8d;
        font-size: 14px;
        font-weight: 400;
        padding-left: 15px;
    }

.category-slider {
    display: flex;
    align-items: center;
    gap: 20px;
}

.prev.disabled,
.next.disabled {
    opacity: .35;
    pointer-events: none;
    cursor: not-allowed;
}

.prev,
.next {
    display: none;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #0dcaf0;
    color: #0dcaf0;
    font-size: 18px;
    cursor: pointer;
    transition: .3s;
    text-decoration: none;
    outline: none;
}

    .prev:hover,
    .next:hover {
        background: #f5f5f5;
    }

    .prev i,
    .next i {
        text-decoration: none;
        line-height: 1;
    }

.category-grid {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 10px;
}

.category-card {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 7px;
    background: #fff;
    border: 1px solid #dce8ec;
    border-radius: 18px;
    box-shadow: 0 3px 10px rgba(0,0,0,.08);
    transition: .25s;
    cursor: pointer;
}

    .category-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 20px rgba(11, 107, 111, 0.25);
        border: 1px solid #B2D3D4;
        background: linear-gradient(135deg, white, #E8F6F7);
    }

.category-left {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    flex: 1;
}

.content {
    flex: 1;
    min-width: 0;
    align-self: flex-start;
    margin: 12px 0 12px;
}

.icon-circle {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    background: aliceblue;
}

.category-icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.content h3 {
    margin: 0;
    font-size: 12px;
    font-weight: 700;
    color: #222;
}

.content p {
    margin: 6px 0 0;
    color: #8f8f8f;
    font-size: 10px;
}

.category-card-arrow {
    color: #0D6970;
    font-size: 20px;
    margin-right: 7px;
    align-self: center;
}

.category-grid {
    flex: 1;
}

    .category-grid.page {
        display: grid;
        grid-template-columns: repeat(4,1fr);
        gap: 15px;
    }

    .category-grid.last-page {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

        .category-grid.last-page .category-card {
            width: calc((100% - 45px)/4);
        }

.external-category {
    background: #f3fbfc;
    border: 1px solid #b9e4e8;
}

.external-label {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    background: #dff5f7;
    color: #007b83 !important;
    font-size: 11px !important;
    font-weight: 600
}

.dot {
    cursor: pointer;
    height: 8px;
    width: 8px;
    margin: 0 2px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
}

    .dot-active, .dot:hover {
        background-color: #0dcaf0;
    }

.category-grid.no-categories {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100px;
    width: 100%;
}

.no-categories-message {
    font-size: 16px;
    text-align: center;
    width: 100%;
    color: #5F6B73;
}

/* Category and Seach data Split Block */

.group-info-title {
    position: relative;
    text-align: center;
    color: #00563F;
    opacity: 0.7;
    font-size: 18px;
    font-weight: 700;
    margin: 25px auto 25px;
    width: 100%;
    max-width: 1300px
}

    .group-info-title:before,
    .group-info-title:after {
        content: "";
        position: absolute;
        top: 50%;
        width: 44%;
        height: 0.5px;
        background: #00563F;
        opacity: 0.7;
    }

    .group-info-title:before {
        left: 0;
    }

    .group-info-title:after {
        right: 0;
    }

/* Seach keyword Data Block */

.searchdata-search-card {
    max-width: 1300px;
    margin: auto;
    background: #fff;
    border: 1px solid #d6e6ea;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
    overflow: visible;
}

.searchdata-container {
    display: grid;
    padding: 20px 25px 20px;
    grid-template-columns: 80% 20%;
    margin: initial;
}

    .searchdata-container row {
        padding-top: 35px;
    }

.searchdata-label {
    display: block;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
}

.searchdata-btn-area {
    width: 250px;
    display: flex;
    align-items: end;
}

.search-data-button {
    width: 100%;
    height: 40px;
    border: none;
    border-radius: 8px;
    background: #005b61;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}

    .search-data-button:hover {
        background: #00484d;
    }

.button-align {
    justify-self: end;
}


/* #endregion Category and Search Keyword UI */

@media (max-width:768px) {

    .Home-Layout {
        margin: 5%;
    }

    .container, .advanced-body {
        grid-template-columns: 1fr;
    }

    .Location-btn-area {
        width: 100%;
        margin-top: 5%;
    }

    .searchdata-btn-area {
        width: 100%;
        margin-top: 1%;
        margin-bottom: 0px;
    }

    .location-panel {
        flex-direction: column;
        align-items: stretch;
        padding: 16px;
        gap: 16px;
    }

    .location-info {
        flex-direction: column;
        gap: 14px;
    }

    .location-item {
        width: 100%;
    }

    .location-text {
        flex: 1;
        justify-content: space-between;
    }

    .location-panel-label,
    .location-panel-value {
        font-size: 15px;
    }

    .divider {
        display: none;
    }

    .change-location {
        width: 100%;
        justify-content: center;
        border-top: 1px solid #e5e7eb;
        padding-top: 14px;
        margin-top: 4px;
    }

    .home-header {
        padding: 0px 4px 20px;
    }

        .home-header h1 {
            margin: 0px 8px 8px;
            font-size: 32px;
        }

        .home-header h2 {
            font-size: 15px;
        }

    .search-card-label {
        font-size: 16px;
    }

    .category-section h1 {
        font-size: 16px;
    }

    .searchdata-label {
        font-size: 16px;
    }

    @media (max-width: 1024px) {

        .Home-Layout {
            margin: 5%;
        }

        .searchdata-container, .advanced-body, .category-grid, .category-grid.page,
        .category-grid.last-page {
            grid-template-columns: 1fr;
        }

            .category-grid.last-page .category-card {
                width: 100%;
            }

        .button-align {
            justify-self: stretch;
        }

        .Location-btn-area {
            width: 100%;
            margin-top: 5%;
        }

        .searchdata-btn-area {
            width: 100%;
            margin-bottom: 0px;
        }

        .group-info-title {
            font-size: 16px;
            margin: 20px auto;
        }

            .group-info-title::before,
            .group-info-title::after {
                width: 38%;
            }

        .category-slider {
            gap: 7px;
        }

        .prev, .next {
            width: 30px;
            height: 30px;
        }
    }
