﻿
/*@font-face {
    font-family: Vazirmatn FD;
    src: url('../fonts/vazirmatn-v33.003/misc/Farsi-Digits/webfonts/Vazirmatn-FD-Thin.woff2') format('woff2');
    font-weight: 100;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: Vazirmatn FD;
    src: url('../fonts/vazirmatn-v33.003/misc/Farsi-Digits/webfonts/Vazirmatn-FD-ExtraLight.woff2') format('woff2');
    font-weight: 200;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: Vazirmatn FD;
    src: url('../fonts/vazirmatn-v33.003/misc/Farsi-Digits/webfonts/Vazirmatn-FD-Light.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: Vazirmatn FD;
    src: url('../fonts/vazirmatn-v33.003/misc/Farsi-Digits/webfonts/Vazirmatn-FD-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: Vazirmatn FD;
    src: url('../fonts/vazirmatn-v33.003/misc/Farsi-Digits/webfonts/Vazirmatn-FD-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: Vazirmatn FD;
    src: url('../fonts/vazirmatn-v33.003/misc/Farsi-Digits/webfonts/Vazirmatn-FD-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: Vazirmatn FD;
    src: url('../fonts/vazirmatn-v33.003/misc/Farsi-Digits/webfonts/Vazirmatn-FD-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: Vazirmatn FD;
    src: url('../fonts/vazirmatn-v33.003/misc/Farsi-Digits/webfonts/Vazirmatn-FD-ExtraBold.woff2') format('woff2');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: Vazirmatn FD;
    src: url('../fonts/vazirmatn-v33.003/misc/Farsi-Digits/webfonts/Vazirmatn-FD-Black.woff2') format('woff2');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}*/

@font-face {
    font-family: 'IranSansWeb_FaNumber';
    src: url('../fonts/IranSans/eot/IRANSansWeb(FaNum).eot');
    src: url('../fonts/IranSans/eot/IRANSansWeb(FaNum).eot?#iefix') format('embedded-opentype'), url('../fonts/IranSans/woff/IRANSansWeb(FaNum).woff') format('woff'), url('../fonts/IranSans/ttf/IRANSansWeb(FaNum).ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

:root {
    --bg: #f5f6fa;
    --primary-blue: #257eca/*rgb(55, 77, 255)*/;
    --text-dark: #333;
    --text-light: #666;
    --gray: #9e9e9e;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: auto;
    min-height: 100%;
}

body {
    font-family: 'IranSansWeb_FaNumber', Tahoma, sans-serif;
    background-color: var(--bg);
    color: var(--text-dark);
    margin: 0;
    padding: env(safe-area-inset-top, 8px) 0 1rem 0;
    direction: rtl;
    min-height: 100dvh;
    display: block; /* کل صفحه اسکرول می‌خورد */
}

/* قاب اصلی (حالا بدون پس‌زمینه و شفاف) */
.phone-frame {
    width: min(100%, 400px);
    margin: 0 auto;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0 0 1rem;
    height: auto;
}

/* کادر آبی بالا */
.business-card {
    position: relative;
    min-height: 110px;
    background-color: var(--primary-blue);
    color: #fff;
    font-size: 22px; /* هدر کوچک‌تر */
    font-weight: 700;
    border-radius: 16px;
    margin-top:5px !important;
    margin: 0 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.decorations {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.circle {
    position: absolute;
    width: 15px;
    height: 15px;
    border: 2.1px solid rgba(255, 255, 255, 0.29);
    border-radius: 50%;
}

.c1 {
    top: 12%;
    left: 15%;
}

.c2 {
    bottom: 18%;
    right: 12%;
    width: 25px;
    height: 25px;
    border-width: 2.5px;
}

.triangle {
    position: absolute;
    width: 0;
    height: 0;
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-bottom: 20px solid rgba(255, 255, 255, 0.15);
}

.t1 {
    top: 20%;
    right: 20%;
    transform: rotate(20deg);
}

.t2 {
    bottom: 15%;
    left: 25%;
    transform: rotate(-15deg);
    border-bottom-width: 28px;
}

/* نقشه */
.map-container {
    width: calc(100% - 24px);
    height: 200px;
    margin: 0 12px;
    border-radius: 12px;
    overflow: hidden;
    z-index: 1;
}

.btn-route {
    font-family: 'IranSansWeb_FaNumber', Tahoma, sans-serif;
    display: block;
    background: #333333 !important; /* خاکستری */
    color: #fff;
    text-align: center;
    text-decoration: none;
    padding: 12px;
    margin-left: 12px;
    margin-right: 12px;
    margin-top: -16px;
    margin-bottom: 0px;
    border-radius: 0 0 12px 12px;
    font-weight: normal;
}

/* کارت‌های آدرس و تلفن */
.info-card {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    border-radius: 12px;
    padding: 14px 16px;
    margin: 0 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    color: var(--text-dark);
    text-decoration: none;
    cursor: pointer;
}

    .info-card i {
        font-size: 1.6rem;
        min-width: 28px;
        text-align: center;
        color: var(--gray);
    }

/* دکمه‌های لینک */
.items {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0 12px;
}

.item-btn {
    display: block;
    width: 100%;
    text-align: center;
    text-decoration: none;
    color: #fff;
    padding: 14px;
    border-radius: 12px;
    font-weight: 600;
    transition: filter 0.2s;
}

    .item-btn:hover {
        filter: brightness(0.9);
    }

/* فوتر */
.footer {
    text-align: center;
    margin-top: auto;
    padding: 16px;
    color: #888;
    font-size: 0.85rem;
}

    .footer a {
        color: var(--primary-blue);
        text-decoration: none;
        font-weight: bold;
    }

/* اسپینر */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #ddd;
    border-top-color: var(--primary-blue);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ریسپانسیو */
@media (max-width: 600px) {
    body {
        padding-top: env(safe-area-inset-top, 4px);
        padding-bottom: 0;
    }

    .phone-frame {
        width: 100%;
        margin: 0;
        padding: 0;
        gap: 8px;
    }

    .business-card {
       /* margin: 0;
        border-radius: 0;*/
       
        min-height: 100px;
        font-size: 20px;
    }

   /* .map-container {
        width: 100%;
        margin: 0;
        border-radius: 0;
    }*/

   /* .btn-route {
        margin: 1px;
        border-radius: 1px;
    }*/

    .info-card,
    .items {
        margin-left: 8px;
        margin-right: 8px;
    }
}

/* ===== مودال مسیریاب ===== */
.route-modal {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    margin: 0;
    padding: 0;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: flex-end;
    justify-content: center;
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}
.route-modal.show {
    display: flex;
    opacity: 1;
    visibility: visible;
}


.route-modal-content {
    background: #fff;
    border-radius: 16px 16px 0 0;
    width: 100%;
    max-width: 420px;
    padding: 1rem;
    padding-bottom: 2rem;
    box-sizing: border-box;
    box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.18);
    transform: translateY(100%);
    transition: transform 0.28s ease;
}

.route-modal.show .route-modal-content {
    transform: translateY(0);
}

.route-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.route-option {
    display: flex;
    align-items: center;
    justify-content: right;
    gap: 0.75rem;
    width: 100%;
    padding: 0.9rem 1rem;
    background: #f5f5f5;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    text-decoration: none;
    color: #222;
    font-weight: 600;
    font: inherit;
    box-sizing: border-box;
}

.route-app-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
    flex-shrink: 0;
}

.route-modal-close {
    width: 36px;
    height: 36px;
    border: none;
    background: #f2f2f2;
    color: #444;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    line-height: 1;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

    .route-modal-close:hover {
        background: #e8e8e8;
        color: #111;
        transform: scale(1.05);
    }

    .route-modal-close:active {
        transform: scale(0.96);
    }

    .route-modal-close:focus-visible {
        outline: 2px solid #ff8a00;
        outline-offset: 2px;
    }
