/*
Theme Name:  PropertySale.lk
Theme URI:   http://propertysale.lk
Description: Custom theme for PropertySale.lk - Sri Lanka's Trusted Property Hub. Built with Bootstrap 5 + Vite.
Version:     1.1.0
Author:      PropertySale.lk Dev Team
Author URI:  http://propertysale.lk
Text Domain: propertysale
Tags:        real-estate, property, bootstrap, responsive
*/

/* ═══════════════════════════════════════════════════════════
   WORDPRESS EDITOR & GUTENBERG BLOCKS STYLING
════════════════════════════════════════════════════════════ */

/* Wide & Full Alignments */
.alignwide {
  margin-left: -4rem;
  margin-right: -4rem;
  max-width: unset;
}
.alignfull {
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  max-width: 100vw;
  width: 100vw;
}
@media (max-width: 768px) {
  .alignwide { margin-left: 0; margin-right: 0; }
}

/* Block Images */
.wp-block-image img {
  height: auto;
  max-width: 100%;
  border-radius: 8px;
}
.wp-block-image.aligncenter { text-align: center; }
.wp-block-image figcaption {
  font-size: 0.85rem;
  color: #6B7280;
  text-align: center;
  margin-top: 0.5rem;
}

/* Block Columns */
.wp-block-columns {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}
.wp-block-column {
  flex: 1;
  min-width: 260px;
}

/* Block Buttons */
.wp-block-button__link {
  background-color: #2E8B57 !important;
  color: #ffffff !important;
  border-radius: 8px;
  padding: 0.65rem 1.4rem;
  font-weight: 700;
  text-decoration: none;
  display: inline-block;
  transition: background-color 0.2s;
}
.wp-block-button__link:hover {
  background-color: #1A5C38 !important;
  color: #ffffff !important;
}
.is-style-outline .wp-block-button__link {
  background-color: transparent !important;
  border: 2px solid #2E8B57 !important;
  color: #2E8B57 !important;
}
.is-style-outline .wp-block-button__link:hover {
  background-color: #2E8B57 !important;
  color: #ffffff !important;
}

/* Block Quotes */
.wp-block-quote {
  border-left: 4px solid #2E8B57;
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  background: #F9FAFB;
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: #374151;
}
.wp-block-quote cite {
  display: block;
  font-style: normal;
  font-weight: 600;
  font-size: 0.85rem;
  color: #2E8B57;
  margin-top: 0.5rem;
}

/* Block Tables */
.wp-block-table table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}
.wp-block-table th, .wp-block-table td {
  border: 1px solid #E5E7EB;
  padding: 0.75rem 1rem;
}
.wp-block-table th {
  background-color: #E8F5EE;
  color: #1A5C38;
  font-weight: 700;
}

/* Base normalization to prevent unwanted gaps */
html, body {
  margin: 0;
  padding: 0;
}

/* Site Header Sticky Bar */
.site-header {
  background-color: #2E8B57;
  z-index: 1020;
}

/* WordPress Admin Bar Margin Compensation */
body.admin-bar .site-header.sticky-top {
  top: 32px !important;
}
body.admin-bar .ps-navbar {
  top: 0 !important;
}
@media screen and (max-width: 782px) {
  body.admin-bar .site-header.sticky-top {
    top: 46px !important;
  }
}
/* WordPress Admin Bar: Disabled on Frontend */
#wpadminbar {
  display: none !important;
}
html, body {
  margin-top: 0 !important;
}

/* ── Property Card Clickability ── */
.property-card,
.property-card-search,
.property-card-list,
.similar-card {
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.property-card .card-title a,
.property-card-search .pcs-title a,
.property-card-list .pcl-title a,
.similar-card h6 a {
  color: inherit !important;
  text-decoration: none !important;
  transition: color 0.2s ease;
}
.property-card:hover .card-title a,
.property-card-search:hover .pcs-title a,
.property-card-list:hover .pcl-title a,
.similar-card:hover h6 a {
  color: #2E8B57 !important;
}
.property-card-list .btn-pcl-phone,
.property-card-list .btn-pcl-whatsapp {
  position: relative;
  z-index: 5;
}


