
    /* =============== ОБЩИЕ СТИЛИ =============== */
.custom-slider {
  position: relative;
  height: 500px;
  overflow: hidden;
  background: none; 
    border-radius: 12px 12px 0 0;
}

.custom-slide {
  position: relative;
  display: none;
  width: 100%;
  height: 100%;
}

.custom-slide.active {
  display: block;
}

.custom-slide-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  cursor: pointer;
  transform: scale(1);
  transition: transform 0.3s ease;
}

.custom-slide:hover .custom-slide-image {
  transform: scale(1.1);
}

.slide-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0, 123, 255, 0.9);
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 10;
    backdrop-filter: blur(2px);
}

/* =============== МИНИАТЮРЫ =============== */
.custom-thumbnails {
    display: flex;
    gap: 10px;
    padding: 12px 12px;
    overflow-x: auto;
    background: #f8f9fa;
    border-top: 1px solid #eee;
    scroll-behavior: smooth;
}

.custom-thumbnails::-webkit-scrollbar {
    height: 6px;
}

.custom-thumbnails::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.custom-thumbnails::-webkit-scrollbar-thumb {
    background: #007bff;
    border-radius: 3px;
}

/* Контейнер миниатюры */
.thumb-container {
    position: relative;
    width: 80px;
    height: 60px;
    flex-shrink: 0;
    cursor: pointer;
}

/* Обёртка с рамкой */
.thumb-wrapper {
    width: 100%;
    height: 100%;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}

/* Внутренний элемент с фоном */
.custom-thumb {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    border-radius: 6px;
    transition: transform 0.2s;
}

.custom-thumb:hover {
    transform: scale(1.03);
}

/* Бейдж "План" */
.thumb-badge-label {
    position: absolute;
    top: 0;
    left: 0;
    font-size: 0.65rem;
    font-weight: bold;
    padding: 2px 6px;
    background: #007bff;
    color: white;
    border-bottom-right-radius: 6px;
    z-index: 5;
    white-space: nowrap;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

/* Активная миниатюра */
.thumb-container.active .thumb-wrapper {
    outline: 3px solid #007bff;
    border-radius: 6px;
}

/* =============== ОСТАЛЬНЫЕ СТИЛИ =============== */
.custom-title {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: #2c3e50;
}

.custom-property-info p {
    margin-bottom: 0.7rem;
    color: #34495e;
}

.price-highlight {
    font-weight: bold;
    color: #e74c3c;
    font-size: 1.2rem;
}

.custom-fav-btn {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 6px;
}

.custom-fav-btn:hover {
    background: #c0392b;
}

.custom-login-link {
    color: #007bff;
    text-decoration: underline;
}

/* =============== ПОЛНОЭКРАННЫЙ РЕЖИМ =============== */
.fullscreen-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.fullscreen-overlay.active {
    opacity: 1;
    display: flex;
}

.fullscreen-image {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    animation: fadeIn 0.3s ease;
}

.fullscreen-close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.3s;
    z-index: 10000;
}

.fullscreen-close:hover {
    opacity: 1;
}

.fullscreen-counter {
    color: white;
    font-size: 0.9rem;
    margin-top: 10px;
}

.fullscreen-thumbnails {
    display: flex;
    gap: 8px;
    width: 90%;
    max-width: 800px;
    margin: 12px auto 0;
    padding: 8px 8px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: #007bff #f1f1f1;
}

.fullscreen-thumbnails::-webkit-scrollbar {
    height: 6px;
}

.fullscreen-thumbnails::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.fullscreen-thumbnails::-webkit-scrollbar-thumb {
    background: #007bff;
    border-radius: 3px;
}

.fullscreen-thumb {
    width: 80px;
    height: 60px;
    background-size: cover;
    background-position: center;
    border: 2px solid transparent;
    border-radius: 6px;
    cursor: pointer;
    flex-shrink: 0;
    opacity: 0.7;
    transition: all 0.2s;
}

.fullscreen-thumb:hover,
.fullscreen-thumb.active {
    border-color: #007bff;
    opacity: 1;
    transform: scale(1.05);
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}