/*
Theme Name: Тема квадратный метр
Description: Тема "Квадратный метр"


*/

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

html,
body {
  height: 100%;
  width: 100%;
  overflow-x: hidden;
}

body {
  font-family: "PT Sans", Arial, sans-serif;
  font-kerning: normal;
  background: #edeee9;
  color: #000;
  margin: 0;
  padding: 0;
  font-size-adjust: none;
  -webkit-text-size-adjust: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  text-decoration: none;
  color: #28a745;
}

a:hover {
  color: #2eb755;
}

img {
  max-width: 100%;
  height: auto;
}

/* Font Face */
@font-face {
  font-family: "cian";
  src: url("/wp-content/themes/cian-theme/fonts/cian/cian.eot");
  src: url("/wp-content/themes/cian-theme/fonts/cian/cian.eot") format("embedded-opentype"),
    url("/wp-content/themes/cian-theme/fonts/cian/cian.woff") format("woff"),
    url("/wp-content/themes/cian-theme/fonts/cian/cian.ttf") format("truetype"),
    url("/wp-content/themes/cian-theme/fonts/cian/cian.svg") format("svg");
  font-weight: normal;
  font-style: normal;
}

/* Header Styles */
.site-header {
  background: linear-gradient(to bottom, #576673 0%, #475258 100%);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  position: relative;
  height: 70px;
  transition: height 0.3s ease;
}

.header-container {
  display: flex;
  align-items: center;
  padding: 10px 20px;
  height: 100%;
}

.site-logo {
  margin-right: 30px;
}

.site-logo a {
  display: block;
  color: #fff;
  font-weight: bold;
  font-size: 24px;
}

/* Main Navigation */
.main-navigation {
  flex-grow: 1;
  position: relative;
}

.main-navigation ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}

.main-navigation li {
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  position: relative;
}

.main-navigation a {
  color: #fff;
  padding: 0 20px;
  font-size: 16px;
  display: flex;
  align-items: center;
  transition: color 0.3s ease;
  position: relative;
  font-weight: 500;
  height: 70px;
  overflow: hidden;
}

.main-navigation a:hover,
.main-navigation .current-menu-item a {
  color: #d081f0;
  background-color: rgba(255, 255, 255, 0.1);
}

.main-navigation a::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0;
  background: rgba(255, 255, 255, 0.1);
  transition: height 0.3s ease;
}

.main-navigation a:hover::before,
.main-navigation .current-menu-item a::before {
  height: 5px;
  background: #d081f0;
}

.main-navigation a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: transparent;
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.main-navigation a:hover::after,
.main-navigation .current-menu-item a::after {
  transform: scaleX(1);
  background: #d081f0;
}

/* Fold effect for active menu item */
.main-navigation .active-fold {
  position: relative;
}

.main-navigation .active-fold::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.2);
  transform-origin: top;
  transform: perspective(800px) rotateX(10deg);
  transition: transform 0.3s ease;
  z-index: -1;
}

.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
}

.header-actions a {
  color: #fff;
  margin-left: 15px;
  font-size: 14px;
  transition: color 0.3s ease;
}

.header-actions a:hover {
  color: #28a745;
}

/* Hero Section */
.home-hero {
  width: 100%;
  height: 600px;
  position: relative;
  background-position: center;
  background-size: cover;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1200px;
  padding: 0 20px;
  text-align: center;
}

.hero-logo {
  margin-bottom: 20px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s forwards;
  animation-delay: 0.2s;
}

.hero-logo img {
  max-height: 100px;
  width: auto;
}

.hero-title {
  color: #fff;
  font-size: 36px;
  font-weight: bold;
  margin-bottom: 30px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s forwards;
  animation-delay: 0.4s;
}

/* Search Form */
.search-form-container {
  background: rgba(34, 41, 47, 0.7);
  backdrop-filter: blur(5px);
  border-radius: 6px;
  padding: 20px;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s forwards;
  animation-delay: 0.6s;
}

.search-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.search-form-field {
  flex: 1;
  min-width: 200px;
}

.search-form select,
.search-form input {
  width: 100%;
  height: 44px;
  padding: 0 15px;
  border: none;
  border-radius: 4px;
  background: #fff;
  font-size: 16px;
  color: #333;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

.search-button {
  height: 44px;
  padding: 0 20px;
  background: linear-gradient(to bottom, #8e44ad 0%, #9b59b6 50%, #7d3c98 100%);
  border: none;
  border-radius: 4px;
  color: #fff;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s ease;
  text-transform: uppercase;
  margin-top: 10px;
  width: 100%;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.4), inset 0 -2px 0 rgba(0, 0, 0, 0.15);
  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
  position: relative;
  overflow: hidden;
}

.search-button:hover {
  background: linear-gradient(to bottom, #9b59b6 0%, #af7ac5 50%, #8e44ad 100%);
  box-shadow: 0 5px 8px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.4), inset 0 -2px 0 rgba(0, 0, 0, 0.15);
  transform: translateY(-1px);
}

.search-button:active {
  background: linear-gradient(to bottom, #7d3c98 0%, #8e44ad 100%);
  box-shadow: 0 2px 3px rgba(0, 0, 0, 0.1), inset 0 1px 3px rgba(0, 0, 0, 0.2);
  transform: translateY(1px);
}

.search-button::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 50%;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0));
  border-radius: 4px 4px 0 0;
}

.search-suggestions {
  margin-top: 15px;
  color: #a7bcbe;
  font-size: 14px;
  text-align: left;
}

.search-suggestions a {
  color: #28a745;
  margin: 0 5px;
  transition: color 0.3s ease;
}

.search-suggestions a:hover {
  color: #2eb755;
}

/* Content Area */
.site-main {
  background: #fff;
}

.content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

.page-title,
.entry-title {
  font-size: 28px;
  margin-bottom: 20px;
  color: #333;
}

.entry-content {
  margin-bottom: 30px;
  line-height: 1.6;
}

.entry-meta {
  color: #666;
  font-size: 14px;
  margin-bottom: 20px;
}

/* Property Categories */
.property-categories {
  background: #fff;
  padding: 40px 0;
}

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

.category-title {
  font-size: 24px;
  margin-bottom: 20px;
  color: #333;
  text-align: center;
  opacity: 0;
  transform: translateY(20px);
}

.category-title.animated {
  animation: fadeInUp 0.8s forwards;
}

.category-links {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.category-column {
  flex: 1;
  min-width: 250px;
  padding: 0 15px;
  margin-bottom: 20px;
}

.category-column h3 {
  font-size: 18px;
  margin-bottom: 10px;
  color: #333;
}

.category-column a {
  display: block;
  margin-bottom: 8px;
  color: #28a745;
}

.category-column a:hover {
  color: #2eb755;
}

/* Mobile Apps Section */
.mobile-apps {
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), 
              url('<?php echo get_template_directory_uri(); ?>/images/app.jpg') no-repeat center center/cover !important;
  padding: 80px 0;
  color: white;
}

.mobile-apps-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  padding: 0 20px;
}

.mobile-apps-content {
  flex: 1;
  padding-right: 50px;
}

.mobile-apps-title {
  font-size: 36px;
  margin-bottom: 20px;
  color: #28a745;
}

.app-buttons {
  display: flex;
  gap: 15px;
  margin-top: 30px;
}

.app-button {
  background: linear-gradient(to bottom, #8e44ad 0%, #9b59b6 50%, #7d3c98 100%);
  color: white;
  padding: 12px 25px;
  border: none;
  border-radius: 5px;
  display: flex;
  align-items: center;
  transition: all 0.3s;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.4), inset 0 -2px 0 rgba(0, 0, 0, 0.15);
  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
  position: relative;
  overflow: hidden;
}

.app-button:hover {
  background: linear-gradient(to bottom, #9b59b6 0%, #af7ac5 50%, #8e44ad 100%);
  box-shadow: 0 5px 8px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.4), inset 0 -2px 0 rgba(0, 0, 0, 0.15);
  transform: translateY(-3px);
}

.app-button:active {
  background: linear-gradient(to bottom, #7d3c98 0%, #8e44ad 100%);
  box-shadow: 0 2px 3px rgba(0, 0, 0, 0.1), inset 0 1px 3px rgba(0, 0, 0, 0.2);
  transform: translateY(1px);
}

.app-button::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 50%;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0));
  border-radius: 5px 5px 0 0;
}

.app-button img {
  width: 20px;
  margin-right: 10px;
}

.mobile-devices {
  flex: 1;
  text-align: center;
}

.mobile-devices img {
  max-width: 100%;
  height: auto;
  max-height: 400px;
}

@media (max-width: 768px) {
  .mobile-apps-container {
    flex-direction: column;
  }
  .mobile-apps-content {
    padding-right: 0;
    margin-bottom: 40px;
    text-align: center;
  }
  .app-buttons {
    justify-content: center;
  }
}

/* Footer */
.site-footer {
  background: #475258;
  color: #fff;
  padding: 40px 0 0;
}

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

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.footer-nav-column {
  flex: 1;
  min-width: 200px;
  margin-bottom: 20px;
}

.footer-nav-title {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 15px;
  color: #b879ff;
}

.footer-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-nav-list li {
  margin-bottom: 10px;
}

.footer-nav-list a {
  color: #ccc;
  font-size: 14px;
  transition: color 0.3s ease;
}

.footer-nav-list a:hover {
  color: #fff;
}

.footer-bottom {
  background: #3a4349;
  padding: 20px 0;
  text-align: center;
}

.footer-bottom-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.footer-copyright {
  font-size: 14px;
  color: #ccc;
  margin-bottom: 10px;
}

.footer-social {
  display: flex;
  gap: 15px;
}

.footer-social a {
  color: #ccc;
  font-size: 18px;
  transition: color 0.3s ease;
}

.footer-social a:hover {
  color: #fff;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Responsive */
@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-logo {
    margin-bottom: 10px;
  }

  .main-navigation ul {
    flex-direction: column;
  }

  .main-navigation li {
    margin-bottom: 5px;
  }

  .header-actions {
    margin-left: 0;
    margin-top: 10px;
  }

  .search-form {
    flex-direction: column;
  }

  .hero-title {
    font-size: 28px;
  }

  .mobile-apps-title {
    font-size: 28px;
  }

  .footer-nav {
    flex-direction: column;
  }

  .footer-bottom-container {
    flex-direction: column;
  }

  .footer-social {
    margin-top: 10px;
  }
}

/* WordPress Specific */
.alignleft {
  float: left;
  margin-right: 1.5em;
  margin-bottom: 1em;
}

.alignright {
  float: right;
  margin-left: 1.5em;
  margin-bottom: 1em;
}

.aligncenter {
  clear: both;
  display: block;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 1em;
}

.wp-caption {
  margin-bottom: 1.5em;
  max-width: 100%;
}

.wp-caption img {
  display: block;
  margin: 0 auto;
}

.wp-caption-text {
  text-align: center;
  margin-top: 0.5em;
  font-size: 14px;
  color: #666;
}

.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}

.widget {
  margin-bottom: 30px;
}

.widget-title {
  font-size: 18px;
  margin-bottom: 15px;
}

/* Comments */
.comments-area {
  margin-top: 40px;
}

.comment-list {
  list-style: none;
  padding: 0;
}

.comment {
  margin-bottom: 20px;
  padding: 15px;
  background: #f9f9f9;
  border-radius: 4px;
}

.comment-author {
  margin-bottom: 10px;
  font-weight: bold;
}

.comment-metadata {
  font-size: 12px;
  color: #666;
  margin-bottom: 10px;
}

.comment-content {
  margin-bottom: 10px;
}

.comment-respond {
  margin-top: 30px;
}

.comment-form label {
  display: block;
  margin-bottom: 5px;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  margin-bottom: 15px;
}

.comment-form input[type="submit"] {
  background: linear-gradient(to bottom, #8e44ad 0%, #9b59b6 50%, #7d3c98 100%);
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.4), inset 0 -2px 0 rgba(0, 0, 0, 0.15);
  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.comment-form input[type="submit"]:hover {
  background: linear-gradient(to bottom, #9b59b6 0%, #af7ac5 50%, #8e44ad 100%);
  box-shadow: 0 5px 8px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.4), inset 0 -2px 0 rgba(0, 0, 0, 0.15);
  transform: translateY(-1px);
}

.comment-form input[type="submit"]:active {
  background: linear-gradient(to bottom, #7d3c98 0%, #8e44ad 100%);
  box-shadow: 0 2px 3px rgba(0, 0, 0, 0.1), inset 0 1px 3px rgba(0, 0, 0, 0.2);
  transform: translateY(1px);
}

.comment-form input[type="submit"]::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 50%;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0));
  border-radius: 4px 4px 0 0;
}

/* Currency Symbol */
.rur {
  font-family: "RurArial";
  font-weight: normal;
}

/* Icon Styles */
[class^="icon-"],
[class*=" icon-"] {
  font-family: "cian";
  speak: none;
  font-style: normal;
  font-weight: normal;
  font-variant: normal;
  text-transform: none;
  line-height: 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.icon-mobile:before {
  content: "\e601";
}

.icon-ciangroup:before {
  content: "\e600";
}

/* Responsive Adjustments */
@media (max-width: 1450px) {
  .footer-link-tv {
    display: none !important;
  }
}

@media (max-width: 1300px) {
  .footer-link-map {
    display: none !important;
  }
}

@media (max-width: 1190px) {
  .footer-link-mortgage {
    display: none !important;
  }
}

@media (max-width: 1055px) {
  .footer-link-paid-faq {
    display: none !important;
  }
}

/* Plugin Integration Styles */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.container h1 {
  font-size: 32px;
  margin-bottom: 30px;
  color: #333;
  text-align: center;
}

/* Skeuomorphic Buttons */
.accent-btn,
.search-button,
button[type="submit"],
.category-card-link {
  background: linear-gradient(to bottom, #8e44ad 0%, #9b59b6 50%, #7d3c98 100%);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 12px 24px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  text-transform: uppercase;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.4), inset 0 -2px 0 rgba(0, 0, 0, 0.15);
  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.accent-btn:hover,
.search-button:hover,
button[type="submit"]:hover,
.category-card-link:hover {
  background: linear-gradient(to bottom, #9b59b6 0%, #af7ac5 50%, #8e44ad 100%);
  box-shadow: 0 5px 8px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.4), inset 0 -2px 0 rgba(0, 0, 0, 0.15);
  transform: translateY(-1px);
}

.accent-btn:active,
.search-button:active,
button[type="submit"]:active,
.category-card-link:active {
  background: linear-gradient(to bottom, #7d3c98 0%, #8e44ad 100%);
  box-shadow: 0 2px 3px rgba(0, 0, 0, 0.1), inset 0 1px 3px rgba(0, 0, 0, 0.2);
  transform: translateY(1px);
}

.accent-btn::after,
.search-button::after,
button[type="submit"]::after,
.category-card-link::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 50%;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0));
  border-radius: 6px 6px 0 0;
}

/* Filter Form Styles */
.filters {
  background: #f5f5f5;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 30px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.filter-form {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  align-items: flex-end;
}

.filter-form select,
.filter-form input {
  flex: 1;
  min-width: 150px;
  height: 44px;
  padding: 0 15px;
  border: 1px solid #ddd;
  border-radius: 6px;
  background: #fff;
  font-size: 16px;
  color: #333;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.filter-form select {
  appearance: none;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="6"><path d="M0 0l6 6 6-6z" fill="%23333"/></svg>');
  background-repeat: no-repeat;
  background-position: right 15px center;
  padding-right: 30px;
}

/* Properties Grid */
.properties-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.property-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.photo-container {
  height: 200px;
  overflow: hidden;
}

.main-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.property-card:hover .main-image {
  transform: scale(1.05);
}

.card-descr {
  padding: 20px;
}

.card-title {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 10px;
  color: #333;
}

.card-property-details {
  margin-bottom: 20px;
  color: #666;
  line-height: 1.6;
}

.no-results {
  text-align: center;
  padding: 40px;
  font-size: 18px;
  color: #666;
}

/* Property Single Page Styles */
.property-single-2012 {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  background-color: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.property-header {
  display: flex;
  gap: 30px;
  margin-bottom: 30px;
}

.price-section {
  flex: 1;
  max-width: 300px;
}

.price {
  font-size: 28px;
  font-weight: bold;
  color: #333;
  display: block;
  margin-bottom: 20px;
}

.action-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.property-gallery-2012 {
  flex: 2;
}

.main-photo-2012 {
  width: 100%;
  height: 400px;
  margin-bottom: 10px;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.main-photo-2012 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumbnails-2012 {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.thumbnail-2012 {
  width: 80px;
  height: 60px;
  border: 2px solid #ddd;
  cursor: pointer;
  transition: all 0.3s;
  border-radius: 4px;
}

.thumbnail-2012:hover {
  border-color: #28a745;
}

.thumbnail-2012 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.property-details-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 30px;
  margin-bottom: 30px;
}

.property-features {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
}

.property-features li {
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
}

.property-features strong {
  display: inline-block;
  width: 150px;
  color: #666;
}

.property-description {
  background: #f9f9f9;
  padding: 15px;
  border-radius: 6px;
  border-left: 3px solid #28a745;
}

.amenities-2012 {
  margin: 30px 0;
  padding: 20px;
  background: #f5f5f5;
  border-radius: 8px;
}

.amenities-2012 h3 {
  margin-bottom: 15px;
  color: #333;
  font-size: 20px;
}

.amenity-list-2012 {
  list-style: none;
  padding: 0;
  margin: 0;
  columns: 2;
  column-gap: 30px;
}

.amenity-item-2012 {
  margin-bottom: 8px;
  position: relative;
  padding-left: 25px;
  break-inside: avoid;
}

.amenity-item-2012:before {
  content: "•";
  color: #28a745;
  font-size: 20px;
  position: absolute;
  left: 0;
  top: -2px;
}

.contact-form {
  background: #f9f9f9;
  padding: 20px;
  border-radius: 8px;
}

.form-group {
  margin-bottom: 15px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px 15px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 16px;
}

.form-group textarea {
  min-height: 100px;
  resize: vertical;
}

@media (max-width: 768px) {
  .property-header {
    flex-direction: column;
  }
  
  .price-section {
    max-width: 100%;
  }
  
  .property-details-grid {
    grid-template-columns: 1fr;
  }
  
  .amenity-list-2012 {
    columns: 1;
  }
}

.property-page-wrapper {
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

.decorative-wall {
  position: fixed;
  top: 0;
  bottom: 0;
  width: 100px;
  background-color: #f5f5f5;
  z-index: -1;
  border-right: 1px solid #e0e0e0;
  border-left: 1px solid #e0e0e0;
}

.left-wall {
  left: 0;
  background: linear-gradient(90deg, rgba(245,245,245,1) 0%, rgba(255,255,255,1) 100%);
  box-shadow: 2px 0 5px rgba(0,0,0,0.05);
}

.right-wall {
  right: 0;
  background: linear-gradient(270deg, rgba(245,245,245,1) 0%, rgba(255,255,255,1) 100%);
  box-shadow: -2px 0 5px rgba(0,0,0,0.05);
}

@media (max-width: 1200px) {
  .decorative-wall {
    width: 60px;
  }
}

@media (max-width: 992px) {
  .decorative-wall {
    display: none;
  }
  
  .property-page-wrapper {
    padding: 0 15px;
  }
}

/* Profile Dashboard Styles */
.profile-dashboard {
  max-width: 1200px;
  margin: 40px auto;
  padding: 30px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

.profile-header {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-bottom: 40px;
  padding-bottom: 30px;
  border-bottom: 1px solid #eee;
}

.profile-avatar .avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #28a745;
}

.profile-info h1 {
  font-size: 28px;
  margin-bottom: 10px;
  color: #333;
}

.profile-balance {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
}

.balance-label {
  color: #666;
}

.balance-value {
  font-weight: bold;
  color: #28a745;
}

.user-objects-section {
  margin-top: 30px;
}

.section-title {
  font-size: 24px;
  margin-bottom: 25px;
  color: #333;
  position: relative;
  padding-bottom: 10px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: #28a745;
}

.no-objects {
  text-align: center;
  padding: 40px;
  color: #666;
  font-size: 18px;
  background: #f9f9f9;
  border-radius: 8px;
}

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

.object-card {
  border: 1px solid #eee;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}

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

.object-photos {
  height: 200px;
  background: #f5f5f5;
  position: relative;
}

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

.no-photo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #999;
}

.object-details {
  padding: 20px;
}

.object-details h3 {
  font-size: 18px;
  margin-bottom: 10px;
  color: #333;
}

.object-price {
  font-size: 20px;
  font-weight: bold;
  color: #28a745;
  margin-bottom: 10px;
}

.rent-price {
  font-size: 16px;
  color: #666;
}

.object-meta {
  display: flex;
  gap: 15px;
  color: #666;
  margin-bottom: 15px;
  font-size: 14px;
}

.object-actions {
  margin-top: 15px;
}

.delete-btn {
  background: #dc3545;
  color: white;
  border: none;
  padding: 8px 15px;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.3s;
  font-size: 14px;
}

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

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

#main-page-map {
  width: 80% !important;
  height: 400px;
  margin: 0 auto !important; 
  padding: 0 !important;
  border-radius: 0 !important;
  overflow: hidden;
}

.interactive-map-section {
  width: 80%;
  overflow: hidden;
}

.profit-bar {
  height: 20px;
  background: #eee;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  margin-bottom: 5px;
}

.actual-profit {
  background: #28a745;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 12px;
}

.potential-profit {
  background: #ddd;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  font-size: 12px;
}

.profit-numbers {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
}

.subspace-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}

.subspace-table th, .subspace-table td {
  padding: 10px;
  border: 1px solid #ddd;
  text-align: left;
}

.subspace-table th {
  background-color: #f5f5f5;
}

.subspaces-management {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

.success-message {
  background-color: #dff0d8;
  color: #3c763d;
  padding: 10px;
  margin-bottom: 20px;
  border: 1px solid #d6e9c6;
  border-radius: 4px;
}

.error-message {
  background-color: #f2dede;
  color: #a94442;
  padding: 10px;
  margin-bottom: 20px;
  border: 1px solid #ebccd1;
  border-radius: 4px;
}

.subspaces-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
}

.subspaces-table th,
.subspaces-table td {
  border: 1px solid #ddd;
  padding: 8px;
  text-align: left;
}

.subspaces-table th {
  background-color: #f2f2f2;
}

.subspaces-form,
.add-subspace-form {
  margin-bottom: 20px;
}

.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
}

.form-group input[type="number"],
.form-group input[type="checkbox"] {
  width: 100%;
  padding: 8px;
  box-sizing: border-box;
}

.button {
  background: linear-gradient(to bottom, #8e44ad 0%, #9b59b6 50%, #7d3c98 100%);
  color: #fff;
  padding: 10px 15px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.4), inset 0 -2px 0 rgba(0, 0, 0, 0.15);
  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.button:hover {
  background: linear-gradient(to bottom, #9b59b6 0%, #af7ac5 50%, #8e44ad 100%);
  box-shadow: 0 5px 8px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.4), inset 0 -2px 0 rgba(0, 0, 0, 0.15);
  transform: translateY(-1px);
}

.button:active {
  background: linear-gradient(to bottom, #7d3c98 0%, #8e44ad 100%);
  box-shadow: 0 2px 3px rgba(0, 0, 0, 0.1), inset 0 1px 3px rgba(0, 0, 0, 0.2);
  transform: translateY(1px);
}

.button::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 50%;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0));
  border-radius: 4px 4px 0 0;
}

.utilities-section {
  margin: 20px 0;
  padding: 15px;
  background: #f9f9f9;
  border-radius: 5px;
}

.utilities-form .form-group {
  margin-bottom: 15px;
}

.utilities-form label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
}

.utilities-form input {
  width: 100%;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.utilities-display p {
  margin: 5px 0;
}