/* ============================================================
   contactedpropertiescss.css — Contacted Properties Page Styles
   PropertysDeal | Contacted Properties Page
============================================================ */


/* ============================================================
   GLOBAL RESET & BASE
============================================================ */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: #f4f6f9;
  color: #1a1a2e;
}

/* Landing-style property cards on contacted page */
.contacted-properties-page {
  padding: 0 0 4rem;
}

.contacted-properties-page .property-card {
  cursor: pointer;
}

a {
  text-decoration: none;
}


/* ============================================================
   SECTION: TOP INFO BAR
   (Email + Phone strip at the very top — orange background)
============================================================ */
.top-info-bar {
  background: #e07b2b;
  padding: 7px 5%;
}

.top-info-inner {
  display: flex;
  justify-content: flex-end;
  gap: 24px;
  font-size: 12.5px;
  color: #fff;
  font-weight: 500;
}

.top-info-inner span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.top-info-inner i {
  font-size: 12px;
}


/* ============================================================
   SECTION: MAIN NAVBAR
   (Logo | Nav Links | Account | Post Property Button)
============================================================ */
.main-navbar {
  background: #fff;
  border-bottom: 1px solid #eaecf0;
  position: sticky;
  top: 0;
  z-index: 200;
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 5%;
  gap: 16px;
}

/* Logo */
.navbar-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-icon {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, #e07b2b, #f5a623);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  color: #fff;
}

.logo-text {
  font-size: 17px;
  font-weight: 800;
  color: #1a1a2e;
}

/* Desktop Nav Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link-item {
  font-size: 14px;
  font-weight: 500;
  color: #444;
  padding: 6px 14px;
  border-radius: 6px;
  text-decoration: none;
  transition: color 0.2s, background 0.2s;
}

.nav-link-item:hover {
  color: #e07b2b;
  background: #fff5ec;
}

/* Right side buttons */
.navbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-account {
  background: none;
  border: 1.5px solid #ddd;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  color: #555;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}

.btn-account:hover {
  border-color: #e07b2b;
  color: #e07b2b;
}

.btn-post-property {
  background: #e07b2b;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 9px 18px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}

.btn-post-property:hover {
  background: #c96a1a;
}

/* Hamburger (mobile only) */
.btn-hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 20px;
  color: #444;
  cursor: pointer;
  padding: 4px 8px;
}

/* Mobile Nav Dropdown */
.mobile-nav {
  display: none;
  flex-direction: column;
  padding: 8px 5% 14px;
  border-top: 1px solid #f0f0f0;
}

.mobile-nav.open {
  display: flex;
}

.mobile-nav-link {
  font-size: 14px;
  font-weight: 500;
  color: #444;
  padding: 10px 0;
  border-bottom: 1px solid #f5f5f5;
  text-decoration: none;
  transition: color 0.2s;
}

.mobile-nav-link:hover {
  color: #e07b2b;
}


/* ============================================================
   SECTION: PAGE HEADER
   (Title + Subtitle + Search + Filter dropdowns)
============================================================ */
.page-header-section {
  background: #fff;
  border-bottom: 1px solid #eaecf0;
  padding: 28px 5%;
}

.page-header-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.page-title-block {
  max-width: 440px;
}

.page-title {
  font-size: 28px;
  font-weight: 800;
  color: #1a1a2e;
  margin-bottom: 6px;
}

.page-subtitle {
  font-size: 13.5px;
  color: #888;
  line-height: 1.6;
}

/* Filter row (search + dropdowns) */
.page-filters {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* Search box */
.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1.5px solid #e0e4ea;
  border-radius: 8px;
  padding: 9px 14px;
  background: #fff;
  min-width: 200px;
}

.search-box i {
  color: #aaa;
  font-size: 13px;
}

.search-box input {
  border: none;
  outline: none;
  font-size: 13px;
  color: #333;
  background: none;
  width: 100%;
}

.search-box input::placeholder {
  color: #bbb;
}

/* Filter dropdown wrapper */
.filter-dropdown {
  position: relative;
}

.filter-btn {
  border: 1.5px solid #e0e4ea;
  border-radius: 8px;
  background: #fff;
  padding: 9px 14px;
  font-size: 13px;
  font-weight: 500;
  color: #444;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  transition: border-color 0.2s;
}

.filter-btn:hover,
.filter-dropdown.open .filter-btn {
  border-color: #e07b2b;
  color: #e07b2b;
}

.filter-btn i {
  font-size: 11px;
  transition: transform 0.2s;
}

.filter-dropdown.open .filter-btn i {
  transform: rotate(180deg);
}

/* Custom dropdown menu */
.dropdown-menu-custom {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  background: #fff;
  border: 1.5px solid #e0e4ea;
  border-radius: 10px;
  min-width: 160px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  z-index: 300;
  overflow: hidden;
}

.filter-dropdown.open .dropdown-menu-custom {
  display: block;
}

.dropdown-option {
  padding: 10px 16px;
  font-size: 13px;
  color: #444;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.dropdown-option:hover {
  background: #fff5ec;
  color: #e07b2b;
}

.dropdown-option.selected {
  background: #fff5ec;
  color: #e07b2b;
  font-weight: 600;
}


/* ============================================================
   SECTION: CARDS GRID WRAPPER
============================================================ */
.cards-wrapper {
  padding: 28px 5%;
}


/* ============================================================
   SECTION: PROPERTY CARD
============================================================ */
.prop-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 14px rgba(0,0,0,0.07);
  transition: box-shadow 0.25s, transform 0.25s;
  height: 100%;
}

.prop-card:hover {
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
  transform: translateY(-3px);
}

/* Card image area */
.card-img-wrapper {
  position: relative;
  overflow: hidden;
}

.card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.prop-card:hover .card-img {
  transform: scale(1.04);
}

/* Status badge (bottom-left of image) */
.status-badge {
  position: absolute;
  bottom: 10px;
  left: 10px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: 5px;
  text-transform: uppercase;
}

.status-badge.green {
  background: #2e7d32;
  color: #fff;
}

.status-badge.orange-badge {
  background: #e07b2b;
  color: #fff;
}

/* Photo count badge (bottom-right of image) */
.photo-count-badge {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(0,0,0,0.55);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 5px;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Favourite heart button */
.fav-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  background: #fff;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  color: #ccc;
  font-size: 14px;
  transition: color 0.2s, transform 0.2s;
}

.fav-btn:hover {
  transform: scale(1.1);
}

.fav-btn.active {
  color: #e53935;
}


/* ============================================================
   CARD BODY
============================================================ */
.card-body-custom {
  padding: 16px;
}

/* Price + Type row */
.price-type-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 6px;
}

.prop-price {
  font-size: 18px;
  font-weight: 800;
  color: #e07b2b;
}

.emi-text {
  font-size: 11px;
  color: #aaa;
  margin-top: 1px;
}

.prop-type-label {
  font-size: 13px;
  font-weight: 700;
  color: #1a1a2e;
  text-align: right;
}

.prop-area {
  font-size: 11px;
  color: #aaa;
  text-align: right;
}

/* Location + ID row */
.location-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
  color: #666;
  margin-bottom: 10px;
  flex-wrap: wrap;
  gap: 4px;
}

.location-row i {
  color: #e07b2b;
  margin-right: 3px;
}

.prop-id {
  font-size: 11px;
  color: #bbb;
}

/* Property details grid (2x2) */
.details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px 10px;
  font-size: 12px;
  color: #666;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f0f2f5;
}

.details-grid span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.details-grid i {
  color: #bbb;
  font-size: 13px;
  width: 14px;
}

/* Response status + contacted time */
.response-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 6px;
}

.response-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
}

.response-badge.green {
  background: #e8f5e9;
  color: #2e7d32;
}

.response-badge.grey {
  background: #f0f0f0;
  color: #777;
}

.response-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.green-dot { background: #4caf50; }
.grey-dot  { background: #bbb; }

.contacted-time {
  font-size: 11.5px;
  color: #bbb;
}

/* Chat + Details action buttons */
.action-btns-row {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.btn-chat {
  flex: 1;
  border: none;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s;
}

.btn-chat.orange {
  background: #e07b2b;
  color: #fff;
}

.btn-chat.orange:hover {
  background: #c96a1a;
}

.btn-details {
  flex: 1;
  border: 1.5px solid #ddd;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 600;
  color: #444;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}

.btn-details:hover {
  border-color: #e07b2b;
  color: #e07b2b;
}

/* Bottom remove + share links */
.card-bottom-links {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 10px;
  border-top: 1px solid #f0f2f5;
}

.link-remove {
  background: none;
  border: none;
  font-size: 12.5px;
  font-weight: 600;
  color: #e53935;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0;
  transition: opacity 0.2s;
}

.link-remove:hover {
  opacity: 0.75;
}

.link-share {
  background: none;
  border: none;
  font-size: 12.5px;
  font-weight: 600;
  color: #777;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0;
  transition: color 0.2s;
}

.link-share:hover {
  color: #e07b2b;
}


/* ============================================================
   EMPTY STATE (shown when no cards match filters)
============================================================ */
.empty-state {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  color: #bbb;
  font-size: 15px;
  gap: 12px;
  text-align: center;
}

.empty-state i {
  font-size: 48px;
  color: #ddd;
}


/* ============================================================
   RESPONSIVE TWEAKS
============================================================ */

/* Tablet */
@media (max-width: 991px) {
  .nav-links {
    display: none; /* Hidden — shown via hamburger */
  }

  .btn-hamburger {
    display: flex;
  }

  .page-header-inner {
    flex-direction: column;
    gap: 16px;
  }

  .page-filters {
    width: 100%;
  }

  .search-box {
    flex: 1;
    min-width: 0;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .top-info-inner {
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
  }

  .page-title {
    font-size: 22px;
  }

  .page-subtitle {
    font-size: 12.5px;
  }

  .cards-wrapper {
    padding: 18px 4%;
  }

  .page-header-section {
    padding: 20px 4%;
  }

  .navbar-inner {
    padding: 12px 4%;
  }

  .top-info-bar {
    padding: 7px 4%;
  }

  .page-filters {
    flex-wrap: wrap;
    gap: 8px;
  }

  .filter-btn {
    font-size: 12px;
    padding: 8px 11px;
  }
}

/* Small mobile */
@media (max-width: 480px) {
  .logo-text {
    font-size: 15px;
  }

  .btn-post-property {
    font-size: 12px;
    padding: 8px 12px;
  }

  .prop-price {
    font-size: 16px;
  }

  .card-img {
    height: 180px;
  }

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