@font-face {
  font-family: "NotoSansAmbassadori";
  src: url("/fonts/NotoSansAmbassadori-Bold.otf") format("opentype");
  font-weight: bold;
  font-style: normal;
}


/* Portline tracking – modern, clean style */

:root {
    --bg-page: #0b1824;
    --bg-card: #101c2a;
    --bg-soft: #142234;
    --accent: #ffc117;
    --accent-soft: rgba(255, 193, 23, 0.12);
    --accent-border: rgba(255, 193, 23, 0.35);
    --brand: #045d87;
    --text-main: #f9fafb;
    --text-muted: #8891a4;
    --danger: #f97373;
    --radius-lg: 18px;
    --radius-xl: 24px;
    --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.55);
    --shadow-chip: 0 0 0 1px rgba(255, 255, 255, 0.04);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    min-height: 100%;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
        Roboto, "Noto Sans Georgian", sans-serif;

    /* – slider.jpeg */
    background: url("/images/slider.jpeg") no-repeat center center fixed;
    background-size: cover;

    color: var(--text-main);
}

/* ===== Force Ambassadori font on ALL UI blocks ===== */
* {
  font-family: "NotoSansAmbassadori", sans-serif !important;
}



.page-wrap {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.header {
    max-width: 960px;
    margin: 24px auto 0;
    padding: 0 16px 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-logo {
    width: 38px;
    height: 38px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--brand), #0f9ad3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 20px;
    color: #ffffff;
    box-shadow: 0 0 0 2px rgba(4, 93, 135, 0.3), 0 12px 30px rgba(0, 0, 0, 0.55);
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-title {
    font-weight: 600;
    letter-spacing: 0.03em;
}

.brand-sub {
    font-size: 12px;
    color: var(--text-muted);
}

.header-note {
    font-size: 13px;
    color: var(--text-muted);
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(148, 163, 184, 0.25);
    backdrop-filter: blur(12px);
}

.main {
    flex: 1;
    display: flex;
    flex-direction: column;
        align-items: center;      /* ჰორიზონტალურად შუაში */
    justify-content: center;  /* ვერტიკალურად შუაში */

    padding: 16px;
}

.search-card,
.result-card {
    max-width: 1120px;
     width: 100%;  
    margin: 0 auto;
    background: radial-gradient(circle at top left, rgba(4, 93, 135, 0.26), rgba(15, 23, 42, 0.97));
    border-radius: var(--radius-xl);
    padding: 20px 20px 18px;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(148, 163, 184, 0.22);
    backdrop-filter: blur(18px);
}

.search-card {
    margin-bottom: 16px;
}

.search-card h1 {
    margin: 0 0 4px;
    font-size: 22px;
}

.muted {
    margin: 0 0 16px;
    font-size: 13px;
    color: var(--text-muted);
}

.field-label {
    display: block;
    font-size: 13px;
    margin-bottom: 6px;
    color: #e5e7eb;
}

.field-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

#vinInput {
    flex: 1 1 220px;
    min-width: 0;
    padding: 9px 12px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: #F6F6F6
    color: var(--text-main);
    font-size: 14px;
    outline: none;
    box-shadow: var(--shadow-chip);
}

#vinInput,
.btn {
  font-family: "NotoSansAmbassadori", sans-serif;
}




#vinInput::placeholder {
    color: rgba(148, 163, 184, 0.8);
}

#vinInput:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 1px rgba(255, 193, 23, 0.55);
}

.hint {
    margin: 6px 2px 0;
    font-size: 11px;
    color: var(--text-muted);
}

/* Buttons */

.btn {
    border-radius: 999px;
    border: 1px solid transparent;
    padding: 9px 16px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.15s ease;
    white-space: nowrap;
}

.btn.primary {
    background: radial-gradient(circle at top left, var(--accent), #ffdd7a);
    color: #111827;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

.btn.primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.55);
}

.btn.ghost {
    background: transparent;
    color: var(--text-muted);
    border-color: rgba(148, 163, 184, 0.45);
}

.btn.ghost:hover {
    background: rgba(15, 23, 42, 0.85);
}

/* Status box */

.status {
    margin-top: 14px;
    padding: 9px 11px;
    border-radius: 12px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid transparent;
}

.status.info {
    background: rgba(15, 23, 42, 0.9);
    border-color: rgba(148, 163, 184, 0.4);
    color: var(--text-muted);
}

.status.success {
    background: rgba(22, 163, 74, 0.08);
    border-color: rgba(22, 163, 74, 0.5);
    color: #bbf7d0;
}

.status.error {
    background: rgba(248, 113, 113, 0.08);
    border-color: rgba(248, 113, 113, 0.5);
    color: #fecaca;
}

.status .dot-s {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: currentColor;
}

/* Result card */

.result-card {
    margin-bottom: 16px;
    background: radial-gradient(circle at top right, rgba(255, 193, 23, 0.12), rgba(15, 23, 42, 0.96));
}

.car-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
}

.tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 9px 4px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(148, 163, 184, 0.35);
    font-size: 11px;
    color: var(--text-muted);
}

.car-head h2 {
    margin: 4px 0 4px;
    font-size: 18px;
}

.car-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 12px;
    color: #020617
    
}

.car-meta span {
    padding: 3px 8px;
    border-radius: 999px;
    background: #F6F6F6
   
}

.badge-safe {
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 11px;
    background: var(--accent-soft);
    border: 1px solid var(--accent-border);
    color: #fde68a;
}

/* Tabs */

.tabs {
    display: inline-flex;
    padding: 4px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.35);
    margin-bottom: 10px;
}

.tab-btn {
    border: none;
    background: transparent;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 13px;
    color: var(--text-muted);
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, transform 0.1s ease;
}

.tab-btn.active {
    background: radial-gradient(circle at top left, var(--accent), #ffdd7a);
    color: #111827;
    transform: translateY(-1px);
}

/* Panels */

.tab-content {
    margin-top: 6px;
}

.panel-title {
    font-size: 13px;
    margin: 0 0 6px;
    color: var(--text-muted);
}

.images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 8px;
}

.images-grid img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.3);
    background: #020617;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.images-grid img:hover {
    transform: translateY(-2px) scale(1.01);
    border-color: var(--accent);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.7);
}

.empty-msg {
    margin: 10px 0 0;
    font-size: 13px;
    color: var(--text-muted);
}

/* Footer */

.footer {
    max-width: 960px;
    margin: 0 auto 18px;
    padding: 4px 16px 0;
    font-size: 11px;
    color: var(--text-muted);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 6px;
    border-top: 1px solid rgba(15, 23, 42, 0.8);
}

.footer .dot {
    opacity: 0.4;
}

/* Helpers */

.hidden {
    display: none !important;
}

/* Responsive tweaks */

@media (max-width: 640px) {
    .header {
        flex-direction: column;
        align-items: flex-start;
    }

    .search-card,
    .result-card {
        padding: 16px 14px 14px;
        border-radius: 18px;
    }

    .car-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .tabs {
        width: 100%;
        justify-content: space-between;
    }

    .images-grid {
        grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    }
}



/* === Video background === */
.video-bg {
    position: fixed;
    inset: 0;
    overflow: hidden;
    z-index: -2;
}

.bg-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bg-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top, rgba(15,23,42,0.25), rgba(15,23,42,0.9));
    z-index: 1;
}

/* Bring main content above video */
.page-wrap {
    position: relative;
    z-index: 10;
}

/* Brand logo image */
.brand-logo-img {
    width: 92px;
    height: 92px;
    border-radius: 16px;
    object-fit: contain;
    background: rgba(255,255,255,0.9);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
    padding: 6px;
}

/* Cards – თეთრი ბლოკი ვიდეოზე */
.card {
    max-width: 960px;
    margin: 0 auto;
    border-radius: 24px;
    padding: 22px 22px 20px;
    background: rgba(255, 255, 255, 0.98);
    color: #0f172a;
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.45);
    border: 1px solid rgba(15, 23, 42, 0.06);
    backdrop-filter: blur(18px);
}

.search-card,
.result-card {
    max-width: 960px;
    margin: 0 auto;
}

/* Entry animation */
.card-enter {
    opacity: 0;
    transform: translateY(26px);
    animation: cardIn 0.6s ease-out forwards;
    animation-delay: 0.15s;
}

@keyframes cardIn {
    0% {
        opacity: 0;
        transform: translateY(26px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Adjust texts on light card */
.search-card h1 {
    color: #020617;
}

.muted {
    color: #6b7280;
}

/* Result head layout */
.result-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 18px;
}

.result-main h2 {
    margin: 4px 0 6px;
    font-size: 20px;
    color: #020617;
}

.result-side {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.btn.small {
    padding: 7px 12px;
    font-size: 12px;
}

/* Gallery */
.gallery {
    margin-top: 4px;
}

.gallery-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.gallery-tabs {
    display: inline-flex;
    padding: 4px;
    border-radius: 999px;
    background: #f3f4f6;
    border: 1px solid rgba(148, 163, 184, 0.6);
}

.gallery-tab {
    border: none;
    background: transparent;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 13px;
    cursor: pointer;
    color: #6b7280;
    transition: background 0.15s ease, color 0.15s ease, transform 0.1s ease;
}

.gallery-tab.active {
    background: radial-gradient(circle at top left, var(--accent), #ffdd7a);
    color: #111827;
    transform: translateY(-1px);
}

/* Main image */
.gallery-main-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: #020617;
    box-shadow: 0 22px 55px rgba(15, 23, 42, 0.75); /* უფრო ღრმა ჩრდილი */
    margin-bottom: 14px;
}

/* ---- ✅ MAIN Slider სწორი, balanced პროპორცია ---- */
.gallery-main {
  width: 100%;
  height: 520px;               /* ავიღეთ ნორმა მაღალი და ლამაზი */
  overflow: hidden;
  border-radius: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #000;            /* თუ თეთრ ფონზე გინდა შეცვალე #fff */
  transition: all 0.3s ease;
}

.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;           /* cover ამოავსებს სივრცეს გვერდების გარეშე */
  object-position: center;     /* ყველაზე ლამაზად ცენტრავს მთავარ ობიექტს */
  display: block;
  border-radius: 20px;
  transition: transform 0.4s ease;
    cursor: zoom-in;

}

.gallery-main img:hover {
  transform: scale(1.04);
}



/* Navigation arrows */
.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.72);
    color: #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    transition: background 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
}

.gallery-nav:hover {
    background: rgba(15, 23, 42, 0.9);
    transform: translateY(-50%) scale(1.02);
    box-shadow: 0 16px 40px rgba(0,0,0,0.7);
}

.gallery-nav:disabled {
    opacity: 0.35;
    cursor: default;
    box-shadow: none;
}

.gallery-nav.prev {
    left: 12px;
}

.gallery-nav.next {
    right: 12px;
}

/* Thumbnails */
.gallery-thumbs {
    display: flex;
    gap: 8px;
    margin-top: 6px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.thumb-btn {
    border: none;
    padding: 0;
    border-radius: 12px;
    overflow: hidden;
    flex: 0 0 86px;
    height: 60px;
    cursor: pointer;
    border: 2px solid transparent;
    background: #020617;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.5);
    transition: transform 0.12s ease, border-color 0.12s ease, box-shadow 0.12s ease;
}

.thumb-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumb-btn.active {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.7);
}

/* Empty messages for gallery */
#galleryEmptyWarehouse,
#galleryEmptyPort {
    margin: 8px 2px 4px;
    font-size: 13px;
    color: #6b7280;
}

/* Responsive tweaks for gallery */
@media (max-width: 640px) {
    .gallery-main {
        height: 220px;
    }
    .gallery-nav.prev {
        left: 8px;
    }
    .gallery-nav.next {
        right: 8px;
    }
}

body {
  font-family: "NotoSansAmbassadori", sans-serif;
}

body.no-scroll {
  overflow: hidden;
}

/* ==== FULLSCREEN Lightbox – zoomed image ==== */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

.lightbox-inner {
  position: relative;
  max-width: 96vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

#lightboxImage {
  max-width: 96vw;
  max-height: 90vh;
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7);
  cursor: grab;
}

#lightboxImage:active {
  cursor: grabbing;
}

/* Close ღილაკი */
.lightbox-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: none;
  background: rgba(15, 23, 42, 0.9);
  color: #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
}

/* Lightbox-ის ისრები */
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.85);
  color: #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.65);
}

.lightbox-nav.prev {
  left: 12px;
}

.lightbox-nav.next {
  right: 12px;
}

.lightbox-nav:disabled {
  opacity: 0.35;
  cursor: default;
  box-shadow: none;
}

/* პატარა ეკრანებზე */
@media (max-width: 640px) {
  #lightboxImage {
    max-width: 100vw;
    max-height: 80vh;
  }

  .lightbox-nav {
    width: 32px;
    height: 32px;
  }
}


