/*
 Theme Name: Astra Child
 Theme URI: https://wpastra.com/
 Author: Your Name
 Author URI: https://example.com/
 Description: Child theme for Astra
 Template: astra
 Version: 1.0.0
*/
.land-map {
  margin-top: 1.5rem;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}
.land-map iframe {
  display: block;
  width: 100%;
  height: 400px;
}
/* ---- Land single layout styling ---- */
.land-hero {
  background-size: cover;
  background-position: center;
  padding: 90px 0 70px;
  position: relative;
  color: #fff;
}
.land-hero::before{
  content:'';
  position:absolute;
  inset:0;
  background: rgba(0,0,0,0.35); /* overlay */
}
.land-hero-inner{ position:relative; z-index:2; text-align:center; max-width:1200px; margin:auto; padding:0 1rem; }
.land-hero-title{ font-size:40px; font-weight:700; margin:0; color:#fff;}

/* container */
.land-single-container{ max-width:1200px; margin:40px auto; padding:0 1rem; }

/* top row */
.land-top-row{ display:flex; justify-content:space-between; gap:1rem; align-items:flex-start; margin: 20px 0; }
.land-top-left{ flex:1 1 60%; }
.land-top-right{ width:320px; text-align:right; align-self:center; }
.land-subheading{ font-size:20px; margin:0 0 8px; font-weight:700; }
.land-location{ margin:0; color:#666; display:flex; align-items:center; gap:8px; font-size:15px; }
.land-location .dashicons{ font-size:18px; color:var(--ast-global-color-0,#0274be); }

/* price */
.land-price{ margin:0; font-size:24px; font-weight:800; color:var(--ast-global-color-0,#0274be); }

/* gallery */
.land-gallery{ margin-top:10px; }
.land-main-image-wrap{ border-radius:8px; overflow:hidden; box-shadow:0 4px 18px rgba(0,0,0,0.06); }
.land-main-image-wrap img{ width:100%; height:auto; display:block; }

.land-thumbs{ display:flex; gap:12px; margin-top:12px; flex-wrap:wrap; }
.land-thumb-btn{ background:none; border:2px solid transparent; padding:0; cursor:pointer; border-radius:6px; overflow:hidden; }
.land-thumb-btn img{ display:block; width:100px; height:70px; object-fit:cover; display:block; }
.land-thumb-btn.active, .land-thumb-btn:hover{ border-color:var(--ast-global-color-0,#0274be); transform:translateY(-4px); transition:all .15s ease; }

/* description & map */
.land-description{ margin:28px 0; color:#444; line-height:1.65; }
.land-map-wrap{ margin:28px 0; border-radius:8px; overflow:hidden; }
.land-map-wrap iframe{ width:100%; height:420px; border:0; display:block; }

/* short description */
.land-short-desc{ margin:18px 0; font-weight:600; color:#333; }

/* related */
.land-related{ margin:48px 0; }
.land-related h2{ margin-bottom:6px; }
.land-related-intro{ color:#666; margin-bottom:18px; }

.land-related-grid{ display:flex; gap:20px; flex-wrap:wrap; }
.related-item{ background:#fff; border-radius:8px; box-shadow:0 6px 18px rgba(0,0,0,0.06); overflow:hidden; width:calc(33.333% - 13.33px); display:flex; flex-direction:column; }
.related-thumb img{ width:100%; height:160px; object-fit:cover; display:block; }
.related-body{ padding:12px; flex:1 1 auto; }
.related-title{ margin:0 0 8px; font-size:16px; }
.related-excerpt{ color:#666; font-size:14px; margin-bottom:12px; }
.related-cta{ display:inline-block; background:var(--ast-global-color-0,#ff7a00); color:#fff; padding:8px 12px; border-radius:6px; text-decoration:none; font-weight:600; }

/* responsive */
@media (max-width:980px){
  .land-top-row{ flex-direction:column; }
  .land-top-right{ width:auto; text-align:left; margin-top:10px; }
  .related-item{ width:100%; }
}
/*
 * LAND SINGLE PAGE STYLES
 * -------------------------------------------------
 */

/* Hero section */
.land-hero {
  width: 100%;
  background-size: cover;
  background-position: center;
  padding: 100px 0 60px;
  position: relative;
  display: block;
}
.land-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 1;
}
.land-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  text-align: center;
}
.land-hero-title {
  color: #fff;
  font-size: 40px;
  margin: 0;
  font-weight: 700;
}

/* Main content container */
.land-single-container {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 1rem;
  box-sizing: border-box;
  clear: both;
}

/* Top row */
.land-top-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: flex-start;
  justify-content: space-between;
  margin: 22px 0;
}
.land-top-left {
  flex: 1 1 60%;
  min-width: 220px;
  box-sizing: border-box;
}
.land-top-right {
  flex: 0 0 320px;
  text-align: right;
  box-sizing: border-box;
}

/* Headings & Location */
.land-subheading {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 700;
  color: #111;
}
.land-location {
  margin: 0;
  color: #666;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
}
.land-location .dashicons {
  font-size: 18px;
  color: var(--ast-global-color-0, #0274be);
}

/* Price */
.land-price {
  margin: 0;
  font-size: 24px;
  font-weight: 800;
  color: var(--ast-global-color-0, #0274be);
}

/* Gallery */
.land-gallery {
  margin-top: 10px;
}
.land-main-image-wrap {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
}
.land-main-image-wrap img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}
.land-thumbs {
  display: flex;
  gap: 12px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.land-thumb-btn {
  background: none;
  border: 2px solid transparent;
  padding: 0;
  cursor: pointer;
  border-radius: 6px;
  overflow: hidden;
}
.land-thumb-btn img {
  width: 100px;
  height: 70px;
  object-fit: cover;
  display: block;
}
.land-thumb-btn.active,
.land-thumb-btn:hover {
  border-color: var(--ast-global-color-0, #0274be);
  transform: translateY(-4px);
  transition: all 0.15s ease;
}

/* Description, map, short desc */
.land-description {
  margin: 28px 0;
  color: #444;
  line-height: 1.65;
}
.land-map-wrap {
  margin: 28px 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}
.land-map-wrap iframe {
  width: 100%;
  height: 420px;
  border: 0;
  display: block;
}
.land-short-desc {
  margin: 18px 0;
  font-weight: 600;
  color: #333;
}

/* Related section */
.land-related {
  margin: 48px 0;
}
.land-related-grid {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
/*.related-item {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  width: calc(33.333% - 13.33px);
  display: flex;
  flex-direction: column;
}*/
.related-thumb img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}
.related-body {
  padding: 12px;
  flex: 1 1 auto;
}
.related-cta {
  display: inline-block;
  background: var(--ast-global-color-0, #ff7a00);
  color: #fff;
  padding: 8px 12px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
}

/* Responsive */
@media (max-width: 980px) {
  .land-top-row {
    flex-direction: column;
  }
  .land-top-right {
    width: auto;
    text-align: left;
    margin-top: 12px;
  }
  .related-item {
    width: 100%;
  }
}
/*******FILTER POST******/
.posts-filter-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 15px;
  border-bottom: 1px solid #ddd;
 background-color: #000;
}

.filter-left, .filter-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.posts-list {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
/* === Responsive (Stack on Mobile) === */
@media (max-width: 768px) {
  .posts-filter-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-left,
  .filter-right {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .filter-right input,
  .filter-right select,
  .filter-left select {
    width: 100%;
  }

  .filter-label {
    font-weight: bold;
    margin-bottom: 5px;
  }
}
.post-text { flex: 1;}
.filter-label {color: #fff!important}

/*****== ==*****/
/* Default desktop layout */
/* Ensure images scale */
.post-thumb img {
  max-width: 280px;
  height: 190px;
  border-radius: 4px;
object-fit: cover;
  display: block;
}

/* ===== DESKTOP & TABLET (default layout: text left, image right) ===== */
.post-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.post-text {
  flex: 1 1 auto; /* allow text to grow naturally */
  order: 1;
}

.post-thumb {
  flex: 0 0 auto; /* image only takes its natural width */
  order: 2;
  max-width: 40%; /* prevent image from getting too large */
}


/* ===== MOBILE (stacked: image on top, text below) ===== */
@media (max-width: 768px) {
  .post-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
  }

  .post-thumb {
    order: 1 !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto;
    text-align: center;
  }

  .post-thumb img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    margin: 0 auto;
  }

  .post-text {
    order: 2 !important;
    width: 100% !important;
    padding: 0 1rem;
    text-align: center;
  }

  .post-title {
    font-size: 1.15rem;
  }
}

/* ===== PAGINATION ==========*/
.pagination {
  text-align: center;
  margin-top: 20px;
}

.page-link {
  display: inline-block;
  margin: 0 4px;
  padding: 8px 12px;
  background: #aaa;
  color: #000;
  text-decoration: none;
  border-radius: 4px;
}

.page-link.active {
  background: #000;
  color: #fff;
}

.page-link:hover {
  background: #555;
  color: #fff;
}

.post-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 2rem;
}

.post-pagination .page-link {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid #aaa;
  color: #000;
  text-decoration: none;
  font-weight: 500;
  border-radius: 4px;
  transition: all 0.25s ease;
}

.post-pagination .page-link:hover {
  background-color: #333;
  color: #fff;
}

.post-pagination .page-link.active {
  background-color: #000;
  color: #fff;
  border-color: #000;
}
/**********SINGLE POST*********/
body.single .post-featured-image,
body.single .entry-featured-image,
body.single .post-thumbnail {
  display: none !important;
}
.post-hero {
  position: relative;
  width: 100%;
  height: 60vh;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  margin-top: -50px;
}

.post-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
}

.single-post-layout {
  margin-top: 2rem;
}

.post-header {
  text-align: center;
  margin-bottom: 2rem;
}


/* subtle overlay for contrast (optional) */
.post-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.12), rgba(0,0,0,0.18));
  pointer-events: none;
}

/* ensure actual article container appears under the hero */
body.single .site-content {
  z-index: 2;
}

/* layout for the article content */
.post-single.container {
  max-width: 900px;
  margin: 2rem auto;
  padding: 0 1.25rem;
  box-sizing: border-box;
}

/* if header is fixed, add top offset */
.site-header.ast-header-sticky {
  z-index: 9999;
}


.post-meta {
  font-size: 0.95rem;
  color: #777;
}

.post-meta .post-category a {
  color: var(--accent-color, #c49b63);
  text-decoration: none;
}

/* === Post Content === */
.post-single.container {
  max-width: 850px;
  margin: 0 auto 3em;
  padding: 0 1.5em;
}

.single-post-layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0px;
  text-align: justify;
}

.post-featured-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 1.5rem;
}

.post-title {
  font-size: 30px;
  margin-bottom:10px;
}

.post-meta {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

.post-meta span {
  margin: 0 0.5rem;
}

.post-content {
  text-align: left;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.post-share {
  text-align: center;
  margin-bottom: 3rem;
}

.post-share span {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.share-icon {
  display: inline-block;
  margin: 0 0.5rem;
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  color: #fff;
  text-decoration: none;
}

.share-icon.fb { background-color: #3b5998; }
.share-icon.linkedin { background-color: #0077b5; }
.share-icon.ig { background-color: #e1306c; }

.related-posts {
  margin-top: 3rem;
  text-align: center;
  position: relative;
}

.related-swiper {
  padding: 1rem 0 2rem;
}

.related-item {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.related-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}


.related-title {
  font-size: 1rem;
  margin: 0.75rem;
}

.related-meta {
  font-size: 0.8rem;
  color: #777;
  margin: 0 0.75rem 1rem;
}

.swiper-button-next,
.swiper-button-prev {
  color: #333;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
  color: #0073aa;
}


@media (max-width: 768px) {
  .related-item {
    flex: 0 1 100%;
  }
}

.related-posts-carousel {
  margin-top: 2rem;
}

.related-posts-carousel .post-item {
  padding: 1rem;
  text-align: center;
}

.related-posts-carousel .post-thumb img {
  border-radius: 10px;
  max-width: 100%;
  height: auto;
}

.slick-dots li button:before {
  color: #000;
}
/******* LAND GALLERY CLEAN VERSION *******/
/* === Land Gallery Layout === */
.land-gallery-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  position: relative;
}

/* --- View toggle buttons --- */
.land-view-toggle {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  gap: 8px;
  z-index: 20;
}
.land-view-toggle .toggle-btn {
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  padding: 6px 8px;
  transition: background 0.2s ease;
}
.land-view-toggle .toggle-btn.active {
  background: #333;
  color: #fff;
}

/* --- Main gallery / map containers --- */
.land-gallery-view,
.land-map-view {
  position: relative;
  width: 100%;
  height: 600px;
  overflow: hidden;
  border-radius: 6px;
  background: #f6f6f6;
  transition: opacity 0.4s ease;
}


/* --- Main image styling --- */
.land-gallery-view .main-image {
  width: 100%;
  height: 100%;
  position: relative;
}
.land-gallery-view .main-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* --- Arrows --- */
.land-gallery-view .arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.4);
  color: white;
  border: none;
  font-size: 22px;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  z-index: 15;
}
.land-gallery-view .arrow:hover {
  background: rgba(0, 0, 0, 0.7);
}
.land-gallery-view .arrow.prev { left: 10px; }
.land-gallery-view .arrow.next { right: 10px; }

/* --- Thumbnails --- */
.land-gallery-thumbs-wrapper {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
  position: relative;
  z-index: 10;
}
.land-gallery-thumbs-wrapper .thumbnails img {
  width: 120px;
  height: 80px;
  object-fit: cover;
  border-radius: 6px;
  opacity: 0.7;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 2px solid transparent;
}
.land-gallery-thumbs-wrapper .thumbnails img.active,
.land-gallery-thumbs-wrapper .thumbnails img:hover {
  opacity: 1;
  transform: scale(1.05);
  border-color: #333;
}
/* Keep gallery and map views the same height */
.land-gallery-view,
.land-map-view {
  position: relative;
  width: 100%;
  max-width: 100%;
  min-height: 500px; /* adjust if needed */
  transition: opacity 0.4s ease;
}

/* Ensure map takes full area like the gallery image */
.land-map-view iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
}

/* Hide inactive view cleanly */
.land-gallery-view:not(.active),
.land-map-view:not(.active) {
  display: none;
}


/* --- Responsive --- */
@media (max-width:768px){
  .land-gallery-view,
  .land-map-view { height: 320px; }
  .land-gallery-thumbs-wrapper .thumbnails img { width: 60px; height: 45px; }
}
.land-view-toggle {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-bottom: 10px;
}

.land-view-toggle .toggle-btn {
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 6px;
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #333; /* base color for icons */
}

.land-view-toggle .toggle-btn svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
  transition: fill 0.25s ease;
}

.land-view-toggle .toggle-btn:hover {
  background: #333;
  border-color: #333;
  color: #fff; /* ensures both SVGs turn white */
}

.land-view-toggle .toggle-btn.active {
  background: #333;
  border-color: #333;
  color: #fff;
}
/* Ensure header branding shows above full-bleed hero overlays */
.site-header .site-branding,
.site-branding .site-logo-img,
.site-branding .injected-site-logo {
  position: relative;
  z-index: 10005; /* higher than hero overlay; adjust if needed */
}

/* Optional: size tweak for injected logo */
.site-branding .injected-site-logo {
  max-height: 56px; /* adjust to your header height */
  width: auto;
  display: inline-block;
}
