/*
Theme Name: Havenrow
Theme URI: https://digitallifestream.com
Author: Sathish Kumar V
Author URI: https://digitallifestream.com
Description: A modern and responsive WordPress theme for real estate.
Version: 1.0
License: GCommericial License v2 or later
Text Domain: havenrow
*/

html, body {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  font-family: var(--hr-font) !important;
}
* {
  box-sizing: border-box;
}
body > *:first-child {
  margin-top: 0 !important;
  padding-top: 0 !important;
}
.site-header {
  margin-top: 0 !important;
  padding-top: 0 !important;
  margin-bottom: 0 !important;
}
.havenrow-property-single {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 16px 32px 16px;
}
.property-detail h1 {
  font-size: 2.1rem;
  margin-bottom: 18px;
  color: var(--hr-primary);
}
.property-gallery {
  margin-bottom: 24px;
}
.property-main-image {
  width: 100%;
  max-width: 600px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
}
.property-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 24px;
  margin-bottom: 28px;
  font-size: 1.05rem;
  color: var(--hr-primary);
}
.property-meta strong {
  color: var(--hr-primary);
}
.property-agent-box {
  margin: 2em 0;
  padding: 1em;
  border: 1px solid #eee;
  border-radius: 8px;
  max-width: 400px;
  background: #fafafa;
}
.agent-thumb {
  float: left;
  margin-right: 1em;
  border-radius: 50%;
  width: 80px;
  height: 80px;
  object-fit: cover;
}
.property-content {
  margin-top: 32px;
  margin-bottom: 32px;
  line-height: 1.7;
  color: #333;
}
.property-map {
  margin-top: 32px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
}
/* Property Gallery Carousel */
.property-gallery-carousel {
  margin-bottom: 32px;
  position: relative;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}
.carousel-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
}
.carousel-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(.4,0,.2,1);
  will-change: transform;
}
.carousel-slide {
  min-width: 100%;
  box-sizing: border-box;
}
.carousel-slide img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  display: block;
  border-radius: 10px;
}
.carousel-prev, .carousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.85);
  border: none;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  font-size: 1.6rem;
  color: #222;
  cursor: pointer;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: background 0.2s;
}
.carousel-prev:hover, .carousel-next:hover {
  background: #ffd600;
  color: #222;
}
.carousel-prev { left: 12px; }
.carousel-next { right: 12px; }
.button, .btn, .cta, .cta-btn, .cta-button {
  background: #1a237e;
}
.button:hover, .btn:hover, .cta:hover, .cta-btn:hover, .cta-button:hover {
  background: #3949ab;
}
@media (max-width: 900px) {
  .property-meta {
    grid-template-columns: 1fr;
    gap: 6px 0;
  }
  .property-agent-box {
    max-width: 100%;
  }
  .property-main-image {
    max-width: 100%;
  }
  .carousel-slide img {
    height: 200px;
  }
}
@media (max-width: 600px) {
  .property-detail h1 {
    font-size: 1.3rem;
  }
  .property-meta {
    font-size: 0.98rem;
  }
  .property-agent-box {
    padding: 0.5em;
    font-size: 0.98rem;
  }
  .property-main-image {
    height: 120px;
  }
  .carousel-slide img {
    height: 120px;
  }
}
/* Add this to your main CSS (e.g., style.css or :root selector) */
:root {
  --hr-text: #111;
}

/* Example for About Us and card content (add to about.css, property-details.css, etc.) */
.about-content, .property-card, .suburb-insights-left, .suburb-insights-right, .hr-prop-main, .hr-prop-desc, .hr-prop-title, .hr-prop-address, .hr-prop-price, .hr-prop-key, .hr-prop-key-item, .hr-prop-agent-info, .hr-prop-downloads, .hr-prop-insights-desc, .hr-prop-ads-text {
  color: var(--hr-text, #111) !important;
}

/* For property cards in suburb-insights.php, you can also update the inline style: */
/*
<div class="property-card" style="... color: var(--hr-text, #111); ...">
*/
