/* ----------------------------------------------------
   Melhors Investment - Premium Brand Style Sheet
   Colors: Primary Green (#4E8171), Gold (#F7C00A), Black (#000000)
   Fonts: Proxima Nova (Body) | Playfair Display (Headings)
   ---------------------------------------------------- */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400..900;1,400..900&family=Montserrat:wght@300;400;500;600;700&display=swap');

:root {
  /* Brand Colors */
  --brand-green: #4E8171;
  --brand-green-rgb: 78, 129, 113;
  --brand-gold: #F7C00A;
  --brand-black: #000000;
  
  /* Neutral Palette */
  --bg-dark: #1B3B32;
  --bg-light: #F8F9FA;
  --bg-white: #FFFFFF;
  --text-dark: #2C3E35;
  --text-muted: #6C7A72;
  --text-light: #FFFFFF;
  --border-color: #E2E8F0;
  
  /* Fonts */
  --font-primary: 'Proxima Nova', 'Montserrat', 'Inter', sans-serif;
  --font-secondary: 'Playfair Display', Georgia, serif;
  
  /* Spacing & Utilities */
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --border-radius: 8px;
  --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  --box-shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.1);
  --container-width: 1200px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-primary);
  color: var(--text-dark);
  background-color: var(--bg-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Typography */
h1, h2, h3, h4, h5, h6, .heading-serif {
  font-family: var(--font-secondary);
  font-weight: 700;
  line-height: 1.25;
  color: var(--brand-black);
}

p {
  font-size: 1rem;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-smooth);
}

/* Button UI */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--border-radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition-smooth);
  font-family: var(--font-primary);
}

.btn-primary {
  background-color: var(--brand-gold);
  color: var(--brand-black);
}

.btn-primary:hover {
  background-color: #E0AE09;
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: var(--brand-green);
  color: var(--text-light);
}

.btn-secondary:hover {
  background-color: #3F695C;
  transform: translateY(-2px);
}

.btn-outline {
  background-color: transparent;
  border-color: var(--brand-green);
  color: var(--brand-green);
}

.btn-outline:hover {
  background-color: var(--brand-green);
  color: var(--text-light);
  transform: translateY(-2px);
}

.btn-outline-white {
  background-color: transparent;
  border-color: var(--text-light);
  color: var(--text-light);
}

.btn-outline-white:hover {
  background-color: var(--text-light);
  color: var(--brand-black);
  transform: translateY(-2px);
}

/* Header / Navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: var(--bg-white);
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition-smooth);
}

header.scrolled {
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 15px 20px;
}

.logo img {
  height: 50px;
  width: auto;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 30px;
}

.nav-menu a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-dark);
}

.nav-menu a:hover, .nav-menu a.active {
  color: var(--brand-green);
}

.mobile-menu-btn {
  display: none;
  font-size: 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--brand-green);
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
}

/* Hero Section */
.hero {
  position: relative;
  background-color: var(--bg-dark);
  background-size: cover;
  background-position: center;
  min-height: 85vh;
  display: flex;
  align-items: center;
  color: var(--text-light);
  padding-top: 80px; /* offset header */
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(27, 59, 50, 0.9) 0%, rgba(0, 0, 0, 0.75) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 40px 20px;
  width: 100%;
}

.hero h1 {
  font-size: 3.5rem;
  color: var(--text-light);
  margin-bottom: 15px;
}

.hero h1 span {
  color: var(--brand-gold);
}

.hero p.tagline {
  font-family: var(--font-secondary);
  font-style: italic;
  font-size: 1.5rem;
  color: var(--brand-gold);
  margin-bottom: 25px;
}

.hero p.description {
  max-width: 600px;
  font-size: 1.1rem;
  margin-bottom: 40px;
  opacity: 0.9;
}

/* Search Bar Widget */
.search-widget {
  background: var(--bg-white);
  padding: 24px;
  border-radius: var(--border-radius);
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  max-width: 950px;
  margin-top: -60px;
  position: relative;
  z-index: 5;
  margin-left: auto;
  margin-right: auto;
  border: 1px solid var(--border-color);
}

.search-form {
  display: grid;
  grid-template-columns: repeat(4, 1fr) auto;
  gap: 15px;
  align-items: end;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
}

.form-group select, .form-group input {
  padding: 12px;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  font-family: var(--font-primary);
  font-size: 0.95rem;
  outline: none;
  background-color: var(--bg-light);
  color: var(--text-dark);
}

.form-group select:focus, .form-group input:focus {
  border-color: var(--brand-green);
  background-color: var(--bg-white);
}

/* Page Section Utility */
.section {
  padding: 80px 20px;
}

.section-light {
  background-color: var(--bg-light);
}

.section-dark {
  background-color: var(--bg-dark);
  color: var(--text-light);
}

.section-dark h2 {
  color: var(--text-light);
}

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

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.section-header p {
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

.section-dark .section-header p {
  color: #B4C6C0;
}

/* Property Grid and Card UI */
.property-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.property-card {
  background-color: var(--bg-white);
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition-smooth);
  position: relative;
}

.property-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--box-shadow-hover);
  border-color: var(--brand-green);
}

.property-badge-container {
  position: absolute;
  top: 15px;
  left: 15px;
  display: flex;
  gap: 8px;
  z-index: 3;
}

.badge {
  padding: 5px 12px;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 4px;
  text-transform: uppercase;
}

.badge-gold {
  background-color: var(--brand-gold);
  color: var(--brand-black);
}

.badge-green {
  background-color: var(--brand-green);
  color: var(--text-light);
}

.property-img-wrapper {
  position: relative;
  height: 230px;
  overflow: hidden;
}

.property-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.property-card:hover .property-img-wrapper img {
  transform: scale(1.08);
}

.property-info {
  padding: 24px;
}

.property-info .price {
  font-family: var(--font-secondary);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--brand-green);
  margin-bottom: 8px;
}

.property-info h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
  color: var(--brand-black);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.property-info .location {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.property-meta-tags {
  display: flex;
  align-items: center;
  gap: 15px;
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.85rem;
}

.property-meta-tags span {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Interactive ROI Calculator Widget */
.calc-container {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  background-color: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 40px;
  box-shadow: var(--box-shadow);
}

.calc-inputs {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.slider-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.slider-header {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
}

.slider-header span.val {
  color: var(--brand-green);
  font-size: 1.1rem;
}

.slider-group input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: var(--border-color);
  outline: none;
}

.slider-group input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--brand-green);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.slider-group input[type="range"]::-webkit-slider-thumb:hover {
  background: var(--brand-gold);
  transform: scale(1.2);
}

.calc-results {
  background-color: var(--bg-light);
  border-radius: var(--border-radius);
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  border: 1px solid var(--border-color);
}

.calc-result-item {
  margin-bottom: 25px;
}

.calc-result-item:last-child {
  margin-bottom: 0;
}

.calc-result-item label {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  display: block;
  margin-bottom: 8px;
}

.calc-result-item .val {
  font-family: var(--font-secondary);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--brand-green);
}

/* Resources & Media Showcase */
.resource-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.resource-card {
  background-color: var(--bg-white);
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  display: flex;
  flex-direction: column;
}

.resource-card .img-wrapper {
  height: 180px;
  position: relative;
  background-color: var(--bg-dark);
}

.resource-card .img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.resource-card .info {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.resource-card .tag {
  align-self: flex-start;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--brand-green);
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}

.resource-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  line-height: 1.3;
}

.resource-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 20px;
  flex-grow: 1;
}

.resource-card .action-link {
  font-weight: 600;
  color: var(--brand-green);
  display: flex;
  align-items: center;
  gap: 6px;
}

.resource-card .action-link:hover {
  color: var(--brand-gold);
}

/* Team Section */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.team-card {
  text-align: center;
  background-color: var(--bg-white);
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
  padding: 30px;
  box-shadow: var(--box-shadow);
}

.team-avatar {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 20px;
  border: 3px solid var(--brand-green);
}

.team-card h3 {
  font-size: 1.3rem;
  margin-bottom: 5px;
}

.team-card .designation {
  color: var(--brand-green);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.team-card p.bio {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.team-socials {
  display: flex;
  justify-content: center;
  gap: 15px;
  font-size: 1.1rem;
  color: var(--brand-green);
}

.team-socials a:hover {
  color: var(--brand-gold);
}

/* Contact & Enquiry Forms */
.form-container {
  max-width: 600px;
  margin: 0 auto;
  background-color: var(--bg-white);
  padding: 40px;
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
  box-shadow: var(--box-shadow);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.form-group-full {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group-full label {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-muted);
}

.form-group-full input, .form-group-full textarea, .form-group-full select {
  padding: 12px;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  font-family: var(--font-primary);
  outline: none;
  background-color: var(--bg-light);
  color: var(--text-dark);
}

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

.form-group-full input:focus, .form-group-full textarea:focus, .form-group-full select:focus {
  border-color: var(--brand-green);
  background-color: var(--bg-white);
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 25px;
}

.checkbox-group input {
  margin-top: 4px;
}

.checkbox-group label {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.checkbox-group label a {
  color: var(--brand-green);
  text-decoration: underline;
}

/* Footer Section */
footer {
  background-color: var(--brand-black);
  color: #B4C6C0;
  padding: 60px 20px 20px;
  border-top: 4px solid var(--brand-green);
}

.footer-container {
  max-width: var(--container-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h3 {
  color: var(--text-light);
  font-size: 1.2rem;
  margin-bottom: 20px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col a:hover {
  color: var(--brand-gold);
}

.footer-about img {
  height: 50px;
  margin-bottom: 15px;
}

.footer-about p {
  font-size: 0.9rem;
  line-height: 1.5;
}

.footer-bottom {
  border-top: 1px solid #2C3E35;
  padding-top: 20px;
  text-align: center;
  font-size: 0.85rem;
  display: flex;
  justify-content: space-between;
  max-width: var(--container-width);
  margin: 0 auto;
}

/* Cookie consent banner (UK GDPR / NDPR) */
.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  background-color: var(--bg-white);
  border: 1px solid var(--brand-green);
  border-radius: var(--border-radius);
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  z-index: 10000;
  max-width: 800px;
  margin: 0 auto;
}

.cookie-banner.hidden {
  display: none;
}

.cookie-text {
  font-size: 0.85rem;
  color: var(--text-dark);
}

.cookie-text a {
  color: var(--brand-green);
  text-decoration: underline;
}

.cookie-actions {
  display: flex;
  gap: 10px;
}

/* About Us Premium Styling */
.about-intro-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 50px;
}

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

.about-stat-card {
  background: var(--bg-light);
  border: 1px solid var(--border-color);
  padding: 20px 15px;
  border-radius: var(--border-radius);
  text-align: center;
  transition: var(--transition-smooth);
}

.about-stat-card:hover {
  transform: translateY(-5px);
  border-color: var(--brand-green);
  box-shadow: var(--box-shadow);
}

.about-stat-card h3 {
  font-size: 2.2rem;
  color: var(--brand-green);
  margin-bottom: 5px;
  font-family: var(--font-primary);
  font-weight: 700;
}

.about-stat-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.about-split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: stretch;
  margin-top: 40px;
}

.mission-vision-card {
  background: var(--bg-light);
  border-left: 4px solid var(--brand-gold);
  border-radius: var(--border-radius);
  padding: 30px;
  transition: var(--transition-smooth);
}

.mission-vision-card:hover {
  background: var(--bg-white);
  box-shadow: var(--box-shadow-hover);
  transform: translateY(-3px);
}

.mission-vision-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--brand-green);
  display: flex;
  align-items: center;
  gap: 10px;
}

.mission-vision-card p {
  color: var(--text-dark);
  font-size: 0.95rem;
  line-height: 1.7;
}

.pillars-section {
  margin-top: 50px;
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 25px;
}

.pillar-card {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 25px;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.pillar-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--brand-green);
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition-smooth);
}

.pillar-card:hover::before {
  transform: scaleX(1);
}

.pillar-card:hover {
  border-color: var(--brand-green);
  box-shadow: var(--box-shadow-hover);
  transform: translateY(-5px);
}

.pillar-card .icon-wrapper {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(78, 129, 113, 0.1);
  color: var(--brand-green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 20px;
  transition: var(--transition-smooth);
}

.pillar-card:hover .icon-wrapper {
  background: var(--brand-green);
  color: var(--text-light);
}

.pillar-card h4 {
  font-size: 1.15rem;
  margin-bottom: 10px;
  color: var(--brand-black);
}

.pillar-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  margin-top: 25px;
}

.value-card {
  background: var(--bg-light);
  border-radius: var(--border-radius);
  padding: 25px;
  border: 1px solid var(--border-color);
  transition: var(--transition-smooth);
}

.value-card:hover {
  background: var(--bg-white);
  border-color: var(--brand-gold);
  box-shadow: var(--box-shadow);
}

.value-card h4 {
  font-size: 1.2rem;
  color: var(--brand-green);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.value-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.differentiator-banner {
  background: linear-gradient(135deg, var(--bg-dark) 0%, #0c201a 100%);
  color: var(--text-light);
  border-radius: var(--border-radius);
  padding: 40px 50px;
  margin-top: 50px;
  border: 1px solid rgba(247, 192, 10, 0.3);
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
  align-items: center;
}

.differentiator-banner h3 {
  color: var(--brand-gold);
  font-size: 2rem;
  line-height: 1.3;
}

.differentiator-banner p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #d1e2dd;
}

.differentiator-banner strong {
  color: var(--brand-gold);
}

/* Responsive breakdowns */
@media (max-width: 1024px) {
  .property-grid, .resource-grid, .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-container {
    grid-template-columns: repeat(2, 1fr);
  }
  .about-intro-grid {
    gap: 40px;
  }
  .about-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .pillars-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .differentiator-banner {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 30px;
  }
}

@media (max-width: 991px) {
  .nav-menu {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--bg-white);
    border-bottom: 3px solid var(--brand-green);
    padding: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-15px);
    transition: all 0.3s ease-in-out;
    z-index: 1000;
    gap: 15px;
  }
  
  .nav-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-menu li {
    width: 100%;
    text-align: center;
  }

  .nav-menu li a {
    display: block;
    padding: 10px 0;
    width: 100%;
  }

  .nav-menu li a.btn {
    display: inline-block;
    width: auto;
    padding: 8px 25px !important;
  }

  .mobile-menu-btn {
    display: flex !important;
    z-index: 1001;
    transition: transform 0.2s ease-in-out;
  }

  .mobile-menu-btn.active {
    transform: rotate(90deg);
  }

  .search-widget {
    margin-top: 30px !important;
    margin-bottom: 20px !important;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .search-form {
    grid-template-columns: 1fr;
  }

  .calc-container {
    grid-template-columns: 1fr;
    padding: 20px;
    gap: 25px;
  }

  .property-grid, .resource-grid, .team-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  .about-intro-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .about-stats-grid {
    grid-template-columns: 1fr;
  }

  .about-split-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .pillars-grid {
    grid-template-columns: 1fr;
  }

  .values-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 40px 15px;
  }

  .section-header {
    margin-bottom: 30px;
  }

  .section-header h2 {
    font-size: 1.8rem;
  }

  /* Override inline grid styling on mobile */
  div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
    gap: 25px !important;
  }

  /* Responsive property detail slideshow */
  .slideshow-container {
    height: 280px !important;
  }

  /* Detail parameters list view */
  div[style*="grid-template-columns: repeat(2, 1fr)"] {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  .detail-param-card {
    padding: 10px 14px;
    font-size: 0.85rem;
  }
}

/* Detail Property Page Slideshow & Technical details layout */
.slideshow-container {
  position: relative;
  height: 450px;
  overflow: hidden;
  border-radius: var(--border-radius);
  background-color: #000;
  border: 1px solid var(--border-color);
}
.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  z-index: 1;
}
.slide.active {
  opacity: 1;
  z-index: 2;
}
.detail-param-card {
  background-color: var(--bg-light);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 12px 18px;
  font-size: 0.9rem;
  color: var(--text-dark);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.detail-param-card strong {
  color: var(--text-muted);
  font-weight: 600;
  margin-right: 10px;
}

/* International Telephone Input Styling */
.iti {
  width: 100%;
}
.iti__country-list {
  background-color: var(--bg-white) !important;
  color: var(--text-dark) !important;
  border: 1px solid var(--border-color) !important;
  border-radius: var(--border-radius) !important;
  box-shadow: var(--box-shadow-hover) !important;
  font-family: var(--font-primary) !important;
  z-index: 100 !important;
}
.iti__country {
  padding: 8px 12px !important;
  outline: none !important;
}
.iti__country.iti__highlight {
  background-color: var(--brand-green) !important;
  color: var(--text-light) !important;
}

/* Slideshow navigation buttons */
.slideshow-prev, .slideshow-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: var(--text-light);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 10;
  font-size: 1.1rem;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  outline: none;
}

.slideshow-prev:hover, .slideshow-next:hover {
  background: var(--brand-gold);
  border-color: var(--brand-gold);
  color: var(--bg-dark);
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
  transform: translateY(-50%) scale(1.05);
}

.slideshow-prev:active, .slideshow-next:active {
  transform: translateY(-50%) scale(0.95);
}

.slideshow-prev {
  left: 20px;
}

.slideshow-next {
  right: 20px;
}

/* Back to Top Button */
#back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: rgba(27, 59, 50, 0.85); /* brand green with glassmorphism */
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--brand-gold);
  border: 1px solid rgba(247, 192, 10, 0.4); /* subtle gold border */
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

#back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#back-to-top:hover {
  background-color: var(--brand-gold);
  color: var(--bg-dark);
  border-color: var(--brand-gold);
  box-shadow: 0 6px 20px rgba(247, 192, 10, 0.4);
  transform: translateY(-5px);
}

#back-to-top:active {
  transform: scale(0.95) translateY(-2px);
}

/* Responsive adjustment */
@media (max-width: 768px) {
  #back-to-top {
    bottom: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
  }
}

/* Footer Social Icons */
.footer-socials {
  margin-top: 20px;
  display: flex;
  gap: 15px;
}
.footer-socials a {
  color: var(--text-light);
  font-size: 1.1rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  text-decoration: none;
}
.footer-socials a:hover {
  color: var(--brand-gold);
  background: rgba(255, 255, 255, 0.18);
  border-color: var(--brand-gold);
  transform: translateY(-3px);
  box-shadow: 0 4px 10px rgba(247, 192, 10, 0.3);
}
.footer-socials a:active {
  transform: scale(0.92) translateY(-1px);
}

/* Hide all property-related pages and listings from the public website */
a[href*="properties.html"] {
  display: none !important;
}
li:has(a[href*="properties.html"]) {
  display: none !important;
}
.footer-col:has(a[href*="properties.html"]) {
  display: none !important;
}
section:has(#featured-properties-grid) {
  display: none !important;
}
.search-widget {
  display: none !important;
}

/* Align footer contact details nicely and prevent awkward icon wrapping */
.footer-col p {
  display: flex !important;
  align-items: flex-start !important;
  gap: 10px;
}
.footer-col p i {
  margin-top: 4px; /* Align icon with the first line of text */
  flex-shrink: 0;
  margin-right: 0 !important; /* Overwrite inline margins */
}

