/* Amenities container */
.amenity-item {
  display: flex;
  align-items: center;
  border-bottom: 2px dashed #c9b06b;
  padding: 8px 0;
  min-height: 40px; /* fixes shifting */
}

/* Amenity icon */
.amenity-icon {
  font-size: 18px;
  font-weight: bold;
  color: var(--colorPrimary, #c9b06b); /* fallback color */
  margin-right: 8px;
  flex-shrink: 0;
  width: 20px; /* fixes layout shifts */
  text-align: center;
}

/* Amenity text */
.amenity-text {
  font-size: 16px;
  line-height: 1.4;
}

#gal-3 .owl-prev,
#gal-3 .owl-next {
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 20px;
    line-height: 36px;
    text-align: center;
    color: #333;
    transition: all 0.3s ease;
}
#gal-3 .owl-prev:hover,
#gal-3 .owl-next:hover {
    background: #333;
    color: #fff;
    border-color: #333;
}
#gal-3 .owl-nav {
    position: absolute;
    top: 40%;
    width: 100%;
    display: flex;
    justify-content: space-between;
}

/* Highlights UL */
.list-group.rk-list {
  border: 0px solid #ccc;
  font-size: 16px;
  list-style: none;
  padding-left: 0;
  margin: 0;
}

/* Highlights LI */
.list-group-item {
  border-bottom: 2px dashed #ccc;
  display: flex;
  align-items: center;
  padding: 12px 15px;
  margin-bottom: 8px;
  background: #f8f9fa;
  border-radius: 6px;
  min-height: 48px; /* prevents shifting */
}

/* Checkmark Icon */
.highlight-icon {
  color: var(--colorPrimary, #c9b06b);
  font-weight: bold;
  font-size: 20px;
  margin-right: 12px;
  flex-shrink: 0;
  width: 24px;
  text-align: center;
}

/* FAQ Section */
.faq-section {
  margin: 40px 0;
  padding: 20px;
}

.faq-heading {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: #333;
  text-align: center;
}

/* FAQ List */
.faq-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* FAQ Item */
.faq-item {
  border: 1px solid #ddd;
  border-radius: 8px;
  margin-bottom: 12px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* Question Button */
.faq-question {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  background: #f8f9fa;
  border: none;
  padding: 15px 20px;
  font-size: 1rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: background 0.3s ease;
}

.faq-question:hover {
  background: #eef3f8;
}

.faq-q {
  color: #007bff;
  font-weight: bold;
  margin-right: 10px;
  font-size: 1.2rem;
}

/* Answer */
.faq-answer {
  padding: 15px 20px;
  font-size: 0.95rem;
  color: #555;
  line-height: 1.6;
  display: none; /* collapsed by default */
}

/* Expanded State */
.faq-item.active .faq-answer {
  display: block;
}

/* Responsive */
@media (max-width: 768px) {
  .faq-heading {
    font-size: 1.4rem;
  }
  .faq-question {
    font-size: 0.95rem;
    padding: 12px 15px;
  }
  .faq-answer {
    font-size: 0.9rem;
    padding: 12px 15px;
  }
}

/* Location section styling */
.location-row {
  display: flex;
  flex-wrap: wrap;
}

.map-container {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
}

/* Google Maps container */
.google-maps-container {
  width: 100%;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.google-maps-wrapper {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 75%; /* Default aspect ratio for Google Maps */
  overflow: hidden;
  flex-grow: 1;
}

.google-maps-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Location map styling */
.location-map-link {
  display: block;
  height: 100%;
}

.location-map-wrapper {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 75%; /* Match Google Maps aspect ratio */
  overflow: hidden;
}

.location-map-image-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8f9fa;
}

.location-map-img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.location-map-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.location-map-link:hover .location-map-overlay {
  opacity: 1;
}

.location-map-btn {
  background: <?php echo $results->primary_color; ?>;
  color: white;
  padding: 10px 20px;
  border-radius: 4px;
  font-weight: 600;
}

/* Placeholder styling */
.map-placeholder {
  width: 100%;
  padding: 40% 0;
  background: #f8f9fa;
  border: 1px dashed #dee2e6;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* Responsive adjustments */
@media (max-width: 767px) {
  .google-maps-wrapper,
  .location-map-wrapper {
      padding-bottom: 75%; /* Maintain aspect ratio on mobile */
  }
  
  .map-container {
      margin-bottom: 30px;
  }
}

/* Ensure proper heights on larger screens */
@media (min-width: 768px) {
  .location-row {
      align-items: stretch;
  }
  
  .map-container {
      min-height: 400px;
  }
  
  .google-maps-wrapper,
  .location-map-wrapper {
      min-height: 400px;
  }
}
/* Read More/Less Styles */
.content {
    overflow: hidden;
    transition: max-height 0.5s ease;
}

.content.collapsed {
    max-height: 150px;
    position: relative;
}

.content.collapsed::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(255,255,255,0.9) 100%);
    pointer-events: none;
}

.show-more {
    padding: 15px 0;
    text-align: left;
}

/* Remove conflicting styles */
.hideContent {
    /* This class might be conflicting, remove it from HTML */
}
/* Temporary debug CSS - add this to your CSS file */
.show-more {
    display: block !important;
}


/* Clean Text-Only Read More Link */
.content {
    position: relative;
    max-height: 150px;
    overflow: hidden;
    transition: max-height 0.5s ease;
}

.content.expanded {
    max-height: none;
}

.content::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(255,255,255,0.9) 100%);
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.content.expanded::after {
    opacity: 0;
}

.show-more {
    padding: 8px 0;
    text-align: left;
}

.read-more-text {
    background: none;
    border: none;
    color: #117a8b;
    text-decoration: none;
    cursor: pointer;
    font-size: 14px;
    padding: 5px 0;
    margin: 0;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
}

.read-more-text:hover {
    color: #0d5d6b;
    transform: translateX(5px);
}

.read-more-text::after {
    content: '→';
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.read-more-text:hover::after {
    transform: translateX(3px);
}

.content.expanded + .show-more .read-more-text::after {
    content: '↑';
}
/* Glider.js Styles - Desktop & Mobile */
.glider {
    position: relative;
    overflow: hidden;
    width: 100%;
}

.glider-track {
    display: flex;
    transition: transform 0.5s ease;
    will-change: transform;
}

.glider-slide {
    flex: 0 0 100%;
    min-width: 0;
    position: relative;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
}

.glider-slide.active {
    opacity: 1;
}

/* Desktop Specific Styles */
@media (min-width: 768px) {
    .micro-main-slider {
        position: relative;
        overflow: hidden;
        margin-top: 60px; /* ADD THIS LINE - Same as mobile */
    }
    
    .glider {
        aspect-ratio: 16 / 9; /* Standard desktop ratio */
        height: auto;
    }
    
    .glider-track {
        height: 100%;
    }
    
    .glider-slide {
        height: 100%;
    }
    
    .glider-slide img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        object-position: left;
        display: block;
    }
}

/* Mobile Specific Styles */
@media (max-width: 767px) {
    .micro-main-slider {
        margin-top: 00px;
        position: relative;
        overflow: hidden;
    }
    
    /* Remove all height restrictions */
    .micro-main-slider .carousel-item,
    .glider,
    .glider-track,
    .glider-slide {
        height: auto !important;
        min-height: 50vh;
        max-height: 80vh;
    }
    
    /* Force image to fill container */
    .glider-slide img {
        width: 100%;
        height: 100%;
        object-fit: fill;
        object-position: center;
        display: block;
    }
    
    /* Ensure container has height */
    .glider {
        position: relative;
    }
    
    .glider-track {
        display: flex;
        height: 50vh;
        -webkit-overflow-scrolling: touch;
    }
    
    .glider-slide {
        flex: 0 0 100%;
        height: 100%;
    }
}

/* Rest of your Glider controls and dots CSS remains the same */
.glider-prev,
.glider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.3s ease, background-color 0.3s ease;
}

.micro-main-slider:hover .glider-prev,
.micro-main-slider:hover .glider-next {
    opacity: 1;
}

.glider-prev:hover,
.glider-next:hover {
    background: rgba(0, 0, 0, 0.8);
}

.glider-prev {
    left: 20px;
}

.glider-next {
    right: 20px;
}

/* Glider Dots - Universal */
.glider-dots {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 8px;
    z-index: 2;
}

.glider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid white;
    background: transparent;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.glider-dot.active,
.glider-dot:hover {
    background: white;
}

/* Mobile Control Adjustments */
@media (max-width: 767px) {
    .glider-prev,
    .glider-next {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .glider-prev {
        left: 10px;
    }
    
    .glider-next {
        right: 10px;
    }
    
    .glider-dots {
        bottom: 15px;
    }
}

/* Hide controls when only one slide */
.micro-main-slider:has(.glider-slide:only-child) .glider-prev,
.micro-main-slider:has(.glider-slide:only-child) .glider-next,
.micro-main-slider:has(.glider-slide:only-child) .glider-dots {
    display: none !important;
}
/* Hide bullets for the animate-charcter list only */
.animate-charcter {
    list-style: none !important;
    padding-left: 0 !important;
    margin-left: 0 !important;
}

.animate-charcter li {
    list-style: none !important;
    padding-left: 0 !important;
    margin-left: 0 !important;
}
.animate-charcter.simple-center {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
}

.animate-charcter.simple-center li {
    padding: 2px 0;
    margin: 2px 0;
}
/* Related Projects Styles */
#related-projects {
    margin-top: 2rem;
}

.related-projects-container {
    position: relative;
    padding: 0 15px;
}

.related-project-item {
    padding: 10px;
}

.project-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.project-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

.project-overlay {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.project-status {
    background: var(--colorPrimary);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.project-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
    line-height: 1.3;
}

.project-location {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.project-price {
    font-size: 1rem;
    font-weight: 600;
    color: var(--colorPrimary);
    margin-bottom: 12px;
}

.project-configurations {
    margin-bottom: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.config-badge {
    background: #f8f9fa;
    color: #495057;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.75rem;
    border: 1px solid #e9ecef;
}

.project-actions {
    margin-top: auto;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.project-actions .btn {
    flex: 1;
    min-width: 120px;
    font-size: 0.85rem;
    padding: 8px 12px;
}

.no-projects {
    padding: 40px 20px;
    background: #f8f9fa;
    border-radius: 12px;
}

/* Owl Carousel Customization for Related Projects */
#related-projects-carousel.owl-carousel .owl-stage {
    display: flex;
    padding: 10px 0;
}

#related-projects-carousel.owl-carousel .owl-item {
    display: flex;
    height: auto;
}

#related-projects-carousel .owl-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    pointer-events: none;
}

#related-projects-carousel .owl-nav button {
    pointer-events: all;
    background: rgba(255,255,255,0.9) !important;
    border-radius: 50% !important;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

#related-projects-carousel .owl-nav button:hover {
    background: var(--colorPrimary) !important;
    color: white !important;
}

#related-projects-carousel .owl-nav button span {
    font-size: 1.5rem;
    line-height: 1;
}

#related-projects-carousel .owl-dots {
    margin-top: 20px;
    text-align: center;
}

#related-projects-carousel .owl-dot span {
    width: 10px;
    height: 10px;
    margin: 5px;
    background: #ddd;
    transition: all 0.3s ease;
}

#related-projects-carousel .owl-dot.active span {
    background: var(--colorPrimary);
    transform: scale(1.2);
}

/* Mobile Responsive Styles */
@media (max-width: 767px) {
    .related-projects-container {
        padding: 0 5px;
    }
    
    .related-project-item {
        padding: 5px;
    }
    
    .project-image {
        height: 160px;
    }
    
    .project-content {
        padding: 15px;
    }
    
    .project-name {
        font-size: 1rem;
    }
    
    .project-actions {
        flex-direction: column;
    }
    
    .project-actions .btn {
        min-width: 100%;
    }
    
    #related-projects-carousel .owl-nav {
        display: none; /* Hide arrows on mobile for cleaner swipe experience */
    }
}

/* Desktop Specific Styles */
@media (min-width: 768px) {
    .related-projects-container {
        padding: 0 30px;
    }
}
/* Rounded corners for all specified elements */
.complete-costing-details img,
.master-plan img,
.floor-plan-img,
.floor-plan-img.blur,
.at-property-img .floor-plan-img,
.vsv-img img,
.vsv-img picture,
.vsv-img picture source,
.google-maps-wrapper iframe,
.location-map-img {
    border-radius: 8px !important;
    overflow: hidden;
}

/* Fix containers */
.google-maps-wrapper,
.location-map-image-container,
.at-property-img,
.vsv-img {
    border-radius: 8px !important;
    overflow: hidden !important;
}

/* Fix overlays to match */
.at-property-overlayer,
.vsv-text-bk,
.at-property-img::before {a
    border-radius: 8px !important;
}
/* Apply rounded corners to all bordered elements */
.border,
.border-grey,
.border.border-grey,
.shadow-sm.border,
.at-property-item.shadow-sm.border,
.master-plan .shadow-sm.border,
.master-plan .border.border-grey {
    border-radius: 8px !important;
}

/* Fix table borders in pricing section */
.table-borderless.border,
.table-striped.border,
.micro-price-table {
    border-radius: 8px !important;
    overflow: hidden;
}

/* Fix table cell borders */
.table-pricing th,
.table-pricing td,
.table-pricing .border {
    border-radius: 4px !important;
}
/* Hide the duplicate owl carousel buttons */
#ami-3 .owl-nav {
    display: none !important;
}

/* If you still want to show ONE set of buttons, use this instead: */
#ami-3.owl-carousel .owl-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    transform: translateY(-50%);
}

#ami-3 .owl-prev,
#ami-3 .owl-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5) !important;
    color: white !important;
    width: 40px;
    height: 40px;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
}

#ami-3 .owl-prev {
    left: 10px;
}

#ami-3 .owl-next {
    right: 10px;
}

/* Hide the duplicate owl dots if needed */
#ami-3 .owl-dots {
    margin-top: 15px;
    text-align: center;
}

/* If there are duplicate dots, hide one set */
#ami-3 .owl-dots:first-of-type:last-of-type {
    display: block !important;
}

#ami-3 .owl-dots + .owl-dots {
    display: none !important;
}
/* Add to your existing CSS */
.intl-tel-input {
    width: 100%;
}

.intl-tel-input .flag-container {
    padding-left: 5px;
}

.intl-tel-input .selected-flag {
    padding: 0 10px 0 15px;
    border-radius: 5px 0 0 5px;
}

.intl-tel-input input {
    padding-left: 55px !important;
    width: 100% !important;
    height: 46px;
}

.intl-tel-input input.intTelInput {
    height: 46px !important;
}

/* Mobile adjustments */
@media (max-width: 767px) {
    .intl-tel-input {
        width: 100%;
    }
    
    .intl-tel-input input {
        padding-left: 60px !important;
        font-size: 16px !important; /* Prevents iOS zoom */
    }
}

/* Fix for Bootstrap form group */
.form-group .intl-tel-input {
    position: relative;
}
/* Desktop: Equal 50/50 split */
@media (min-width: 768px) {
  .location-row {
    display: flex;
    align-items: stretch;
  }

  .map-container {
    display: flex;
    flex-direction: column;
  }

  .location-box {
    flex: 1;
    display: flex;
    flex-direction: column;
  }

  .responsive-map,
  .location-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  }

  .responsive-map iframe {
    width: 100%;
    height: 400px;
    border: 0;
  }

  .map-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 400px;
    background: #f5f5f5;
    color: #888;
    font-size: 1.1rem;
    border-radius: 8px;
  }
}

/* Mobile: Stack vertically */
@media (max-width: 767px) {
  .map-container {
    margin-bottom: 20px;
  }

  .responsive-map iframe,
  .location-img {
    height: 250px;
  }
}