/* =========================================================
   SMART PEKUA
   RENT A CAR
   Premium Mobile UI
========================================================= */


/* =========================================================
   PAGE
========================================================= */

.rent-a-car-page {
    width: 100%;
    box-sizing: border-box;
    padding-bottom: 90px;
    overflow-x: hidden;
}

.rent-a-car-page *,
.rent-car-card * {
    box-sizing: border-box;
}


/* =========================================================
   INTRO
========================================================= */

.rent-car-intro {

    width: 100%;

    display: flex;
    align-items: center;

    gap: 14px;

    margin-bottom: 18px;

    padding: 17px;

    border-radius: 20px;

    background:
        linear-gradient(
            135deg,
            #e3f2fd,
            #f8fcff
        );

    border: 1px solid
        rgba(30, 136, 229, 0.12);

    box-shadow:
        0 7px 20px
        rgba(0, 0, 0, 0.06);
}


.rent-car-intro-icon {

    flex: 0 0 54px;

    width: 54px;
    height: 54px;

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

    border-radius: 17px;

    background:
        linear-gradient(
            135deg,
            #2196f3,
            #1565c0
        );

    color: #ffffff;

    font-size: 27px;

    box-shadow:
        0 6px 15px
        rgba(30, 136, 229, 0.25);
}


.rent-car-intro-content {

    flex: 1;

    min-width: 0;
}


.rent-car-intro-content h2 {

    margin: 0 0 4px;

    color: #1565c0;

    font-size: 20px;

    font-weight: 700;
}


.rent-car-intro-content p {

    margin: 0;

    color: #607d8b;

    font-size: 13px;

    line-height: 1.55;
}


/* =========================================================
   SEARCH
========================================================= */

.rent-car-search-box {

    width: 100%;

    display: flex;
    align-items: center;

    gap: 10px;

    min-height: 52px;

    margin-bottom: 15px;

    padding: 0 15px;

    background: #ffffff;

    border: 1px solid
        rgba(30, 136, 229, 0.14);

    border-radius: 16px;

    box-shadow:
        0 5px 16px
        rgba(0, 0, 0, 0.07);

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


.rent-car-search-box:focus-within {

    border-color: #2196f3;

    box-shadow:
        0 6px 18px
        rgba(33, 150, 243, 0.15);
}


.rent-car-search-icon {

    flex: 0 0 auto;

    font-size: 20px;
}


.rent-car-search-box input {

    width: 100%;

    min-width: 0;

    height: 50px;

    border: 0;

    outline: 0;

    background: transparent;

    color: #263238;

    font-family: inherit;

    font-size: 14px;
}


.rent-car-search-box input::placeholder {

    color: #90a4ae;
}


/* =========================================================
   TOOLBAR
========================================================= */

.rent-car-toolbar {

    width: 100%;

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

    margin-bottom: 13px;

    padding: 0 3px;
}


.rent-car-count {

    color: #607d8b;

    font-size: 13px;

    font-weight: 600;
}


/* =========================================================
   LIST
========================================================= */

.rent-car-list {

    width: 100%;

    display: flex;
    flex-direction: column;

    gap: 16px;
}


/* =========================================================
   CARD
========================================================= */

.rent-car-card {

    width: 100%;
    max-width: 100%;

    overflow: hidden;

    background: #ffffff;

    border-radius: 22px;

    border: 1px solid
        rgba(30, 136, 229, 0.10);

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

    animation:
        rentCarCardIn
        0.45s
        ease both;

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


.rent-car-card:active {

    transform: scale(0.99);

    box-shadow:
        0 5px 15px
        rgba(0, 0, 0, 0.08);
}


/* =========================================================
   IMAGE
========================================================= */

.rent-car-image-box {

    position: relative;

    width: 100%;

    height: 210px;

    overflow: hidden;

    background:
        linear-gradient(
            135deg,
            #e3f2fd,
            #f5f5f5
        );
}


.rent-car-image {

    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    transition:
        transform 0.45s ease;
}


.rent-car-card:active
.rent-car-image {

    transform: scale(1.03);
}


/* =========================================================
   STATUS
========================================================= */

.rent-car-status {

    position: absolute;

    top: 12px;
    right: 12px;

    padding: 7px 11px;

    border-radius: 20px;

    color: #ffffff;

    font-size: 11px;

    font-weight: 700;

    backdrop-filter: blur(8px);

    box-shadow:
        0 4px 12px
        rgba(0, 0, 0, 0.15);
}


.rent-car-status.available {

    background:
        rgba(46, 125, 50, 0.92);
}


.rent-car-status.rented {

    background:
        rgba(198, 40, 40, 0.92);
}


/* =========================================================
   CONTENT
========================================================= */

.rent-car-content {

    width: 100%;

    padding: 17px;
}


.rent-car-name {

    margin: 0 0 5px;

    color: #17202a;

    font-size: 20px;

    font-weight: 700;

    line-height: 1.35;

    word-break: break-word;
}


.rent-car-type {

    display: inline-flex;
    align-items: center;

    gap: 5px;

    margin-bottom: 13px;

    padding: 6px 10px;

    border-radius: 20px;

    background: #e3f2fd;

    color: #1565c0;

    font-size: 12px;

    font-weight: 700;
}


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

.rent-car-info {

    width: 100%;

    display: flex;
    flex-direction: column;

    gap: 7px;

    margin-bottom: 12px;
}


.rent-car-info-item {

    width: 100%;

    display: flex;
    align-items: flex-start;

    gap: 8px;

    color: #546e7a;

    font-size: 13px;

    line-height: 1.5;

    word-break: break-word;
}


.rent-car-info-item span:first-child {

    flex: 0 0 20px;

    text-align: center;

    font-size: 15px;
}


/* =========================================================
   DESCRIPTION
========================================================= */

.rent-car-description {

    margin: 10px 0 14px;

    padding: 11px 12px;

    border-radius: 13px;

    background: #f8fafc;

    color: #607d8b;

    font-size: 13px;

    line-height: 1.6;
}


/* =========================================================
   ACTION BUTTONS
========================================================= */

.rent-car-actions {

    width: 100%;

    display: flex;

    gap: 9px;

    margin-top: 14px;
}


.rent-car-call-btn,
.rent-car-map-btn {

    flex: 1;

    min-width: 0;

    min-height: 45px;

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

    padding: 10px;

    border-radius: 13px;

    text-decoration: none;

    font-family: inherit;

    font-size: 14px;

    font-weight: 700;

    text-align: center;

    border: 0;

    cursor: pointer;
}


.rent-car-call-btn {

    background:
        linear-gradient(
            135deg,
            #43a047,
            #2e7d32
        );

    color: #ffffff;

    box-shadow:
        0 4px 12px
        rgba(46, 125, 50, 0.20);
}


.rent-car-map-btn {

    background:
        linear-gradient(
            135deg,
            #2196f3,
            #1565c0
        );

    color: #ffffff;

    box-shadow:
        0 4px 12px
        rgba(21, 101, 192, 0.20);
}


.rent-car-call-btn.disabled {

    opacity: 0.55;

    cursor: not-allowed;

    box-shadow: none;
}


/* =========================================================
   DETAILS BUTTON
========================================================= */

.rent-car-details-btn {

    width: 100%;

    min-height: 44px;

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

    gap: 7px;

    margin-top: 10px;

    padding: 10px;

    border-radius: 13px;

    background: #f1f8ff;

    border: 1px solid
        rgba(30, 136, 229, 0.12);

    color: #1565c0;

    text-decoration: none;

    font-size: 14px;

    font-weight: 700;

    transition:
        background 0.2s ease;
}


.rent-car-details-btn:active {

    background: #e3f2fd;
}


.rent-car-details-btn span {

    font-size: 18px;
}


/* =========================================================
   LOADING
========================================================= */

.rent-car-loading {

    width: 100%;

    padding: 45px 20px;

    text-align: center;

    background: #ffffff;

    border-radius: 20px;

    color: #607d8b;

    box-shadow:
        0 6px 18px
        rgba(0, 0, 0, 0.06);
}


.rent-car-loading-icon {

    width: 60px;
    height: 60px;

    margin: 0 auto 12px;

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

    border-radius: 50%;

    background: #e3f2fd;

    font-size: 30px;

    animation:
        rentCarPulse
        1.2s
        ease-in-out
        infinite;
}


.rent-car-loading p {

    margin: 0;

    font-size: 14px;
}


/* =========================================================
   EMPTY
========================================================= */

.rent-car-empty {

    width: 100%;

    padding: 50px 20px;

    text-align: center;

    background: #ffffff;

    border-radius: 20px;

    box-shadow:
        0 6px 18px
        rgba(0, 0, 0, 0.06);
}


.rent-car-empty-icon {

    font-size: 45px;

    margin-bottom: 10px;
}


.rent-car-empty h3 {

    margin: 0 0 7px;

    color: #37474f;

    font-size: 18px;
}


.rent-car-empty p {

    margin: 0;

    color: #78909c;

    font-size: 13px;

    line-height: 1.5;
}


/* =========================================================
   ERROR
========================================================= */

.rent-car-error {

    margin-top: 15px;

    padding: 22px;

    text-align: center;

    border-radius: 18px;

    background: #fff5f5;

    border: 1px solid #ffcdd2;

    color: #c62828;

    font-size: 14px;
}


.rent-car-error button {

    margin-top: 13px;

    padding: 10px 17px;

    border: 0;

    border-radius: 10px;

    background: #c62828;

    color: #ffffff;

    font-family: inherit;

    font-size: 13px;

    font-weight: 700;
}


/* =========================================================
   ANIMATION
========================================================= */

@keyframes rentCarCardIn {

    from {

        opacity: 0;

        transform:
            translateY(15px);

    }

    to {

        opacity: 1;

        transform:
            translateY(0);

    }
}


@keyframes rentCarPulse {

    0%,
    100% {

        transform: scale(1);

        opacity: 1;

    }

    50% {

        transform: scale(1.08);

        opacity: 0.7;

    }
}


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

@media (max-width: 600px) {

    .rent-a-car-page {

        padding-left: 13px;
        padding-right: 13px;

        padding-bottom: 90px;
    }


    .rent-car-intro {

        padding: 14px;

        border-radius: 17px;
    }


    .rent-car-intro-icon {

        flex-basis: 48px;

        width: 48px;
        height: 48px;

        font-size: 24px;
    }


    .rent-car-intro-content h2 {

        font-size: 18px;
    }


    .rent-car-intro-content p {

        font-size: 12px;
    }


    .rent-car-search-box {

        min-height: 49px;

        border-radius: 14px;
    }


    .rent-car-search-box input {

        height: 47px;

        font-size: 13px;
    }


    .rent-car-card {

        border-radius: 19px;
    }


    .rent-car-image-box {

        height: 190px;
    }


    .rent-car-content {

        padding: 14px;
    }


    .rent-car-name {

        font-size: 18px;
    }


    .rent-car-actions {

        gap: 8px;
    }


    .rent-car-call-btn,
    .rent-car-map-btn {

        min-height: 43px;

        font-size: 13px;
    }

}


/* =========================================================
   EXTRA SMALL
========================================================= */

@media (max-width: 380px) {

    .rent-a-car-page {

        padding-left: 10px;
        padding-right: 10px;
    }


    .rent-car-image-box {

        height: 175px;
    }


    .rent-car-content {

        padding: 12px;
    }


    .rent-car-name {

        font-size: 17px;
    }


    .rent-car-actions {

        flex-direction: column;
    }


    .rent-car-call-btn,
    .rent-car-map-btn {

        width: 100%;
    }

}


/* =========================================================
   DARK MODE
========================================================= */

body.dark-mode .rent-car-intro,
.dark-mode .rent-car-intro {

    background:
        linear-gradient(
            135deg,
            #172a38,
            #1e1e1e
        );

    border-color:
        rgba(144, 202, 249, 0.12);
}


body.dark-mode .rent-car-intro-content h2,
.dark-mode .rent-car-intro-content h2 {

    color: #90caf9;
}


body.dark-mode .rent-car-intro-content p,
.dark-mode .rent-car-intro-content p {

    color: #b0bec5;
}


body.dark-mode .rent-car-search-box,
.dark-mode .rent-car-search-box {

    background: #1e1e1e;

    border-color:
        rgba(255, 255, 255, 0.08);
}


body.dark-mode .rent-car-search-box input,
.dark-mode .rent-car-search-box input {

    color: #eeeeee;
}


body.dark-mode .rent-car-card,
.dark-mode .rent-car-card {

    background: #1e1e1e;

    border-color:
        rgba(255, 255, 255, 0.07);

    box-shadow:
        0 8px 25px
        rgba(0, 0, 0, 0.30);
}


body.dark-mode .rent-car-name,
.dark-mode .rent-car-name {

    color: #f5f5f5;
}


body.dark-mode .rent-car-type,
.dark-mode .rent-car-type {

    background:
        rgba(33, 150, 243, 0.15);

    color: #90caf9;
}


body.dark-mode .rent-car-info-item,
.dark-mode .rent-car-info-item {

    color: #b0bec5;
}


body.dark-mode .rent-car-description,
.dark-mode .rent-car-description {

    background: #252525;

    color: #b0bec5;
}


body.dark-mode .rent-car-details-btn,
.dark-mode .rent-car-details-btn {

    background:
        rgba(33, 150, 243, 0.12);

    border-color:
        rgba(144, 202, 249, 0.12);

    color: #90caf9;
}


body.dark-mode .rent-car-loading,
.dark-mode .rent-car-loading,
body.dark-mode .rent-car-empty,
.dark-mode .rent-car-empty {

    background: #1e1e1e;

    color: #b0bec5;
}


body.dark-mode .rent-car-empty h3,
.dark-mode .rent-car-empty h3 {

    color: #eeeeee;
}


/* =========================================================
   REDUCE MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    .rent-car-card {

        animation: none;

        transition: none;
    }

    .rent-car-image {

        transition: none;
    }

    .rent-car-loading-icon {

        animation: none;
    }

}