/* ========================================
   Property Hive Custom Grid Styles
   Based on Eden Grid Design (edengrid.png)
   ======================================== */

/* Import fonts */
@import url("https://fonts.googleapis.com/css2?family=Raleway:wght@100;200;300;375;400;500;600;700;800;900&display=swap");

/* Chronicle Display font from local assets */
@font-face {
  font-family: "Chronicle Display";
  src:
    url("../assets/fonts/ChronicleDisplay-Regular.ttf") format("truetype"),
    url("../assets/fonts/chronicle-display.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

/* Default font family for all property grid elements */
.property_listing,
.property_listing * {
  font-family: "Raleway", sans-serif;
  color: var(--ae-color-brand);
}

/* Search Results Page Background */
.propertyhive {
  background-color: var(--ae-color-bg);
}

/* Property Grid Container */
.property-search-results-container {
  background-color: var(--ae-color-bg);
  padding: 40px 20px;
}

/* Container & Grid Layout */
.listing_wrapper {
  margin-bottom: 30px;
  padding: 0 15px;
}

.property_listing {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: row;
  height: 100%;
  align-items: stretch;
  gap: 0;
}

.property_listing:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

/* Image Wrapper Section (Left Side) */
.listing-unit-img-wrapper {
  position: relative;
  overflow: hidden;
  flex: 0 0 50%;
  min-height: 300px;
  border-radius: 12px 0 0 12px;
}

.listing-unit-img-wrapper a {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  display: block;
}

.listing-unit-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.3s ease;
  display: block;
}

.property_listing:hover .listing-unit-img-wrapper img {
  transform: scale(1.05);
}

.prop_new_details {
  position: relative;
  width: 100%;
  height: 100%;
}

.prop_new_details_back {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0);
  transition: background 0.3s ease;
  z-index: 1;
}

.property_listing:hover .prop_new_details_back {
  background: rgba(0, 0, 0, 0.05);
}

.featured_gradient {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(0, 0, 0, 0.15) 100%
  );
  z-index: 0;
}

/* Availability Badge - In Right Column */
.listing_unit_availability_wrapper {
  background: transparent;
  color: var(--ae-color-brand);
  padding: 0;
  border-radius: 0;
  font-size: 15px;
  font-weight: 600;
  text-transform: capitalize;
  text-align: center;
  flex: 0 0 auto;
}

/* Placeholder when no availability */
.listing_unit_availability_placeholder {
  flex: 0 0 auto;
}

/* Price Badge (Bottom Left) */
.listing_unit_price_wrapper {
  position: absolute;
  bottom: 15px;
  left: 15px;
  background: #fff;
  color: var(--ae-color-brand);
  padding: 7px 20px;
  border-radius: 0;
  font-size: 18px;
  font-weight: 375;
  z-index: 2;
  font-family: "Chronicle Display", serif;
  font-style: normal;
  line-height: normal;
}

.price_label {
  font-size: 13px;
  font-weight: 600;
  margin-left: 4px;
  color: var(--ae-color-brand);
  display: inline-block;
}

/* Property Information Section (Right Side) */
.property-unit-information-wrapper {
  padding: 40px 80px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: #fff;
}

.property-unit-information-wrapper h4 {
  margin: 0 0 12px 0;
}

.property-unit-information-wrapper h4 a {
  color: var(--ae-color-brand);
  text-decoration: none;
  font-size: 30px;
  font-weight: 375;
  line-height: normal;
  font-family: "Chronicle Display", serif;
  font-style: normal;
  display: inline-block;
}

/* Hide price badge in property information (only show on image) */
.property-unit-information-wrapper > .listing_unit_price_wrapper {
  display: none;
}

/* Address Section */
.property_card_categories_wrapper {
  font-size: 15px;
  color: var(--ae-color-text);
  margin-bottom: 0;
  line-height: 1.5;
  font-weight: 500;
}

.property_card_categories_wrapper a {
  color: var(--ae-color-brand);
  text-decoration: none;
}

/* Bedrooms & Bathrooms */
.property_listing_details_v2 {
  display: flex;
  gap: 20px;
  margin-bottom: 15px;
  padding: 0;
  align-items: center;
}

.property_listing_details_v2_item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ae-color-body);
}

.property_listing_details_v2_item .icon_label {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.property_listing_details_v2_item .icon_label img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Description Text */
.listing_details {
  font-size: 15px;
  color: var(--ae-color-text);
  line-height: 1.6;
  margin-bottom: 0;
  word-break: break-word;
}

.listing_details a {
  color: var(--ae-color-brand);
  text-decoration: none;
  font-weight: 600;
}

.the_grid_view {
  display: block !important;
}

.the_list_view {
  display: none !important;
}

/* Divider Line */
.property-info-divider {
  height: 1px;
  background-color: #ddd;
  margin: 0;
  width: 100%;
}

/* Footer Wrapper - Availability and Button Row */
.property-footer-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: space-between;
}

.property-footer-wrapper .listing_unit_availability_wrapper {
  flex: 0 0 auto;
  min-width: auto;
  order: 1;
}

.property-footer-wrapper .prop-but {
  flex: 0 0 auto;
  margin-bottom: 0;
  padding: 12px 28px;
  order: 2;
}

/* View Property Button */
.prop-but {
  background: var(--ae-color-secondary);
  color: #fff;
  border: 2px solid var(--ae-color-secondary);
  padding: 12px 28px;
  border-radius: 28px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  letter-spacing: 0.5px;
}

.property_listing .prop-but:hover {
  background: var(--ae-color-brand);
  color: #fff;
  border-color: var(--ae-color-brand);
}

.prop-but a {
  color: inherit;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.prop-but i {
  font-size: 14px;
}

/* Property Status Tags */
.property_card_categories_wrapper:last-child {
  margin-top: auto;
  margin-bottom: 0;
}

.property_card_categories_wrapper a[rel="tag"] {
  display: inline-block;
  background: #f0f0f0;
  color: var(--ae-color-body);
  padding: 5px 10px;
  border-radius: 4px;
  margin-right: 8px;
  margin-bottom: 5px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .listing-unit-img-wrapper {
    flex: 0 0 50%;
  }
}

@media (max-width: 1024px) {
  .listing-unit-img-wrapper {
    flex: 0 0 50%;
    min-height: 280px;
  }

  .property-unit-information-wrapper {
    padding: 30px 60px;
  }

  .property-unit-information-wrapper h4 {
    font-size: 16px;
    margin-bottom: 10px;
  }
}

@media (max-width: 768px) {
  .listing_wrapper {
    padding: 0 10px;
    margin-bottom: 20px;
  }

  /* Stack image on top, content below on tablets */
  .property_listing {
    flex-direction: column;
  }

  .listing-unit-img-wrapper {
    flex: 0 0 auto;
    min-height: 240px;
    border-radius: 12px 12px 0 0;
  }

  .property-unit-information-wrapper {
    padding: 24px 32px;
    flex: 1;
  }

  .property-unit-information-wrapper h4 {
    font-size: 15px;
    margin-bottom: 8px;
  }

  .property_listing_details_v2 {
    gap: 18px;
    margin-bottom: 12px;
  }

  .prop-but {
    padding: 11px 18px;
    font-size: 12px;
    margin-bottom: 10px;
  }

  .listing_details {
    font-size: 12px;
    margin-bottom: 12px;
  }

  .property_card_categories_wrapper {
    font-size: 12px;
    margin-bottom: 10px;
  }
}

@media (max-width: 576px) {
  .listing_wrapper {
    padding: 0;
    margin-bottom: 15px;
  }

  .property_listing {
    border-radius: 8px;
    flex-direction: column;
  }

  .listing-unit-img-wrapper {
    flex: 0 0 auto;
    min-height: 200px;
    border-radius: 8px 8px 0 0;
  }

  .property-unit-information-wrapper {
    padding: 18px 20px;
    border-radius: 0 0 8px 8px;
  }

  .listing_unit_price_wrapper {
    bottom: 10px;
    left: 10px;
    padding: 8px 12px;
    font-size: 14px;
  }

  .property-unit-information-wrapper h4 {
    font-size: 14px;
    margin-bottom: 8px;
  }

  .property_listing_details_v2 {
    gap: 15px;
  }

  .property-footer-wrapper {
    flex-direction: column;
    gap: 12px;
    justify-content: flex-start;
  }

  .property-footer-wrapper .listing_unit_availability_wrapper {
    width: 100%;
    min-width: auto;
  }

  .property-footer-wrapper .prop-but {
    width: 100%;
    padding: 11px 24px;
  }

  .prop-but {
    font-size: 12px;
  }

  .listing_details {
    font-size: 12px;
    margin-bottom: 10px;
  }

  .property-info-divider {
    margin: 12px 0;
  }
}

/* Featured Property Styling */
.listing_wrapper.featured .property_listing {
  border: 2px solid var(--ae-color-brand);
}

.listing_wrapper.featured::before {
  content: "Featured";
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--ae-color-brand);
  color: #fff;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  z-index: 5;
}

/* Animation Utilities */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.listing_wrapper {
  animation: fadeInUp 0.5s ease-out;
}

/* Remove room name styling from description */
.listing_details .room .name {
  display: none;
}

.listing_details .room br {
  display: none;
}

.listing_details .room:not(:last-child)::after {
  content: "";
}

/* ========================================
   Search Form Styling
   ======================================== */

/* Results Controls Wrapper */
.results-controls-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 30px;
  gap: 20px;
  flex-wrap: wrap;
  padding: 0 15px;
}

.property-search-form {
  background: transparent;
  padding: 0;
  border-radius: 0;
  margin-bottom: 0;
  box-shadow: none;
}

.search-form-wrapper {
  display: flex;
  align-items: flex-end;
  gap: 20px;
  flex-wrap: nowrap;
}
.property-search-form .control{
	padding: 0 !important;
}
.search-form-field {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-width: 0;
}

/* Property Type filter - fixed width */
.control.control-property_type.residential-only {
  width: 200px;
}

/* Hide the entire search-form-field when its child is hidden */
.search-form-field > [style*="display: none"],
.search-form-field > [style*="display:none"] {
  display: none !important;
}

.search-form-field:has(> [style*="display: none"]),
.search-form-field:has(> [style*="display:none"]) {
  display: none !important;
}

/* Hide search-form-field when it contains only a hidden input */
.search-form-field:has(> input[type="hidden"]) {
  display: none !important;
}

/* Style existing Property Hive labels */
.search-form-field label {
  font-size: 15px;
  font-weight: 600;
  color: var(--ae-color-brand);
  margin-bottom: 8px;
  text-transform: capitalize;
  display: block;
}

/* Form field inputs and selects */
.search-form-field select,
.search-form-field input[type="text"],
.search-form-field input[type="number"] {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 15px;
  background-color: #fff;
  color: var(--ae-color-body);
  font-family: inherit;
  transition: border-color 0.3s ease;
}

/* Move select chevron icon 5px to the left */
.search-form-field select {
  padding-right: 9px;
  background-position: right 5px center;
}

.search-form-field select:focus,
.search-form-field input[type="text"]:focus,
.search-form-field input[type="number"]:focus {
  outline: none;
  border-color: var(--ae-color-brand);
}

/* Price range wrapper - for two inputs side by side */
.search-form-field.price-range {
  flex: 1.5;
  min-width: 220px;
}

.price-range-inputs {
  display: flex;
  align-items: center;
  gap: 10px;
}

.price-range-inputs input {
  flex: 1;
}

.price-range-separator {
  color: var(--ae-color-body);
  font-weight: 600;
  padding: 0 5px;
  flex-shrink: 0;
}

/* Search button */
.search-form-submit-wrapper {
  flex: 0 0 auto;
}

.search-button {
  background: var(--ae-color-accent);
  color: #fff;
  border: none;
  padding: 12px 32px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background 0.3s ease;
  white-space: nowrap;
  line-height: 1.6em;
}

.search-button:hover {
  background: var(--ae-color-accent-dark);
}

.search-button i {
  display: none;
}

.search-button::before {
  content: "";
  display: inline-block;
  width: 16px;
  height: 16px;
  background-image: url("../images/search_icon.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

/* Ordering/Catalog dropdown styling */
.propertyhive_catalog_ordering select,
select.orderby {
  width: auto;
  padding: 12px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 15px;
  background-color: #fff;
  color: var(--ae-color-body);
  font-family: inherit;
  transition: border-color 0.3s ease;
  cursor: pointer;
  background-position: right 5px center;
}

.propertyhive_catalog_ordering select:focus {
  outline: none;
  border-color: var(--ae-color-brand);
}

/* Responsive search form */
@media (max-width: 1024px) {
  .property-search-form {
    padding: 24px 20px;
    margin-bottom: 30px;
  }

  .search-form-wrapper {
    gap: 12px;
    flex-wrap: wrap;
  }

  .search-form-field {
    flex: 0 0 calc(33.333% - 8px);
    min-width: auto;
  }

  .search-form-submit-wrapper {
    flex: 0 0 auto;
    align-self: flex-end;
  }

  .search-button {
    width: auto;
    justify-content: center;
  }

  .price-range-inputs {
    display: flex;
  }

  .price-range-inputs input {
    flex: 1;
  }
}

@media (max-width: 576px) {
  .property-search-form {
    padding: 18px 16px;
    margin-bottom: 20px;
  }

  .search-form-wrapper {
    gap: 10px;
    flex-direction: column;
  }

  .search-form-field {
    width: 100%;
    min-width: auto;
    flex: 1 1 auto;
  }

  .search-form-submit-wrapper {
    width: 100%;
  }

  .search-field-label {
    font-size: 12px;
    margin-bottom: 6px;
  }

  .search-form-field select,
  .search-form-field input[type="text"],
  .search-form-field input[type="number"] {
    padding: 10px 12px;
    font-size: 12px;
    width: 100%;
  }

  .search-button {
    padding: 11px 24px;
    font-size: 12px;
    width: 100%;
    justify-content: center;
  }
}

/* ========================================
   Custom Pagination Styling
   ======================================== */

.propertyhive-pagination-custom {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 15px;
  padding: 30px 20px;
  text-align: center;
}

.pagination-dots-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

/* Pagination page numbers */
.pagination-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
  width: 32px;
  height: 32px;
  border: 1px solid #ddd;
  border-radius: 50px;
  background-color: #fff;
  color: var(--ae-color-body);
  font-size: 15px;
  font-weight: 600;
}

.pagination-dot:hover {
  background-color: #f5f5f5;
  border-color: #999;
}

/* Active pagination page */
.pagination-dot.active {
  cursor: default;
  pointer-events: none;
  background-color: var(--ae-color-accent-dark);
  color: #fff;
  border-color: var(--ae-color-accent-dark);
}

/* Pagination arrows */
.pagination-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: #fff;
  color: var(--ae-color-body);
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  border: 1px solid #ddd;
  transition: all 0.3s ease;
  cursor: pointer;
}

.pagination-arrow span {
  display: flex;
  align-items: center;
  justify-content: center;
}

.pagination-arrow.disabled {
  opacity: 0.3;
  cursor: not-allowed;
  background-color: #fafafa;
  border-color: #eee;
}

/* Pagination info text */
.pagination-info {
  text-align: center;
}

.pagination-text {
  margin: 0;
  font-size: 15px;
  color: var(--ae-color-text);
  font-weight: 500;
}

/* Responsive pagination */
@media (max-width: 576px) {
  .pagination-dots-wrapper {
    gap: 8px;
  }

  .pagination-dot .dot-inner {
    width: 7px;
    height: 7px;
  }

  .pagination-dot.active .dot-inner {
    width: 9px;
    height: 9px;
  }

  .pagination-arrow {
    width: 24px;
    height: 24px;
    font-size: 16px;
  }

  .propertyhive-pagination-custom {
    padding: 20px 15px;
    gap: 12px;
  }
}

/* ========================================
   Single Property Image Slider
   ======================================== */

.property-image-slider {
  width: 100%;
  background-color: #000;
}

.property-image-slider .slider-wrapper {
  position: relative;
  width: 100%;
}

.property-image-slider .slider-container {
  position: relative;
  width: 100%;
  max-height: 800px;
  overflow: hidden;
}

.property-image-slider .slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.property-image-slider .slide.active {
  opacity: 1;
  position: relative;
}

.property-image-slider .slide img {
  width: 100%;
  height: 100%;
  max-height: 800px;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Slider Navigation Arrows */
.property-image-slider .slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  padding: 20px;
  background-color: rgba(255, 255, 255, 0.8);
  border: none;
  border-radius: 4px;
  font-size: 32px;
  color: var(--ae-color-body);
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.property-image-slider .slider-arrow:hover {
  background-color: rgba(255, 255, 255, 1);
  transform: translateY(-50%) scale(1.1);
}

@media (max-width: 768px) {
  .property-image-slider .slider-container {
    max-height: 350px;
  }

  .property-image-slider .slide img {
    max-height: 350px;
  }

  .property-image-slider .slider-arrow {
    width: 36px;
    height: 36px;
    padding: 12px;
    font-size: 22px;
  }

  .property-image-slider .slider-prev {
    left: 10px;
  }

  .property-image-slider .slider-next {
    right: 10px;
  }
}

@media (max-width: 576px) {
  .property-image-slider .slider-container {
    max-height: 260px;
  }

  .property-image-slider .slide img {
    max-height: 260px;
  }
}

.property-image-slider .slider-arrow span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  line-height: 1;
}

.property-image-slider .slider-prev {
  left: 20px;
}

.property-image-slider .slider-next {
  right: 20px;
}

/* ========================================
   Mobile Search Filters Toggle
   ======================================== */

/* Hide toggle button on desktop */
.search-filters-toggle {
  display: none;
}

/* Show toggle button on mobile */
@media (max-width: 576px) {
  .search-filters-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 12px 16px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    color: var(--ae-color-brand);
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 15px;
  }

  .search-filters-toggle:hover {
    background-color: #f5f5f5;
    border-color: #999;
  }

  .search-filters-toggle .toggle-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    font-size: 18px;
    font-weight: 700;
    transition: transform 0.3s ease;
  }

  .search-filters-toggle .toggle-text {
    flex: 1;
    text-align: left;
  }

  /* Hide search form by default on mobile */
  .search-form-wrapper-container {
    display: none;
    animation: slideDown 0.3s ease forwards;
  }

  /* Show search form when active */
  .search-form-wrapper-container.active {
    display: block;
  }

  /* Change icon to minus when active */
  .search-filters-toggle.active .toggle-icon {
    transform: rotate(45deg);
  }

  /* Slide down animation */
  @keyframes slideDown {
    from {
      opacity: 0;
      max-height: 0;
      overflow: hidden;
    }

    to {
      opacity: 1;
      max-height: 1000px;
      overflow: visible;
    }
  }

  /* Slide up animation (reverse) */
  @keyframes slideUp {
    from {
      opacity: 1;
      max-height: 1000px;
      overflow: visible;
    }

    to {
      opacity: 0;
      max-height: 0;
      overflow: hidden;
    }
  }

  .search-form-wrapper-container.closing {
    animation: slideUp 0.3s ease forwards;
  }
}

/* ========================================
   Property Overview Section
   ======================================== */

.property-overview {
  background-color: var(--ae-color-brand);
  border-top: 7px solid var(--ae-color-accent);
  padding: 60px 20px;
}

.overview-container {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

/* Availability Badge */
.overview-availability {
  display: flex;
  gap: 10px;
}

.availability-badge {
  background-color: var(--ae-color-accent);
  color: #fff;
  font-family: "Raleway", sans-serif;
  font-size: 15px;
  font-weight: 600;
  padding: 5px 25px;
  border-radius: 5px;
  display: inline-block;
}

/* Overview Rows */
.overview-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.overview-left {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.overview-right {
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: flex-end;
  text-align: right;
}

/* Title and Address */
.property-title {
  font-family: "Chronicle Display", serif !important;
  font-size: 36px !important;
  font-weight: 400 !important;
  color: #fff !important;
  margin: 0 !important;
  padding: 0 !important;
}

.property-address {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
}

.map-marker-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.address-text {
  font-family: "Raleway", sans-serif;
  font-size: 15px;
  color: #fff;
}

/* Asking Price */
.asking-price-label {
  font-family: "Raleway", sans-serif;
  font-size: 22px;
  font-weight: 600;
  color: #fff;
  margin: 0;
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.property-price {
  font-family: "Chronicle Display", serif;
  font-size: 40px;
  font-weight: 400;
  color: #fff;
}

.price-qualifier {
  font-family: "Raleway", sans-serif;
  font-size: 15px;
  color: #fff;
}

/* Divider Line */
.overview-divider {
  height: 7px;
  background-color: #fff;
  width: 100%;
}

/* Specs Row Layout */
.overview-specs .overview-left {
  flex-direction: row;
  gap: 40px;
}

/* Specs Items */
.specs-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
}

.spec-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.spec-text {
  font-family: "Raleway", sans-serif;
  font-size: 15px;
  color: #fff;
}

/* View EPC Button */
.overview-right .view-epc-button {
  background-color: var(--ae-color-secondary);
  color: #ffffff;
  font-family: "Raleway", sans-serif;
  font-size: 15px;
  font-weight: 600;
  padding: 15px 25px;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid var(--ae-color-secondary);
  height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.view-epc-button:hover {
  background-color: #ffffff;
  color: var(--ae-color-brand);
  border-color: #ffffff;
}

/* EPC Modal */
#epc-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  align-items: center;
  justify-content: center;
}

.epc-modal-content {
  background-color: #fff;
  margin: 5% auto;
  padding: 0;
  border-radius: 8px;
  width: 90%;
  max-width: 800px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.epc-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid #ddd;
}

.epc-modal-header h2 {
  margin: 0;
  font-size: 20px;
  color: var(--ae-color-body);
}

.epc-modal-close {
  font-size: 28px;
  font-weight: bold;
  color: #aaa;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  transition: color 0.3s ease;
}

.epc-modal-close:hover {
  color: #000;
}

.epc-modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}

#epc-images-container {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

#epc-images-container img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

@media (max-width: 768px) {
  .property-overview {
    padding: 40px 20px;
  }

  .overview-row {
    flex-direction: column;
    gap: 20px;
  }

  .property-title {
    font-size: 28px !important;
  }

  .asking-price-label {
    font-size: 18px;
  }

  .property-price {
    font-size: 30px;
  }

  .price-row {
    gap: 5px;
  }

  .overview-right {
    flex-direction: row;
    align-items: baseline;
    gap: 12px;
    width: 100%;
    text-align: left;
  }

  .overview-title-address {
    gap: 30px;
  }

  .overview-availability .availability-badge {
    padding: 8px 16px;
    font-size: 13px;
  }

  .view-epc-button {
    margin-top: 15px;
    padding: 10px 30px;
    height: auto;
  }

  /* Center EPC modal on mobile */
  .epc-modal-content {
    margin: 0;
  }
}

/* ========================================
   Property Details Section (Tabs)
   ======================================== */

.property-details-section {
  background-color: rgba(var(--ae-color-accent-rgb), 0.1);
  padding: 100px 20px;
}

.property-details-container {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

/* Left Column - 65% */
.property-details-left {
  flex: 0 0 65%;
  max-width: 65%;
}

/* Right Column - 35% */
.property-details-right {
  flex: 0 0 35%;
  max-width: 35%;
  display: flex;
  flex-direction: column;
}

/* Tabs Navigation */
.property-tabs-nav {
  display: flex;
  gap: 10px;
  margin-bottom: 30px;
  border-bottom: none;
  padding-bottom: 0;
}

.property-tabs-nav .tab-button {
  background-color: #ffffff;
  border: 2px solid #ffffff;

  font-family: "Raleway", sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--ae-color-brand);
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  box-shadow: none;
}

.property-tabs-nav .tab-button:hover {
  color: #ffffff;
  background-color: var(--ae-color-secondary);
  border-color: var(--ae-color-secondary);
}

.property-tabs-nav .tab-button.active {
  background-color: var(--ae-color-brand);
  border-color: var(--ae-color-brand);
  color: #ffffff;
  box-shadow: none;
}

/* Tabs Content */
.property-tabs-content {
  background: #fff;
  border-radius: 8px;
  padding: 30px;
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

/* Description Tab Content */
.property-description-content {
  max-height: 400px;
  overflow-y: auto;
  padding-right: 15px;
}

/* Custom Scrollbar for Description */
.property-description-content::-webkit-scrollbar {
  width: 8px;
}

.property-description-content::-webkit-scrollbar-track {
  background: transparent;
}

.property-description-content::-webkit-scrollbar-thumb {
  background-color: var(--ae-color-secondary);
  border-radius: 4px;
}

/* Firefox scrollbar */
.property-description-content {
  scrollbar-width: thin;
  scrollbar-color: var(--ae-color-secondary) transparent;
}

/* Gallery Tab Content */
.property-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  aspect-ratio: 4/3;
}

.gallery-item a {
  display: block;
  width: 100%;
  height: 100%;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

/* Floorplan Tab Content */
.property-floorplan-content {
  width: 100%;
}

.floorplan-item {
  width: 100%;
}

.floorplan-item a {
  display: block;
  width: 100%;
}

.floorplan-item img {
  width: 100%;
  height: auto;
  display: block;
}

/* Map Tab Content */
.property-map-content {
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
}

.property-map-content #property_map_canvas {
  border-radius: 8px;
}

/* ========================================
   Property Enquiry Form (Right Column)
   ======================================== */

.property-enquiry-form-wrapper {
  background: #ffffff;
  border-radius: 8px;
  padding: 30px;
  position: sticky;
  top: 20px;
}

.enquiry-form-title {
  font-family: "Chronicle Display", serif !important;
  font-size: 25px !important;
  font-weight: 600 !important;
  color: var(--ae-color-brand) !important;
  margin: 0 0 25px 0 !important;
}

/* Enquiry Form Fields */
.property-enquiry-form-wrapper .propertyhive-enquiry-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.property-enquiry-form-wrapper .form-group,
.property-enquiry-form-wrapper .control {
  margin-bottom: 15px;
}

.property-enquiry-form-wrapper .form-group:last-child,
.property-enquiry-form-wrapper .control:last-child {
  margin-bottom: 0;
}

/* Hide labels - using placeholders instead */
.property-enquiry-form-wrapper label,
.property-enquiry-form-wrapper .propertyhive-enquiry-form label,
.property-enquiry-form-wrapper .control label,
.property-enquiry-form-wrapper .form-group label {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

.property-enquiry-form-wrapper input[type="text"],
.property-enquiry-form-wrapper input[type="email"],
.property-enquiry-form-wrapper input[type="tel"],
.property-enquiry-form-wrapper select {
  width: 100%;
  padding: 10px 18px;
  border: 1px solid #ddd;
  border-radius: 50px;
  font-family: "Raleway", sans-serif;
  font-size: 14px;
  color: var(--ae-color-brand);
  background-color: #fff;
  transition:
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.property-enquiry-form-wrapper textarea {
  width: 100%;
  padding: 15px 18px;
  border: 1px solid #ddd;
  border-radius: 20px;
  font-family: "Raleway", sans-serif;
  font-size: 14px;
  color: var(--ae-color-brand);
  background-color: #fff;
  transition:
    border-color 0.3s ease,
    box-shadow 0.3s ease;
  min-height: 120px;
  resize: vertical;
  margin-bottom: 0;
}

/* Placeholder styling */
.property-enquiry-form-wrapper input::placeholder,
.property-enquiry-form-wrapper textarea::placeholder {
  color: var(--ae-color-brand);
  opacity: 1;
}

.property-enquiry-form-wrapper input[type="text"]:focus,
.property-enquiry-form-wrapper input[type="email"]:focus,
.property-enquiry-form-wrapper input[type="tel"]:focus,
.property-enquiry-form-wrapper textarea:focus,
.property-enquiry-form-wrapper select:focus {
  outline: none;
  border-color: var(--ae-color-brand);
  box-shadow: none;
}

/* Submit Button */
.property-details-right .property-enquiry-form-wrapper input[type="submit"],
.property-details-right .property-enquiry-form-wrapper button[type="submit"] {
  width: 100%;
  padding: 15px 25px;
  background-color: var(--ae-color-brand);
  color: #ffffff;
  border: 2px solid var(--ae-color-brand);
  border-radius: 50px;
  font-family: "Raleway", sans-serif;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 10px;
}

.property-details-right
  .property-enquiry-form-wrapper
  input[type="submit"]:hover,
.property-details-right
  .property-enquiry-form-wrapper
  button[type="submit"]:hover {
  background-color: var(--ae-color-secondary);
  border-color: var(--ae-color-secondary);
  color: #ffffff;
}

/* Form Messages */
.property-enquiry-form-wrapper .alert,
.property-enquiry-form-wrapper .message {
  padding: 12px 15px;
  border-radius: 6px;
  font-size: 14px;
  margin-bottom: 15px;
}

.property-enquiry-form-wrapper .alert-success,
.property-enquiry-form-wrapper .success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.property-enquiry-form-wrapper .alert-error,
.property-enquiry-form-wrapper .error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* Required Field Indicator */
.property-enquiry-form-wrapper .required {
  color: #dc3545;
}

/* Contact Buttons (Call & Mail) */
.enquiry-contact-buttons {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.enquiry-contact-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 20px;
  border: 2px solid var(--ae-color-brand);
  border-radius: 50px;
  background: transparent;
  color: var(--ae-color-brand);
  font-family: "Raleway", sans-serif;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
}

.enquiry-contact-btn:hover {
  background: var(--ae-color-brand);
  color: #ffffff;
}

.enquiry-contact-btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* Responsive Enquiry Form */
@media (max-width: 768px) {
  .property-enquiry-form-wrapper {
    padding: 25px;
    position: static;
  }

  .enquiry-form-title {
    font-size: 22px !important;
  }
}

/* ========================================
   Mortgage Calculator Section
   ======================================== */

.mortgage-calculator-section {
  padding: 100px 20px;
  background-color: rgba(var(--ae-color-brand-rgb), 0.1);
}

.mortgage-calculator-container {
  max-width: 1140px;
  margin: 0 auto;
}

.mortgage-calculator-title {
  font-family: "Raleway", sans-serif;
  font-size: 36px;
  line-height: 1.2em;
  font-weight: 600;
  color: var(--ae-color-brand);
  margin: 0 0 40px 0;
  text-align: center;
}

.mortgage-calculator-title .chronicle {
  font-family: "Chronicle Display", serif;
  font-weight: 200;
  color: var(--ae-color-brand);
}

.mortgage-calculator-content {
  /* Calculator content styling */
}

/* Two Column Mortgage Calculator Layout */
.mortgage-calculator-custom {
  display: flex;
  gap: 70px;
  align-items: flex-start;
}

/* Left Column - Form */
.mortgage-calculator-form {
  flex: 0 0 60%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 30px;
  align-items: start;
}

.mortgage-form-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mortgage-form-field label {
  font-family: "Raleway", sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--ae-color-brand);
}

.mortgage-calculator .mortgage-form-field input {
  padding: 15px 20px;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 50px;
  font-family: "Raleway", sans-serif;
  font-size: 14px;
  color: var(--ae-color-brand);
  background-color: #ffffff;
  transition: border-color 0.3s ease;
  margin-bottom: 0;
}

.mortgage-calculator .mortgage-form-field input::placeholder {
  color: rgba(0, 0, 0, 0.4);
}

.mortgage-calculator .mortgage-form-field input:focus {
  outline: none;
  border-color: var(--ae-color-brand);
}

.mortgage-calculator .mortgage-calculate-btn {
  grid-column: 1 / -1;
  padding: 20px 30px;
  background-color: var(--ae-color-brand);
  color: #ffffff;
  border: 2px solid var(--ae-color-brand);
  border-radius: 50px;
  font-family: "Raleway", sans-serif;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 10px;
}

.mortgage-calculator .mortgage-calculate-btn:hover {
  background-color: var(--ae-color-secondary);
  border-color: var(--ae-color-secondary);
  color: #ffffff;
}

/* Right Column - Results */
.mortgage-calculator .mortgage-calculator-results {
  flex: 0 0 calc(40% - 70px);
  background-color: rgba(0, 0, 0, 0.05);
  border-radius: 12px;
  padding: 30px !important;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.mortgage-calculator-results h4 {
  font-family: "Chronicle Display", serif;
  font-size: 24px;
  font-weight: 400;
  color: var(--ae-color-brand);
  margin: 0 0 10px 0;
}

.mortgage-result-field {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.mortgage-result-field label {
  font-family: "Raleway", sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--ae-color-brand);
}

.mortgage-calculator .mortgage-result-field input[type="text"] {
  padding: 0;
  border: none;
  border-radius: 0;
  font-family: "Chronicle Display", serif;
  font-size: 28px;
  font-weight: 400;
  color: var(--ae-color-brand);
  background-color: transparent;
  margin-bottom: 0;
  cursor: default;
}

/* Responsive Mortgage Calculator */
@media (max-width: 768px) {
  .mortgage-calculator-section {
    padding: 60px 20px;
  }

  .mortgage-calculator-title {
    font-size: 28px;
  }

  .mortgage-calculator-custom {
    flex-direction: column;
    gap: 30px;
  }

  .mortgage-calculator-results h4 {
    font-size: 28px;
  }

  .mortgage-calculator-form {
    flex: 1 1 auto;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .mortgage-calculator .mortgage-calculator-results {
    flex: 1 1 auto;
    width: 100%;
  }
}

@media (max-width: 576px) {
  .mortgage-calculator-section {
    padding: 40px 15px;
  }

  .mortgage-calculator-title {
    font-size: 24px;
  }

  .mortgage-calculator .mortgage-calculator-results {
    padding: 20px !important;
  }

  .mortgage-result-field input[type="text"] {
    font-size: 22px;
  }
}

/* Responsive - Property Details Section */
@media (max-width: 1024px) {
  .property-details-container {
    gap: 30px;
  }

  .property-details-left {
    flex: 0 0 60%;
    max-width: 60%;
  }

  .property-details-right {
    flex: 0 0 40%;
    max-width: 40%;
  }
}

@media (max-width: 768px) {
  .property-details-section {
    padding: 60px 20px;
  }

  .property-details-container {
    flex-direction: column;
  }

  .property-details-left,
  .property-details-right {
    flex: 0 0 100%;
    max-width: 100%;
    width: 100%;
  }

  .property-tabs-nav {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 5px;
    padding-bottom: 4px;
  }

  .property-tabs-nav .tab-button {
    flex-shrink: 0;
    padding: 10px;
    font-size: 13px;
  }

  .property-tabs-content {
    padding: 20px;
  }

  .property-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
}

@media (max-width: 576px) {
  .property-details-section {
    padding: 40px 15px;
  }

  .property-tabs-nav .tab-button {
    padding: 10px;
    font-size: 13px;
  }

  .property-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
}

/* ========================================
   Similar Properties Section
   ======================================== */

.similar-properties-section {
  background-color: rgba(var(--ae-color-accent-rgb), 0.1);
  padding: 84px 0 120px 0;
}

.similar-properties-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

.similar-properties-title {
  font-family: "Raleway", sans-serif;
  font-size: 36px;
  font-weight: 600;
  color: var(--ae-color-brand);
  margin: 0 0 50px 0;
  text-align: center;
  line-height: 1.2em;
}

.similar-properties-title .chronicle {
  font-family: "Chronicle Display", serif;
  font-weight: 200;
}

/* Carousel wrapper — arrows positioned outside the viewport */
.similar-carousel-wrapper {
  position: relative;
  padding: 0 60px;
}

/* Viewport — clips the track, full width */
.similar-carousel-viewport {
  width: 100%;
  overflow: hidden;
}

/* Track — slides horizontally */
.similar-carousel-track {
  display: flex;
  gap: 24px;
  transition: transform 0.5s ease;
}

/* Cards — 3 visible at a time */
.similar-property-card {
  flex: 0 0 calc((100% - 48px) / 3);
}

/* Card image */
.similar-card-image-link {
  display: block;
  text-decoration: none;
}

.similar-card-image-wrapper {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

.similar-card-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.similar-property-card:hover .similar-card-image-wrapper img {
  transform: scale(1.04);
}

/* Availability badge — bottom-left overlay */
.similar-card-availability {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background-color: var(--ae-color-accent);
  color: #fff;
  font-family: "Raleway", sans-serif;
  font-size: 12px;
  font-weight: 600;
  padding: 0 10px;
  border-radius: 4px;
}

/* Card info */
.similar-card-info {
  padding: 16px 4px 0;
}

.similar-property-card .similar-card-title {
  font-family: "Raleway", sans-serif;
  font-size: 19px;
  font-weight: 600;
  color: var(--ae-color-brand);
  margin: 0 0 8px 0;
  line-height: 1.3;
}

.similar-property-card .similar-card-title a {
  color: inherit;
  text-decoration: none;
}

.similar-property-card .similar-card-title a:hover {
  text-decoration: underline;
}

.similar-card-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.similar-price-value {
  font-family: "Chronicle Display", serif;
  font-size: 22px;
  font-weight: 400;
  color: var(--ae-color-brand);
}

.similar-price-qualifier {
  font-family: "Raleway", sans-serif;
  font-size: 13px;
  font-style: italic;
  color: var(--ae-color-brand);
  opacity: 0.75;
}

/* Carousel arrows — absolutely positioned outside the viewport */
.similar-carousel-wrapper .similar-carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  background-color: #fff;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 50%;
  font-size: 30px;
  color: var(--ae-color-brand);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  line-height: 1;
  padding: 10px;
  z-index: 2;
}

.similar-carousel-prev {
  left: 0;
}

.similar-carousel-next {
  right: 0;
}

.similar-carousel-wrapper .similar-carousel-arrow:hover {
  background-color: var(--ae-color-brand);
  border-color: var(--ae-color-brand);
  color: #fff;
}

/* Responsive */
@media (max-width: 768px) {
  .similar-properties-section {
    padding: 60px 0 80px 0;
  }

  .similar-properties-title {
    font-size: 28px;
    margin-bottom: 36px;
  }

  .similar-property-card {
    flex: 0 0 calc((100% - 24px) / 2);
  }
}

@media (max-width: 576px) {
  .similar-properties-section {
    padding: 50px 0 60px 0;
  }

  .similar-properties-title {
    font-size: 24px;
    margin-bottom: 28px;
  }

  .similar-property-card {
    flex: 0 0 100%;
  }

  .similar-carousel-wrapper {
    padding: 0;
  }

  .similar-carousel-wrapper .similar-carousel-arrow {
    width: 36px;
    height: 36px;
    font-size: 22px;
    padding: 8px;
    background-color: rgba(255, 255, 255, 0.85);
    top: 35%;
  }

  .similar-carousel-prev {
    left: 8px;
  }

  .similar-carousel-next {
    right: 8px;
  }
}

.pg-item{
	border-radius: 12px;
}



/* ============================================================
   Gallery Overlay (6th image "View All Images")
   ============================================================ */
.gallery-item-last {
  position: relative;
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.52);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  border-radius: 8px;
}

.gallery-overlay-text {
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-align: center;
  font-family: 'Raleway', sans-serif;
}

/* ============================================================
   Gallery Lightbox
   ============================================================ */
#gallery-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0, 0, 0, 0.92);
  align-items: center;
  justify-content: center;
}

#gallery-lightbox.active {
  display: flex;
}

.gl-body-open {
  overflow: hidden;
}

.gl-image-wrap {
  max-width: 88vw;
  max-height: 82vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gl-img {
  max-width: 100%;
  max-height: 82vh;
  object-fit: contain;
  display: block;
  border-radius: 4px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6);
  user-select: none;
}

#gallery-lightbox .gl-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  color: #fff;
  font-size: 38px;
  line-height: 1;
  cursor: pointer;
  z-index: 10;
  padding: 4px 8px;
  opacity: 0.85;
  transition: opacity 0.2s;
}

#gallery-lightbox .gl-close:hover {
  opacity: 1;
}

#gallery-lightbox .gl-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #fff;
  font-size: 52px;
  line-height: 1;
  cursor: pointer;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: background 0.2s;
  padding: 0;
}

#gallery-lightbox .gl-arrow:hover {
  background: rgba(255, 255, 255, 0.28);
}

#gallery-lightbox .gl-prev {
  left: 24px;
}

#gallery-lightbox .gl-next {
  right: 24px;
}

#gallery-lightbox .gl-counter {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.75);
  font-size: 14px;
  font-family: 'Raleway', sans-serif;
  letter-spacing: 0.05em;
}

@media (max-width: 600px) {
  #gallery-lightbox .gl-arrow {
    width: 40px;
    height: 40px;
    font-size: 36px;
  }

  #gallery-lightbox .gl-prev {
    left: 10px;
  }

  #gallery-lightbox .gl-next {
    right: 10px;
  }

 #gallery-lightbox  .gl-image-wrap {
    max-width: 96vw;
  }
}
