/* ─── კონტეინერი და ზოგადი სტილი ─── */
.oda-apartment-wrapper {
    background-color: #fcfbfa;
    padding: 60px 0;
    font-family: system-ui, -apple-system, sans-serif;
    color: #2d3139;
}

.container-oda {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

/* ─── მარცხენა მხარე: ვიზუალი და ტაბები ─── */
.oda-apartment-visual {
    flex: 1;
    max-width: 58%;
    background: #ffffff;
    padding: 30px;
    border-radius: 16px;
    border: 1px solid #f0ede9;
    box-shadow: 0 4px 20px rgba(140, 130, 122, 0.05);
    box-sizing: border-box;
}

.oda-visual-tabs-nav {
    display: flex;
    gap: 8px;
    margin-bottom: 25px;
    border-bottom: 1px solid #f0ede9;
    padding-bottom: 12px;
}

.oda-tab-btn {
    background: #f5f3f0;
    color: #686e7a;
    border: 1px solid #e6e2dd;
    padding: 10px 22px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.25s ease;
}

.oda-tab-btn.active, .oda-tab-btn:hover {
    background: #c49a6c;
    color: #ffffff;
    border-color: #c49a6c;
}

.oda-tab-panel { display: none; }
.oda-tab-panel.active { display: block; text-align: center; }
.oda-tab-panel img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
    margin: 0 auto;
}

.no-image-placeholder {
    padding: 60px;
    background: #fbfaf8;
    border: 2px dashed #e6e2dd;
    color: #a19c96;
    border-radius: 8px;
}

/* ─── მარჯვენა მხარე: ინფო ბლოკი ─── */
.oda-apartment-info {
    flex: 1;
    max-width: 42%;
    display: flex;
    flex-direction: column;
    gap: 24px;
    box-sizing: border-box;
}

.oda-status-badge {
    display: inline-block;
    padding: 6px 14px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 30px;
    width: max-content;
}
.oda-status-badge.status-available { background: #e2f3e5; color: #1e6b30; }
.oda-status-badge.status-booked { background: #fff1dc; color: #b26a00; }
.oda-status-badge.status-sold { background: #fde8e8; color: #9c1c1c; }

.oda-product-title {
    font-size: 28px;
    font-weight: 700;
    margin: 8px 0;
    color: #1a1d24;
    line-height: 1.3;
}

.oda-price-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    padding: 16px 20px;
    border-radius: 12px;
    border: 1px solid #f0ede9;
}

.oda-product-price {
    font-size: 26px;
    font-weight: 700;
    color: #c49a6c;
}

.oda-currency-switcher {
    display: flex;
    background: #f5f3f0;
    padding: 4px;
    border-radius: 8px;
    border: 1px solid #e6e2dd;
}

.oda-curr-btn {
    background: transparent;
    border: none;
    color: #686e7a;
    padding: 6px 14px;
    font-size: 14px;
    font-weight: 700;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.oda-curr-btn.active {
    background: #c49a6c;
    color: #ffffff;
}

.oda-apartment-specs {
    background: #ffffff;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #f0ede9;
}

.oda-spec-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f7f5f2;
}
.oda-spec-item:last-child { border-bottom: none; }
.oda-spec-item .oda-label { color: #686e7a; font-size: 14px; }
.oda-spec-item .oda-value { color: #1a1d24; font-size: 15px; }

.oda-apartment-actions { display: flex; gap: 15px; }

.oda-btn {
    flex: 1;
    padding: 16px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
    text-align: center;
    text-decoration: none;
    transition: all 0.2s ease;
}

.oda-btn-primary { background: #c49a6c; color: #ffffff; }
.oda-btn-primary:hover { background: #b08759; }

.oda-btn-secondary {
    background: transparent;
    color: #c49a6c;
    border: 1px solid #c49a6c;
}
.oda-btn-secondary:hover {
    background: #fdfcfb;
    border-color: #b08759;
    color: #b08759;
}

/* ─── 📸 განახლებული გალერეის სექცია (ჰორიზონტალური ლენტა) ─── */
.oda-gallery-section {
    background: #ffffff;
    padding: 60px 0;
    border-top: 1px solid #f0ede9;
    margin-top: 40px;
}

.container-oda-gallery { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.oda-gallery-title { font-size: 24px; font-weight: 700; color: #1a1d24; margin-bottom: 30px; }

.oda-carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.oda-gallery-carousel {
    display: flex;
    gap: 20px;
    width: 100%;
    overflow-x: hidden; /* მალავს ზედმეტ სურათებს, სანამ ისრებს არ დავაჭერთ */
    scroll-behavior: smooth;
    padding: 10px 0;
}

/* 🎯 მკაცრი 3:4 პროპორცია 4 ფოტოსთვის ერთ ხაზზე */
.oda-gallery-item {
    flex: 0 0 calc(25% - 15px);   /* ზუსტად 1/4 კონტეინერის */
    min-width: calc(25% - 15px);  /* არ აძლევს შეკუმშვის საშუალებას 10 სურათის დროს */
    aspect-ratio: 3 / 4; 
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    background: #fcfbfa;
    position: relative;
}

/* 🎯 სურათის იძულებითი გაწელვა/ჩაჭრა თეთრი ზოლების გარეშე */
.oda-gallery-item img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important; /* ავსებს ჩარჩოს მთლიანად */
    object-position: center;      /* აცენტრებს ფოკუსს */
    display: block;
    transition: transform 0.3s ease;
    cursor: pointer;
}

/* 🎯 ჩასწორდა: მოიხსნა ზუმის ეფექტი მაუსის მიტანისას */
.oda-gallery-item img:hover { 
    transform: none !important; 
}

/* 🎯 ახალი: შავი გამჭვირვალე ფენის (Overlay) ბაზა */
.oda-gallery-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4); /* 0.4 არის 40%-იანი სიბნელე */
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none; /* უზრუნველყოფს Lightbox-ის კლიკის მუშაობას */
    border-radius: 16px;  /* ზუსტად იმეორებს ჩარჩოს დამრგვალებას */
}

/* 🎯 ახალი: მაუსის მიტანისას შავი ფენა ნაზად ჩნდება */
.oda-gallery-item:hover::after {
    opacity: 1;
}

/* კარუსელის ისრები */
.oda-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #ffffff;
    border: 1px solid #e6e2dd;
    color: #1a1d24;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.oda-nav-btn:hover {
    background: #c49a6c;
    color: #fff;
    border-color: #c49a6c;
}

.prev-btn { left: -25px; }
.next-btn { right: -25px; }

/* ─── 🌌 Lightbox-ის სტილები ─── */
.oda-lightbox {
    display: none;
    position: fixed;
    z-index: 99999;
    left: 0; top: 0; width: 100%; height: 100%;
    background-color: rgba(15, 17, 23, 0.97);
    align-items: center; justify-content: center;
    user-select: none;
}

.oda-lightbox.active { display: flex; }

.oda-lightbox-stage {
    position: relative;
    max-width: 80%;
    max-height: 80%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.oda-lightbox-content {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 4px;
    transition: transform 0.25s ease;
    transform-origin: center center;
}

.oda-lightbox-tools {
    position: absolute;
    top: 25px;
    right: 30px;
    display: flex;
    gap: 15px;
    z-index: 100000;
}

.oda-lightbox-btn {
    background: rgba(255, 255, 255, 0.08);
    border: none;
    color: #ffffff;
    font-size: 16px;
    font-weight: bold;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
}

.oda-lightbox-btn:hover { background: rgba(255, 255, 255, 0.2); color: #c49a6c; }
.oda-lightbox-close { font-size: 24px; }

.oda-lb-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.06);
    border: none;
    color: #ffffff;
    font-size: 26px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 100000;
    transition: background 0.2s, color 0.2s;
}

.oda-lb-arrow:hover { background: rgba(255, 255, 255, 0.15); color: #c49a6c; }
.oda-lb-prev { left: 40px; }
.oda-lb-next { right: 40px; }

.oda-lightbox-index {
    position: absolute;
    bottom: 25px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    z-index: 100000;
    letter-spacing: 1px;
}

/* ─── 📱 რესპონსივი ─── */
@media (max-width: 1024px) {
    .oda-gallery-item { flex: 0 0 calc(33.333% - 14px); min-width: calc(33.333% - 14px); }
    .prev-btn { left: -10px; }
    .next-btn { right: -10px; }
}

@media (max-width: 992px) {
    .container-oda { flex-direction: column; gap: 30px; }
    .oda-apartment-visual, .oda-apartment-info { max-width: 100%; flex: none; }
}

@media (max-width: 768px) {
    .oda-gallery-item { flex: 0 0 calc(50% - 10px); min-width: calc(50% - 10px); }
    .oda-gallery-carousel { overflow-x: auto; scrollbar-width: none; }
    .oda-nav-btn { display: none; }
    .oda-lb-arrow { width: 50px; height: 50px; font-size: 20px; }
    .oda-lb-prev { left: 15px; }
    .oda-lb-next { right: 15px; }
}

@media (max-width: 480px) {
    .oda-gallery-item { flex: 0 0 80%; min-width: 80%; } 
    .no-image-placeholder { padding: 40px; }
    .oda-lightbox-tools { top: 15px; right: 15px; gap: 8px; }
    .oda-lightbox-stage { max-width: 95%; }
}