/* ============================================
   RENTALAPART - ПРОФЕССИОНАЛЬНЫЙ ДИЗАЙН
   Цвета: White + Teal (#008080)
   ============================================ */

:root {
    --primary: #008080;
    --primary-dark: #006666;
    --primary-light: #20b2aa;
    --secondary: #4a5568;
    --success: #2f855a;
    --danger: #e53e3e;
    --dark: #2d3748;
    --gray-dark: #4a5568;
    --gray: #718096;
    --gray-light: #a0aec0;
    --gray-bg: #edf2f7;
    --white: #ffffff;
    --border: #e2e8f0;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.05);
    --radius: 0.375rem;
    --radius-lg: 0.5rem;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background: var(--gray-bg);
    color: var(--dark);
    line-height: 1.5;
}

a {
    text-decoration: none;
}

/* ============================================
   НАВИГАЦИЯ
   ============================================ */
.navbar {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 68px;
}

.logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    letter-spacing: -0.3px;
}

.logo span {
    font-weight: 400;
    color: var(--gray);
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--secondary);
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--primary);
}

.btn-nav {
    background: var(--primary);
    color: var(--white) !important;
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius);
    transition: background 0.2s;
}

.btn-nav:hover {
    background: var(--primary-dark);
    color: var(--white) !important;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-name {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--dark);
}

.avatar {
    width: 34px;
    height: 34px;
    background: var(--primary);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 600;
    font-size: 0.875rem;
}

/* ============================================
   HERO СЕКЦИЯ
   ============================================ */
.hero {
    background: var(--white);
    padding: 4rem 0;
    border-bottom: 1px solid var(--border);
}

.hero-content {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
}

.hero h1 {
    font-size: 2.75rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.hero p {
    font-size: 1.125rem;
    color: var(--gray);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-top: 2rem;
}

.hero-stat {
    text-align: center;
}

.hero-stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
}

.hero-stat-label {
    font-size: 0.75rem;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ============================================
   СЕКЦИИ
   ============================================ */
.section {
    padding: 3rem 0;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: var(--dark);
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ============================================
   ФИЛЬТРЫ
   ============================================ */
.filters-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    align-items: flex-end;
}

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

.filter-label {
    font-size: 0.7rem;
    font-weight: 600;
    margin-bottom: 0.375rem;
    color: var(--gray-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-input {
    padding: 0.625rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.875rem;
    transition: border-color 0.2s;
    background: var(--white);
}

.filter-input:focus {
    outline: none;
    border-color: var(--primary);
}

/* ============================================
   КАРТОЧКИ ОБЪЯВЛЕНИЙ
   ============================================ */
.properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.property-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.2s;
    cursor: pointer;
}

.property-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.property-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: var(--gray-light);
}

.property-info {
    padding: 1rem;
}

.property-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--dark);
}

.property-address {
    font-size: 0.75rem;
    color: var(--gray);
    margin-bottom: 0.75rem;
}

.property-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0.5rem 0;
}

.property-price small {
    font-size: 0.75rem;
    font-weight: normal;
    color: var(--gray);
}

.property-details {
    display: flex;
    gap: 1rem;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
}

.property-details span {
    font-size: 0.75rem;
    color: var(--gray);
}

/* ============================================
   ПРЕИМУЩЕСТВА
   ============================================ */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.benefit-card {
    text-align: center;
    padding: 1.5rem;
}

.benefit-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.benefit-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.benefit-text {
    font-size: 0.875rem;
    color: var(--gray);
}

/* ============================================
   ПОПУЛЯРНЫЕ ГОРОДА
   ============================================ */
.cities-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem;
}

.city-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1rem;
    text-align: center;
    transition: all 0.2s;
    cursor: pointer;
}

.city-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.city-name {
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.city-count {
    font-size: 0.75rem;
    color: var(--gray);
}

/* ============================================
   АВТОРИЗАЦИЯ
   ============================================ */
.auth-container {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.auth-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 440px;
    padding: 2rem;
}

.auth-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.auth-subtitle {
    font-size: 0.875rem;
    color: var(--gray);
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

/* ============================================
   ФОРМЫ
   ============================================ */
.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.375rem;
    color: var(--dark);
}

.form-input {
    width: 100%;
    padding: 0.625rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.875rem;
    transition: border-color 0.2s;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 0.625rem 1.25rem;
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
    width: 100%;
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--dark);
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* ============================================
   ПРОФИЛЬ
   ============================================ */
.profile-header {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    background: var(--primary);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 600;
    color: var(--white);
}

.profile-info h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.profile-info p {
    font-size: 0.875rem;
    color: var(--gray);
    margin-bottom: 0.5rem;
}

.profile-role {
    display: inline-block;
    padding: 0.125rem 0.5rem;
    background: var(--gray-bg);
    border-radius: var(--radius);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--primary);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1rem;
    text-align: center;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.stat-label {
    font-size: 0.75rem;
    color: var(--gray);
    margin-top: 0.25rem;
}

/* ============================================
   УВЕДОМЛЕНИЯ
   ============================================ */
.alert {
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.alert-success {
    background: #e6fffa;
    border-left: 3px solid var(--primary);
    color: #234e52;
}

.alert-error {
    background: #fff5f5;
    border-left: 3px solid var(--danger);
    color: #742a2a;
}

/* ============================================
   ПАГИНАЦИЯ
   ============================================ */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin: 2rem 0;
}

.page-link {
    padding: 0.375rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-decoration: none;
    font-size: 0.875rem;
    color: var(--gray-dark);
    transition: all 0.2s;
}

.page-link:hover,
.page-link.active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

/* ============================================
   ФУТЕР
   ============================================ */
.footer {
    background: var(--white);
    border-top: 1px solid var(--border);
    margin-top: 3rem;
    padding: 2rem;
}

.footer-content {
    max-width: 1280px;
    margin: 0 auto;
    text-align: center;
    font-size: 0.75rem;
    color: var(--gray);
}

/* ============================================
   АДАПТИВ
   ============================================ */
@media (max-width: 1024px) {
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .cities-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-container {
        padding: 0 1rem;
    }
    
    .nav-links {
        gap: 1rem;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .hero h1 {
        font-size: 1.75rem;
    }
    
    .hero-stats {
        gap: 1.5rem;
        flex-wrap: wrap;
    }
    
    .properties-grid {
        grid-template-columns: 1fr;
    }
    
    .filters-grid {
        grid-template-columns: 1fr;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .cities-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .profile-header {
        flex-direction: column;
        text-align: center;
    }
}



/* ============================================
   ДОПОЛНИТЕЛЬНЫЕ СТИЛИ ДЛЯ ПРОФИЛЯ
   ============================================ */
.profile-forms {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.profile-form-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}

.form-card-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
    color: var(--dark);
}

.form-hint {
    font-size: 0.7rem;
    color: var(--gray);
    margin-top: 0.25rem;
}

.profile-actions {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.actions-grid {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.btn-danger {
    background: var(--danger);
    color: var(--white);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
    text-decoration: none;
    display: inline-block;
}

.btn-danger:hover {
    background: #c53030;
}

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    font-size: 0.875rem;
}

.auth-footer a {
    color: var(--primary);
    text-decoration: none;
    margin-left: 0.5rem;
    font-weight: 500;
}

.auth-footer a:hover {
    text-decoration: underline;
}

.auth-test {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    font-size: 0.75rem;
    text-align: center;
    color: var(--gray);
}

.auth-test p {
    margin: 0.25rem 0;
}

@media (max-width: 768px) {
    .profile-forms {
        grid-template-columns: 1fr;
    }
    
    .actions-grid {
        flex-direction: column;
    }
    
    .actions-grid a {
        text-align: center;
    }
}

/* Стили для аватара в профиле */
.profile-avatar-img {
    width: 80px;
    height: 80px;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--primary);
}

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

/* Стили для аватара в навигации */
.avatar-img {
    width: 34px;
    height: 34px;
    border-radius: var(--radius);
    object-fit: cover;
}


/* ============================================
   ДЕТАЛЬНАЯ СТРАНИЦА - ПРЕМИУМ ДИЗАЙН
   ============================================ */

.property-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

/* ============================================
   ГАЛЕРЕЯ - УЛУЧШЕННАЯ
   ============================================ */
.property-gallery-full {
    margin-bottom: 2.5rem;
}

.gallery-main {
    position: relative;
    border-radius: 1.5rem;
    overflow: hidden;
    background: #f1f5f9;
    margin-bottom: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    aspect-ratio: 16 / 9;
    max-height: 550px;
}

.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

.gallery-main:hover img {
    transform: scale(1.02);
}

/* Индикатор количества фото */
.gallery-counter {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 2rem;
    font-size: 0.75rem;
    font-weight: 500;
    z-index: 2;
}

.gallery-thumbs {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    scrollbar-width: thin;
}

.gallery-thumbs::-webkit-scrollbar {
    height: 4px;
}

.gallery-thumbs::-webkit-scrollbar-track {
    background: #e2e8f0;
    border-radius: 4px;
}

.gallery-thumbs::-webkit-scrollbar-thumb {
    background: #008080;
    border-radius: 4px;
}

.gallery-thumb {
    position: relative;
    width: 100px;
    height: 70px;
    border-radius: 0.75rem;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s;
    flex-shrink: 0;
}

.gallery-thumb.active {
    border-color: #008080;
    box-shadow: 0 2px 8px rgba(0, 128, 128, 0.2);
}

.gallery-thumb:hover {
    opacity: 0.85;
    transform: scale(1.02);
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* ============================================
   ОСНОВНОЙ КОНТЕНТ
   ============================================ */
.property-content {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 2.5rem;
    margin-bottom: 3rem;
}

/* Левая колонка */
.property-main {
    background: white;
    border-radius: 1.5rem;
    padding: 1.5rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.property-head {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eef2f6;
}

.property-head h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: #0f172a;
    line-height: 1.3;
}

.property-location {
    color: #5b6e8c;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.property-location::before {
    content: "📍";
    font-size: 0.9rem;
}

.property-stats {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.property-stats span {
    font-size: 0.85rem;
    color: #475569;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.property-stats span:first-child::before {
    content: "🏠";
    font-size: 0.9rem;
}

.property-stats span:nth-child(2)::before {
    content: "👥";
    font-size: 0.9rem;
}

.property-stats span:last-child::before {
    content: "👁️";
    font-size: 0.9rem;
}

/* Описание */
.property-description {
    margin-bottom: 2rem;
}

.property-description h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #0f172a;
}

.property-description p {
    font-size: 0.9rem;
    line-height: 1.7;
    color: #334155;
}

/* Удобства (если добавить в БД) */
.property-amenities {
    margin-bottom: 2rem;
}

.property-amenities h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #0f172a;
}

.amenities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.75rem;
}

.amenity-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #475569;
    padding: 0.4rem 0;
}

.amenity-item::before {
    content: "✓";
    color: #008080;
    font-weight: bold;
}

/* Карточка арендодателя */
.property-host h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #0f172a;
}

.host-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 1rem;
    transition: all 0.2s;
}

.host-card:hover {
    background: #f1f5f9;
}

.host-avatar {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #008080, #00a0a0);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    overflow: hidden;
    flex-shrink: 0;
}

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

.host-info {
    flex: 1;
}

.host-name {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 0.3rem;
    color: #0f172a;
}

.host-contact {
    font-size: 0.75rem;
    color: #5b6e8c;
    display: inline-block;
    margin-right: 1rem;
    word-break: break-all;
}

.host-contact:first-of-type::before {
    content: "✉️ ";
    margin-right: 0.2rem;
}

.host-contact:last-of-type::before {
    content: "📞 ";
    margin-right: 0.2rem;
}

/* ============================================
   ПРАВАЯ КОЛОНКА (САЙДБАР)
   ============================================ */
.property-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

/* Карточка цены */
.price-card {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid #eef2f6;
}

.price-value {
    font-size: 2.2rem;
    font-weight: 800;
    color: #008080;
    margin-bottom: 1rem;
    text-align: center;
}

.price-value span {
    font-size: 0.9rem;
    font-weight: normal;
    color: #5b6e8c;
}

/* Кнопка избранного */
.favorite-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: #475569;
    text-decoration: none;
    font-size: 0.85rem;
    padding: 0.7rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    transition: all 0.2s;
    background: white;
    cursor: pointer;
    width: 100%;
    text-align: center;
    box-sizing: border-box;
}

.favorite-link::before {
    content: "❤️";
    font-size: 0.9rem;
}

.favorite-link:hover {
    border-color: #008080;
    color: #008080;
    background: #f8fafc;
}

/* Карточка бронирования */
.booking-card {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid #eef2f6;
}

.booking-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #eef2f6;
    color: #0f172a;
}

.booking-form-group {
    margin-bottom: 1rem;
}

.booking-form-group label {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    color: #5b6e8c;
    margin-bottom: 0.4rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.booking-input {
    width: 100%;
    padding: 0.7rem 0.9rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    font-size: 0.85rem;
    font-family: inherit;
    background: #f8fafc;
    transition: all 0.2s;
    box-sizing: border-box;
}

.booking-input:focus {
    outline: none;
    border-color: #008080;
    background: white;
    box-shadow: 0 0 0 3px rgba(0, 128, 128, 0.1);
}

select.booking-input {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3E%3C/svg%3E");
    background-position: right 0.8rem center;
    background-repeat: no-repeat;
    background-size: 1.2em 1.2em;
}

textarea.booking-input {
    resize: vertical;
    min-height: 80px;
}

/* Расчет стоимости */
.price-calculation {
    background: #f8fafc;
    border-radius: 0.75rem;
    padding: 0.75rem;
    margin: 1rem 0;
    font-size: 0.85rem;
}

.calc-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    color: #475569;
}

.calc-total {
    display: flex;
    justify-content: space-between;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid #e2e8f0;
    font-weight: 700;
    color: #0f172a;
}

/* Кнопка бронирования */
.booking-btn {
    width: 100%;
    background: #008080;
    color: white;
    border: none;
    padding: 0.85rem;
    border-radius: 0.75rem;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    display: block;
    transition: all 0.2s;
    margin-top: 0.5rem;
    box-sizing: border-box;
}

.booking-btn:hover {
    background: #006666;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 128, 128, 0.3);
}

/* Сообщения */
.error-message {
    background: #fef2f2;
    color: #dc2626;
    padding: 0.75rem;
    border-radius: 0.75rem;
    font-size: 0.8rem;
    margin-bottom: 1rem;
    border-left: 3px solid #dc2626;
}

.success-message {
    background: #f0fdf4;
    color: #16a34a;
    padding: 0.75rem;
    border-radius: 0.75rem;
    font-size: 0.8rem;
    margin-bottom: 1rem;
    border-left: 3px solid #16a34a;
}

/* Карточки для неавторизованных и владельца */
.login-card,
.owner-card {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid #eef2f6;
}

.login-card p,
.owner-card p {
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: #475569;
}

.delete-btn {
    display: inline-block;
    margin-top: 0.5rem;
    background: #dc2626;
    color: white;
    padding: 0.6rem 1rem;
    border-radius: 0.75rem;
    text-decoration: none;
    font-size: 0.8rem;
    width: 100%;
    text-align: center;
    box-sizing: border-box;
    transition: background 0.2s;
}

.delete-btn:hover {
    background: #b91c1c;
}

/* ============================================
   ПОХОЖИЕ ОБЪЯВЛЕНИЯ
   ============================================ */
.similar-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #eef2f6;
}

.similar-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #0f172a;
}

.similar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.similar-card {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid #eef2f6;
}

.similar-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px -8px rgba(0, 0, 0, 0.15);
}

.similar-image {
    height: 180px;
    overflow: hidden;
    background: #f1f5f9;
}

.similar-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s;
}

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

.similar-info {
    padding: 1rem;
}

.similar-info h3 {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.similar-location {
    font-size: 0.7rem;
    color: #5b6e8c;
    margin-bottom: 0.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.similar-price {
    font-size: 1.1rem;
    font-weight: 800;
    color: #008080;
    margin-bottom: 0.5rem;
}

.similar-price span {
    font-size: 0.7rem;
    font-weight: normal;
    color: #5b6e8c;
}

.similar-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.7rem;
    color: #5b6e8c;
}

/* ============================================
   МОДАЛЬНОЕ ОКНО ДЛЯ ПРОСМОТРА ФОТО
   ============================================ */
.image-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    cursor: pointer;
}

.image-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-image {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    cursor: pointer;
    transition: 0.2s;
}

.modal-close:hover {
    color: #008080;
}

.modal-prev,
.modal-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 1rem;
    cursor: pointer;
    font-size: 2rem;
    transition: 0.2s;
}

.modal-prev {
    left: 20px;
}

.modal-next {
    right: 20px;
}

.modal-prev:hover,
.modal-next:hover {
    background: rgba(0, 128, 128, 0.5);
}

/* ============================================
   АДАПТИВ
   ============================================ */
@media (max-width: 1024px) {
    .property-content {
        grid-template-columns: 1fr 360px;
        gap: 1.5rem;
    }
    
    .gallery-main {
        max-height: 450px;
    }
}

@media (max-width: 900px) {
    .property-content {
        grid-template-columns: 1fr;
    }
    
    .property-sidebar {
        position: static;
        max-width: 500px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .property-container {
        padding: 1rem;
    }
    
    .property-gallery-full {
        margin-bottom: 1.5rem;
    }
    
    .gallery-main {
        max-height: 300px;
    }
    
    .gallery-thumb {
        width: 70px;
        height: 50px;
    }
    
    .property-main {
        padding: 1rem;
    }
    
    .property-head h1 {
        font-size: 1.5rem;
    }
    
    .property-stats {
        gap: 1rem;
    }
    
    .amenities-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .similar-grid {
        grid-template-columns: 1fr;
    }
    
    .price-value {
        font-size: 1.8rem;
    }
    
    .booking-card {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .gallery-main {
        max-height: 220px;
    }
    
    .host-card {
        flex-direction: column;
        text-align: center;
    }
    
    .host-info {
        text-align: center;
    }
    
    .property-stats {
        justify-content: space-between;
    }
    
    .amenities-grid {
        grid-template-columns: 1fr;
    }
}


/* ============================================
   СТРАНИЦА БРОНИРОВАНИЙ
   ============================================ */
.bookings-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 2rem;
}

.bookings-header {
    margin-bottom: 2rem;
}

.bookings-header h1 {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.bookings-header p {
    color: #64748b;
    font-size: 0.875rem;
}

.bookings-stats {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.stat-item {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 1rem 1.5rem;
    text-align: center;
    min-width: 100px;
}

.stat-item .stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
}

.stat-item .stat-label {
    font-size: 0.7rem;
    color: #64748b;
    margin-top: 0.25rem;
}

.stat-item.pending .stat-value { color: #d97706; }
.stat-item.confirmed .stat-value { color: #008080; }
.stat-item.completed .stat-value { color: #10b981; }
.stat-item.cancelled .stat-value { color: #dc2626; }

.bookings-filters {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 1rem;
}

.filter-btn {
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    text-decoration: none;
    color: #475569;
    transition: all 0.2s;
}

.filter-btn:hover {
    background: #f1f5f9;
}

.filter-btn.active {
    background: #008080;
    color: white;
}

/* Список бронирований - сетка 2 колонки */
.bookings-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

/* Карточка бронирования */
.booking-card {
    background: white;
    border: 1px solid #eef2f6;
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.booking-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
}

/* Изображение */
.booking-image {
    width: 100%;
    height: 180px;
    background: #f5f5f5;
    overflow: hidden;
}

.booking-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Информация - фиксированная структура */
.booking-info {
    padding: 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.booking-property {
    margin-bottom: 0.75rem;
}

.booking-property h3 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.booking-property h3 a {
    color: #1a1a1a;
    text-decoration: none;
}

.booking-property h3 a:hover {
    color: #008080;
}

.booking-address {
    font-size: 0.7rem;
    color: #64748b;
}

/* Даты */
.booking-dates {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding: 0.5rem;
    background: #f8fafc;
    border-radius: 0.5rem;
}

.date-item {
    text-align: center;
    flex: 1;
}

.date-label {
    display: block;
    font-size: 0.6rem;
    color: #64748b;
    margin-bottom: 0.2rem;
    text-transform: uppercase;
}

.date-value {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: #1a1a1a;
}

.date-arrow {
    color: #94a3b8;
    font-size: 0.75rem;
}

/* Мета информация */
.booking-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.meta-item {
    text-align: center;
    flex: 1;
}

.meta-label {
    display: block;
    font-size: 0.6rem;
    color: #64748b;
    text-transform: uppercase;
}

.meta-value {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: #1a1a1a;
}

/* Комментарий - фиксированная минимальная высота */
.booking-comment {
    font-size: 0.7rem;
    color: #475569;
    padding: 0.5rem;
    background: #f8fafc;
    border-radius: 0.5rem;
    margin-bottom: 0.75rem;
    min-height: 50px;
}

.booking-comment:empty {
    display: none;
}

.comment-label {
    font-weight: 600;
    margin-right: 0.3rem;
}

/* Информация о пользователе - будет внизу */
.booking-user-full {
    margin-top: auto;
    padding: 0.5rem;
    background: #f8fafc;
    border-radius: 0.5rem;
}

/* Для арендатора блок с арендодателем тоже внизу */
.booking-owner {
    margin-top: auto;
    padding: 0.5rem;
    background: #f8fafc;
    border-radius: 0.5rem;
}

.user-title {
    font-weight: 700;
    font-size: 0.65rem;
    color: #1e293b;
    margin-bottom: 0.3rem;
    text-transform: uppercase;
}

.user-info, .owner-info {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.user-name, .owner-name {
    font-weight: 600;
    font-size: 0.75rem;
    color: #0f172a;
}

.user-contact, .owner-contact {
    font-size: 0.65rem;
    color: #64748b;
}

/* Статус */
.booking-status {
    padding: 1rem;
    border-top: 1px solid #eef2f6;
    background: #fafafa;
}

.status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 2rem;
    font-size: 0.7rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.status-pending {
    background: #fef3c7;
    color: #d97706;
}

.status-confirmed {
    background: #d1fae5;
    color: #008080;
}

.status-cancelled {
    background: #fee2e2;
    color: #dc2626;
}

.status-completed {
    background: #e0e7ff;
    color: #4f46e5;
}

/* Кнопки действий */
.booking-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.action-form {
    display: flex;
    gap: 0.5rem;
    flex: 1;
}

.action-btn {
    flex: 1;
    padding: 0.4rem 0.5rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 0.7rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    text-decoration: none;
    display: inline-block;
}

.action-btn.confirm {
    background: #008080;
    color: white;
}

.action-btn.confirm:hover {
    background: #006666;
}

.action-btn.cancel {
    background: #dc2626;
    color: white;
}

.action-btn.cancel:hover {
    background: #b91c1c;
}

.action-btn.review {
    background: #8b5cf6;
    color: white;
}

.action-btn.review:hover {
    background: #7c3aed;
}

.action-link {
    display: block;
    text-align: center;
    padding: 0.4rem 0.5rem;
    background: #f1f5f9;
    border-radius: 0.5rem;
    font-size: 0.7rem;
    text-decoration: none;
    color: #475569;
    flex: 1;
}

.action-link:hover {
    background: #e2e8f0;
    color: #008080;
}

.review-done {
    font-size: 0.65rem;
    color: #10b981;
    padding: 0.25rem 0.5rem;
    background: #d1fae5;
    border-radius: 0.25rem;
    display: inline-block;
    text-align: center;
    flex: 1;
}

/* Пустое состояние */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
}

.empty-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.empty-state h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: #64748b;
    margin-bottom: 1.5rem;
}

/* Адаптив */
@media (max-width: 900px) {
    .bookings-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .booking-dates {
        flex-direction: column;
    }
    
    .date-arrow {
        transform: rotate(90deg);
    }
    
    .booking-meta {
        flex-direction: column;
    }
    
    .action-form {
        flex-direction: column;
    }
    
    .booking-actions {
        flex-direction: column;
    }
    
    .bookings-container {
        padding: 1rem;
    }
}

/* ============================================
   СТРАНИЦА ИЗБРАННОГО
   ============================================ */
.favorites-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 2rem;
}

.favorites-header {
    margin-bottom: 2rem;
}

.favorites-header h1 {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.favorites-header p {
    color: #64748b;
    font-size: 0.875rem;
}

.empty-favorites {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
}

.empty-icon {
    font-size: 4rem;
    color: #cbd5e1;
    margin-bottom: 1rem;
}

.empty-favorites h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.empty-favorites p {
    color: #64748b;
    margin-bottom: 1.5rem;
}

.favorites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 1.5rem;
}

.favorite-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.2s;
}

.favorite-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

.favorite-image {
    position: relative;
    height: 200px;
    overflow: hidden;
    cursor: pointer;
}

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

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

.favorite-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #008080;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 2rem;
    font-size: 0.75rem;
    font-weight: 500;
}

.favorite-info {
    padding: 1rem;
}

.favorite-info h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    cursor: pointer;
}

.favorite-info h3:hover {
    color: #008080;
}

.favorite-address {
    font-size: 0.75rem;
    color: #64748b;
    margin-bottom: 0.5rem;
}

.favorite-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: #008080;
    margin: 0.5rem 0;
}

.favorite-price small {
    font-size: 0.75rem;
    font-weight: normal;
    color: #64748b;
}

.favorite-details {
    display: flex;
    gap: 1rem;
    margin: 0.75rem 0;
    padding: 0.5rem 0;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    font-size: 0.75rem;
    color: #475569;
}

.favorite-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.btn-outline-sm {
    flex: 1;
    padding: 0.5rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    text-align: center;
    text-decoration: none;
    color: #475569;
    transition: all 0.2s;
}

.btn-outline-sm:hover {
    border-color: #008080;
    color: #008080;
}

.btn-remove {
    flex: 1;
    padding: 0.5rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    text-align: center;
    text-decoration: none;
    color: #dc2626;
    transition: all 0.2s;
}

.btn-remove:hover {
    border-color: #dc2626;
    background: #fef2f2;
}

@media (max-width: 768px) {
    .favorites-container {
        padding: 1rem;
    }
    
    .favorites-grid {
        grid-template-columns: 1fr;
    }
}


/* ============================================
   КРАСИВАЯ КНОПКА ЗАГРУЗКИ ФАЙЛА
   ============================================ */
.file-upload-wrapper {
    width: 100%;
}

.file-upload-preview {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    min-height: 160px;
    background: #f8fafc;
    border: 2px dashed #cbd5e1;
    border-radius: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    overflow: hidden;
    color: #64748b;
}

.file-upload-preview svg {
    color: #94a3b8;
    transition: all 0.3s;
}

.file-upload-preview span {
    font-size: 0.875rem;
    font-weight: 500;
}

.file-upload-preview:hover {
    border-color: #008080;
    background: #f0fdfa;
}

.file-upload-preview:hover svg {
    color: #008080;
    transform: translateY(-2px);
}

.file-upload-preview.has-image {
    border: 2px solid #008080;
    background: #f0fdfa;
}

.file-upload-preview.has-image svg {
    display: none;
}

.file-upload-preview.has-image span {
    position: absolute;
    bottom: 1rem;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.5rem;
    font-size: 0.75rem;
    text-align: center;
    margin: 0;
}

.file-upload-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.file-upload-preview input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

/* Кастомная кнопка загрузки файла */
.custom-file-upload {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.file-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    color: #1a1a1a;
    transition: all 0.2s;
}

.file-label:hover {
    background: #e2e8f0;
    border-color: #cbd5e1;
}

.file-name {
    font-size: 0.875rem;
    color: #64748b;
}



/* ============================================
   СТРАНИЦЫ АРЕНДОДАТЕЛЯ
   ============================================ */
.form-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
}

.form-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 2rem;
}

.form-card h1 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.form-card > p {
    color: #64748b;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.form-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-group {
    flex: 1;
}

.form-group.full-width {
    width: 100%;
}

.form-textarea {
    width: 100%;
    padding: 0.625rem 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-family: inherit;
    resize: vertical;
}

.form-textarea:focus {
    outline: none;
    border-color: #008080;
}

.file-upload-area {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.file-upload-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    cursor: pointer;
    font-size: 0.875rem;
}

.file-upload-label:hover {
    background: #e2e8f0;
}

.file-upload-area input[type="file"] {
    display: none;
}

.current-image {
    margin-bottom: 1rem;
}

.current-image img {
    width: 200px;
    height: 150px;
    object-fit: cover;
    border-radius: 0.5rem;
    border: 1px solid #e2e8f0;
}

/* Мои объявления */
.my-properties-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 2rem;
}

.my-properties-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.my-properties-header h1 {
    font-size: 1.5rem;
    font-weight: 600;
}

.property-filters {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 1rem;
}

.filter-tab {
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    text-decoration: none;
    font-size: 0.875rem;
    color: #475569;
}

.filter-tab:hover {
    background: #f1f5f9;
}

.filter-tab.active {
    background: #008080;
    color: white;
}

.my-properties-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.my-property-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    display: flex;
    overflow: hidden;
}

.my-property-image {
    width: 150px;
    position: relative;
    flex-shrink: 0;
}

.my-property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.property-status {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.7rem;
    font-weight: 500;
    background: white;
}

.property-status.active {
    background: #d1fae5;
    color: #065f46;
}

.property-status.inactive {
    background: #fee2e2;
    color: #991b1b;
}

.my-property-info {
    flex: 1;
    padding: 1rem;
}

.my-property-info h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.my-property-info .property-address {
    font-size: 0.75rem;
    color: #64748b;
    margin-bottom: 0.5rem;
}

.my-property-info .property-price {
    font-size: 1rem;
    font-weight: 700;
    color: #008080;
    margin-bottom: 0.5rem;
}

.property-stats {
    display: flex;
    gap: 1rem;
    font-size: 0.7rem;
    color: #64748b;
}

.my-property-actions {
    width: 200px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    border-left: 1px solid #e2e8f0;
    background: #fafafa;
}

.action-btn {
    display: block;
    padding: 0.5rem;
    text-align: center;
    text-decoration: none;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    transition: all 0.2s;
}

.action-btn.view {
    background: white;
    border: 1px solid #e2e8f0;
    color: #475569;
}

.action-btn.view:hover {
    border-color: #008080;
    color: #008080;
}

.action-btn.edit {
    background: #f1f5f9;
    color: #475569;
}

.action-btn.edit:hover {
    background: #e2e8f0;
}

.action-btn.toggle {
    background: #fef3c7;
    color: #d97706;
}

.action-btn.toggle:hover {
    background: #fde68a;
}

.action-btn.delete {
    background: #fee2e2;
    color: #dc2626;
}

.action-btn.delete:hover {
    background: #fecaca;
}

@media (max-width: 768px) {
    .my-property-card {
        flex-direction: column;
    }
    
    .my-property-image {
        width: 100%;
        height: 150px;
    }
    
    .my-property-actions {
        width: 100%;
        flex-direction: row;
        border-left: none;
        border-top: 1px solid #e2e8f0;
    }
    
    .action-btn {
        flex: 1;
    }
    
    .form-row {
        flex-direction: column;
    }
}

/* Отзывы */
.reviews-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #eef2f6;
}

.reviews-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.reviews-header h3 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
}

.rating-summary {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.rating-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fbbf24;
}

.rating-stars {
    color: #fbbf24;
    font-size: 1rem;
}

.rating-count {
    font-size: 0.75rem;
    color: #5b6e8c;
}

.no-reviews {
    text-align: center;
    padding: 2rem;
    color: #5b6e8c;
}

.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.review-card {
    background: #f8fafc;
    border-radius: 0.75rem;
    padding: 1rem;
    border: 1px solid #eef2f6;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
}

.review-user {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.review-avatar {
    width: 32px;
    height: 32px;
    border-radius: 0.5rem;
    object-fit: cover;
}

.review-name {
    font-weight: 600;
    font-size: 0.85rem;
}

.review-rating {
    color: #fbbf24;
    font-size: 0.85rem;
}

.review-text {
    font-size: 0.85rem;
    line-height: 1.5;
    color: #334155;
    margin-bottom: 0.5rem;
}

.review-date {
    font-size: 0.7rem;
    color: #5b6e8c;
}

/* Кнопка оставить отзыв */
.action-btn.review {
    background: #8b5cf6;
    color: white;
}

.action-btn.review:hover {
    background: #7c3aed;
}

.review-done {
    font-size: 0.7rem;
    color: #10b981;
    padding: 0.25rem 0.5rem;
    background: #d1fae5;
    border-radius: 0.25rem;
    display: inline-block;
}

/* Рейтинг при вводе */
.rating-input {
    cursor: pointer;
}

.stars {
    display: flex;
    gap: 0.25rem;
}

.star {
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.2s;
    color: #cbd5e1;
}

.star:hover {
    transform: scale(1.1);
}

/* Пагинация для отзывов */
.reviews-pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.reviews-page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 0.6rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.4rem;
    text-decoration: none;
    font-size: 0.75rem;
    color: #475569;
    transition: all 0.2s;
}

.reviews-page-link:hover {
    border-color: #008080;
    color: #008080;
}

.reviews-page-link.active {
    background: #008080;
    border-color: #008080;
    color: white;
}

.reviews-page-dots {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    color: #94a3b8;
}