@font-face {
    font-family: 'Golos Text';
    src: url('../fonts/GolosText-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Gilroy';
    src: url('../fonts/Gilroy-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Gilroy';
    src: url('../fonts/Gilroy-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Golos Text', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
    scroll-behavior: smooth;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: white;
    padding: 20px 0;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.header h1 {
    font-family: 'Gilroy', sans-serif;
    font-size: 24px;
    font-weight: 600;
    color: #333;
}

/* Main Content */
.main-content {
    background: white;
    margin: 20px 0;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
}

/* Property Overview Section */
.property-overview {
    display: flex;
    gap: 30px;
    padding: 30px;
}

.image-gallery {
    flex: 1;
}

/* Desktop styles */
@media (min-width: 769px) {
    .image-gallery {
        max-width: 50%;
    }
}

.main-image {
    width: 100%;
    height: 300px;
    background: linear-gradient(45deg, #e0e0e0, #f0f0f0);
    border-radius: 8px;
    position: relative;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 18px;
}

.main-image::after {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0,0,0,0.7);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.thumbnails {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 10px 0;
    scrollbar-width: thin;
    scrollbar-color: #007bff #f0f0f0;
    -webkit-overflow-scrolling: touch;
}

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

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

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

.thumbnails::-webkit-scrollbar-thumb:hover {
    background: #0056b3;
}

.thumbnail {
    flex: 0 0 120px;
    height: 80px;
    background: linear-gradient(45deg, #e0e0e0, #f0f0f0);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 12px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 2px solid transparent;
}

.thumbnail:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.thumbnail.active {
    border-color: #007bff;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.4);
}

.characteristics {
    flex: 1;
    background: white;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.characteristics h3 {
    font-family: 'Gilroy', sans-serif;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #333;
}

.char-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

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

.char-label {
    color: #666;
    font-size: 14px;
}

.char-value {
    font-weight: 500;
    color: #333;
    text-align: right;
}

.more-link {
    color: #007bff;
    text-decoration: none;
    font-size: 14px;
    margin-top: 15px;
    display: inline-block;
}

.ask-button {
    font-family: 'Gilroy', sans-serif;
    background: #dc3545;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    width: 100%;
    margin-top: 20px;
    transition: background 0.3s;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.ask-button:hover {
    background: #c82333;
    color: white;
    text-decoration: none;
}

/* Blue Highlight Class */
.blue-highlight {
    border-top: 3px solid #007bff;
    border-bottom: 3px solid #007bff;
    background: linear-gradient(135deg, #f8fbff 0%, #e6f3ff 100%);
    margin: 20px 0;
    border-radius: 0 8px 8px 0;
    box-shadow: 0 2px 10px rgba(0, 123, 255, 0.1);
}

.blue-highlight h3 {
    color: #007bff !important;
}

.blue-highlight p {
    color: #333;
    line-height: 1.8;
    font-size: 16px;
}

/* Additional Info Section */
.additional-info {
    padding: 30px;
}

.additional-info h3 {
    font-family: 'Gilroy', sans-serif;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

.additional-info p {
    color: #333;
    line-height: 1.8;
    font-size: 16px;
}

.contact-info p {
    color: #666;
    line-height: 1.8;
}

/* Contact Manager Section */
.contact-manager-section {
    padding: 60px 30px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    text-align: center;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.contact-manager-content {
    max-width: 600px;
    margin: 0 auto;
}

.contact-manager-content h3 {
    font-family: 'Gilroy', sans-serif;
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

.contact-manager-content p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 30px;
    font-size: 16px;
}

.contact-manager-button {
    font-family: 'Gilroy', sans-serif;
    background: #dc3545;
    color: white;
    border: none;
    padding: 18px 40px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.2);
    text-decoration: none;
    display: inline-block;
}

.contact-manager-button:hover {
    background: #c82333;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 53, 69, 0.3);
    color: white;
    text-decoration: none;
}

.contact-manager-button:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.2);
}


/* Objects List Section */
.objects-list {
    padding: 30px;
    border-top: 1px solid #eee;
}

.objects-list h3 {
    font-family: 'Gilroy', sans-serif;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #333;
}

.objects-table {
    width: 100%;
    border-collapse: collapse;
}

.objects-table th,
.objects-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.objects-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
}

/* Auction Details Section */
.auction-details {
    padding: 30px;
    border-top: 1px solid #eee;
}

.auction-details h3 {
    font-family: 'Gilroy', sans-serif;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #333;
}

.auction-grid {
    display: flex;
    gap: 40px;
}

.auction-column {
    flex: 1;
}

.auction-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

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

.auction-label {
    color: #666;
    font-size: 14px;
}

.auction-value {
    font-weight: 600;
    color: #333;
    text-align: right;
}

.auction-number {
    font-family: 'Gilroy', sans-serif;
    font-size: 18px;
    font-weight: 600;
}

.auction-price {
    font-family: 'Gilroy', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #28a745;
}

/* Map Section */
.map-section {
    padding: 30px;
    border-top: 1px solid #eee;
}

.map-section h3 {
    font-family: 'Gilroy', sans-serif;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #333;
}

.map-tabs {
    display: flex;
    margin-bottom: 15px;
}

.map-tab {
    padding: 10px 20px;
    background: white;
    border: 1px solid #ddd;
    cursor: pointer;
    font-size: 14px;
}

.map-tab.active {
    background: #dc3545;
    color: white;
    border-color: #dc3545;
}

.map-tab:first-child {
    border-radius: 4px 0 0 4px;
}

.map-tab:last-child {
    border-radius: 0 4px 4px 0;
}

.map-container {
    width: 100%;
    height: 400px;
    background: linear-gradient(45deg, #e8f5e8, #d4edda);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 16px;
    position: relative;
    margin-bottom: 20px;
}

#map {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    overflow: hidden;
}

.map-marker {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    background: #28a745;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

/* Documents Section */
.documents-section {
    padding: 30px;
    border-top: 1px solid #eee;
}

.documents-section h3 {
    font-family: 'Gilroy', sans-serif;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #333;
}

.doc-links {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.doc-link {
    padding: 8px 15px;
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #666;
    font-size: 12px;
}

.download-archive {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    margin-bottom: 20px;
}

.doc-tabs {
    display: flex;
    margin-bottom: 20px;
}

.doc-tab {
    padding: 12px 20px;
    background: white;
    border: 1px solid #ddd;
    cursor: pointer;
    font-size: 14px;
}

.doc-tab.active {
    background: #dc3545;
    color: white;
    border-color: #dc3545;
}

.doc-tab:first-child {
    border-radius: 4px 0 0 4px;
}

.doc-tab:last-child {
    border-radius: 0 4px 4px 0;
}

.doc-list {
    list-style: none;
}

.doc-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
}

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

.doc-name {
    color: #333;
    font-size: 14px;
}

.doc-meta {
    color: #666;
    font-size: 12px;
}

.doc-download {
    color: #007bff;
    text-decoration: none;
    font-size: 14px;
}

.show-all-docs {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #666;
    text-decoration: none;
    font-size: 14px;
    margin-top: 15px;
}

/* Contact Section */
.contact-section {
    padding: 30px;
    display: flex;
    gap: 40px;
}

.contact-info {
    flex: 1;
}

.contact-info h3 {
    font-family: 'Gilroy', sans-serif;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

.contact-info p {
    color: #333;
    line-height: 1.8;
    font-size: 16px;
}

.contact-phone {
    font-family: 'Gilroy', sans-serif;
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.contact-email {
    color: #007bff;
    text-decoration: none;
    margin-bottom: 20px;
    display: inline-block;
}

.contact-person {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
}

.person-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(45deg, #e0e0e0, #f0f0f0);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 20px;
}

.person-info h4 {
    font-family: 'Gilroy', sans-serif;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
}

.person-title {
    color: #666;
    font-size: 14px;
    margin-bottom: 5px;
}

.person-email {
    color: #007bff;
    text-decoration: none;
    font-size: 14px;
}

.participation-guide {
    flex: 1;
}

.participation-guide h3 {
    font-family: 'Gilroy', sans-serif;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

.guide-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: #333;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    margin-bottom: 20px;
}

.guide-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(45deg, #e0e0e0, #f0f0f0);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 16px;
    margin-bottom: 15px;
}

.guide-text {
    color: #666;
    font-size: 14px;
}

/* Form Section */
.form-section {
    padding: 30px;
    border-top: 1px solid #eee;
}

.form-section h3 {
    font-family: 'Gilroy', sans-serif;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #333;
}

.form-tabs {
    display: flex;
    margin-bottom: 25px;
}

.form-tab {
    padding: 10px 20px;
    background: white;
    border: 1px solid #ddd;
    cursor: pointer;
    font-size: 14px;
    position: relative;
}

.form-tab.active {
    background: #dc3545;
    color: white;
    border-color: #dc3545;
}

.form-tab.active::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: #dc3545;
}

.form-tab:first-child {
    border-radius: 4px 0 0 4px;
}

.form-tab:last-child {
    border-radius: 0 4px 4px 0;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-label {
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.form-input {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.form-input:focus {
    outline: none;
    border-color: #007bff;
}

.form-textarea {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    resize: vertical;
    min-height: 100px;
}

.file-upload {
    border: 2px dashed #ddd;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.3s;
}

.file-upload:hover {
    border-color: #007bff;
}

.file-upload-icon {
    font-size: 24px;
    color: #666;
    margin-bottom: 10px;
}

.file-upload-text {
    color: #666;
    font-size: 14px;
    margin-bottom: 5px;
}

.file-upload-info {
    color: #999;
    font-size: 12px;
}

.form-checkboxes {
    margin: 20px 0;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.checkbox-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
}

.checkbox-item label {
    font-size: 14px;
    color: #333;
}

.checkbox-item a {
    color: #007bff;
    text-decoration: none;
}

.submit-button {
    font-family: 'Gilroy', sans-serif;
    background: #dc3545;
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s;
}

.submit-button:hover {
    background: #c82333;
}

/* Footer */
.footer {
    background: #333;
    color: white;
    padding: 40px 0;
    margin-top: 40px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
}

.footer-section {
    flex: 1;
}

.footer-section h4 {
    font-family: 'Gilroy', sans-serif;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #fff;
}

.footer-phone {
    font-family: 'Gilroy', sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 10px;
}

.footer-email {
    color: #ccc;
    text-decoration: none;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #555;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-size: 18px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    font-size: 14px;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid #555;
    margin-top: 30px;
    padding-top: 20px;
    text-align: center;
    color: #ccc;
    font-size: 14px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    .property-overview {
        flex-direction: column;
        gap: 20px;
        padding: 20px;
    }

    .auction-grid {
        flex-direction: column;
        gap: 20px;
    }

    .contact-section {
        flex-direction: column;
        gap: 30px;
    }

    .form-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .form-section {
        padding: 25px 20px;
    }

    .footer-content {
        flex-direction: column;
        gap: 30px;
        text-align: left;
    }

    .map-tabs,
    .doc-tabs,
    .form-tabs {
        flex-direction: column;
    }

    .map-tab,
    .doc-tab,
    .form-tab {
        border-radius: 4px !important;
        margin-bottom: 5px;
    }

    .doc-links {
        flex-direction: column;
    }

    .thumbnails {
        flex-direction: row;
    }

    .thumbnail {
        height: 60px;
    }

    .main-image {
        height: 250px;
    }

    .map-container {
        height: 300px;
        margin-bottom: 20px;
    }

    /* Исправления для карты на мобильных */
    .map-section {
        padding: 20px 15px;
        margin-bottom: 20px;
    }

    #map {
        width: 100% !important;
        height: 300px !important;
        border-radius: 8px;
        overflow: hidden;
    }

    /* Адаптивные стили для блока контактов менеджера */
    .contact-manager-section {
        padding: 40px 20px;
    }

    .contact-manager-content h3 {
        font-size: 24px;
    }

    .contact-manager-content p {
        font-size: 14px;
        margin-bottom: 25px;
    }

    .contact-manager-button {
        padding: 15px 30px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .header h1 {
        font-size: 20px;
    }

    .characteristics,
    .additional-info,
    .objects-list,
    .auction-details,
    .map-section,
    .documents-section,
    .contact-section,
    .form-section {
        padding: 20px 15px;
    }

    .contact-person {
        flex-direction: column;
        text-align: center;
    }

    .person-avatar {
        width: 80px;
        height: 80px;
    }

    /* Дополнительные исправления для очень маленьких экранов */
    .map-container {
        height: 250px;
        margin-bottom: 15px;
    }

    #map {
        height: 250px !important;
    }

    .map-section {
        padding: 15px 10px;
        margin-bottom: 15px;
    }

    /* Дополнительные стили для блока контактов менеджера на маленьких экранах */
    .contact-manager-section {
        padding: 30px 15px;
    }

    .contact-manager-content h3 {
        font-size: 20px;
    }

    .contact-manager-content p {
        font-size: 13px;
        margin-bottom: 20px;
    }

    .contact-manager-button {
        padding: 12px 25px;
        font-size: 15px;
        width: 100%;
        max-width: 280px;
    }
} 