/*------------------------------------------------------------------
  Guido Modern Design Overrides
  Clean & Minimal Aesthetic
  Layers on top of template.css — do not modify template.css
-------------------------------------------------------------------*/

/* ==========================================================================
   1. CSS Custom Properties (extend existing theme variables)
   ========================================================================== */

:root {
  --guido-radius-sm: 6px;
  --guido-radius-md: 10px;
  --guido-radius-lg: 14px;
  --guido-radius-xl: 20px;
  --guido-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --guido-shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --guido-shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.1);
  --guido-shadow-hover: 0 8px 28px rgba(0, 0, 0, 0.12);
  --guido-border-color: #e8e8e8;
  --guido-bg-subtle: #f8f9fa;
  --guido-text-muted: #8c8c8c;
  --guido-transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   2. Global Typography & Base
   ========================================================================== */

body {
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  margin-top: 16px;
  margin-bottom: 12px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

h1, .h1 { font-size: 2rem; }
h2, .h2 { font-size: 1.625rem; }
h3, .h3 { font-size: 1.375rem; }
h4, .h4 { font-size: 1.125rem; }

p {
  margin-bottom: 1.25rem;
}

a {
  transition: color var(--guido-transition), opacity var(--guido-transition);
}

img {
  border-radius: var(--guido-radius-sm);
}

/* ==========================================================================
   3. Buttons
   ========================================================================== */

.btn,
button:not(.slick-arrow):not(.mfp-close) {
  border-radius: var(--guido-radius-md);
  font-weight: 500;
  transition: all var(--guido-transition);
  letter-spacing: 0.01em;
}

.btn-theme,
.btn-primary {
  border-radius: var(--guido-radius-md);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-theme:hover,
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.btn-readmore {
  background: none;
  border: none;
  padding: 0;
  color: var(--guido-theme-color);
  font-weight: 500;
  font-size: 0.875rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-readmore::after {
  content: '\2192';
  transition: transform var(--guido-transition);
}

.btn-readmore:hover {
  color: var(--guido-link-color);
}

.btn-readmore:hover::after {
  transform: translateX(4px);
}

/* ==========================================================================
   4. Forms & Inputs
   ========================================================================== */

.form-control,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
input[type="url"],
input[type="tel"],
input[type="number"],
textarea,
select {
  height: 46px;
  border-radius: var(--guido-radius-md);
  border: 1.5px solid var(--guido-border-color);
  padding: 8px 16px;
  font-size: 0.9375rem;
  transition: border-color var(--guido-transition), box-shadow var(--guido-transition);
  background-color: #fff;
}

.form-control:focus,
input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
textarea:focus,
select:focus {
  border-color: var(--guido-theme-color);
  box-shadow: 0 0 0 3px rgba(35, 77, 212, 0.1);
  outline: none;
}

textarea {
  height: auto;
  min-height: 120px;
}

/* ==========================================================================
   5. Cards (shared base for listings & posts)
   ========================================================================== */

.listing-item,
.post-layout {
  background: #fff;
  border-radius: var(--guido-radius-lg);
  box-shadow: var(--guido-shadow-sm);
  border: 1px solid var(--guido-border-color);
  overflow: hidden;
  transition: transform var(--guido-transition), box-shadow var(--guido-transition);
}

.listing-item:hover,
.post-layout:hover {
  transform: translateY(-3px);
  box-shadow: var(--guido-shadow-hover);
}

/* ==========================================================================
   6. Listing Cards
   ========================================================================== */

/* Grid card */
.listing-grid {
  border-radius: var(--guido-radius-lg);
  padding: 0;
}

.listing-grid .listing-thumbnail-wrapper {
  border-radius: var(--guido-radius-lg) var(--guido-radius-lg) 0 0;
  overflow: hidden;
  position: relative;
}

.listing-grid .listing-thumbnail-wrapper .listing-image img {
  transition: transform 0.4s ease;
}

.listing-grid:hover .listing-thumbnail-wrapper .listing-image img {
  transform: scale(1.04);
}

.listing-grid .top-info {
  padding: 16px 18px 18px;
}

.listing-title {
  font-size: 1.0625rem;
  font-weight: 600;
  margin: 0 0 6px;
  line-height: 1.4;
}

.listing-title a {
  color: var(--guido-heading-color);
}

.listing-title a:hover {
  color: var(--guido-theme-color);
}

.listing-item .listing-metas {
  margin-top: 10px;
  font-size: 0.8125rem;
  color: var(--guido-text-muted);
}

.listing-item .listing-metas i {
  font-size: 0.75rem;
  opacity: 0.6;
}

/* Labels on thumbnail */
.listing-item .top-label {
  padding: 10px 12px;
}

.listing-item .listing-time,
.listing-item .listing-price {
  border: none;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 500;
  color: #fff;
}

.listing-item .bottom-label {
  padding: 0 12px 10px;
}

/* Category badge */
.listing-item .listing-category,
.listing-item .category-listing {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  color: var(--guido-text-muted);
  font-weight: 500;
}

/* Action buttons */
.listing-item .list-action {
  gap: 8px;
}

.listing-item .list-action a,
.listing-item .list-action button {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--guido-bg-subtle);
  color: var(--guido-text-color);
  font-size: 0.875rem;
  transition: all var(--guido-transition);
  border: none;
}

.listing-item .list-action a:hover,
.listing-item .list-action button:hover {
  background: var(--guido-theme-color);
  color: #fff;
}

/* Bottom info bar */
.listing-information-bottom {
  padding-top: 12px;
  margin-top: 12px;
  border-top: 1px solid var(--guido-border-color);
}

/* Rating */
.listing-item .listing-rating .rating-count {
  background: var(--guido-theme-color);
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 0.75rem;
  font-weight: 600;
}

/* Featured badge */
.listing-item .featured-listing {
  background: var(--guido-second-color);
  color: #222;
  border-radius: 6px;
  padding: 3px 10px;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* List view card */
.listing-list {
  padding: 0;
}

.listing-list .listing-thumbnail-wrapper {
  border-radius: var(--guido-radius-lg) 0 0 var(--guido-radius-lg);
  overflow: hidden;
  flex-shrink: 0;
}

.listing-list .top-info {
  padding: 18px 20px;
  flex: 1;
  min-width: 0;
}

/* Logo on listing */
.listing-item .listing-logo {
  border-radius: var(--guido-radius-md);
  overflow: hidden;
  box-shadow: var(--guido-shadow-sm);
}

/* Tagline */
.listing-item .listing-tagline {
  font-size: 0.8125rem;
  color: var(--guido-text-muted);
  margin-top: 2px;
  line-height: 1.5;
}

/* ==========================================================================
   7. Blog Post Cards
   ========================================================================== */

.post-layout {
  margin-bottom: 1.875rem;
}

.post-layout .top-image {
  overflow: hidden;
  border-radius: var(--guido-radius-lg) var(--guido-radius-lg) 0 0;
  position: relative;
}

.post-layout .top-image img {
  transition: transform 0.4s ease;
  width: 100%;
}

.post-layout:hover .top-image img {
  transform: scale(1.04);
}

.post-layout .col-content {
  padding: 18px 20px 20px;
}

/* Category badge on post */
.post-layout .categories-name {
  display: inline-block;
  background: var(--guido-theme-color);
  color: #fff;
  border-radius: 6px;
  padding: 3px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.post-layout .list-categories {
  z-index: 2;
}

/* Post metadata */
.post-layout .top-detail-info {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.8125rem;
  color: var(--guido-text-muted);
  margin-bottom: 8px;
}

.post-layout .top-detail-info a {
  color: var(--guido-text-muted);
  font-weight: 500;
}

.post-layout .top-detail-info a:hover {
  color: var(--guido-theme-color);
}

.post-layout .top-detail-info i {
  font-size: 0.75rem;
  margin-right: 5px;
  opacity: 0.5;
}

/* Entry title */
.post-layout .entry-title {
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.45;
  margin: 4px 0 0;
}

.post-layout .entry-title a {
  color: var(--guido-heading-color);
}

.post-layout .entry-title a:hover {
  color: var(--guido-theme-color);
}

/* Description */
.post-layout .description {
  font-size: 0.875rem;
  color: var(--guido-text-muted);
  line-height: 1.6;
  margin-top: 8px;
}

/* Read more */
.post-layout .more-bottom {
  margin-top: 12px;
}

/* List view posts */
.post-list-item {
  display: flex;
  flex-direction: row;
}

.post-list-item .top-image {
  border-radius: var(--guido-radius-lg) 0 0 var(--guido-radius-lg);
  flex-shrink: 0;
  max-width: 320px;
  width: 40%;
}

.post-list-item .col-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (max-width: 575.98px) {
  .post-list-item {
    flex-direction: column;
  }
  .post-list-item .top-image {
    max-width: none;
    width: 100%;
    border-radius: var(--guido-radius-lg) var(--guido-radius-lg) 0 0;
  }
}

/* ==========================================================================
   8. Single Post Page
   ========================================================================== */

.single .entry-content-detail {
  max-width: 720px;
}

.single .entry-description {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--guido-text-color);
}

.single .entry-description p {
  margin-bottom: 1.5rem;
}

.single .entry-description h2,
.single .entry-description h3 {
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.single .entry-description blockquote {
  border-left: 3px solid var(--guido-theme-color);
  padding: 16px 24px;
  margin: 1.5rem 0;
  background: var(--guido-bg-subtle);
  border-radius: 0 var(--guido-radius-md) var(--guido-radius-md) 0;
  font-style: italic;
}

/* Tags */
.entry-tags-list a {
  display: inline-block;
  padding: 4px 14px;
  background: var(--guido-bg-subtle);
  border-radius: 20px;
  font-size: 0.8125rem;
  color: var(--guido-text-color);
  margin: 4px 4px 4px 0;
  transition: all var(--guido-transition);
  border: 1px solid var(--guido-border-color);
}

.entry-tags-list a:hover {
  background: var(--guido-theme-color);
  color: #fff;
  border-color: var(--guido-theme-color);
}

/* Tag & Social bar */
.tag-social {
  padding: 20px 0;
  margin-top: 24px;
  border-top: 1px solid var(--guido-border-color);
}

/* Post navigation */
.post-navigation {
  margin-top: 2rem;
  border-top: 1px solid var(--guido-border-color);
  border-bottom: 1px solid var(--guido-border-color);
}

.post-navigation .nav-links {
  display: flex;
}

.post-navigation .nav-links > div {
  flex: 1;
  padding: 20px 0;
}

.post-navigation .nav-links > div + div {
  border-left: 1px solid var(--guido-border-color);
  padding-left: 20px;
  text-align: right;
}

.post-navigation .navi {
  font-size: 0.8125rem;
  color: var(--guido-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
  margin-bottom: 4px;
}

.post-navigation .title-direct {
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1.4;
  color: var(--guido-heading-color);
}

.post-navigation a:hover .title-direct {
  color: var(--guido-theme-color);
}

/* ==========================================================================
   9. Single Listing Page
   ========================================================================== */

.listing-single-layout .content-listing-detail {
  padding-top: 2rem;
}

.listing-single-layout .listing-detail-main > .widget-listing-detail,
.listing-single-layout .listing-detail-main > section {
  padding: 24px 0;
  border-bottom: 1px solid var(--guido-border-color);
}

.listing-single-layout .listing-detail-main > .widget-listing-detail:last-child,
.listing-single-layout .listing-detail-main > section:last-child {
  border-bottom: none;
}

/* Sidebar widgets on single listing */
.sidebar-listing-inner .widget {
  background: #fff;
  border: 1px solid var(--guido-border-color);
  border-radius: var(--guido-radius-lg);
  padding: 20px;
  margin-bottom: 20px;
}

.sidebar-listing-inner .widget-title {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--guido-border-color);
}

/* ==========================================================================
   10. Comments
   ========================================================================== */

.the-comment {
  display: flex;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--guido-border-color);
}

.the-comment .avatar {
  flex-shrink: 0;
}

.the-comment .avatar img {
  border-radius: 50%;
  width: 48px;
  height: 48px;
}

.the-comment .comment-box {
  flex: 1;
  min-width: 0;
}

.the-comment .name-comment {
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--guido-heading-color);
}

.the-comment .date {
  font-size: 0.8125rem;
  color: var(--guido-text-muted);
}

.the-comment .comment-text {
  margin-top: 8px;
  font-size: 0.9375rem;
  line-height: 1.65;
}

.the-comment .text-reply {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--guido-theme-color);
}

.commentform {
  margin-top: 2rem;
}

.commentform .form-control {
  margin-bottom: 16px;
}

/* ==========================================================================
   11. Breadcrumbs
   ========================================================================== */

.breadcrumb-page {
  padding: 24px 0;
  background-size: cover;
  background-position: center;
}

.breadcrumb-page.show-title {
  padding: 32px 0;
}

.bread-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 6px;
}

.breadcrumb {
  margin: 0;
  padding: 0;
  background: none;
  font-size: 0.8125rem;
}

.breadcrumb li {
  display: inline-flex;
  align-items: center;
}

.breadcrumb li + li::before {
  content: '\203A';
  margin: 0 8px;
  color: var(--guido-text-muted);
  font-size: 1rem;
}

.breadcrumb a {
  color: var(--guido-text-muted);
  font-weight: 500;
}

.breadcrumb a:hover {
  color: var(--guido-theme-color);
}

.breadcrumb .active {
  color: var(--guido-heading-color);
  font-weight: 500;
}

/* ==========================================================================
   12. Pagination
   ========================================================================== */

.apus-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-top: 2rem;
}

.apus-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: var(--guido-radius-md);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--guido-text-color);
  background: #fff;
  border: 1px solid var(--guido-border-color);
  transition: all var(--guido-transition);
}

.apus-pagination .page-numbers:hover {
  background: var(--guido-bg-subtle);
  border-color: var(--guido-theme-color);
  color: var(--guido-theme-color);
}

.apus-pagination .page-numbers.current {
  background: var(--guido-theme-color);
  border-color: var(--guido-theme-color);
  color: #fff;
}

.apus-pagination .page-numbers.prev,
.apus-pagination .page-numbers.next {
  font-size: 0.75rem;
}

/* ==========================================================================
   13. Widgets (sidebar)
   ========================================================================== */

.sidebar .widget {
  margin-bottom: 24px;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--guido-border-color);
  border-radius: var(--guido-radius-lg);
}

.sidebar .widget-title {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--guido-border-color);
}

.sidebar .widget-title span {
  position: relative;
}

/* ==========================================================================
   14. Filter Sidebar (Listings)
   ========================================================================== */

.filter-listing-sidebar .widget {
  border: 1px solid var(--guido-border-color);
  border-radius: var(--guido-radius-lg);
  padding: 18px;
  margin-bottom: 16px;
  background: #fff;
}

.filter-listing-sidebar .widget-title {
  font-size: 0.9375rem;
  font-weight: 600;
  margin: 0 0 12px;
  cursor: pointer;
}

/* ==========================================================================
   15. Custom Scrollbar (replaces Perfect Scrollbar)
   ========================================================================== */

.apus-offcanvas-body,
.sidebar-wrapper > .sidebar,
.layout-type-half-map .filter-scroll {
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, 0.15) transparent;
}

.apus-offcanvas-body::-webkit-scrollbar,
.sidebar-wrapper > .sidebar::-webkit-scrollbar,
.layout-type-half-map .filter-scroll::-webkit-scrollbar {
  width: 5px;
}

.apus-offcanvas-body::-webkit-scrollbar-track,
.sidebar-wrapper > .sidebar::-webkit-scrollbar-track,
.layout-type-half-map .filter-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.apus-offcanvas-body::-webkit-scrollbar-thumb,
.sidebar-wrapper > .sidebar::-webkit-scrollbar-thumb,
.layout-type-half-map .filter-scroll::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.15);
  border-radius: 10px;
}

/* ==========================================================================
   16. Header / Navigation Polish
   ========================================================================== */

.sticky-header {
  box-shadow: var(--guido-shadow-md);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* ==========================================================================
   17. Back to Top
   ========================================================================== */

#back-to-top {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--guido-theme-color);
  color: #fff;
  box-shadow: var(--guido-shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--guido-transition);
  border: none;
}

#back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: var(--guido-shadow-lg);
}

/* ==========================================================================
   18. Mobile Menu
   ========================================================================== */

.apus-offcanvas {
  border-radius: 0;
  box-shadow: var(--guido-shadow-lg);
}

.apus-offcanvas .close-sidebar-btn {
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ==========================================================================
   19. 404 Page
   ========================================================================== */

.page-404 {
  text-align: center;
  padding: 60px 20px;
}

.page-404 h2 {
  font-size: 4rem;
  font-weight: 800;
  color: var(--guido-theme-color);
  margin-bottom: 16px;
}

/* ==========================================================================
   20. Listing Map Popup
   ========================================================================== */

#listings-google-maps .listing-grid {
  border: none;
  box-shadow: none;
  border-radius: var(--guido-radius-md);
}

#listings-google-maps .listing-grid .listing-thumbnail-wrapper {
  border-radius: var(--guido-radius-md);
}

/* ==========================================================================
   21. Archive / Search Results
   ========================================================================== */

.layout-blog {
  padding-top: 8px;
}

/* ==========================================================================
   22. Loading / Preload
   ========================================================================== */

.apus-page-loading {
  background: #fff;
}

/* ==========================================================================
   23. Responsive Refinements
   ========================================================================== */

@media (max-width: 991.98px) {
  .sidebar {
    padding: 20px;
    background: #fff;
  }

  .mobile-sidebar-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #fff;
    box-shadow: var(--guido-shadow-md);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--guido-border-color);
  }
}

@media (max-width: 767.98px) {
  .listing-list .listing-thumbnail-wrapper {
    border-radius: var(--guido-radius-lg) var(--guido-radius-lg) 0 0;
  }

  .bread-title {
    font-size: 1.25rem;
  }
}

@media (max-width: 575.98px) {
  .listing-grid .top-info,
  .listing-list .top-info {
    padding: 14px 14px 16px;
  }

  .post-layout .col-content {
    padding: 14px 14px 16px;
  }
}

/* ==========================================================================
   24. Swiper Carousel Overrides (theme-consistent styling)
   ========================================================================== */

.swiper {
  position: relative;
  overflow: hidden;
}

.swiper-button-prev,
.swiper-button-next {
  width: 38px;
  height: 38px;
  background: #fff;
  border: 1px solid var(--guido-border-color);
  border-radius: 50%;
  box-shadow: var(--guido-shadow-sm);
  transition: all var(--guido-transition);
  color: var(--guido-heading-color);
  top: 50%;
  margin-top: -19px;
}

.swiper-button-prev::after,
.swiper-button-next::after {
  display: none;
}

.swiper-button-prev i,
.swiper-button-next i {
  font-size: 14px;
  line-height: 1;
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
  background: var(--guido-theme-color);
  border-color: var(--guido-theme-color);
  color: #fff;
  box-shadow: var(--guido-shadow-md);
}

.swiper-button-prev {
  left: -4px;
}

.swiper-button-next {
  right: -4px;
}

.swiper-pagination {
  position: relative;
  margin-top: 20px;
  text-align: center;
}

.swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  background: var(--guido-border-color);
  opacity: 1;
  margin: 0 4px;
  transition: all var(--guido-transition);
}

.swiper-pagination-bullet-active {
  background: var(--guido-theme-color);
  width: 24px;
  border-radius: 4px;
}

/* ==========================================================================
   25. GLightbox Overrides
   ========================================================================== */

.glightbox-clean .gslide-description {
  background: #fff;
  border-radius: var(--guido-radius-md);
}

.glightbox-clean .gclose,
.glightbox-clean .gnext,
.glightbox-clean .gprev {
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* ==========================================================================
   26. Inline Modal Overlay (replaces Magnific Popup inline type)
   ========================================================================== */

.guido-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.guido-modal-overlay.active {
  opacity: 1;
}

.guido-modal-container {
  background: #fff;
  border-radius: var(--guido-radius-lg);
  max-width: 810px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  padding: 30px;
  box-shadow: var(--guido-shadow-lg);
  transform: translateY(20px);
  transition: transform 0.3s ease;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, 0.15) transparent;
}

.guido-modal-overlay.active .guido-modal-container {
  transform: translateY(0);
}

.guido-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: none;
  background: var(--guido-bg-subtle);
  border-radius: 50%;
  font-size: 1.25rem;
  line-height: 1;
  color: var(--guido-text-color);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--guido-transition);
  z-index: 1;
}

.guido-modal-close:hover {
  background: var(--guido-theme-color);
  color: #fff;
}

/* ==========================================================================
   27. Smooth Scroll Behavior
   ========================================================================== */

html {
  scroll-behavior: smooth;
}

/* ==========================================================================
   28. Listing Image Placeholders
   ========================================================================== */

/* --- Listing card placeholder (grid & list) --- */
.listing-image-placeholder {
  display: block;
  position: relative;
  overflow: hidden;
}

.listing-placeholder-img {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f0f2f5 0%, #e4e7eb 100%);
  aspect-ratio: 4 / 3;
  width: 100%;
  border-radius: var(--guido-radius-md) var(--guido-radius-md) 0 0;
}

.listing-placeholder-img svg {
  width: 48px;
  height: 48px;
  color: #c0c5cc;
  opacity: 0.7;
}

.listing-list .listing-placeholder-img {
  border-radius: var(--guido-radius-md) 0 0 var(--guido-radius-md);
  height: 100%;
  min-height: 200px;
  aspect-ratio: auto;
}

/* --- Single listing gallery placeholder (hero area) --- */
.listing-gallery-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  background: linear-gradient(160deg, #eef0f4 0%, #e2e5ea 40%, #d8dce3 100%);
  height: 500px;
  width: 100%;
  padding: 40px 20px;
}

.listing-detail-gallery .listing-single-gallery-wrapper {
  overflow: hidden;
}

.listing-gallery-placeholder svg {
  width: 72px;
  height: 72px;
  color: #b8bec6;
  opacity: 0.5;
}

.listing-gallery-placeholder span {
  font-size: 0.95rem;
  color: #9aa1ab;
  font-weight: 500;
  letter-spacing: 0.03em;
}

@media (max-width: 767.98px) {
  .listing-gallery-placeholder {
    height: 320px;
  }

  .listing-gallery-placeholder svg {
    width: 56px;
    height: 56px;
  }
}
