.footer {
  background-color: var(--primary-dark);
  color: var(--white);
  padding: 60px 0 30px;
  margin-top: auto;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
}

.footer .container {
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  padding: 0 40px;
  box-sizing: border-box;
}

.footer-content {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-section h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--white);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.footer-logo span {
  font-size: 22px;
  font-weight: 700;
}

.footer-logo img {
  height: 40px;
  width: auto;
  object-fit: contain;
}

.footer-desc {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 16px;
}

.social-links {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.8);
  transition: all 0.2s ease;
}

.social-links a:hover {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  transform: translateY(-2px);
}

.social-links svg {
  width: 18px;
  height: 18px;
}

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

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

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  transition: color 0.2s ease;
}

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

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

.footer-contact li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
}

.footer-contact svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  text-align: center;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 14px;
  margin: 0;
}

.footer-bottom .developer-credit {
  margin-top: 8px;
  font-size: 13px;
}

.footer-bottom .developer-credit a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-bottom .developer-credit a:hover {
  color: #fff;
  text-decoration: underline;
}

@media (max-width: 1024px) {
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .footer {
    padding: 32px 0 100px;
  }

  .footer .container {
    padding: 0 16px;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-section {
    text-align: center;
  }

  .footer-section h4 {
    font-size: 16px;
    margin-bottom: 12px;
  }

  .footer-logo {
    justify-content: center;
  }

  .footer-logo img {
    height: 36px;
  }

  .footer-contact li {
    justify-content: center;
    font-size: 13px;
  }

  .social-links {
    justify-content: center;
  }

  .footer-bottom p {
    font-size: 12px;
  }
}

.header {
  background-color: var(--primary-color);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-md);
  width: 100vw;
  margin-left: calc(-50vw + 50%);
}

.header .container {
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  padding: 0 40px;
  box-sizing: border-box;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

@media (min-width: 769px) {
  .header-content {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
  }
  
  .header-content .logo {
    justify-self: start;
  }
  
  .header-content .nav {
    justify-self: center;
  }
  
  .header-content .header-actions {
    justify-self: end;
  }
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  width: 40px;
  height: 40px;
}

.logo-img {
  height: 40px;
  width: auto;
  object-fit: contain;
}

.logo-text {
  font-size: 24px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.5px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  padding: 10px 18px;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
  font-size: 15px;
  border-radius: var(--radius);
  transition: all 0.2s ease;
}

.nav-link:hover {
  color: var(--white);
  background-color: rgba(255, 255, 255, 0.1);
}

.nav-link.active {
  color: var(--white);
  background-color: rgba(255, 255, 255, 0.15);
}

.nav-admin {
  margin-left: 12px;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.nav-admin:hover {
  border-color: var(--white);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--white);
  border-radius: 2px;
  transition: all 0.2s ease;
}

@media (max-width: 768px) {
  .header .container {
    padding: 0 12px;
  }

  .header-content {
    height: 60px;
  }

  .logo-img {
    height: 32px;
  }

  .logo-text {
    font-size: 18px;
  }

  .menu-toggle {
    display: flex;
  }

  .nav {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background-color: var(--primary-color);
    flex-direction: column;
    padding: 16px;
    gap: 8px;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-lg);
  }

  .nav-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-link {
    width: 100%;
    text-align: center;
    padding: 14px;
  }

  .nav-admin {
    margin-left: 0;
    margin-top: 8px;
  }

  .header-actions {
    display: none;
  }
}

/* Admin Avatar */
.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.admin-avatar-wrapper {
  position: relative;
}

.admin-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.admin-avatar:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.5);
}

.admin-avatar svg {
  width: 22px;
  height: 22px;
  color: white;
}

.admin-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  padding-top: 8px;
  z-index: 1000;
}

.admin-dropdown::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 8px;
}

.admin-dropdown-content {
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  min-width: 200px;
  overflow: hidden;
  animation: dropdownFadeIn 0.2s ease;
}

@keyframes dropdownFadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.admin-dropdown-header {
  padding: 16px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: white;
}

.admin-name {
  display: block;
  font-weight: 600;
  font-size: 14px;
}

.admin-role {
  display: block;
  font-size: 12px;
  opacity: 0.8;
  margin-top: 2px;
}

.admin-dropdown-divider {
  height: 1px;
  background: #e5e7eb;
}

.admin-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  color: #374151;
  text-decoration: none;
  font-size: 14px;
  background: none;
  border: none;
  width: 100%;
  cursor: pointer;
  transition: background 0.2s ease;
}

.admin-dropdown-item:hover {
  background: #f3f4f6;
}

.admin-dropdown-item svg {
  width: 18px;
  height: 18px;
}

.admin-dropdown-item.logout {
  color: #dc2626;
}

.admin-dropdown-item.logout:hover {
  background: #fef2f2;
}

.nav-install-btn {
  display: none;
}

@media (max-width: 768px) {
  .nav-install-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #16a34a, #15803d);
    border: none;
    color: white;
    padding: 14px 20px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    margin-top: 16px;
    width: 100%;
    transition: all 0.2s ease;
  }

  .nav-install-btn:hover {
    background: linear-gradient(135deg, #15803d, #166534);
  }

  .nav-install-btn:active {
    transform: scale(0.98);
  }

  .nav-install-btn svg {
    width: 20px;
    height: 20px;
  }
}

.mobile-navbar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  max-width: 100vw;
  background: white;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  padding: 6px 8px;
  padding-bottom: calc(6px + env(safe-area-inset-bottom));
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .mobile-navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
}

.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 6px 4px;
  color: #64748b;
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.2s ease;
  flex: 1;
  min-width: 0;
  max-width: 20%;
}

.mobile-nav-item svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.mobile-nav-item span {
  font-size: 10px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mobile-nav-item:hover,
.mobile-nav-item:active {
  color: var(--primary-color);
  background: rgba(26, 35, 126, 0.05);
}

.mobile-nav-item.active {
  color: var(--primary-color);
  background: rgba(26, 35, 126, 0.15);
}

.mobile-nav-item.active svg {
  stroke-width: 2.5;
}

.mobile-nav-item.whatsapp {
  color: #25d366;
}

.mobile-nav-item.whatsapp:hover,
.mobile-nav-item.whatsapp:active {
  background: rgba(37, 211, 102, 0.1);
}

.mobile-nav-item.call {
  color: var(--primary-color);
}

.mobile-nav-item.call:hover,
.mobile-nav-item.call:active {
  background: rgba(26, 35, 126, 0.1);
}

@media (max-width: 768px) {
  body {
    padding-bottom: 80px;
  }
  
  .footer {
    padding-bottom: 90px;
  }
}

.property-card {
  display: block;
}

.property-image {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--gray-100);
  border-radius: 12px 12px 0 0;
}

.property-card .property-image + .property-content {
  margin-top: 0;
}

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

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

.property-image .no-image {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--gray-100), var(--gray-200));
}

.property-image .no-image svg {
  width: 48px;
  height: 48px;
  color: var(--gray-400);
}

.property-image .no-image span {
  color: var(--gray-500);
  font-size: 13px;
}

.property-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.property-featured {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: white;
}

.property-content {
  padding: 16px;
}

.property-type {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  color: var(--primary-color);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.property-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 12px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.property-location {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--gray-500);
  font-size: 14px;
  margin-bottom: 16px;
}

.property-location svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.property-specs {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--gray-100);
}

.property-specs .spec {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--gray-600);
}

.property-specs .spec svg {
  width: 16px;
  height: 16px;
}

.property-price {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary-color);
}

.property-price .price-period {
  font-size: 14px;
  font-weight: 400;
  color: var(--gray-500);
}

@media (max-width: 768px) {
  .property-card {
    border-radius: 10px;
  }

  .property-image-container {
    height: 180px;
  }

  .property-info {
    padding: 14px;
    gap: 10px;
  }

  .property-title {
    font-size: 15px;
  }

  .property-location {
    font-size: 12px;
  }

  .property-features {
    gap: 12px;
  }

  .property-features span {
    font-size: 12px;
  }

  .property-price {
    font-size: 18px;
  }

  .property-badge {
    font-size: 11px;
    padding: 4px 10px;
  }
}

.search-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding: 24px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  margin-bottom: 32px;
}

.filter-group {
  flex: 1;
  min-width: 160px;
}

.filter-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-600);
  margin-bottom: 6px;
}

.filter-select,
.filter-input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--gray-800);
  background-color: var(--white);
  transition: border-color 0.2s ease;
}

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

.filter-input::placeholder {
  color: var(--gray-400);
}

@media (max-width: 768px) {
  .search-filters {
    padding: 16px;
    gap: 12px;
  }

  .filter-group {
    min-width: calc(50% - 6px);
  }
}

@media (max-width: 480px) {
  .filter-group {
    min-width: 100%;
  }
}

.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1a237e 0%, #0d1642 100%);
  padding: 20px;
}

.login-container {
  width: 100%;
  max-width: 420px;
}

.login-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

.login-header {
  text-align: center;
  padding: 40px 40px 30px;
  background: linear-gradient(135deg, #1a237e 0%, #0d1642 100%);
  color: #fff;
}

.login-logo {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-logo svg {
  width: 36px;
  height: 36px;
}

.login-header h1 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 8px;
}

.login-header p {
  font-size: 14px;
  opacity: 0.8;
}

.login-form {
  padding: 30px 40px;
}

.login-error {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 8px;
  color: #dc2626;
  font-size: 14px;
  margin-bottom: 20px;
}

.login-error svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.login-form .form-group {
  margin-bottom: 20px;
}

.login-form label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #374151;
  margin-bottom: 8px;
}

.login-form input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 15px;
  transition: all 0.2s;
}

.login-form input:focus {
  outline: none;
  border-color: #1a237e;
  box-shadow: 0 0 0 3px rgba(26, 35, 126, 0.1);
}

.login-form input::placeholder {
  color: #9ca3af;
}

.login-btn {
  width: 100%;
  padding: 14px;
  background: #1a237e;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.2s;
}

.login-btn:hover:not(:disabled) {
  background: #0d1642;
}

.login-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.login-footer {
  padding: 20px 40px;
  background: #f9fafb;
  text-align: center;
  border-top: 1px solid #e5e7eb;
}

.login-footer p {
  font-size: 13px;
  color: #6b7280;
}

@media (max-width: 480px) {
  .login-header {
    padding: 30px 24px 24px;
  }

  .login-form {
    padding: 24px;
  }

  .login-footer {
    padding: 16px 24px;
  }
}

.admin-layout {
  display: flex;
  min-height: 100vh;
  background: #f1f5f9;
  width: 100%;
  overflow-x: hidden;
}

.admin-sidebar {
  width: 260px;
  background: linear-gradient(180deg, #1a237e 0%, #0d1642 100%);
  color: white;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  z-index: 1000;
}

.sidebar-header {
  padding: 24px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: white;
}

.sidebar-logo svg {
  width: 36px;
  height: 36px;
  fill: white;
}

.sidebar-logo span {
  font-size: 20px;
  font-weight: 700;
}

.sidebar-nav {
  flex: 1;
  padding: 20px 0;
  overflow-y: auto;
}

.nav-section {
  margin-bottom: 24px;
}

.nav-section-title {
  padding: 0 20px;
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.4);
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
}

.nav-item:hover {
  background: rgba(255,255,255,0.1);
  color: white;
}

.nav-item.active {
  background: rgba(255,255,255,0.15);
  color: white;
  border-left: 3px solid #60a5fa;
}

.nav-item svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.nav-item .badge {
  margin-left: auto;
  background: #60a5fa;
  color: white;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 10px;
}

.sidebar-footer {
  padding: 16px 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.sidebar-user {
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar-user .user-name {
  color: rgba(255,255,255,0.8);
  font-size: 13px;
  font-weight: 500;
}

.sidebar-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sidebar-link,
.sidebar-logout {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-size: 13px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-align: left;
}

.sidebar-link:hover,
.sidebar-logout:hover {
  color: white;
}

.sidebar-logout {
  color: #f87171;
}

.sidebar-logout:hover {
  color: #ef4444;
}

.header-toggle {
  padding: 8px 12px !important;
  background: rgba(255,255,255,0.1) !important;
  border-radius: 6px !important;
  transition: all 0.2s ease;
}

.header-toggle:hover {
  background: rgba(255,255,255,0.15) !important;
}

.header-toggle.active {
  background: rgba(59, 130, 246, 0.3) !important;
  color: #60a5fa !important;
}

.admin-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  background: var(--primary);
  color: white;
  gap: 16px;
}

.admin-loading .loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255,255,255,0.2);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.admin-main {
  margin-left: 260px;
  padding: 24px;
  box-sizing: border-box;
  width: calc(100vw - 260px);
  max-width: calc(100vw - 260px);
  min-width: 0;
  overflow-x: hidden;
}

.admin-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.page-title h1 {
  font-size: 24px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 4px;
}

.page-title p {
  font-size: 14px;
  color: #64748b;
}

.topbar-actions {
  display: flex;
  gap: 12px;
}

.btn-add {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: #1a237e;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-add:hover {
  background: #0d1642;
}

.btn-add svg {
  width: 18px;
  height: 18px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}

.stat-card {
  background: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.stat-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.stat-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-icon.blue {
  background: #dbeafe;
  color: #2563eb;
}

.stat-icon.green {
  background: #dcfce7;
  color: #16a34a;
}

.stat-icon.orange {
  background: #ffedd5;
  color: #ea580c;
}

.stat-icon.purple {
  background: #f3e8ff;
  color: #9333ea;
}

.stat-icon svg {
  width: 20px;
  height: 20px;
}

.stat-value {
  font-size: 28px;
  font-weight: 700;
  color: #1e293b;
}

.stat-label {
  font-size: 13px;
  color: #64748b;
  margin-top: 4px;
}

.filters-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  padding: 16px 20px;
  margin-bottom: 20px;
}

.filters-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.filter-group {
  position: relative;
}

.filter-group.search-filter {
  flex: 1;
  min-width: 200px;
  position: relative;
}

.filter-group.search-filter svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: #94a3b8;
}

.filter-group.search-filter input {
  width: 100%;
  padding: 10px 12px 10px 40px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 14px;
  transition: all 0.2s ease;
}

.filter-group.search-filter input:focus {
  outline: none;
  border-color: #1a237e;
  box-shadow: 0 0 0 3px rgba(26, 35, 126, 0.1);
}

.filter-group select {
  padding: 10px 32px 10px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 14px;
  background: white;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  min-width: 140px;
}

.filter-group select:focus {
  outline: none;
  border-color: #1a237e;
  box-shadow: 0 0 0 3px rgba(26, 35, 126, 0.1);
}

.btn-clear-filters {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  background: #fee2e2;
  color: #dc2626;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-clear-filters:hover {
  background: #fecaca;
}

.btn-clear-filters svg {
  width: 16px;
  height: 16px;
}

.content-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  overflow: visible;
  width: 100%;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid #e2e8f0;
}

.card-header h2 {
  font-size: 16px;
  font-weight: 600;
  color: #1e293b;
}

.card-filters {
  display: flex;
  gap: 12px;
}

.filter-select {
  padding: 8px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  font-size: 13px;
  color: #475569;
  background: white;
}

.admin-table-wrapper {
  overflow-x: auto;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.mobile-property-cards {
  display: none;
}

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

.admin-table th,
.admin-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid #f1f5f9;
}

.admin-table th {
  background: #f8fafc;
  font-weight: 600;
  font-size: 12px;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.admin-table td {
  font-size: 14px;
  color: #334155;
}

.admin-table tbody tr:hover {
  background: #f8fafc;
}

.admin-table tbody tr {
  cursor: grab;
  transition: background-color 0.2s, opacity 0.2s, transform 0.2s;
}

.admin-table tbody tr:active {
  cursor: grabbing;
}

.admin-table tbody tr.dragging {
  opacity: 0.5;
  background: #e2e8f0;
}

.admin-table tbody tr.drag-over {
  background: #c7d2fe;
  box-shadow: inset 0 2px 0 #1a237e;
}

.drag-cell {
  display: flex;
  align-items: center;
  gap: 8px;
}

.drag-handle-row {
  color: #94a3b8;
  cursor: grab;
  display: flex;
  align-items: center;
  transition: color 0.2s;
}

.drag-handle-row:hover {
  color: #1a237e;
}

.drag-handle-row svg {
  width: 16px;
  height: 16px;
}

/* Pagination Styles */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
  padding: 16px 0;
}

.pagination-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #475569;
  cursor: pointer;
  transition: all 0.2s ease;
}

.pagination-btn:hover:not(:disabled) {
  background: #f8fafc;
  border-color: #1a237e;
  color: #1a237e;
}

.pagination-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.pagination-btn svg {
  width: 16px;
  height: 16px;
}

.pagination-pages {
  display: flex;
  gap: 4px;
}

.pagination-page {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #475569;
  cursor: pointer;
  transition: all 0.2s ease;
}

.pagination-page:hover {
  background: #f8fafc;
  border-color: #1a237e;
}

.pagination-page.active {
  background: #1a237e;
  border-color: #1a237e;
  color: white;
}

.pagination-info {
  text-align: center;
  padding: 12px 0;
  font-size: 13px;
  color: #64748b;
}

.title-cell {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 500;
}

.type-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
}

.type-badge.satilik {
  background: #1a237e;
  color: white;
}

.type-badge.kiralik {
  background: #16a34a;
  color: white;
}

.status-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
}

.status-badge.active {
  background: #dcfce7;
  color: #166534;
}

.status-badge.inactive {
  background: #fef2f2;
  color: #991b1b;
}

.action-buttons {
  display: flex;
  gap: 6px;
}

.btn-icon {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-icon svg {
  width: 16px;
  height: 16px;
}

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

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

.btn-icon.delete {
  background: #fef2f2;
  color: #dc2626;
}

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

.action-dropdown {
  position: relative;
}

.btn-action-menu {
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.btn-action-menu svg {
  width: 18px;
  height: 18px;
  color: #64748b;
}

.btn-action-menu:hover {
  background: #f1f5f9;
}

.btn-action-menu:hover svg {
  color: #1a237e;
}

.action-menu {
  position: absolute;
  right: 0;
  top: 100%;
  background: white;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  min-width: 160px;
  z-index: 100;
  padding: 6px;
  animation: actionMenuFadeIn 0.15s ease;
}

@keyframes actionMenuFadeIn {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

.action-menu button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 14px;
  border: none;
  background: transparent;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  color: #475569;
  transition: all 0.15s ease;
  text-align: left;
}

.action-menu button svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.action-menu button:hover {
  background: #f1f5f9;
  color: #1a237e;
}

.action-menu button.delete-action {
  color: #dc2626;
}

.action-menu button.delete-action:hover {
  background: #fee2e2;
  color: #dc2626;
}

.empty-state {
  text-align: center;
  padding: 60px 20px;
}

.empty-state svg {
  width: 64px;
  height: 64px;
  color: #cbd5e1;
  margin-bottom: 16px;
}

.empty-state p {
  color: #64748b;
  margin-bottom: 20px;
}

.form-container {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.form-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  padding: 20px;
  margin-bottom: 16px;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.form-card-title {
  font-size: 15px;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e2e8f0;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.form-grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.form-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.form-grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.form-group {
  display: flex;
  flex-direction: column;
  min-width: 0;
  max-width: 100%;
}

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

.form-group.span-2 {
  grid-column: span 2;
}

.form-label {
  font-size: 12px;
  font-weight: 500;
  color: #475569;
  margin-bottom: 4px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 8px 10px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  font-size: 13px;
  color: #1e293b;
  transition: all 0.2s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: #1a237e;
  box-shadow: 0 0 0 3px rgba(26, 35, 126, 0.1);
}

.form-input:disabled,
.form-select:disabled {
  background: #f8fafc;
  color: #94a3b8;
}

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

.checkbox-group {
  display: flex;
  gap: 24px;
  padding: 12px 0;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 14px;
  color: #475569;
}

.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #1a237e;
}

.file-upload {
  border: 2px dashed #e2e8f0;
  border-radius: 8px;
  padding: 32px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.file-upload:hover {
  border-color: #1a237e;
  background: #f8fafc;
}

.file-upload input {
  display: none;
}

.file-upload-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 12px;
  color: #94a3b8;
  display: block;
}

.file-upload-text {
  font-size: 14px;
  color: #64748b;
}

.file-upload-text span {
  color: #1a237e;
  font-weight: 500;
}

.file-count {
  margin-top: 12px;
  font-size: 13px;
  color: #16a34a;
  font-weight: 500;
}

.image-count {
  font-size: 14px;
  font-weight: 400;
  color: #64748b;
  margin-left: 8px;
}

.images-label {
  font-size: 13px;
  font-weight: 500;
  color: #64748b;
  margin-bottom: 12px;
}

.existing-images,
.selected-files {
  margin-bottom: 20px;
}

.images-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 12px;
}

.image-thumb {
  position: relative;
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid #e2e8f0;
  background: #f8fafc;
  cursor: grab;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.image-thumb:active {
  cursor: grabbing;
}

.image-thumb {
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
}

.image-thumb.dragging {
  opacity: 0.5;
  transform: scale(0.95);
}

.image-thumb.drag-over {
  border-color: #1a237e;
  box-shadow: 0 0 0 2px rgba(26, 35, 126, 0.3);
}

.image-thumb.new-image {
  border-color: #16a34a;
  border-style: dashed;
  cursor: grab;
}

.image-thumb.new-image:active {
  cursor: grabbing;
}

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

.image-delete-btn {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.9);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s;
}

.image-thumb:hover .image-delete-btn {
  opacity: 1;
}

.image-delete-btn svg {
  width: 14px;
  height: 14px;
  color: white;
}

.main-badge {
  position: absolute;
  bottom: 4px;
  left: 4px;
  background: #1a237e;
  color: white;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
}

.form-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  padding-top: 20px;
}

.btn-cancel {
  padding: 10px 24px;
  border: 1px solid #e2e8f0;
  background: white;
  color: #475569;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-cancel:hover {
  background: #f8fafc;
}

.btn-save {
  padding: 10px 24px;
  border: none;
  background: #1a237e;
  color: white;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-save:hover {
  background: #0d1642;
}

.alert {
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 14px;
}

.alert-success {
  background: #dcfce7;
  color: #166534;
}

.alert-error {
  background: #fef2f2;
  color: #991b1b;
}

.contacts-list {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-card {
  background: #f8fafc;
  border-radius: 10px;
  padding: 16px;
}

.contact-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.contact-info h4 {
  font-size: 15px;
  color: #1e293b;
  margin-bottom: 4px;
}

.contact-meta {
  font-size: 13px;
  color: #64748b;
}

.contact-date {
  font-size: 12px;
  color: #94a3b8;
}

.contact-property {
  font-size: 13px;
  color: #1a237e;
  margin-bottom: 8px;
}

.contact-message {
  font-size: 14px;
  color: #475569;
  line-height: 1.6;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
  margin-top: 10px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.feature-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 13px;
  color: #475569;
}

.feature-checkbox span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.feature-checkbox:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.feature-checkbox input[type="checkbox"] {
  width: 16px;
  height: 16px;
  min-width: 16px;
  accent-color: #1a237e;
  cursor: pointer;
}

.feature-checkbox input[type="checkbox"]:checked + span {
  color: #1a237e;
  font-weight: 500;
}

.feature-checkbox:has(input:checked) {
  background: #e8eaf6;
  border-color: #3949ab;
}

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

@media (max-width: 1200px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 992px) {
  .admin-sidebar {
    transform: translateX(-100%);
  }
  
  .admin-main {
    margin-left: 0;
    width: 100%;
    padding: 16px;
  }
  
  .form-grid-2,
  .form-grid-3,
  .form-grid-4 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .admin-topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  
  .topbar-actions {
    width: 100%;
  }
  
  .btn-add {
    width: 100%;
    justify-content: center;
  }
}

.settings-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.settings-grid-2col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  width: 100%;
}

.settings-grid .form-card.full-width {
  width: 100%;
}

.settings-grid-2col .form-card.full-width {
  grid-column: 1 / -1;
}

.form-hint {
  color: #64748b;
  font-size: 13px;
  margin: -8px 0 16px 0;
}

.code-textarea {
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', monospace;
  font-size: 13px;
  line-height: 1.5;
  background: #1e293b;
  color: #e2e8f0;
  border: 1px solid #334155;
  border-radius: 8px;
  padding: 16px;
  resize: vertical;
}

.code-textarea::placeholder {
  color: #64748b;
  opacity: 0.7;
}

.code-textarea:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(26, 35, 126, 0.2);
}


.image-upload-area {
  border: 2px dashed #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.image-upload-area.small {
  min-height: 140px;
}

.image-upload-area:hover {
  border-color: #1a237e;
  background: #f8fafc;
}

.upload-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 30px;
  cursor: pointer;
  text-align: center;
  width: 100%;
}

.upload-placeholder svg {
  width: 48px;
  height: 48px;
  color: #94a3b8;
}

.upload-placeholder span {
  font-size: 15px;
  font-weight: 500;
  color: #475569;
}

.upload-placeholder small {
  font-size: 12px;
  color: #94a3b8;
}

.current-image {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: inherit;
}

.current-image img {
  width: 100%;
  height: 100%;
  min-height: 200px;
  object-fit: cover;
}

.image-upload-area.small .current-image img {
  min-height: 140px;
}

.image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.current-image:hover .image-overlay {
  opacity: 1;
}

.btn-change-image {
  padding: 10px 20px;
  background: white;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-change-image:hover {
  background: #f1f5f9;
}

@media (max-width: 1200px) {
  .form-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .form-group.span-2 {
    grid-column: span 2;
  }
}

@media (max-width: 992px) {
  .form-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .form-group.span-2 {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  .settings-grid-2col {
    grid-template-columns: 1fr;
  }
  
  .form-grid {
    grid-template-columns: 1fr;
  }
  
  .form-grid-2,
  .form-grid-3,
  .form-grid-4 {
    grid-template-columns: 1fr;
  }
  
  .form-group.span-2 {
    grid-column: span 1;
  }
  
  .form-card {
    padding: 16px;
    margin-bottom: 12px;
  }
  
  .form-card-title {
    font-size: 14px;
    margin-bottom: 12px;
    padding-bottom: 10px;
  }
}

/* ============================================
   MOBILE RESPONSIVE STYLES
   ============================================ */

/* Mobile Header */
.admin-mobile-header {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 56px;
  background: linear-gradient(135deg, #1a237e 0%, #0d1642 100%);
  color: white;
  align-items: center;
  padding: 0 16px;
  gap: 16px;
  z-index: 999;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.mobile-menu-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.1);
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

.mobile-menu-btn svg {
  width: 24px;
  height: 24px;
  color: white;
}

.mobile-header-title {
  font-size: 18px;
  font-weight: 600;
}

/* Mobile Sidebar Overlay */
.mobile-sidebar-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1001;
}

/* Sidebar Close Button */
.sidebar-close-btn {
  display: none;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.1);
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.sidebar-close-btn svg {
  width: 20px;
  height: 20px;
  color: white;
}

/* Mobile Responsive Breakpoints */
@media (max-width: 992px) {
  .admin-mobile-header {
    display: flex;
  }

  .mobile-sidebar-overlay {
    display: block;
  }

  .sidebar-close-btn {
    display: flex;
  }

  .sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .admin-sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 1002;
  }

  .admin-sidebar.open {
    transform: translateX(0);
  }

  .admin-main {
    margin-left: 0;
    padding-top: 72px;
    max-width: 100%;
  }

  .admin-topbar {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .page-title h1 {
    font-size: 20px;
  }

  .page-title p {
    font-size: 13px;
  }

  .topbar-actions {
    display: flex;
    gap: 8px;
  }

  .btn-add, .btn-secondary {
    flex: 1;
    justify-content: center;
    padding: 10px 16px;
    font-size: 14px;
  }

  /* Stats Grid - 4 columns on mobile */
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
  }

  .stat-card {
    padding: 10px 8px;
    text-align: center;
  }

  .stat-icon {
    width: 28px;
    height: 28px;
    margin: 0 auto 6px;
  }

  .stat-icon svg {
    width: 14px;
    height: 14px;
  }

  .stat-value {
    font-size: 16px;
  }

  .stat-label {
    font-size: 10px;
  }

  /* Filters */
  .filters-bar {
    flex-wrap: wrap;
    gap: 8px;
  }

  .filter-group {
    width: 100%;
  }

  .filter-group.search-filter {
    order: -1;
  }

  .filter-group select {
    width: 100%;
  }

  /* Table - Hide on Mobile, Show Cards Instead */
  .admin-table-wrapper {
    display: none;
  }

  .mobile-property-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .mobile-property-card {
    background: white;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border: 1px solid #e2e8f0;
  }

  .mobile-card-header {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    margin-bottom: 12px;
    gap: 10px;
  }

  .mobile-card-order {
    font-weight: 700;
    font-size: 14px;
    color: #1a237e;
    background: #e8eaf6;
    padding: 4px 8px;
    border-radius: 6px;
    flex-shrink: 0;
  }

  .mobile-card-title {
    font-weight: 600;
    font-size: 15px;
    color: #1e293b;
    flex: 1;
  }

  .mobile-card-badges {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
  }

  .mobile-card-body {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 12px;
  }

  .mobile-card-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
  }

  .mobile-card-label {
    font-size: 11px;
    color: #64748b;
    text-transform: uppercase;
    font-weight: 500;
  }

  .mobile-card-value {
    font-size: 14px;
    color: #1e293b;
    font-weight: 500;
  }

  .mobile-card-actions {
    display: flex;
    gap: 8px;
    padding-top: 12px;
    border-top: 1px solid #f1f5f9;
  }

  .mobile-card-actions .btn-view,
  .mobile-card-actions .btn-edit,
  .mobile-card-actions .btn-print,
  .mobile-card-actions .btn-delete {
    flex: 1;
    justify-content: center;
    padding: 10px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
  }

  .mobile-card-actions .btn-view {
    background: #ecfdf5;
    color: #059669;
    border: none;
  }

  .mobile-card-actions .btn-edit {
    background: #1a237e;
    color: white;
    border: none;
  }

  .mobile-card-actions .btn-print {
    background: #e0e7ff;
    color: #3730a3;
    border: none;
  }

  .mobile-card-actions .btn-delete {
    background: #fee2e2;
    color: #dc2626;
    border: none;
  }

  /* Cards */
  .card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  /* Form Grid */
  .form-grid-2,
  .form-grid-3,
  .form-grid-4 {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .form-card {
    padding: 16px;
    margin-bottom: 16px;
  }

  .form-card-title {
    font-size: 15px;
  }

  /* Image Grid */
  .images-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .image-thumb {
    height: 100px;
  }

  /* Settings Grid */
  .settings-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* Action Buttons */
  .action-btn {
    width: 32px;
    height: 32px;
    padding: 0;
  }

  .actions-dropdown-menu {
    right: 0;
    min-width: 180px;
  }
}

@media (max-width: 576px) {
  .admin-main {
    padding: 64px 12px 24px 12px;
  }

  /* Stats Grid - Keep 4 columns on very small screens */
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
  }

  .stat-card {
    padding: 8px 6px;
  }

  .stat-icon {
    width: 24px;
    height: 24px;
  }

  .stat-value {
    font-size: 14px;
  }

  .stat-label {
    font-size: 9px;
  }

  /* Images Grid - Single Column on very small screens */
  .images-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .image-thumb {
    height: 80px;
  }

  /* Property Type Card */
  .checkbox-group {
    flex-direction: column;
    gap: 12px;
  }

  /* Feature Tags */
  .feature-tag {
    font-size: 12px;
    padding: 6px 10px;
  }

  /* Table is hidden on mobile, no need for scroll hint */
  .admin-table-wrapper::after {
    display: none;
    color: #64748b;
    background: linear-gradient(to right, transparent, #f1f5f9);
  }

  /* Image Upload */
  .image-upload-area {
    min-height: 150px;
  }

  .image-upload-area.small {
    min-height: 100px;
  }

  .upload-placeholder svg {
    width: 36px;
    height: 36px;
  }

  .upload-placeholder span {
    font-size: 14px;
  }

  /* Code Textarea */
  .code-textarea {
    font-size: 12px;
    padding: 12px;
  }

  /* Password Form */
  .password-form {
    max-width: 100%;
  }

  /* Pagination on Mobile */
  .pagination {
    flex-wrap: wrap;
    gap: 8px;
  }

  .pagination-btn {
    padding: 8px 12px;
    font-size: 13px;
  }

  .pagination-btn span {
    display: none;
  }

  .pagination-pages {
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px;
  }

  .pagination-page {
    width: 32px;
    height: 32px;
    font-size: 13px;
  }

  /* Page Title */
  .page-title h1 {
    font-size: 18px;
  }

  .page-title p {
    font-size: 12px;
  }
}

.contact-page {
  padding-bottom: 60px;
}

.contact-header {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: var(--white);
  padding: 48px 0;
  margin-bottom: 48px;
}

.contact-header h1 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 8px;
}

.contact-header p {
  opacity: 0.8;
  font-size: 16px;
}

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

.contact-info-centered {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: var(--shadow);
  text-align: center;
}

.contact-info-centered h2 {
  font-size: 28px;
  margin-bottom: 16px;
  color: var(--gray-900);
}

.contact-desc {
  color: var(--gray-600);
  margin-bottom: 40px;
  line-height: 1.7;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.contact-items-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-bottom: 40px;
}

.contact-item {
  display: flex;
  gap: 16px;
  text-align: left;
  padding: 20px;
  background: var(--gray-50);
  border-radius: var(--radius);
}

.contact-icon {
  width: 48px;
  height: 48px;
  background: var(--primary-color);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon svg {
  width: 22px;
  height: 22px;
  color: var(--white);
}

.contact-item h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 4px;
}

.contact-item p {
  color: var(--gray-600);
  font-size: 14px;
  line-height: 1.6;
}

.whatsapp-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #25d366;
  color: white;
  padding: 16px 32px;
  border-radius: var(--radius);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.whatsapp-btn:hover {
  background: #1da851;
  transform: translateY(-2px);
}

.whatsapp-btn svg {
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .contact-page {
    padding-bottom: 80px;
  }

  .contact-page .container {
    padding: 0 16px;
  }

  .contact-header {
    padding: 24px 0;
    margin-bottom: 24px;
  }

  .contact-header h1 {
    font-size: 22px;
    margin-bottom: 4px;
  }

  .contact-header p {
    font-size: 14px;
  }

  .contact-info-centered {
    padding: 20px;
    border-radius: 12px;
  }

  .contact-info-centered h2 {
    font-size: 20px;
    margin-bottom: 12px;
  }

  .contact-desc {
    font-size: 14px;
    margin-bottom: 24px;
  }

  .contact-items-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 24px;
  }

  .contact-item {
    padding: 16px;
    gap: 12px;
  }

  .contact-icon {
    width: 40px;
    height: 40px;
  }

  .contact-icon svg {
    width: 18px;
    height: 18px;
  }

  .contact-item h4 {
    font-size: 14px;
  }

  .contact-item p {
    font-size: 13px;
  }

  .whatsapp-btn {
    padding: 14px 24px;
    font-size: 15px;
    width: 100%;
    justify-content: center;
  }
}

.hero {
  position: relative;
  min-height: 500px;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  overflow: hidden;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
}

.hero .container {
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  padding: 0 40px;
  box-sizing: border-box;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-content {
  position: relative;
  text-align: center;
  color: var(--white);
  padding: 60px 20px;
}

.hero-content h1 {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero-content p {
  font-size: 18px;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto 32px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
}

.hero-buttons .btn {
  padding: 14px 32px;
  font-size: 16px;
}

.categories-section {
  padding: 80px 0;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 16px;
}

.category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 24px 16px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  transition: all 0.2s ease;
}

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

.category-icon {
  font-size: 36px;
}

.category-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-700);
  text-align: center;
}

.featured-section {
  padding: 0 0 80px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}

.section-header .section-title {
  margin-bottom: 0;
}

.view-all-link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--primary-color);
  font-weight: 500;
  font-size: 15px;
}

.view-all-link svg {
  width: 18px;
  height: 18px;
}

.view-all-link:hover {
  color: var(--primary-dark);
}

.empty-state {
  text-align: center;
  padding: 60px 20px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.empty-state p {
  color: var(--gray-500);
  margin-bottom: 20px;
}

.cta-section {
  padding: 80px 0;
  background: var(--gray-100);
}

.cta-content {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.cta-content h2 {
  font-size: 32px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 16px;
}

.cta-content p {
  color: var(--gray-600);
  margin-bottom: 24px;
}

@media (max-width: 1024px) {
  .categories-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 768px) {
  .hero {
    min-height: 50vh;
    padding: 60px 0 40px;
  }

  .hero .container {
    padding: 0 16px;
  }

  .hero-content h1 {
    font-size: 26px;
    line-height: 1.2;
  }

  .hero-content p {
    font-size: 15px;
    margin-bottom: 24px;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 12px;
  }

  .hero-buttons .btn {
    width: 100%;
  }

  .categories-section {
    padding: 32px 0;
  }

  .categories-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }

  .category-card {
    padding: 16px 8px;
  }

  .category-icon {
    font-size: 24px;
  }

  .category-card span {
    font-size: 12px;
  }

  .featured-section {
    padding: 0 0 32px;
  }

  .featured-section .container {
    padding: 0 16px;
  }

  .section-header {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 20px;
  }

  .section-header h2 {
    font-size: 22px;
  }

  .properties-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .cta-section {
    padding: 32px 0;
  }

  .cta-content h2 {
    font-size: 22px;
  }

  .cta-content p {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.listings-page {
  padding-bottom: 60px;
}

.listings-header {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: var(--white);
  padding: 48px 0;
  margin-bottom: 32px;
}

.listings-header h1 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 8px;
}

.listings-header p {
  opacity: 0.8;
  font-size: 16px;
}

.no-results {
  text-align: center;
  padding: 80px 20px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.no-results svg {
  width: 64px;
  height: 64px;
  color: var(--gray-400);
  margin-bottom: 20px;
}

.no-results h3 {
  font-size: 20px;
  color: var(--gray-800);
  margin-bottom: 8px;
}

.no-results p {
  color: var(--gray-500);
}

@media (max-width: 768px) {
  .listings-page {
    padding-bottom: 80px;
  }

  .listings-page .container {
    padding: 0 16px;
  }

  .listings-header {
    padding: 24px 0;
    margin-bottom: 20px;
  }

  .listings-header h1 {
    font-size: 22px;
    margin-bottom: 4px;
  }

  .listings-header p {
    font-size: 14px;
  }

  .properties-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .no-results {
    padding: 48px 16px;
  }

  .no-results svg {
    width: 48px;
    height: 48px;
  }

  .no-results h3 {
    font-size: 17px;
  }

  .no-results p {
    font-size: 14px;
  }
}

.property-detail-page {
  padding: 24px 0 60px;
  background: #f5f5f5;
  min-height: 100vh;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}

.loading-page,
.not-found-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.not-found-page {
  text-align: center;
}

.not-found-page h2 {
  font-size: 24px;
  margin-bottom: 12px;
}

.not-found-page p {
  color: var(--gray-500);
  margin-bottom: 24px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 13px;
  color: #666;
  margin-bottom: 16px;
  padding: 12px 16px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.breadcrumb a {
  color: var(--primary-color);
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb-sep {
  color: #999;
  font-size: 11px;
}

.detail-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  padding: 20px 24px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  margin-bottom: 16px;
}

.detail-header-left {
  flex: 1;
}

.detail-badges {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}

.listing-badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.listing-badge.satilik {
  background: #e53935;
  color: #fff;
}

.listing-badge.kiralik {
  background: #43a047;
  color: #fff;
}

.category-badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  background: var(--primary-color);
  color: #fff;
}

.detail-title {
  font-size: 24px;
  font-weight: 600;
  color: #333;
  margin-bottom: 12px;
  line-height: 1.3;
}

.detail-location {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #666;
  font-size: 14px;
}

.detail-location svg {
  width: 16px;
  height: 16px;
  color: var(--primary-color);
}

.detail-header-right {
  text-align: right;
  flex-shrink: 0;
}

.detail-price {
  font-size: 32px;
  font-weight: 700;
  color: var(--primary-color);
  line-height: 1.2;
}

.price-period {
  font-size: 16px;
  font-weight: 400;
  color: #888;
}

.detail-ilan-no {
  font-size: 13px;
  color: #999;
  margin-top: 8px;
}

.detail-content {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 20px;
}

.detail-gallery {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  margin-bottom: 16px;
  width: 100%;
}

.gallery-main-image {
  position: relative;
  background: #f5f5f5;
  overflow: hidden;
  border-radius: 8px 8px 0 0;
  aspect-ratio: 4 / 3;
}

.gallery-main-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  border: none;
  outline: none;
}

.no-image-placeholder {
  aspect-ratio: 4 / 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #999;
}

.no-image-placeholder svg {
  width: 64px;
  height: 64px;
  color: #ccc;
}

.image-counter {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(0,0,0,0.7);
  color: #fff;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 500;
}

.swipe-hint {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(0,0,0,0.5);
  color: #fff;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 12px;
  opacity: 0.8;
}

.gallery-main-image {
  user-select: none;
  -webkit-user-select: none;
}

.gallery-main-image img {
  pointer-events: none;
}

.gallery-thumbnails {
  display: flex;
  gap: 8px;
  padding: 12px;
  overflow-x: auto;
  background: #fafafa;
}

.thumbnail {
  flex-shrink: 0;
  width: 72px;
  height: 54px;
  border-radius: 4px;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  padding: 0;
  background: none;
  transition: border-color 0.2s;
}

.thumbnail.active {
  border-color: var(--primary-color);
}

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

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


.detail-section {
  background: #fff;
  border-radius: 8px;
  padding: 20px 24px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  margin-bottom: 16px;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 600;
  color: #333;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--primary-color);
}

.section-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--primary-color);
  border-radius: 6px;
}

.section-icon svg {
  width: 16px;
  height: 16px;
  color: #fff;
}

.description-content {
  font-size: 15px;
  line-height: 1.8;
  color: #555;
  white-space: pre-line;
}

.info-table {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
}

.info-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid #f0f0f0;
  background: #fff;
}

.info-row:nth-child(odd) {
  background: #fafafa;
}

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

.info-value {
  font-size: 14px;
  font-weight: 600;
  color: #333;
  text-align: right;
}

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

.feature-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 20px;
  font-size: 13px;
  color: #444;
}

.feature-tag svg {
  width: 14px;
  height: 14px;
  color: #43a047;
}

.location-content {
  font-size: 15px;
  color: #555;
}

.full-address {
  margin: 0;
}

.detail-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-box {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  overflow: hidden;
  position: sticky;
  top: 90px;
}

.contact-box-header {
  background: var(--primary-color);
  padding: 16px 20px;
}

.contact-box-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
}

.contact-form {
  padding: 20px;
}

.form-field {
  margin-bottom: 14px;
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(26, 35, 126, 0.1);
}

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

.form-alert {
  padding: 12px 14px;
  border-radius: 6px;
  margin-bottom: 14px;
  font-size: 14px;
}

.form-alert.success {
  background: #e8f5e9;
  color: #2e7d32;
  border: 1px solid #c8e6c9;
}

.form-alert.error {
  background: #ffebee;
  color: #c62828;
  border: 1px solid #ffcdd2;
}

.submit-btn {
  width: 100%;
  padding: 14px 20px;
  background: var(--primary-color);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.submit-btn:hover {
  background: #0d1642;
}

.submit-btn:disabled {
  background: #999;
  cursor: not-allowed;
}

.quick-info-box {
  background: #fff;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.quick-info-box h4 {
  font-size: 15px;
  font-weight: 600;
  color: #333;
  margin: 0 0 16px 0;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--primary-color);
}

.quick-info-box ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.quick-info-box li {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 14px;
}

.quick-info-box li:last-child {
  border-bottom: none;
}

.qi-label {
  color: #666;
}

.qi-value {
  font-weight: 600;
  color: #333;
}

@media (max-width: 1024px) {
  .detail-content {
    grid-template-columns: 1fr;
  }

  .contact-box {
    position: static;
  }

  .info-table {
    grid-template-columns: 1fr;
  }
}

.tab-menu {
  display: flex;
  gap: 0;
  margin-bottom: 0;
  background: #fff;
  border-radius: 8px 8px 0 0;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.tab-btn {
  flex: 1;
  padding: 16px 20px;
  border: none;
  background: #f5f5f5;
  font-size: 15px;
  font-weight: 600;
  color: #666;
  cursor: pointer;
  transition: all 0.2s;
  border-bottom: 3px solid transparent;
}

.tab-btn:hover {
  background: #eee;
}

.tab-btn.active {
  background: #fff;
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
}

.tab-content {
  display: none;
  border-radius: 0 0 8px 8px;
  margin-top: 0;
}

.tab-content.active {
  display: block;
}

@media (max-width: 768px) {
  .property-detail-page {
    padding: 8px 0 80px;
    overflow-x: hidden;
  }

  .property-detail-page .container {
    padding: 0 12px;
    max-width: 100%;
    overflow-x: hidden;
  }

  .detail-content {
    grid-template-columns: 1fr;
    gap: 12px;
    max-width: 100%;
  }

  .detail-main {
    max-width: 100%;
    overflow-x: hidden;
  }

  .detail-header {
    flex-direction: column;
    gap: 10px;
    padding: 12px;
    max-width: 100%;
    word-wrap: break-word;
  }

  .detail-header-left {
    width: 100%;
    max-width: 100%;
  }

  .detail-header-right {
    text-align: left;
    width: 100%;
    padding-top: 10px;
    border-top: 1px solid #eee;
  }

  .detail-price {
    font-size: 22px;
  }

  .detail-title {
    font-size: 16px;
    line-height: 1.3;
    word-wrap: break-word;
  }

  .detail-location {
    font-size: 13px;
  }

  .detail-gallery {
    border-radius: 8px;
    max-width: 100%;
  }

  .gallery-main-image {
    aspect-ratio: 4 / 3;
    max-width: 100%;
  }

  .gallery-main-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    background: #f5f5f5;
  }
  
  .no-image-placeholder {
    height: 100%;
    max-width: 100%;
  }

  .gallery-thumbnails {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .detail-section {
    padding: 14px;
    max-width: 100%;
    overflow-x: hidden;
  }

  .detail-section h3 {
    font-size: 15px;
  }

  .specs-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .spec-item {
    padding: 10px;
    font-size: 12px;
  }

  .breadcrumb {
    font-size: 11px;
    padding: 8px 10px;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
  }

  .features-list {
    gap: 6px;
  }

  .feature-tag {
    padding: 5px 10px;
    font-size: 11px;
  }

  .mobile-tab-menu {
    display: flex;
    gap: 0;
    margin-bottom: 0;
    background: #fff;
    border-radius: 8px 8px 0 0;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  }

  .tab-btn {
    flex: 1;
    padding: 12px 8px;
    border: none;
    background: #f5f5f5;
    font-size: 13px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.2s;
    border-bottom: 3px solid transparent;
  }

  .tab-btn.active {
    background: #fff;
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
  }

  .tab-content {
    display: none;
    border-radius: 0 0 8px 8px;
    margin-top: 0;
  }

  .tab-content.active {
    display: block;
  }

  .detail-sidebar {
    display: none;
  }

  .description-text {
    font-size: 13px;
    line-height: 1.6;
  }

  .listing-badge,
  .property-badge {
    font-size: 11px;
    padding: 4px 10px;
  }

  .detail-badges {
    gap: 6px;
    flex-wrap: wrap;
  }
}

/* Zoom Icon */
.zoom-icon {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  background: rgba(0, 0, 0, 0.6);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease, background 0.2s ease;
  cursor: zoom-in;
  z-index: 10;
}

.zoom-icon:hover {
  background: rgba(0, 0, 0, 0.8);
}

.zoom-icon svg {
  width: 22px;
  height: 22px;
  color: white;
}

.gallery-main-image:hover .zoom-icon {
  opacity: 1;
}

/* Lightbox */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}

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

.lightbox-content {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 80px 100px;
  box-sizing: border-box;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 10;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

.lightbox-close svg {
  width: 24px;
  height: 24px;
  color: white;
}

.lightbox-image-container {
  max-width: 100%;
  max-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-image-container img {
  max-width: 100%;
  max-height: calc(100vh - 180px);
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-50%) scale(1.1);
}

.lightbox-nav svg {
  width: 28px;
  height: 28px;
  color: white;
}

.lightbox-prev {
  left: 20px;
}

.lightbox-next {
  right: 20px;
}

.lightbox-counter {
  position: absolute;
  top: 28px;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  font-size: 16px;
  font-weight: 500;
  background: rgba(0, 0, 0, 0.5);
  padding: 8px 20px;
  border-radius: 20px;
}

.lightbox-thumbnails {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  padding: 12px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 12px;
  max-width: 90%;
  overflow-x: auto;
}

.lightbox-thumb {
  width: 70px;
  height: 52px;
  border: 2px solid transparent;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  opacity: 0.6;
  transition: all 0.2s ease;
  padding: 0;
  background: none;
  flex-shrink: 0;
}

.lightbox-thumb:hover {
  opacity: 0.9;
}

.lightbox-thumb.active {
  border-color: white;
  opacity: 1;
}

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

@media (max-width: 768px) {
  .lightbox-content {
    padding: 50px 10px 90px;
  }

  .lightbox-close {
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.6);
    z-index: 100;
  }

  .lightbox-close svg {
    width: 20px;
    height: 20px;
  }

  .lightbox-image-container img {
    max-height: calc(100vh - 160px);
    max-width: 100%;
    border-radius: 4px;
  }

  .lightbox-nav {
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.5);
  }

  .lightbox-nav svg {
    width: 22px;
    height: 22px;
  }

  .lightbox-prev {
    left: 8px;
  }

  .lightbox-next {
    right: 8px;
  }

  .lightbox-counter {
    top: 12px;
    font-size: 14px;
    padding: 6px 14px;
  }

  .lightbox-thumbnails {
    bottom: 10px;
    padding: 8px;
    gap: 6px;
  }

  .lightbox-thumb {
    width: 45px;
    height: 34px;
  }

  .zoom-icon {
    opacity: 1;
    width: 36px;
    height: 36px;
  }

  .zoom-icon svg {
    width: 18px;
    height: 18px;
  }
}

/* Landscape mode on mobile */
@media (max-width: 900px) and (orientation: landscape) {
  .lightbox-content {
    padding: 10px 50px 10px;
  }

  .lightbox-close {
    top: 8px;
    right: 8px;
    width: 36px;
    height: 36px;
    background: rgba(0, 0, 0, 0.7);
    z-index: 100;
  }

  .lightbox-close svg {
    width: 18px;
    height: 18px;
  }

  .lightbox-image-container {
    width: 100%;
    height: 100%;
  }

  .lightbox-image-container img {
    max-height: calc(100vh - 20px);
    max-width: calc(100vw - 120px);
    object-fit: contain;
  }

  .lightbox-nav {
    width: 36px;
    height: 36px;
    background: rgba(0, 0, 0, 0.6);
  }

  .lightbox-nav svg {
    width: 18px;
    height: 18px;
  }

  .lightbox-prev {
    left: 6px;
  }

  .lightbox-next {
    right: 6px;
  }

  .lightbox-counter {
    top: 8px;
    font-size: 12px;
    padding: 4px 10px;
  }

  .lightbox-thumbnails {
    display: none;
  }
}

:root {
  --primary-color: #1a237e;
  --primary-dark: #0d1642;
  --primary-light: #3949ab;
  --white: #ffffff;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;
  --success: #22c55e;
  --error: #ef4444;
  --warning: #f59e0b;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --radius: 8px;
  --radius-lg: 12px;
}

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

html {
  background-color: var(--gray-100);
  overflow-x: hidden;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--gray-50);
  color: var(--gray-800);
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}

.app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  width: 100%;
}

.full-width {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

.content-wrapper {
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  padding: 0 40px;
  box-sizing: border-box;
}

.main-content {
  flex: 1;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  padding: 0 40px;
  box-sizing: border-box;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  padding: 0 40px;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }
  
  .content-wrapper,
  .main-content {
    padding: 0 16px;
  }
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
  font-family: inherit;
}

input, textarea, select {
  font-family: inherit;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-weight: 500;
  font-size: 14px;
  border: none;
  transition: all 0.2s ease;
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--white);
}

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

.btn-secondary {
  background-color: var(--white);
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
}

.btn-secondary:hover {
  background-color: var(--primary-color);
  color: var(--white);
}

.btn-outline {
  background-color: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

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

.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.section-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 24px;
}

.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.badge-sale {
  background-color: var(--primary-color);
  color: var(--white);
}

.badge-rent {
  background-color: var(--success);
  color: var(--white);
}

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

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-700);
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  font-size: 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(26, 35, 126, 0.1);
}

.form-select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  font-size: 14px;
  background-color: var(--white);
  cursor: pointer;
}

.form-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  font-size: 14px;
  min-height: 120px;
  resize: vertical;
}

.grid {
  display: grid;
  gap: 24px;
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .grid-4, .grid-3, .grid-2 {
    grid-template-columns: 1fr;
  }
  
  .container {
    padding: 0 16px;
  }
  
  .section-title {
    font-size: 24px;
  }
}

.loading {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--gray-200);
  border-top-color: var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.alert {
  padding: 16px 20px;
  border-radius: var(--radius);
  margin-bottom: 20px;
}

.alert-success {
  background-color: #dcfce7;
  color: #166534;
  border: 1px solid #86efac;
}

.alert-error {
  background-color: #fef2f2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}

.no-image {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, var(--gray-200), var(--gray-300));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-500);
  font-size: 14px;
}

