:root {
  --gold: #FFD700;
  --black: #0a0a0a;
  --dark-gray: #1a1a1a;
  --light-gray: #f5f5f5;
  --white: #ffffff;
  --whatsapp: #25D366;
  --border: #e5e5e5;
  --red: #e63946;
  --blue: #007BFF;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--light-gray);
  color: #333;
  line-height: 1.6;
  padding-bottom: 70px;
}

.hidden { 
  display: none; 
}

header {
  background: var(--black);
  color: var(--gold);
  text-align: center;
  padding: 24px 20px;
}

header h1 {
  font-size: clamp(28px, 5vw, 36px);
  font-weight: 700;
}

header p {
  margin-top: 8px;
  font-size: 14px;
}

nav {
  background: var(--gold);
  display: flex;
  justify-content: center;
  gap: 24px;
  padding: 14px 20px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

nav a {
  color: var(--black);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
}

nav a:hover, nav a:focus {
  text-decoration: underline;
}

.hero {
  background: linear-gradient(135deg, var(--dark-gray) 0%, var(--black) 100%);
  color: var(--white);
  text-align: center;
  padding: 80px 20px;
}

.hero h2 {
  color: var(--gold);
  font-size: clamp(24px, 4vw, 38px);
  margin-bottom: 12px;
}

.about, .properties, .contact {
  padding: 60px 20px;
  max-width: 1200px;
  margin: auto;
}

h2 {
  text-align: center;
  font-size: 32px;
  margin-bottom: 40px;
}

.property-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.property-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: transform 0.25s, box-shadow 0.25s;
  display: flex;
  flex-direction: column;
}

.property-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.property-media {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
  background: #000;
}

.property-media img,
.property-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.property-media .tag {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
}

.tag {
  display: inline-block;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 700;
  border-radius: 20px;
  text-transform: uppercase;
}

.tag.to-let { background: var(--whatsapp); color: var(--white); }
.tag.for-sale { background: var(--blue); color: var(--white); }

.info {
  padding: 18px;
  flex: 1;
}

.desc {
  color: #666;
  font-size: 14px;
  margin: 8px 0;
}

.price {
  font-size: 20px;
  font-weight: 700;
  color: var(--black);
  margin: 12px 0;
}

.price span {
  font-size: 14px;
  font-weight: 400;
  color: #666;
}

.location {
  font-size: 13px;
  color: #666;
}

.urgency {
  font-size: 13px;
  color: var(--red);
  font-weight: 600;
  margin-top: 6px;
}

.hidden-details {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, margin-top 0.4s ease, padding-top 0.4s ease;
  margin-top: 0;
}

.hidden-details.open {
  max-height: 300px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.hidden-details p {
  font-size: 14px;
  margin-bottom: 6px;
}

.property-actions {
  display: flex;
  gap: 10px;
  padding: 0 18px 18px;
}

.property-actions .btn {
  flex: 1;
  text-align: center;
  padding: 11px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
  border: 2px solid transparent;
}

.details-btn {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}

.details-btn:hover {
  background: var(--gold);
  color: var(--black);
  border-color: var(--gold);
}

.whatsapp-btn {
  background: var(--whatsapp);
  color: var(--white);
  border-color: var(--whatsapp);
}

.whatsapp-btn:hover {
  background: #1ebc5a;
  border-color: #1ebc5a;
}

.contact form {
  background: var(--white);
  padding: 30px;
  border-radius: 12px;
  max-width: 600px;
  margin: 0 auto;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

input, textarea {
  width: 100%;
  padding: 12px;
  margin: 10px 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 15px;
}

.contact button {
  background: var(--gold);
  color: var(--black);
  padding: 14px;
  border: none;
  font-weight: 700;
  font-size: 16px;
  border-radius: 8px;
  width: 100%;
  cursor: pointer;
  transition: opacity 0.2s;
}

.contact button:hover {
  opacity: 0.8;
}

footer {
  background: var(--black);
  color: var(--white);
  text-align: center;
  padding: 30px 20px;
  margin-top: 60px;
}

.contact-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  background: var(--white);
  box-shadow: 0 -2px 12px rgba(0,0,0,0.1);
  z-index: 1000;
}

.contact-btn {
  flex: 1;
  text-align: center;
  text-decoration: none;
  color: var(--white);
  font-weight: 600;
  padding: 14px 8px;
  font-size: 14px;
}

.whatsapp { background: var(--whatsapp); }
.call { background: var(--blue); }
.email { background: #EA4335; }

@media (max-width: 640px) {
  .property-grid {
    grid-template-columns: 1fr;
  }
  nav {
    gap: 16px;
    font-size: 14px;
  }
}
