/*!
Theme Name: Care Home Search
Theme URI: https://sierra.host/
Author: Sierra Host
Author URI: https://sierra.host/
Description: Child theme for Hello Elementor
Template: hello-elementor
Version: 1.0.0
License: GNU General Public License v3 or later
License URI: http://www.gnu.org/licenses/gpl-3.0.html
Text Domain: hello-elementor-child
*/

/* ACF True/False Field Styling */
.acf-true-false-checkbox {
    color: #4CAF50;
    font-weight: bold;
    font-size: 1.2em;
}

.acf-true-false-mdash {
    color: #999;
    font-size: 1.2em;
}

.reset-button {
    margin-left: 10px;
    background: #f5f5f5;
    color: #333;
    border: 1px solid #ccc;
    padding: 8px 18px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}
.reset-button:hover {
    background: #e0e0e0;
    color: #111;
}

button.chl-favorite-btn {
    background: none !important;
    color: var(--e-global-color-primary) !important;
    padding: 10px 34px !important;
    border-color: var(--e-global-color-primary) !important;
}

button.chl-favorite-btn:hover {
  box-shadow: inset #FF6725 0px 0px 0px 2px;
}

button.chl-favorite-btn.on {
    background: var(--e-global-color-primary) !important;
    color: #fff !important;
}

.chl-property-card-image-wrapper button.chl-favorite-btn {
    position: absolute;
}

/* Display favorites list as 3-column grid */
.chl-favorites-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 0px 0;
}

.chl-favorites-list .chl-property-card.refined-card {
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* Tablet: 768px to 1024px */
@media (max-width: 1024px) and (min-width: 768px) {
  .chl-favorites-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile: 767px and lower */
@media (max-width: 767px) {
  .chl-favorites-list {
    grid-template-columns: 1fr;
  }
}

/* Care Gravity Forms */
.caregf_wrapper input {
  font-size: 16px;
}

/* Property Amenities Table */
.property-amenities-table {
  width: 100%;
  border-collapse: collapse;
}

.property-amenities-table td {
  padding: 8px 14px;
  border-width: 0;
  font-size: 1rem;
}

@media (max-width: 767px) {
  button.chl-favorite-btn {
    padding: 10px 15px !important;
  }
  button.chl-favorite-btn span {
    font-size: 16px;
  }

  .favorites-container {
    text-align: right;
  }
}