/* Ümumi */
img {
    max-width: 100%;
    height: auto;
    display: block;
}
.banner-sag, .banner-sol {
  position: fixed;
  top: 100px;       /* yuxarıdan məsafə */
  z-index: 50;    /* həmişə üstə qalsın */
}

.banner-sag {
  right: 8px; /* sağ kənar */
}

.banner-sol {
  left: 8px;  /* sol kənar */
}

.banner-sag img,
.banner-sol img {
  width: 200px;   /* banner ölçüsü */
  height: 600px;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: 0 0 8px rgba(0,0,0,0.2);
}

/* Mobil və planşetlərdə gizlət */
@media (max-width: 1281px) {
  .banner-sag,
  .banner-sol {
    display: none;
  }
}

@media only screen and (max-width: 768px) {
    body {
        font-size: 18px; /* Böyük hərflər */
    }
    .container {
        padding: 10px;
    }
    /* digər elementlərin ölçülərini mobil üçün tənzimlə */
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    background: #f9f9f9;
    color: #333;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Navbar */
nav {
    background-color: white;
    padding: 0px 0px;
    color: rgba(0,0,0, 0.65);
    font-weight: bold;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

nav a {
    color: rgba(0,0,0, 0.65);
    text-decoration: none;
    margin-left: 15px;
    margin-right: 15px;
    font-weight: 400;
    font-size: 16px;
}

nav a:hover {
    text-decoration: underline;
}
nav .logo {
    display: flex;
    align-items: center;
    height: 60px;
}

nav .logo img {
    height: 25px;
    object-fit: contain;
    margin-bottom: 10px;
}

/* Mobile Nav */
.mobile-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #ffffff;
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
    z-index: 90;
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #666666;
    font-size: 0.8rem;
}

.mobile-nav-item i {
    font-size: 1.2rem;
    margin-bottom: 3px;
}
.mobile-nav-item .add-btn-circle {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    min-height: 32px !important;
    background-color: #22c55e !important;
    color: #ffffff !important;
    border-radius: 50% !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 22px !important;
    font-weight: 300 !important;
    margin-bottom: 3px !important;
}

@media (min-width: 768px) {
    .mobile-nav {
        display: none;
    }
}

/* Container */
.container {
    max-width: 900px;  /* Masaüstü cihazlar üçün maksimum genişlik */
    min-width: 300px;  /* Minimum genişlik */
    margin: 10px auto;
    background: #fff;
    padding: 20px 30px 60px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    flex: 1;
}

h2 {
    color: #2980b9;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.8rem;
}

/* HEADLINE Responsive */
.headline h1 {
    font-size: clamp(18px, 4vw, 26px);
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.3;
    margin: 0 0 12px 0;
    word-wrap: break-word;
}

@media (max-width: 768px) {
    .headline h1 {
        font-size: 18px;
    }
    
    .headline [style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }
}

/* Şəkil qalereyası */
.gallery {
    text-align: center;
    margin-bottom: 20px;
    width: 100%;
}

.gallery-main {
    position: relative;
    background-color: #000;
    max-width: 100%;  /* Ekran eninə uyğunlaşdırılır */
    height: 600px;
    border-radius: 0px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    margin-bottom: 10px;
    cursor: pointer;
}

.blur-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: blur(20px);
    transform: scale(1.2);
    z-index: 1;
}

.gallery-main img {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    object-fit: contain;
    user-select: none;
}

.headline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    background: #ecf0f1;
    padding: 8px 15px; 
    border-radius: 8px;
    margin-bottom: 10px;
}

.headline-item {
    display: flex;
    align-items: center;
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
}

.headline-item .icon {
    font-size: 1.4rem;
    margin-right: 8px;
}

.address {
    font-size: 16px;
    align-items: center;
}

/* Alt lent (thumbnail) */
.gallery-thumbs {
    display: flex;
    overflow-x: auto;
    gap: 5px;
    padding-bottom: 8px;
    scroll-behavior: smooth;
}

.gallery-thumbs::-webkit-scrollbar {
    height: 6px;
}

.gallery-thumbs::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

.gallery-thumbs img {
    width: 90px;
    height: 70px;
    object-fit: cover;
    border-radius: 0px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s, border 0.3s;
    border: 2px solid transparent;
    flex: 0 0 auto; /* scroll üçün vacibdir */
}

.gallery-thumbs img.active,
.gallery-thumbs img:hover {
    opacity: 1;
    border-color: #2980b9;
}
/* Digər detallar */
.details {
    margin-top: 0px;
    font-size: 1rem;
    color: #333;
    background-color: #fff;
    flex: 0.6;
    min-width: 18px;
    display: block;        
}

.details p {
    margin: 8px 0;
    border-bottom: 1px solid #ddd; /* Açıq boz xətt */
    padding-bottom: 3px; /* Alt boşluq */
}

.details strong {
    color: rgb(10, 10, 10);
}

h3 {
    margin-top: 30px;
    margin-bottom: 10px;
    color: #34495e;
    font-size: 1.17em;
    font-weight: bold;
}

.description {
    background: #ecf0f1;
    padding: 15px;
    border-radius: 6px;
    white-space: pre-line;
    font-size: 0.95rem;
    line-height: 1.5;
        /* ✅ BU SƏTİRLƏRİ ƏLAVƏ EDİN */
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    max-width: 100%;
    overflow-x: hidden;
}

iframe {
    margin-top: 15px;
    border-radius: 8px;
    max-width: 100%;
}

a.back-link {
    display: inline-block;
    margin-top: 20px;
    text-decoration: none;
    color: #2980b9;
    font-weight: 600;
    border: 1px solid #2980b9;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 0.9rem;
    transition: background-color 0.3s, color 0.3s;
}

a.back-link:hover {
    background-color: #2980b9;
    color: white;
}

.map-and-info {
    margin-top: 15px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 15px;
}

.map-button {
    padding: 8px 15px;
    background-color: #fff;
    color: #333;
    border: 1px solid #27ae60;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.map-button:hover {
    background-color: #27ae60;
    color: #fff;
}

.map-info {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    font-size: 0.95rem;
    color: #34495e;
    font-weight: 500;
}

.map-info span {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Footer */
footer {
    background-color: white;
    color: rgba(0,0,0, 0.65);
    text-align: center;
    padding: 15px 20px;
    font-size: 0.9rem;
    margin-top: auto;
}

/* Modal (böyüdülmüş şəkil üçün) */
#imgModal {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0; left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.92);
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#imgModal .modal-content {
    position: relative;
    width: 100vw;
    height: calc(100vh - 90px);
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    margin: 0;
    max-width: 100vw;
}

#imgModal img {
    user-select: none;
}

@media (max-width: 768px) {
    #imgModal .modal-content {
        width: 90vw;
        height: 70vh;
    }
}

/* Modal bağlama düyməsi */
#imgModal .close-btn {
    position: fixed;
    top: 12px;
    right: 20px;
    color: white;
    font-size: 32px;
    cursor: pointer;
    z-index: 99999;
    line-height: 1;
}
#imgModal .close-btn:hover {
    color: #ccc;
}
#imgModal #modalImage {
    width: auto;
    height: auto;
    max-width: calc(100vw - 140px);
    max-height: calc(100vh - 110px);
    object-fit: contain;
    border-radius: 4px;
    transition: opacity 0.2s;
    display: block;
    margin: 0 auto;
}

/* Modal sol-sağ oxları */
#imgModal .nav-arrow {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 28px;
    cursor: pointer;
    background: rgba(255,255,255,0.15);
    padding: 12px 16px;
    border-radius: 50%;
    z-index: 99999;
    user-select: none;
    transition: background 0.2s;
}

#imgModal .nav-arrow:hover {
    background: rgba(255,255,255,0.3);
}

#imgModal .nav-arrow.left {
    left: 16px;
}

#imgModal .nav-arrow.right {
    right: 16px;
}

.swal2-container {
    z-index: 99999 !important;
}

.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0; 
    top: 0;
    width: 100%; 
    height: 100%;
    background-color: rgba(0,0,0,0.7);
}

.modal-content {
    background-color: #fff;
    margin: 60px auto;
    padding: 20px 30px;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0,0,0,0.3);
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    width: 90%;
    max-width: 500px;
}

.close {
    position: absolute;
    right: 15px; 
    top: 10px;
    font-size: 28px;
    color: #888;
    cursor: pointer;
}

.close:hover {
    color: #000;
}

.pay-btn {
    background-color: rgb(13, 205, 189);
    color: white;
    border: none;
    padding: 10px 20px;
    font-weight: bold;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.pay-btn:hover {
    background-color: #219150;
}

.phone-btn {
    background-color: #28a745; /* göy fon */
    justify-content: center;
    color: white;
    white-space: nowrap; 
    width: 100%;
    padding: 0px 80px;
    height: 40px;
    margin-top: 5px;
    border-radius: 6px;
    font-weight: bold;
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.phone-container {
    text-align: center;
}

.phone-btn:hover {
    background-color: #1f6391; /* hover vaxtı daha tünd göy */
}

.fav-btn-wrapper {
    position: absolute;  /* Konteynerə görə müstəqil yerləşdirmə */
    top: 10px;           /* Yuxarıdan 10px məsafə */
    right: 10px;         /* Sağdan 10px məsafə */
    z-index: 10;         /* Şəkildən üstündə olsun */
}

.fav-btn {
    border: 1px solid red;
    top: 10px;
    right: 10px;
    background: transparent;
    border: none;
    font-size: 24px;
    color: #ddd; /* Ağ ürək */
    cursor: pointer;
    padding: 0;
    line-height: 1;
    z-index: 10;
    transition: color 0.3s ease;
}

.fav-btn:hover {
    color: #ff4d4d; /* Hoverda qırmızı olur */
}

.fav-btn.active {
    color: #ff4d4d; /* Favori olduqda qırmızı qalsın */
}

.complaint-btn {
    border: none;
    background: none;
    box-shadow: none;
    padding: 0;
    font-size: 14px;
    cursor: pointer;
}

.agent-wrapper {
    margin-top: 15px;
    border-top: 1px solid #ccc;
    padding-top: 20px;
    max-width: 800px;
    background-color: #f0f8ff;
}

.agent-top {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.agent-logo img {
    max-width: 60px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
}

.agent-info {
    flex-grow: 1;
}

.agent-info h3 {
    margin: 0 0 1px 0;
    font-family: sans-serif;
    font-size: 16px;
}

.agent-info p {
    margin: 0;
    color: #555;
}

.agent-desc {
    margin-top: 15px;
    /* tam enində, loqodan aşağı */
    text-align: center;
}

.agent-desc p {
    margin: 0 0 15px 0;
    line-height: 1.4;
}

.agent-btn {
    display: inline-block;
    background-color: #fff;
    border: 1px solid #28a745;
    color: #28a745;
    padding: 10px 18px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 300;
    transition: background-color 0.3s ease;
}

.agent-btn:hover {
    background-color: #28a745;
    color: #fff;
}

.working-hours {
    font-size: 0.95em;
    color: #555;
    margin: 0 0 10px 0;
    font-family: sans-serif;
    white-space: normal;
}

.main-flex {
    display: flex;
    flex-wrap: wrap; /* Flex elementləri sığacaq şəkildə bükürük */
    gap: 20px;
}

/* Mobil üçün fullscreen görüntü konteyneri */
#mobileFullScreenViewer {
    display: none;
    position: fixed;
    top: 0; 
    left: 0;
    width: 100vw;
    height: 100vh;
    background: black;
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
}

#mobileFullScreenViewer img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Bağlama düyməsi */
#mobileFullScreenViewer .close-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    font-size: 2rem;
    color: white;
    cursor: pointer;
    z-index: 100000;
    user-select: none;
    background: rgba(0,0,0,0.5);
    padding: 5px 10px;
    border-radius: 5px;
}

/* Sürüşdürmə oxları */
#mobileFullScreenViewer .nav-arrow {
    position: fixed;
    top: 50%;
    font-size: 3rem;
    color: white;
    cursor: pointer;
    user-select: none;
    background: rgba(0,0,0,0.5);
    padding: 10px;
    border-radius: 50%;
    transform: translateY(-50%);
    z-index: 100000;
}

#mobileFullScreenViewer .nav-arrow.left {
    display: flex;
    left: 10px;
}

#mobileFullScreenViewer .nav-arrow.right {
    display: flex;
    right: 10px;
}
#mobileImageCounter {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
    z-index: 99999;
    pointer-events: none;
}
#desktopImageCounter {
    position: fixed;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 14px;
    z-index: 99999;
    pointer-events: none;
}
#modalThumbStrip {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    display: flex;
    gap: 6px;
    padding: 10px 16px;
    overflow-x: auto;
    background: rgba(0, 0, 0, 0.85);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.3) transparent;
}

#modalThumbStrip::-webkit-scrollbar {
    height: 4px;
}

#modalThumbStrip::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.3);
    border-radius: 4px;
}

#modalThumbStrip img {
    width: 80px;
    height: 55px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    opacity: 0.5;
    border: 2px solid transparent;
    flex-shrink: 0;
    transition: opacity 0.2s, border-color 0.2s;
}

#modalThumbStrip img:hover {
    opacity: 0.85;
}

#modalThumbStrip img.active {
    opacity: 1;
    border-color: white;
}
.share-button {
    font-size: 0.7rem; /* Smaylikin ölçüsünü böyüdürük */
    background: none; /* Button-un fonunu ləğv edirik */
    border: none; /* Border-i ləğv edirik */
    cursor: pointer; /* Hover edəndə göstərəcək pointer */
    background-color: #0d6efd;
}

/* Arrows for Desktop and Mobile */
.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 15px;
    color: white;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    padding: 10px;
    cursor: pointer;
    z-index: 2;
}

.left {
    left: 10px;
}

.right {
    right: 10px;
}

#currentImage,
#modalImage,
#mobileFullScreenViewer img {
    transition: opacity 0.5s ease-in-out;
    opacity: 1;
}

.radio-option {
    display: block;
    margin: 10px 0;
    padding: 10px;
    gap: 10px;
    border: 2px solid #ddd;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.radio-option:hover {
    border-color: rgb(13, 205, 189);
    background: #f8f9ff;
    box-shadow: 0 2px 4px rgba(0,123,255,0.1);
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.btn-primary {
    background-color: rgb(13, 205, 189);
    color: white;
}

.btn-primary:hover {
    background-color: rgba(9, 130, 120, 1);
}

.modal-title {
    font-size: 1.3rem;
    font-weight: 700;
}

@media screen and (max-width: 767px) {
    .desktop-navbar {
        display: none;
    }
}

/* Mobildə hər iki elementi alt-alta düzəldirik */
@media only screen and (max-width: 768px) {
    .main-flex {
        flex-direction: column; /* Elementləri alt-alta düzürük */
        gap: 5px;
    }
    
    .gallery, .details {
        flex: 1; /* Hər biri ekranın yarısını alsın */
        min-width: 100%;
    }

    /* Headline */
    .headline {
        display: flex;
        flex-direction: column; /* Mobildə başlıq elementlərini alt-alta yığırıq */
        justify-content: flex-start;
        gap: 10px;
        background: #ecf0f1;
        padding: 8px 15px;
        border-radius: 8px;
        margin-bottom: 10px;
        text-align: center; /* Mərkəzləşdiririk */
    }

    /* Mobildə headline itemləri alt-alta göstərəcəyik */
    .headline-item {
        display: flex;
        flex-direction: column; /* Başlıq itemlərini vertikal düzürük */
        align-items: center;
        font-size: 1rem; /* Mobil üçün daha kiçik font */
        font-weight: 600;
        color: #2c3e50;
    }
    
    /* Mobil üçün düymələr */
    button {
        padding: 12px 20px;  /* Daha geniş düymələr */
        font-size: 1rem;
        width: 100%;  /* Ekranın tam eni üzrə düymə */
        border-radius: 8px;
        cursor: pointer;
    }

    button:hover {
        background-color: #2980b9;
        color: white;
    }
    
    /* Gallery və Details üçün mobil uyğunluq */
    .gallery-main {
        position: relative;
        max-width: 100%;  /* Genişlik 100% olmalıdır */
        height: 300px;  /* Mobil üçün daha kiçik ölçü */
        margin-bottom: 10px;
        object-fit: contain;
        touch-action: pan-y pinch-zoom;
    }
    
    .arrow {
        display: block;  /* Mobildə oxları gizlət */
        background: none;
    }

    .gallery {
        text-align: center;
        margin-bottom: 1px;
        width: 100%;
    }
    
    .gallery-thumbs {
        display: flex;
        overflow-x: auto;
        gap: 2px;
        padding-bottom: 8px;
        scroll-behavior: smooth;
        width: 100%;
        box-sizing: border-box;
    }

    .gallery-thumbs img {
        width: 60px;  /* Sabit en */
        height: 75px; /* Sabit hündürlük */
        object-fit: cover;
        border-radius: 0px;
        opacity: 0.7;
        transition: opacity 0.3s, border 0.3s;
        cursor: pointer;
        border: 2px solid transparent;
        flex: 0 0;
    }

    .details {
        font-size: 0.95rem;  /* Yazı ölçüsünü kiçildirik */
        color: #333;
        margin-top: 0px;
    }
    
    .container {
        max-width: 100%; /* Genişlik 100% olacaq */
        min-width: 100%;  /* Minimum genişlik də 100% */
        padding: 15px;  /* Mobil üçün padding azaldılır */
    }
    
    .fav-btn {
        top: 10px;     /* Yuxarıdan 10px məsafə */
        right: 10px;   /* Sağdan 10px məsafə */
    }
    
    .complaint-btn {
        display: flex;
        justify-content: flex-start;  /* Mətn və simvolu sola düzür */
        align-items: center;  /* Yatayda mərkəzləşdirir */
        font-size: 14px;
        padding: 0;
        cursor: pointer;
        text-align: left;  /* Mətni sola düzür */
    }
    
    .share-button {
        display: flex;
        align-items: center;  /* Yatayda mərkəzləşdirir */
        font-size: 14px;
        padding: 10px;
        max-width: 120px;
        cursor: pointer;
        text-align: left;  /* Mətni sola düzür */
        justify-content: center;
        gap: 8px;
    }
}

@media (min-width: 769px) {
    /* Desktop üçün oxların görünməsi */
    .arrow {
        display: block;  /* Oxlar yalnız desktopda görünsün */
    }
}
/* Floating Zəng Düyməsi */
.floating-call-btn {
    display: none;
    position: fixed;
    bottom: 70px;
    right: 15px;
    width: 52px;
    height: 52px;
    background-color: #25D366;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.4rem;
    z-index: 95;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.6);
    text-decoration: none;
    animation: phoneRing 1.5s ease-in-out infinite;
}

.floating-call-btn:hover {
    background-color: #1ebe5a;
    color: white;
    animation: none;
    transform: scale(1.1);
}

@keyframes phoneRing {
    0%   { transform: rotate(0deg)   scale(1);    box-shadow: 0 4px 12px rgba(37,211,102,0.5); }
    10%  { transform: rotate(-15deg) scale(1.1);  }
    20%  { transform: rotate(15deg)  scale(1.1);  }
    30%  { transform: rotate(-10deg) scale(1.05); }
    40%  { transform: rotate(10deg)  scale(1.05); }
    50%  { transform: rotate(0deg)   scale(1);    box-shadow: 0 4px 20px rgba(37,211,102,0.8); }
    100% { transform: rotate(0deg)   scale(1);    box-shadow: 0 4px 12px rgba(37,211,102,0.5); }
}

/* Pulse halqası */
.floating-call-btn::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: rgba(37, 211, 102, 0.4);
    animation: pulseRing 1.5s ease-out infinite;
    z-index: -1;
}

@keyframes pulseRing {
    0%   { transform: scale(1);   opacity: 0.8; }
    100% { transform: scale(2);   opacity: 0;   }
}

@media (max-width: 767px) {
    .floating-call-btn {
        display: flex;
    }
}
/* ===== İPOTEKA MODAL ===== */
.ipoteka-modal-overlay {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background: rgba(10, 20, 40, 0.75);
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 20px;
    box-sizing: border-box;
}

.ipoteka-modal-overlay.show {
    display: flex !important;
}

.ipoteka-modal-box {
    background: #fff;
    border-radius: 20px;
    width: 100%;
    max-width: 520px;
    padding: 28px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    position: relative;
    animation: ipotekaSlideIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    margin: auto;
    max-height: 90vh;
    overflow-y: auto;
}

@keyframes ipotekaSlideIn {
    from { opacity: 0; transform: translateY(40px) scale(0.95); }
    to   { opacity: 1; transform: translateY(0)   scale(1); }
}

/* Header */
.ipoteka-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.ipoteka-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ipoteka-icon {
    font-size: 2rem;
    line-height: 1;
}

.ipoteka-title {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 700;
    color: #1a2e4a;
}

.ipoteka-subtitle {
    margin: 2px 0 0;
    font-size: 0.8rem;
    color: #888;
}

.ipoteka-close {
    background: #f0f0f0;
    border: none;
    border-radius: 50%;
    width: 34px;
    height: 34px;
    font-size: 1rem;
    cursor: pointer;
    color: #555;
    transition: background 0.2s;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}

.ipoteka-close:hover { background: #e0e0e0; color: #000; }

/* Əmlak qiyməti banner */
.ipoteka-property-price {
    background: linear-gradient(135deg, #1a3c5e, #2563a8);
    border-radius: 12px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    color: white;
}

.ipoteka-price-label { font-size: 0.85rem; opacity: 0.85; }
.ipoteka-price-value { font-size: 1.3rem; font-weight: 700; }

/* Row (ilkin ödəniş + faiz) */
.ipoteka-row {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    margin-bottom: 20px;
}

.ipoteka-field { flex: 1; }

.ipoteka-label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    color: #555;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.ipoteka-input-wrap {
    position: relative;
}

.ipoteka-input {
    width: 100%;
    padding: 10px 30px 10px 12px;
    border: 2px solid #e0e8f0;
    border-radius: 10px;
    font-size: 1rem;
    color: #1a2e4a;
    background: #f8fbff;
    box-sizing: border-box;
    transition: border-color 0.2s;
    outline: none;
}

.ipoteka-input:focus {
    border-color: #2563a8;
    background: #fff;
}

.ipoteka-input-icon {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.85rem;
    color: #999;
    pointer-events: none;
}

.ipoteka-swap-icon {
    font-size: 1.2rem;
    color: #2563a8;
    padding-bottom: 10px;
    flex-shrink: 0;
}

/* Müddət seçimi */
.ipoteka-section {
    margin-bottom: 20px;
}

.ipoteka-slider-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin: 10px 0 8px;
}

.ipoteka-arrow-btn {
    background: linear-gradient(135deg, #1a3c5e, #2563a8);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.1s;
    display: flex; align-items: center; justify-content: center;
}

.ipoteka-arrow-btn:hover { opacity: 0.85; transform: scale(1.08); }
.ipoteka-arrow-btn:active { transform: scale(0.95); }

.ipoteka-il-display {
    text-align: center;
    min-width: 80px;
}

.ipoteka-il-number {
    font-size: 2.2rem;
    font-weight: 800;
    color: #1a3c5e;
    display: block;
    line-height: 1;
    transition: transform 0.15s;
}

.ipoteka-il-number.pop {
    animation: numPop 0.2s ease;
}

@keyframes numPop {
    0%   { transform: scale(1); }
    50%  { transform: scale(1.25); }
    100% { transform: scale(1); }
}

.ipoteka-il-text {
    font-size: 0.9rem;
    color: #888;
}

/* Faiz dərəcəsi */
.ipoteka-faiz-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: 10px;
}

.ipoteka-step-btn {
    background: #f0f5ff;
    border: 2px solid #d0dce8;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    font-size: 1.3rem;
    cursor: pointer;
    color: #2563a8;
    font-weight: bold;
    transition: all 0.2s;
    display: flex; align-items: center; justify-content: center;
    line-height: 1;
}

.ipoteka-step-btn:hover {
    background: #2563a8;
    color: white;
    border-color: #2563a8;
}

.ipoteka-faiz-display {
    display: flex;
    align-items: center;
    gap: 4px;
}

.ipoteka-faiz-input {
    width: 70px;
    text-align: center;
    border: 2px solid #2563a8;
    border-radius: 10px;
    font-size: 1.3rem;
    font-weight: 700;
    color: #1a3c5e;
    padding: 6px;
    outline: none;
    background: #f8fbff;
}

.ipoteka-faiz-sym {
    font-size: 1.1rem;
    color: #2563a8;
    font-weight: 700;
}

/* Nəticə */
.ipoteka-result-box {
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    border: 2px solid #81c784;
    border-radius: 14px;
    padding: 18px;
    text-align: center;
    margin: 20px 0 14px;
}

.ipoteka-result-label {
    font-size: 0.85rem;
    color: #2e7d32;
    font-weight: 600;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.ipoteka-result-amount {
    font-size: 2rem;
    font-weight: 800;
    color: #1b5e20;
    transition: all 0.3s;
}

.ipoteka-result-detail {
    font-size: 0.8rem;
    color: #388e3c;
    margin-top: 4px;
}

/* Xülasə */
.ipoteka-summary {
    background: #f8fbff;
    border-radius: 12px;
    padding: 14px 16px;
    border: 1px solid #e0e8f0;
}

.ipoteka-sum-item {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 0.9rem;
    border-bottom: 1px solid #eef3f8;
    color: #444;
}

.ipoteka-sum-item:last-child { border-bottom: none; }
.ipoteka-sum-item span:last-child { font-weight: 700; color: #1a3c5e; }

@media (max-width: 768px) {
    .ipoteka-modal-overlay {
        padding: 10px;
        align-items: flex-end;
    }

    .ipoteka-modal-box {
        padding: 20px 16px;
        border-radius: 16px 16px 0 0;
        margin-bottom: 0;
        max-height: 90vh;
        overflow-y: auto;
    }

    .ipoteka-row {
        flex-direction: row;
        gap: 8px;
        align-items: flex-end;
    }
    
    .ipoteka-swap-icon {
        font-size: 1rem;
        padding-bottom: 10px;
        flex-shrink: 0;
    }

    .ipoteka-result-amount {
        font-size: 1.5rem;
    }
}
/* ===== QİYMƏT TARİXÇƏSİ ===== */
.qiymet-tarixce {
    margin-top: 30px;
}

.tarixce-list {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e0e8f0;
}

.tarixce-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 18px;
    background: #fff;
    border-bottom: 1px solid #eef3f8;
    transition: background 0.2s;
}

.tarixce-item:last-child {
    border-bottom: none;
}

.tarixce-item:hover {
    background: #f8fbff;
}

.tarixce-tarix {
    font-size: 0.9rem;
    color: #666;
    min-width: 110px;
}

.tarixce-qiymet {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a2e4a;
    flex: 1;
}

.tarixce-ferq {
    font-size: 0.85rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
}

.tarixce-ferq.artdi {
    background: #fff3e0;
    color: #e65100;
}

.tarixce-ferq.azaldi {
    background: #e8f5e9;
    color: #2e7d32;
}

.tarixce-ferq.ilk {
    background: #f0f4ff;
    color: #5c6bc0;
}

@media (max-width: 768px) {
    .tarixce-item {
        flex-wrap: wrap;
        gap: 6px;
        padding: 10px 14px;
    }

    .tarixce-tarix {
        min-width: unset;
        width: 100%;
        font-size: 0.8rem;
    }
}