@font-face {
    font-family: "mainp";
    src: url('../Fonts/Parkinsans-Regular.ttf');
}

/*Navigation Menu*/
body {
    --PrimaryColor: #026af0;
    --PrimaryLightColor: #4d92f7 !important;
    --PrimaryDarkColor: #0250c4;
    --PrimaryRgb: 2, 106, 240;
    --OnPrimaryColor: #ffffff;
    --LightColor: #e4e4e4;
    --GrayColor: #444;
    --DarkColor: #202020;
    --DarkerColor: #181818;
    overscroll-behavior: none;
    --nav-height-client: 70px;
    --nav-padding: 10px;
    --client-page-gutter: 16px;
    --client-bottom-nav-height: 66px;
    --client-nav-bottom: env(safe-area-inset-bottom, 0px);
    --client-content-bottom: calc(var(--client-bottom-nav-height) + var(--client-nav-bottom) + 16px);
    padding: 0px;
    margin: 0px;
}

html, body {
    background-color: var(--LightColor);
}

#app:has(.bottom-nav) > .main {
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0;
}

.main.ios {
    padding-top: env(safe-area-inset-top, 0px);
}

body:has(.store-root, .fav-root, .history-root) {
    background-color: var(--DarkColor);
}

* {
    -webkit-user-select: none;
    /* Safari */
    -moz-user-select: none;
    /* Firefox */
    -ms-user-select: none;
    /* Internet Explorer/Edge */
    user-select: none;
    /* Standard syntax */
}

h1, h2, h3, h4, h5, h6, button {
    color: var(--DarkColor);
}

input {
    min-width: 100px;
}

/* ===== Auth (Login / Sign Up) ===== */
main:has(.sign-container) {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    background:
            radial-gradient(1100px 600px at 12% -12%, color-mix(in srgb, var(--PrimaryColor), transparent 72%), transparent 60%),
            radial-gradient(900px 520px at 112% 115%, color-mix(in srgb, var(--PrimaryDarkColor), transparent 78%), transparent 55%),
            linear-gradient(160deg, #f6f9ff 0%, #e9eefb 100%);
}

.sign-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 2.25rem 2rem;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 22px;
    box-shadow:
            0 24px 50px -14px color-mix(in srgb, var(--PrimaryDarkColor), transparent 68%),
            0 6px 20px rgba(16, 24, 40, 0.08);
    max-width: min(420px, 92%);
    width: 100%;
    max-height: 92vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
    animation: signCardIn 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes signCardIn {
    from { opacity: 0; transform: translate(-50%, -46%); }
    to   { opacity: 1; transform: translate(-50%, -50%); }
}

.sign-logo {
    width: 66px;
    height: 66px;
    object-fit: contain;
    align-self: center;
    padding: 9px;
    border-radius: 18px;
    background: color-mix(in srgb, var(--PrimaryColor), transparent 88%);
    box-shadow: 0 6px 16px -6px color-mix(in srgb, var(--PrimaryDarkColor), transparent 55%);
}

.sign-container h2 {
    font-size: 1.85em;
    margin: 0;
    text-align: center;
    letter-spacing: -0.4px;
    color: var(--DarkColor);
}

.sign-container .sign-subtitle {
    margin: -8px 0 4px;
    text-align: center;
    color: #6b7280;
    font-size: 0.95em;
}

/* Inputs inside the auth card */
.sign-container .cig > input {
    margin-top: 0;
    width: 100%;
    padding: 13px 44px 13px 16px;
    border: 1.5px solid #e3e7ef;
    border-radius: 12px;
    background: #fff;
    font-size: 1em;
}

.sign-container .cig label {
    top: 50%;
    left: 14px;
}

.sign-container .cig input:focus {
    border-color: var(--PrimaryColor);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--PrimaryColor), transparent 85%);
}

.sign-container .cig input:focus + label,
.sign-container .cig input:not(:placeholder-shown) + label {
    top: -8px;
    left: 12px;
    font-size: 12px;
    padding: 0 6px;
    background: #fff;
    color: var(--PrimaryColor);
}

.sign-container .cig > .icon {
    top: 0;
    bottom: 0;
    border-left: none;
    color: #9aa3b2;
}

.sign-container .cig:has(input:focus) > .icon {
    color: var(--PrimaryColor);
    border-left: none;
}

.sign-container .c-bttn.w-100 {
    padding: 12px 4px;
}

/* Separator */
.separator {
    margin: 0.35rem 0;
    text-align: center;
    position: relative;
}

.separator:before,
.separator:after {
    content: '';
    width: 42%;
    height: 1px;
    background: #d9deea;
    position: absolute;
    top: 50%;
}

.separator:before {
    left: 0;
}

.separator:after {
    right: 0;
}

.separator span {
    background: transparent;
    padding: 0 12px;
    position: relative;
    z-index: 1;
    color: #8a90a0;
    font-size: 0.88em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Social / provider buttons */
.c-bttn.google,
.c-bttn.apple,
.c-bttn.whatsapp {
    background: none;
    font-size: 1.05em;
    color: #fff;
}

.c-bttn.apple {
    background-color: #000;
}

.c-bttn.google {
    background-color: #4285F4;
}

.c-bttn.whatsapp {
    background: linear-gradient(0deg, #1eb455 0%, #25D366 100%);
}

/* Store */
.store-intro {
    font-size: 1.3em;
    white-space: pre-wrap;
}


.store-services {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.ss-product {
    position: relative;
    width: 100%;
    height: 20vh;
    border: none;
    text-align: start;
}

.ss-product > img,
.ss-product > div,
.ss-product::before {
    position: absolute;
    inset: 0px;
}

.ss-product img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.ss-product::before {
    content: ' ';
    z-index: 1;
    /* backdrop-filter: blur(2px); */
    background: linear-gradient(-90deg, rgba(0, 0, 0, 0) 10%, rgba(0, 0, 0, 0.8) 80%);
    background: linear-gradient(-90deg, rgba(0, 0, 0, 0) 10%, color-mix(in srgb, var(--PrimaryColor), rgba(0, 0, 0, 0.5) 70%) 80%);
}

.ss-product > div {
    z-index: 1;
    padding: 0px 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    justify-content: center;
    color: white;
    font-size: 1.1em;
}

.ss-product > div > * {
    padding: 0px;
    margin: 0px;
    color: white;
}

.ss-product > span {
    --size: 16px;
    --index: 0;
    content: ' ';
    position: absolute;
    bottom: calc(var(--size) * -0.5);
    width: var(--size);
    height: var(--size);
    border-radius: 4px;
    background-color: var(--PrimaryColor);
    z-index: 3;
    display: flex;
    justify-content: center;
    align-items: center;
    color: transparent;
    font-size: 1.2em;
    transform: rotate(45deg);
    transition: left 0.4s ease;
    left: calc(4% + (var(--index) * (var(--size) *1.5)));
}

.ss-product > span:nth-child(3) {
    --index: 0;
}

.ss-product > span:nth-child(4) {
    --index: 1;
}

.ss-product > span:nth-child(5) {
    --index: 2;
    transition-property: all;
}

.ss-product.active > span:nth-child(5) {
    width: 90px;
    height: 35px;
    bottom: -15px;
    overscroll-behavior: contain;
    color: white;
    left: 55%;
    transform: rotate(0deg);
}

.ss-product {
    filter: drop-shadow(0px 0px 2px color-mix(in srgb, var(--PrimaryColor), transparent 50%));
    transition: filter 0.7s ease-in;
}

.ss-product.active {
    filter: drop-shadow(0px 10px 6px color-mix(in srgb, var(--PrimaryColor), transparent 50%));
    filter: drop-shadow(0px 5px 10px rgba(0,0,0,0.6));
}


.ss-back {
    position: fixed;
    right: -100px;
    top: 50%;
    transform: translateY(-50%);
    transition: right ease-in-out 350ms;
}

.ss-back.active {
    right: 0px;
}

.ss-back > .c-bttn {
    width: auto;
    border-radius: 5em 0em 0em 5em;
    font-size: 30px;
    padding: 0px;
    font-family: 'iconBold';
    width: 45px;
    height: 60px;
}


/* Account */
.m-container {
    display: flex;
    flex-direction: column;
    margin: 0px 25px 20px 25px;
    background-color: white;
    gap: 20px;
    border-radius: 10px;
}

.m-location {
    display: flex;
    flex-direction: column;
}

.m-header {
    position: relative;
    text-align: start;
    padding-left: 30px;
    min-height: 52px;
    border: none;
    background-color: transparent;
}

.m-header > * {
    padding: 0px;
    margin: 0px;
}

.m-header::before {
    content: ' ';
    position: absolute;
    left: -12px;
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
    width: 25px;
    height: 25px;
    border-radius: 8px;
    background-color: var(--DarkColor);
    transition: background-color 0.3s ease;
}

.active > .m-header::before {
    background-color: var(--PrimaryDarkColor);
}

.m-body {
    max-height: 0px;
    opacity: 0;
    transition: 0.45s ease-out;
    transition-property: max-height, opacity;
    border-top: var(--PrimaryDarkColor) 3px solid;
    padding-inline: 10px;
    pointer-events: none;
}

.active > .m-body {
    max-height: 500vh;
    opacity: 1;
    transition-timing-function: ease-in;
    pointer-events: unset !important;
}

/* Map */
.map {
    margin: -10px;
}

.ol-overlaycontainer-stopevent {
    padding: 10px;
}


.rating {
    display: flex;
    flex-direction: row;
    justify-content: center;
    width: 100%;
}

.rating button:nth-child(1) {
    --index: 0;
}

.rating button:nth-child(2) {
    --index: 1;
}

.rating button:nth-child(3) {
    --index: 2;
}

.rating button:nth-child(4) {
    --index: 3;
}

.rating button:nth-child(5) {
    --index: 4;
}

.rating button {
    --index: 0;
    background-color: transparent;
    border: none;
    font-size: 30px;
    padding: 10px;
    font-family: 'icon';
    color: #FAB12F;
    animation: scaleDown 0.5s ease-out forwards;
    animation-delay: calc(70ms * (4 - var(--index))) !important;
}


.rating .active {
    font-family: 'iconBold';
    transform: scale(1);
    animation: scaleUp 0.5s ease-out forwards;
    animation-delay: calc(70ms * var(--index)) !important;
}



/* Define the scale-up animation */
@keyframes scaleUp {
    50% {
        transform: scale(2);
    }
}

@keyframes scaleDown {
    50% {
        transform: scale(0.3);
    }
}



.ss-carousel {
    position: relative;
    width: 100%;
    height: 30vh;
    border-top: var(--PrimaryDarkColor) 3px solid;
}

.ssc-ind {
    position: absolute;
    bottom: 0px;
    display: flex;
    flex-direction: row;
    width: 100%;
}

.ssc-ind > * {
    flex-grow: 1;
    border-radius: 0px !important;
    font-family: 'iconBold';
}

.ssc-images {
    position: relative;
    height: 100%;
    width: 100%;
    overflow: hidden;
}

.ssc-images > img {
    position: absolute;
    top: -100%;
    left: 0px;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 450ms ease;
    opacity: 0;
    transition-property: top, opacity;
}

.ssc-images > .active {
    top: 0%;
    opacity: 1;
}

.service-info {
    padding: 10px 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    background-color: white;
}

.service-info .title {
    font-size: 2em;
}

.multi-image-item {
    display: flex;
    flex-direction: row;
}

.multi-image-item *:first-child {
    flex-grow: 1;
}

.multi-image-item .c-bttn {
    width: 50px;
}

.multi-image-item .c-bttn .icon {
    font-size: 30px;
}


/*++History*/
.history-container {
    background-color: var(--LightColor);
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.history-item {
    display: flex;
    background-color: white;
    padding: 20px;
    border: none;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.history-item .info {
    margin-right: auto;
    text-align: start;
}

.history-item .title {
    font-size: 1.2em;
    font-weight: bold;
}

.history-item .state {
    font-weight: bold;
    margin-block: auto;
}

.history-item .primary {
    color: green;
}

.history-item .green {
    color: darkgreen;
}

.history-item .cancel {
    color: red;
}


.history-time {
    display: flex;
    flex-direction: column;
}

.ht-item.primary {
    --color: var(--PrimaryColor);
}

.ht-item.cancel {
    --color: red;
}

.ht-item.green {
    --color: green;
}


.ht-item {
    --space: 40px;
    position: relative;
    display: flex;
    color: white;
    padding: 10px 20px;
    border-radius: 4em;
    background-color: var(--color);
}

.ht-item > *:first-child {
    margin-right: auto;
}

.ht-item + .ht-item {
    margin-top: var(--space);
}


.ht-item + .ht-item::after {
    position: absolute;
    content: ' ';
    height: calc(var(--space) + 20px);
    width: 20px;
    top: calc((var(--space) * -1) - 10px);
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--color);
    border-radius: 2em;
    border: 5px var(--LightColor) solid;
}