/* ==========================================================================
   El-Bedihy & Co. — Property Finder Edition Design System
   Layout inspired by Property Finder with Official Brand Colors:
   Primary Royal Navy: #173275 | Imperial Gold: #C9A24D | Midnight: #0B1B40
   ========================================================================== */

:root {
  /* Brand Palette Extracted from Official Logo */
  --royal-navy: #173275;
  --royal-navy-hover: #12285E;
  --navy-deep: #0B1B40;
  --navy-midnight: #061026;
  
  /* Imperial Gold Accents */
  --gold: #C9A24D;
  --gold-glow: #DFB75E;
  --gold-dark: #A37F2C;
  --gold-light: #F7EFCF;
  --gold-subtle: rgba(201, 162, 77, 0.12);
  --gold-border: rgba(201, 162, 77, 0.35);

  /* Property Finder Clean UI Neutrals */
  --pf-white: #FFFFFF;
  --pf-bg: #F4F6F9;
  --pf-border: #E4E8EE;
  --pf-border-dark: #CBD5E1;
  --pf-text: #1A2232;
  --pf-text-secondary: #5E6D82;
  --pf-text-light: #8E9FB8;

  /* Status Colors */
  --status-available: #0FA958;
  --status-available-bg: rgba(15, 169, 88, 0.1);
  --status-reserved: #F59E0B;
  --status-reserved-bg: rgba(245, 158, 11, 0.1);
  --status-sold: #EF4444;
  --status-sold-bg: rgba(239, 68, 68, 0.1);

  /* Typography */
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  /* Shadows & Layout */
  --shadow-card: 0 2px 10px rgba(11, 27, 64, 0.06);
  --shadow-hover: 0 12px 30px rgba(11, 27, 64, 0.12);
  --shadow-modal: 0 25px 60px rgba(6, 16, 38, 0.4);
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --max-width: 1280px;
  --transition: all 0.25s ease-in-out;
}

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  color: var(--pf-text);
  background: var(--pf-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: var(--transition); }
ul { list-style: none; }
::selection { background: var(--royal-navy); color: var(--pf-white); }

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Typography */
h1, h2, h3, h4, h5 {
  color: var(--navy-deep);
  font-weight: 700;
  line-height: 1.25;
}
h1 { font-size: clamp(2rem, 3.8vw, 3.2rem); font-family: var(--font-heading); }
h2 { font-size: clamp(1.6rem, 2.8vw, 2.3rem); font-family: var(--font-heading); }
h3 { font-size: 1.3rem; }
p { color: var(--pf-text-secondary); }
.text-gold { color: var(--gold) !important; }
.text-navy { color: var(--royal-navy) !important; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 0.92rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 1px solid transparent;
  transition: var(--transition);
  white-space: nowrap;
}
.btn-gold {
  background: var(--gold);
  color: #FFFFFF;
}
.btn-gold:hover {
  background: var(--gold-dark);
  box-shadow: 0 4px 15px rgba(201, 162, 77, 0.35);
}
.btn-navy {
  background: var(--royal-navy);
  color: #FFFFFF;
}
.btn-navy:hover {
  background: var(--royal-navy-hover);
  box-shadow: 0 4px 15px rgba(23, 50, 117, 0.3);
}
.btn-outline-navy {
  background: #FFFFFF;
  border-color: var(--royal-navy);
  color: var(--royal-navy);
}
.btn-outline-navy:hover {
  background: var(--royal-navy);
  color: #FFFFFF;
}
.btn-whatsapp {
  background: #25D366;
  color: #FFFFFF;
}
.btn-whatsapp:hover {
  background: #1EBE5D;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.35);
}
.btn-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 4px;
}
.badge-gold { background: var(--gold-subtle); color: var(--gold-dark); border: 1px solid var(--gold-border); }
.badge-navy { background: rgba(23, 50, 117, 0.1); color: var(--royal-navy); }
.badge-verified {
  background: #E8F8F0;
  color: #0FA958;
  border: 1px solid rgba(15, 169, 88, 0.25);
  font-weight: 800;
}
.badge-status-available { background: var(--status-available-bg); color: var(--status-available); }
.badge-status-reserved { background: var(--status-reserved-bg); color: var(--status-reserved); }
.badge-status-sold { background: var(--status-sold-bg); color: var(--status-sold); }

/* ==========================================================================
   Property Finder Header (Navbar: ONLY LOGO on left, no website name text)
   ========================================================================== */
.pf-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--pf-white);
  border-bottom: 1px solid var(--pf-border);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}
.pf-topbar {
  background: #F8FAFC;
  border-bottom: 1px solid var(--pf-border);
  padding: 8px 0;
  font-size: 0.8rem;
}
.pf-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 82px;
}

/* ONLY LOGO IN HEADER - NO TEXT */
.pf-brand-logo {
  display: flex;
  align-items: center;
}
.header-logo-image {
  height: 60px;
  width: auto;
  object-fit: contain;
  transition: transform 0.2s;
}
.header-logo-image:hover {
  transform: scale(1.02);
}

.pf-nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.pf-nav-links a {
  font-size: 0.92rem;
  font-weight: 600;
  color: #2D3E56;
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 0;
}
.pf-nav-links a:hover, .pf-nav-links a.active {
  color: var(--royal-navy);
}
.pf-nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--royal-navy);
  border-radius: 3px 3px 0 0;
}
.nav-badge {
  font-size: 0.68rem;
  background: rgba(23, 50, 117, 0.1);
  color: var(--royal-navy);
  padding: 2px 6px;
  border-radius: 12px;
  font-weight: 700;
}
.nav-badge-gold {
  background: var(--gold-subtle);
  color: var(--gold-dark);
}
.pf-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy-deep);
}

/* ==========================================================================
   Property Finder Signature Hero & Search Tab Console
   ========================================================================== */
.pf-hero {
  position: relative;
  background: linear-gradient(rgba(11, 27, 64, 0.72), rgba(6, 16, 38, 0.85)), 
              url('https://images.unsplash.com/photo-1544984243-ec57ea16fe25?auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
  padding: 80px 0 100px;
  color: var(--pf-white);
  min-height: 480px;
  display: flex;
  align-items: center;
}
.pf-hero-content {
  max-width: 960px;
  margin: 0 auto;
  text-align: center;
}
.pf-hero-content h1 {
  color: var(--pf-white);
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  margin-bottom: 12px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}
.pf-hero-content p {
  color: #D6E4F7;
  font-size: 1.15rem;
  margin-bottom: 36px;
  font-weight: 400;
}

/* Property Finder Iconic Search Box with Tabs */
.pf-search-box-wrapper {
  background: var(--pf-white);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  text-align: left;
}
.pf-search-tabs {
  display: flex;
  background: #F1F5F9;
  border-bottom: 1px solid var(--pf-border);
  padding: 0 12px;
  gap: 4px;
}
.pf-search-tab {
  padding: 14px 24px;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--pf-text-secondary);
  background: transparent;
  border: none;
  cursor: pointer;
  position: relative;
  transition: all 0.2s;
}
.pf-search-tab:hover {
  color: var(--royal-navy);
}
.pf-search-tab.active {
  color: var(--royal-navy);
  background: var(--pf-white);
  border-radius: 8px 8px 0 0;
  border: 1px solid var(--pf-border);
  border-bottom-color: var(--pf-white);
  margin-bottom: -1px;
}
.pf-search-tab.active::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--royal-navy);
  border-radius: 3px 3px 0 0;
}

.pf-search-inputs-row {
  padding: 20px 24px;
  display: grid;
  grid-template-columns: 2fr 1.2fr 1.2fr 1.2fr auto;
  gap: 14px;
  align-items: center;
}
.pf-input-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.pf-input-group label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--royal-navy);
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 4px;
}
.pf-input-group select, .pf-input-group input {
  padding: 12px 14px;
  border: 1px solid var(--pf-border);
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-family: inherit;
  color: var(--pf-text);
  background: #FFFFFF;
  outline: none;
  transition: var(--transition);
}
.pf-input-group select:focus, .pf-input-group input:focus {
  border-color: var(--royal-navy);
  box-shadow: 0 0 0 3px rgba(23, 50, 117, 0.12);
}

.pf-search-submit {
  height: 48px;
  padding: 0 32px;
  font-size: 1rem;
  font-weight: 700;
  background: var(--royal-navy);
  color: #FFFFFF;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  align-self: flex-end;
  transition: var(--transition);
}
.pf-search-submit:hover {
  background: var(--royal-navy-hover);
  box-shadow: 0 6px 20px rgba(23, 50, 117, 0.35);
}

/* Popular Search Pills */
.pf-popular-tags {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
  flex-wrap: wrap;
}
.pf-popular-label {
  font-size: 0.82rem;
  color: #D6E4F7;
  font-weight: 600;
}
.pf-pill {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  color: #FFFFFF;
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.25);
  transition: var(--transition);
}
.pf-pill:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy-midnight);
}

/* ==========================================================================
   Property Finder Card Layout
   ========================================================================== */
.pf-section {
  padding: 70px 0;
}
.pf-section-title {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 16px;
}
.pf-section-title h2 {
  font-size: 1.8rem;
  color: var(--navy-deep);
}
.pf-section-title p {
  font-size: 0.95rem;
  color: var(--pf-text-secondary);
  margin-top: 4px;
}

.pf-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 28px;
}
.pf-card {
  background: var(--pf-white);
  border-radius: var(--radius);
  border: 1px solid var(--pf-border);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.pf-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(23, 50, 117, 0.25);
}

.pf-card-img-wrap {
  position: relative;
  height: 240px;
  background: var(--navy-deep);
  overflow: hidden;
}
.pf-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.pf-card:hover .pf-card-img-wrap img {
  transform: scale(1.05);
}

.pf-card-top-badges {
  position: absolute;
  top: 14px;
  left: 14px;
  display: flex;
  gap: 6px;
  z-index: 2;
}
.pf-card-heart {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--navy-deep);
  border: none;
  cursor: pointer;
  z-index: 2;
  transition: var(--transition);
}
.pf-card-heart:hover {
  color: #EF4444;
  transform: scale(1.1);
}

.pf-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

/* Big Price in Property Finder Style */
.pf-card-price {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--royal-navy);
  font-family: var(--font-body);
  margin-bottom: 6px;
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.pf-card-price-prefix {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--pf-text-secondary);
  text-transform: uppercase;
}

.pf-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy-deep);
  margin-bottom: 6px;
  line-height: 1.35;
}
.pf-card-title a:hover {
  color: var(--royal-navy);
}

.pf-card-location {
  font-size: 0.85rem;
  color: var(--pf-text-secondary);
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 16px;
}

/* Property Specs (Beds, Baths, Area) with Icons */
.pf-card-specs-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 0;
  border-top: 1px solid var(--pf-border);
  border-bottom: 1px solid var(--pf-border);
  margin-bottom: 16px;
  font-size: 0.85rem;
  color: var(--pf-text);
  font-weight: 600;
}
.pf-spec-item {
  display: flex;
  align-items: center;
  gap: 6px;
}
.pf-spec-item i {
  color: var(--gold-dark);
  font-size: 16px;
}

/* Card Action Footer: Direct WhatsApp & Call Buttons */
.pf-card-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.pf-developer-name {
  font-size: 0.78rem;
  color: var(--pf-text-light);
  font-weight: 500;
}
.pf-card-actions {
  display: flex;
  gap: 8px;
}

/* ==========================================================================
   Property Finder Community / Locations Grid
   ========================================================================== */
.pf-locations-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.pf-location-tile {
  position: relative;
  height: 260px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.pf-location-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.pf-location-tile:hover img {
  transform: scale(1.08);
}
.pf-location-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(6, 16, 38, 0.85) 0%, rgba(6, 16, 38, 0.2) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  color: #FFFFFF;
}
.pf-location-overlay h3 {
  color: #FFFFFF;
  font-size: 1.3rem;
  margin-bottom: 4px;
}
.pf-location-overlay span {
  font-size: 0.82rem;
  color: var(--gold-light);
  font-weight: 600;
}

/* ==========================================================================
   Units Table (Property Finder Inventory Layout)
   ========================================================================== */
.inventory-container {
  background: var(--pf-white);
  border-radius: var(--radius);
  border: 1px solid var(--pf-border);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.inventory-filters {
  padding: 18px 24px;
  background: #FFFFFF;
  border-bottom: 1px solid var(--pf-border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.table-responsive {
  width: 100%;
  overflow-x: auto;
}
.inventory-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
.inventory-table th {
  background: #F8FAFC;
  padding: 14px 20px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--pf-text-secondary);
  font-weight: 700;
  border-bottom: 1px solid var(--pf-border);
}
.inventory-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--pf-border);
  font-size: 0.92rem;
  color: var(--pf-text);
  vertical-align: middle;
}
.inventory-table tr:hover td {
  background: #F8FAFD;
}
.unit-code-badge {
  font-family: monospace;
  font-weight: 700;
  color: var(--royal-navy);
  background: rgba(23, 50, 117, 0.08);
  padding: 3px 8px;
  border-radius: 4px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--navy-midnight);
  color: #A3B5CE;
  padding: 70px 0 30px;
  border-top: 1px solid rgba(201, 162, 77, 0.2);
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 50px;
}
.footer-brand img {
  height: 60px;
  width: auto;
  margin-bottom: 16px;
}
.footer-brand p {
  color: #8C9FB8;
  font-size: 0.9rem;
  line-height: 1.7;
  max-width: 320px;
}
.footer-col h4 {
  color: var(--pf-white);
  font-size: 1.05rem;
  margin-bottom: 18px;
  position: relative;
}
.footer-col h4::after {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gold);
  margin-top: 6px;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-links a {
  color: #9DB0CC;
  font-size: 0.88rem;
}
.footer-links a:hover {
  color: var(--gold);
  transform: translateX(3px);
}
.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: #6C7F99;
}

/* Floating WhatsApp */
.floating-whatsapp {
  position: fixed;
  bottom: 26px;
  right: 26px;
  z-index: 999;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25D366;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
  transition: var(--transition);
}
.floating-whatsapp:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.55);
}

/* Modals */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(6, 16, 38, 0.8);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-overlay.active {
  display: flex;
}
.modal-card {
  background: var(--pf-white);
  border-radius: var(--radius-lg);
  max-width: 540px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 32px;
  position: relative;
  box-shadow: var(--shadow-modal);
  border: 1px solid var(--pf-border);
}
.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: transparent;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--pf-text-secondary);
}

/* Responsive */
@media (max-width: 1024px) {
  .pf-search-inputs-row {
    grid-template-columns: 1fr 1fr;
  }
  .pf-locations-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .pf-topbar {
    display: none;
  }
  .pf-nav-links {
    display: none;
  }
  .mobile-toggle {
    display: flex;
  }
  .pf-search-inputs-row {
    grid-template-columns: 1fr;
  }
  .pf-cards-grid {
    grid-template-columns: 1fr;
  }
  .pf-locations-grid {
    grid-template-columns: 1fr;
  }
  .footer-top {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
}
