/* ========== MORE PROJECTS SECTION STYLES ========== */
#more-projects {
    background: #f8f9fa;
    padding: 5px 0;
}

.projects-carousel-wrapper {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 50px;
}

.projects-carousel {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc(33.333% - 20px);
    gap: 30px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    padding: 20px 0;
}

.projects-carousel::-webkit-scrollbar {
    display: none;
}

.project-card {
    scroll-snap-align: start;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.project-card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.project-card-image img {
    width: 100%;
    height: 100%;
    object-fit: fill;
    transition: transform 0.3s ease;
}

.project-card:hover .project-card-image img {
    transform: scale(1.05);
}

.project-card-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--colorPrimary);
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.project-card-content {
    padding: 20px;
}

.project-card-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--dark);
    line-height: 1.3;
}

.project-card-location {
    color: var(--muted);
    font-size: 0.9rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.project-card-location i {
    color: var(--colorPrimary);
}

.project-card-builder {
    color: var(--text);
    font-size: 0.9rem;
    margin-bottom: 15px;
    font-weight: 500;
}

.project-card-rating {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.project-stars {
    color: #ffa41b;
    font-size: 0.9rem;
}

.project-rating-text {
    font-size: 0.8rem;
    color: var(--muted);
}

.project-card-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--colorPrimary);
    margin-bottom: 15px;
}

.project-card-actions {
    display: flex;
    gap: 10px;
}

.project-card-btn {
    flex: 1;
    padding: 8px 15px;
    border: 1px solid var(--colorPrimary);
    background: transparent;
    color: var(--colorPrimary);
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
}

.project-card-btn:hover {
    background: var(--colorPrimary);
    color: white;
}

.project-card-btn.primary {
    background: var(--colorPrimary);
    color: white;
}

.project-card-btn.primary:hover {
    background: var(--colorPrimary);
    opacity: 0.9;
}

/* Carousel Navigation */
.carousel-nav {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    pointer-events: none;
}

.carousel-nav-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    border: 1px solid var(--border);
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: all;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.carousel-nav-btn:hover {
    background: var(--colorPrimary);
    color: white;
    border-color: var(--colorPrimary);
}

.carousel-nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Empty State */
.projects-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--muted);
    grid-column: 1 / -1;
}

.projects-empty i {
    font-size: 3rem;
    margin-bottom: 15px;
}

/* Responsive Design */
@media (max-width: 992px) {
    .projects-carousel {
        grid-auto-columns: calc(50% - 15px);
    }
}

@media (max-width: 768px) {
    .projects-carousel-wrapper {
        padding: 0 30px;
    }
    
    .projects-carousel {
        grid-auto-columns: calc(100% - 10px);
    }
    
    .carousel-nav-btn {
        width: 35px;
        height: 35px;
    }
}

@media (max-width: 576px) {
    .projects-carousel-wrapper {
        padding: 0 15px;
    }
    
    .project-card-actions {
        flex-direction: column;
    }
}

/* Responsive iframe container */
.responsive-iframe-container {
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.iframe-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 75%; /* 4:3 aspect ratio for mobile */
  height: 0;
}

.iframe-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Responsive location map image */
.location-map-img {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
}

.location-map-image {
  width: 100%;
  height: auto;
  max-height: 300px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.location-map-link:hover .location-map-image {
  transform: scale(1.02);
}

/* Coming soon placeholder */
.coming-soon-placeholder {
  padding: 2rem 1rem;
  text-align: center;
  background: #f8f9fa;
  border-radius: 8px;
  border: 1px dashed #dee2e6;
}

/* Mobile-first responsive adjustments */
@media (max-width: 768px) {
  .responsive-iframe-container {
    margin-bottom: 1rem;
  }
  
  .iframe-wrapper {
    padding-bottom: 100%; /* Square aspect ratio for mobile */
  }
  
  .location-map-image {
    max-height: 250px;
  }
  
  .lmap-div {
    margin-top: 0;
  }
}

/* Tablet and desktop adjustments */
@media (min-width: 769px) {
  .iframe-wrapper {
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
  }
}

@media (min-width: 992px) {
  .location-map-image {
    max-height: 280px;
  }
}