:root {
    --primary-blue: #0C4076;
    --primary-blue-20: #0c407633;
    --primary-blue-50: #0c407680;
    --primary-blue-60: #0c407699;
    --secondary-blue: #007FE3;
    --secondary-blue-20: #007fe333;
    --primary-yellow: #FBBA00;
    --gold-50: #fbba0080;
    --yellow-20: #fbba0033;
    --light-bg: #f7f7f7;
    --text-dark: #222;
    --text-light: #fff;
    --radius: 1rem;
    --font-family: "Montserrat", sans-serif;
    --alert: #FF4646;
    --header-height: 146px;
}

* {
    box-sizing: border-box;
    font-weight: 400;
}

html, body {
    margin: 0;
    font-family: var(--font-family);
    background-color: var(--light-bg);
    color: var(--primary-blue);
    height: 100%;
    overflow: hidden;
}
p{
    margin: 0;
    margin-block-start: 0;
    margin-block-end: 0;
}
.app-header {
    background-color: var(--primary-yellow);
    color: var(--text-light);
    padding: 10px 20px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    height: 50px;
    display: flex;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 1;
}
.logo {
    height: 18px;
    width: auto;
}
.language-dropdown {
    display: flex;
    align-items: center;
    position: relative;
}
.language-dropdown select {
    border-radius: 4px;
    background: #FFF;
    color: var(--primary-blue);
    appearance: none;
    cursor: pointer;
    border: none;
    padding: 10px 30px 10px 10px;
    position: relative;
}
.chevron-icon {
    position: absolute;
    pointer-events: none;
    right: 10px;
    top: 50%;
    transform: translateY(-55%);
    width: 14px;
    height: 14px;
}
.info-block{
    background: var(--primary-blue);
    color: #fff;
    border-bottom: 1px solid #fff3;
    padding: 15px 30px;
    text-align: center;
}
.info-block--primary{
    font-size: 16px;
    text-transform: uppercase;
    display: flex;
    justify-content: center;
}
.info-block--sec{
    font-size: 18px;
    color: #fff7;
    position: relative;
    padding-bottom: 40px;
}
.status-card {
    background: white;
    margin: 0;
    padding: 20px;
    border-radius: 30px 30px 0 0;
    text-align: center;
    box-shadow: 0px 4px 11px 0px rgba(12, 64, 118, 0.15);
    margin-top: -30px;
    z-index: 99999;
    position: relative;
    height: 100%;
}

.status-card .icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.status-card h2 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.status-card p {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 1.5rem;
}

.package-info{
    margin-bottom: 60px;
}
.info-row{
    border-bottom: 1px solid var(--primary-blue-20);
    padding: 15px 10px;
    display: flex;
    flex-direction: column;

}
.info-row:last-child {
    border-bottom: none;
}

.info-row .label{
    color: var(--primary-blue-50);
    font-size: 16px;
    font-weight: 400;
}

.info-row .value{
    color: var(--primary-blue);
    font-size: 18px;
}
.info-row .value.value-large{
    font-size: 24px;
    font-weight: 700;
    text-transform: uppercase;
}
.alert-wrapper {
    position: relative;
    width: 110px;
    height: 110px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

.alert-pulse {
    position: absolute;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background-color: rgba(255, 0, 0, 0.25);
    animation: pulse-scale 0.5s ease-out infinite;
    z-index: 0;
}

.alert-icon {
    width: 80px;
    height: 80px;
    background-color: var(--alert);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
}

.alert-icon img {
    width: 36px;
    height: auto;
    z-index: 2;
    margin-bottom: 5px;
}

@keyframes pulse-scale {
    0% {
        transform: scale(0.95);
        opacity: 0.7;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.3;
    }
    100% {
        transform: scale(0.95);
        opacity: 0.7;
    }
}
.alert-title{
    color: var(--alert);
    font-size: 22px;
    font-weight: 600;
}
.main-container{
    position: relative;
    position: relative;
    height: calc(100vh - var(--header-height, 208px));
    width: 100%;

}

#map {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}
.gmnoprint.gm-style-mtc-bbw,
.gm-control-active.gm-fullscreen-control{
    margin-top: 70px !important;
}
.gm-svpc,
.gm-control-active{
    margin-top: -20px !important;
}
.search-wrapper{
    display: flex;
    justify-content: space-between;
    margin: 0 10px;
    gap: 10px;
    z-index: 10;
    position: relative;
    padding: 10px 0;
}
#search {
    width: 100%;
    padding: 10px 15px 10px 35px;
    font-size: 16px;
    border: none;
    border-radius: 4px;
    height: 50px;
    box-shadow: 0px 4px 10px 0px rgba(12, 64, 118, 0.30);
    color: var(--primary-blue);
    background: #fff url('../img/search-icon.svg') no-repeat  10px center ;
    background-size: 18px 18px;
    font-size: 18px;
    font-family: var(--font-family);
}
#search::placeholder{
    color: var(--primary-blue);
    font-family: var(--font-family);
}
#search:focus-visible {
    outline: none;
}

#search-results {
    position: absolute;
    background: white;
    border: 1px solid #ccc;
    list-style: none;
    max-height: 250px;
    overflow-y: auto;
    z-index: 15;
    padding: 0;
    margin: 0;
    top: 60px;
    left: 10px;
    right: 10px;
    border: none;
}

#search-results li {
    padding: 10px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
}

#search-results li:hover {
    background-color: #f2f2f2;
}
#collapsed-list {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 100;
    transition: transform 0.3s ease-in-out;
    transform: translateY(100%);
    display: flex;
    flex-direction: column;
}

#collapsed-list.show {
    transform: translateY(0);
}

#collapsed-list.peek {
    transform: translateY(calc(100% - 40px));
}

#collapsed-handle {
    height: 40px;
    background: url('../img/lines-icon.svg') no-repeat center;
    background-color: white;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    cursor: pointer;
    z-index: 10;
    flex-shrink: 0;
}

#collapsed-content {
    max-height: 50vh;
    overflow-y: auto;
    flex: 1;
}


.card-info{
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 20px;
}

.location-card {
    background: #fff;
    border-radius: 0;
    padding: 20px;
    border-top: 1px solid var(--primary-blue-20);
}

.location-card h3 {
    margin: 0 0 5px;
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-blue);
}

.location-card p {
    margin: 0 0 5px;
    font-size: 16px;
    color: var(--primary-blue);
    line-height: 14px;
}
.location-card .location-details{
    color: var(--primary-blue-50);
    font-size: 14px;
    margin-bottom: 12px;
}
.badge {
    display: flex;
    padding: 8px 20px;
    font-size: 10px;
    line-height: 100%;
    border-radius: 4px;
    font-weight: 600;
    color: var(--primary-blue);
    background-color: var(--yellow-20);
    width: max-content;
}

.placanje {
    background-color: var(--secondary-blue-20);
}

.placanje-k {
    background-color: var(--secondary-blue-20);
}

.btn-preusmeri {
    margin-top: 20px;
    background: var(--secondary-blue);
    color: white;
    font-weight: 500;
    font-size: 18px;
    line-height: 18px;
    border: none;
    padding: 12px;
    border-radius: 4px;
    width: 100%;
    cursor: pointer;
    height: 50px;
    text-transform: uppercase;
    transition: all 0.3s ease-in-out;
    font-family: var(--font-family);
}
.info-bar-container {
    overflow-x: auto;
    background-color: var(--primary-blue);
    padding: 10px 0;
}

.info-bar-scroll {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    padding: 0 10px;
}

.info-bar {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    border-radius: 4px;
    font-size: 12px;
    line-height: 14px;
    color: white;
    max-width: 100%;
    flex-shrink: 0;
}

.icon {
    min-width: 16px;
    height: 16px;
    background-image: url('../img/info-icon.svg');
    background-size: contain;
    background-repeat: no-repeat;
    margin-right: 8px;
    flex-shrink: 0;
}

.info-bar.blue {
    background-color: var(--secondary-blue);
}

.info-bar.gold {
    background-color: var(--gold-50);
}
.info-text {
    overflow-wrap: break-word;
    word-break: break-word;
    white-space: normal;

}


.redirect-modal {
    background: white;
    border-radius: 12px 12px 0 0;
    padding: 45px 20px;
    text-align: center;
    font-size: 14px;
    color: #333;
}
.address-details{
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 50px;
    border-bottom: 1px dotted var(--secondary-blue);
}
.redirect-modal .question {
    color: var(--primary-blue);
    text-align: center;
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    line-height: 20px;
    margin-bottom: 80px;
    padding: 0 30px;
}
.redirect-modal .address {
    font-weight: 700;
    font-size: 24px;
    color: var(--primary-blue);
    margin: 0 0 10px 0;
    line-height: 1;
}
.redirect-modal .location-post {
    font-weight: 400;
    font-size: 20px;
    color: var(--primary-blue);
    margin: 0 0 5px 0;
    line-height: 1;
}
.redirect-modal .location-details {
    font-weight: 400;
    font-size: 14px;
    color: var(--primary-blue-50);
    margin: 0 0 20px 0;
    line-height: 14px;
}

.redirect-modal .badge{
    position: relative;
    margin-bottom: 20px;
}
.redirect-modal .badge:after{
    content: "";
    background: url('../img/icon-paketomat.svg') no-repeat right top;
    background-size: 24px 30px;
    width: 24px;
    height: 30px;
    position: absolute;
    right: -10px;
    top: -10px;
}
.redirect-modal .badge.placanje:after{
    content: "";
    background: url('../img/icon-placanje.svg') no-repeat right top;
    background-size: 24px 30px;
    width: 24px;
    height: 30px;
    position: absolute;
    right: -10px;
    top: -10px;
}
.redirect-modal .badge.placanje-k:after{
    content: "";
    background: url('../img/icon-kartica.svg') no-repeat right top;
    background-size: 24px 30px;
    width: 24px;
    height: 30px;
    position: absolute;
    right: -10px;
    top: -10px;
}
.work-hours{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--primary-blue);
    font-size: 18px;
}

.redirect-modal .btn-confirm {
    margin-top: 20px;
    background: #0074e0 url('../img/arrow-right.svg') no-repeat right 20px center;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
    font-size: 20px;
    text-align: left;
    height: 60px;
    font-family: var(--font-family);
}
.redirect-modal .package-details{
    padding: 20px 0;
}

.redirect-modal .link-cancel {
    margin-top: 30px;
    color: var(--secondary-blue);
    cursor: pointer;
    text-decoration: none;
    font-size: 18px;
    transition: all 0.3s ease-in-out;
}
.redirect-modal .package-details{
    display: flex;
    flex-direction: column;
    gap: 10px;
    color: var(--primary-blue);
    font-size: 16px;
}
.redirect-modal .package-details div{
    display: flex;
    justify-content: space-between;
}
.redirect-modal .package-details .label{
    display: flex;
    justify-content: space-between;
    color: var(--primary-blue-60);
}
.redirect-modal .package-details .amount{
    font-weight: 700;
}

.success-modal-overlay,
.error-modal-overlay{
    position: fixed;
    inset: 0;
    background: var(--primary-blue-60);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;

}

.success-modal,
.error-modal{
    background: white;
    padding: 60px 20px;
    border-radius: 30px;
    text-align: center;
    width: 90%;
    max-width: 400px;
    font-size: 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}
.success-modal .higlight-info{
    font-size: 20px;
    line-height: 26px;
}
.success-modal .check-icon {
    width: 100px;
    height: 100px;
    border-radius: 20px;
    margin: 0 auto 20px;
    background: #007fe34d url('../img/succes-icon.svg') no-repeat center;
}
.error-modal{
    gap: 10px;
}
.error-modal .btn-close{
    margin-top: 20px;
}
.btn-close {
    background: none;
    border: none;
    color: var(--secondary-blue);
    font-size: 18px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    font-family: var(--font-family);
}

#collapsed-list.hidden {
    display: none;
}
.fw-600{
    font-weight: 600;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: var(--primary-blue-60);
    z-index: 999;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

.modal-content.look-like-collapsed {
    width: 100%;
    background: white;
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -4px 16px rgba(0,0,0,0.2);
    overflow-y: auto;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}
.alert-msg{
    color: #FF4646;
    text-align: center;
    font-size: 22px;
    font-style: normal;
    font-weight: 600;
    line-height: 22px;
}
.marker-icon{
/*    width: 40px;
    height: 50px;*/
}
@media (hover: hover) and (pointer: fine) {
  .marker-icon {
    transition: transform 0.2s ease;
  }

  .marker-wrapper:hover .marker-icon {
    transform: scale(1.1);
  }
}
.gmnoprint.gm-style-mtc-bbw{
    margin-left: 10px !important;
}
.gm-control-active.gm-fullscreen-control{
    margin-right: 10px !important;
}
footer{
    display: none;
}

.pulse-marker {
    width: 20px;
    height: 20px;
    background: rgba(0, 123, 255, 0.6);
    border: 2px solid white;
    border-radius: 50%;
    animation: pulse 2s infinite;
    box-shadow: 0 0 10px rgba(0, 123, 255, 0.8);
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        opacity: 1;
    }
    70% {
        transform: scale(1.5);
        opacity: 0;
    }
    100% {
        transform: scale(0.95);
        opacity: 0;
    }
}
.gmnoprint.gm-bundled-control.gm-bundled-control-on-bottom{
    bottom: 200px !important;
}
.cluster-icon {
  transition: transform 0.2s ease;
}

.cluster-icon:hover {
  transform: scale(1.05);
  cursor: pointer;
}
