﻿/* =====================================================
   QRENT.PRO - Public Pages Styles
   ===================================================== */

/* Realtor Page */
.realtor-header {
    /*background: linear-gradient(180deg, #FFFFFF 0%, #EEEEEE 50%);*/
    /**/
	color: white;
	background-image: url(../images/realtor_header_top.png);
	background-size: cover;
	background-position: center center;
	background-repeat: no-repeat no-repeat;
	background-color: rgba(0,0,0,50%);	
    padding: 60px 0;
    margin-bottom: 40px;
}

.realtor-profile {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.realtor-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid white;
}

.realtor-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-placeholder {
    width: 100%;
    height: 100%;
    background: white;
    color: #667eea;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    font-weight: 700;
}

.realtor-info  {
    max-width: 400px;
    
}

.realtor-info h1 {
    font-size: 36px;
    margin-bottom: 10px;
}

.realtor-nick {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 10px;
}

.realtor-city,
.realtor-bio {
    opacity: 0.8;
    font-size: 16px;
}

.realtor-contacts {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.realtor-contacts2 {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.contact-btn {
    padding: 12px 25px;
    border-radius: 25px;
    text-decoration: none;
    color: white;
    font-weight: 600;
    transition: transform 0.3s;
}

.contact-btn:hover {
    transform: translateY(-2px);
}

.contact-phone {
    background: #1e3a5f;
	border-radius: 25px;
	height: 50px;
}

.contact-flats {
    background: #27ae60;
}

.contact-telegram {
    background: #0088cc;
}

.contact-mess {
    background: #1e3a5f;
	border-radius: 25px;
	width:50px; 
	height: 50px;
	background-size: contain; background-repeat: no-repeat no-repeat;
}

/* Flats Grid */
.flats-section {
    padding: 40px 0;
}

.flats-section h2 {
    font-size: 28px;
    color: #1e3a5f;
    margin-bottom: 10px;
}

.flats-count {
    color: #666;
    margin-bottom: 30px;
}

.flats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.flat-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s, box-shadow 0.3s;
}

.flat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.flat-card-image {
    height: 220px;
    overflow: hidden;
    background: #f0f0f0;
}

.flat-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.flat-card:hover .flat-card-image img {
    transform: scale(1.05);
}

.no-image {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 16px;
}

.flat-card-info {
    padding: 20px;
}

.flat-card-info h3 {
    font-size: 18px;
    color: #1e3a5f;
    margin-bottom: 10px;
}

.flat-card-details {
    display: flex;
    gap: 15px;
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
}

.flat-card-price {
    font-size: 22px;
    font-weight: 700;
    color: #27ae60;
}

.price-period {
    font-size: 14px;
    color: #999;
    font-weight: 400;
}

/* Flat Page */
.breadcrumb {
    padding: 20px 0;
    color: #666;
}

.breadcrumb a {
    color: #667eea;
    text-decoration: none;
}

.breadcrumb span {
    margin: 0 10px;
}

.flat-gallery {
    margin-bottom: 40px;
}

.gallery-main {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.gallery-main img {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s;
}

.gallery-nav:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
}

.gallery-prev {
    left: 20px;
}

.gallery-next {
    right: 20px;
}

.gallery-thumbs {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    overflow-x: auto;
}

.thumb {
    width: 100px;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    opacity: 0.6;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.thumb:hover {
    opacity: 1;
}

.thumb.active {
    opacity: 1;
    border-color: #667eea;
}

.flat-content {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
    margin-bottom: 60px;
}

.flat-main h1 {
    font-size: 32px;
    color: #1e3a5f;
    margin-bottom: 20px;
}

.flat-price {
    font-size: 36px;
    font-weight: 700;
    color: #27ae60;
    margin-bottom: 30px;
}

.flat-price .price-period {
    font-size: 18px;
    color: #999;
}

.flat-params {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 15px;
}

.param {
    text-align: center;
}

.param-value {
    display: block;
    font-size: 20px;
    font-weight: 700;
    color: #1e3a5f;
    margin-bottom: 5px;
}

.param-label {
    font-size: 13px;
    color: #666;
}

.flat-description,
.flat-thailand,
.flat-amenities,
.flat-condo {
    margin-bottom: 30px;
}

.flat-description h3,
.flat-thailand h3,
.flat-amenities h3,
.flat-condo h3 {
    font-size: 22px;
    color: #1e3a5f;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.flat-description p {
    line-height: 1.8;
    color: #555;
}

.thailand-features {
    list-style: none;
    padding: 0;
}

.thailand-features li {
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    color: #555;
}

.amenities-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.amenity-tag {
    padding: 8px 16px;
    background: #f0f4ff;
    color: #667eea;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

/* Sidebar */
.flat-sidebar {
    position: sticky;
    top: 90px;
    height: fit-content;
}

.realtor-card {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    margin-bottom: 20px;
}

.realtor-card h3 {
    font-size: 18px;
    color: #1e3a5f;
    margin-bottom: 20px;
}

.realtor-mini {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.realtor-mini .avatar-placeholder,
.realtor-mini img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
}

.realtor-name {
    font-weight: 600;
    color: #1e3a5f;
}

.realtor-nick {
    font-size: 13px;
    color: #666;
}

.realtor-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-block {
    width: 100%;
    text-align: center;
}

.btn-whatsapp {
    background: #25D366;
    color: white;
}

.btn-telegram {
    background: #0088cc;
    color: white;
}

.btn-line {
    background: #06C755;
    color: white;
}

.flat-meta {
    background: white;
    padding: 20px;
    border-radius: 15px;
    font-size: 13px;
    color: #666;
}

.flat-meta p {
    margin-bottom: 8px;
}

/* Responsive */
@media (max-width: 900px) {
    .flat-content {
        grid-template-columns: 1fr;
    }
    
    .flat-sidebar {
        position: static;
    }
    
    .flat-params {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .gallery-main img {
        height: 350px;
    }
}

@media (max-width: 600px) {
    .realtor-profile {
        flex-direction: column;
        text-align: center;
    }
    
    .realtor-contacts {
        justify-content: center;
    }
    
    .flats-grid {
        grid-template-columns: 1fr;
    }
    
    .flat-params {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* Flat Page Title - чтобы не дублировать с шапкой */
.flat-title {
    font-size: 28px;
    margin-top: 20px;
}

/* Убираем дублирование контактов на мобильных */
@media (max-width: 900px) {
    .flat-sidebar {
        display: none; /* Контакты уже есть в шапке */
    }
}


/* =====================================================
   Header с риэлтором (для клиентов)
   ===================================================== */

.logo-qrent {
    position: absolute;
    top: 10px;
    left: 20px;
    font-size: 12px;
    color: #999;
    text-decoration: none;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.logo-qrent:hover {
    opacity: 1;
}

.realtor-header-info {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-left: 120px;
}

.realtor-mini-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.realtor-avatar-small,
.avatar-placeholder-small {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
}

.avatar-placeholder-small {
    background: #667eea;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
}

.realtor-text {
    display: flex;
    flex-direction: column;
}

.realtor-name-header {
    font-weight: 600;
    color: #1e3a5f;
    font-size: 15px;
}

.realtor-phone-header {
    font-size: 13px;
    color: #27ae60;
    text-decoration: none;
}

.realtor-messengers {
    display: flex;
    gap: 8px;
}

.messenger-btn {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: white;
    font-size: 12px;
    font-weight: 700;
    transition: transform 0.3s;
}

.messenger-btn:hover {
    transform: translateY(-2px);
}

.messenger-btn.whatsapp {
    background: #25D366;
}

.messenger-btn.telegram {
    background: #0088cc;
}

.messenger-btn.line {
    background: #06C755;
}

.realtor-nav-links {
    margin-left: auto;
}

.nav-link-realtor {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    padding: 8px 16px;
    border: 2px solid #667eea;
    border-radius: 8px;
    transition: all 0.3s;
}

.nav-link-realtor:hover {
    background: #667eea;
    color: white;
}

/* Footer с риэлтором */
.footer-realtor-link {
    text-align: center;
}

.footer-realtor-link a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
    .logo-qrent {
        font-size: 10px;
        top: 8px;
        left: 10px;
    }
    
    .realtor-header-info {
        margin-left: 100px;
        gap: 15px;
    }
    
    .realtor-name-header {
        font-size: 13px;
    }
    
    .realtor-phone-header {
        font-size: 11px;
    }
    
    .messenger-btn {
        width: 32px;
        height: 32px;
        font-size: 10px;
    }
    
    .nav-link-realtor {
        font-size: 12px;
        padding: 6px 12px;
    }
}




/* =====================================================
   Client Header (Realtor Top Bar)
   ===================================================== */

.site-header-client {
    height: 0;
    padding: 0;
    margin: 0;
    border: none;
    box-shadow: none;
}

.realtor-top-bar {
    background: white;
    border-bottom: 1px solid #e0e0e0;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.realtor-top-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
}

.realtor-info-block {
    display: flex;
    align-items: center;
    gap: 15px;
}



.realtor-avatar-block {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    overflow: hidden;
}

.realtor-avatar-block img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.realtor-text-block {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.realtor-name {
    font-weight: 700;
    font-size: 16px;
    color: #1e3a5f;
}

.realtor-city {
    font-size: 13px;
    color: #666;
}

.realtor-phone {
    font-size: 14px;
    color: #27ae60;
    text-decoration: none;
    font-weight: 500;
}

.realtor-messengers-block {
    display: flex;
    gap: 10px;
}

.messenger-btn {
    padding: 10px 18px;
    border-radius: 8px;
    text-decoration: none;
    color: white;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.3s;
}

.messenger-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.messenger-btn.whatsapp {
    background: #25D366;
}

.messenger-btn.telegram {
    background: #0088cc;
}

.messenger-btn.line {
    background: #06C755;
}

.realtor-actions-block {
    margin-left: auto;
}

.btn-realtor-objects {
    padding: 12px 25px;
    background: #667eea;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-realtor-objects:hover {
    background: #5568d3;
    transform: translateY(-2px);
}

/* Admin Header */
.site-header-admin {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.site-header-admin .logo {
    font-size: 24px;
    font-weight: 700;
    color: #1e3a5f;
    text-decoration: none;
}

.site-header-admin .logo-text {
    color: #667eea;
}

/* Responsive */
@media (max-width: 768px) {
    .realtor-top-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .realtor-info-block {
        width: 100%;
        justify-content: center;
        text-align: center;
    }
    
    .realtor-text-block {
        align-items: center;
    }
    
    .realtor-messengers-block {
        width: 100%;
        justify-content: center;
    }
    
    .realtor-actions-block {
        margin-left: 0;
        width: 100%;
        text-align: center;
    }
    
    .btn-realtor-objects {
        display: block;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
}




/* =====================================================
   Flat Page - Split Layout (2/3 + 1/3)
   ===================================================== */

.flat-content-split {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.flat-main-content {
    min-width: 0;
}

.flat-sidebar-content {
    min-width: 0;
}

/* Condo Info Card */
.condo-info-card {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    margin-bottom: 20px;
}

.condo-info-card h3 {
    font-size: 18px;
    color: #1e3a5f;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.condo-photo {
    margin-bottom: 15px;
    border-radius: 10px;
    overflow: hidden;
}

.condo-photo img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.condo-name-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 16px;
    font-weight: 600;
    color: #667eea;
    text-decoration: none;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    transition: color 0.3s;
}

.condo-name-link:hover {
    color: #5568d3;
}

.condo-arrow {
    font-size: 20px;
    margin-left: 10px;
}

.condo-area {
    color: #666;
    font-size: 14px;
    margin: 10px 0;
}

.condo-params-mini {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin: 15px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
}

.condo-param {
    text-align: center;
}

.condo-param .label {
    display: block;
    font-size: 11px;
    color: #999;
    margin-bottom: 3px;
}

.condo-param .value {
    display: block;
    font-weight: 600;
    color: #1e3a5f;
    font-size: 13px;
}

.condo-amenities-mini {
    font-size: 13px;
    color: #666;
    padding: 15px;
    background: #f0f4ff;
    border-radius: 10px;
    margin: 15px 0;
}

.condo-map-container {
    margin: 15px 0;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid #e0e0e0;
}

/* Flat Sections */
.flat-section {
    background: white;
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.flat-section h3 {
    font-size: 20px;
    color: #1e3a5f;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.flat-description-text {
    line-height: 1.8;
    color: #555;
}

/* Responsive */
@media (max-width: 900px) {
    .flat-content-split {
        grid-template-columns: 1fr;
    }
    
    .flat-sidebar-content {
        order: -1; /* Сайдбар сверху на мобильных */
    }
}

@media (max-width: 600px) {
    .condo-params-mini {
        grid-template-columns: 1fr;
    }
}