.iti { width: 100%; }
.iti__flag-container { border-radius: 50px 0 0 50px; }
.iti--separate-dial-code .iti__selected-dial-code {
    padding-left: 10px;
    font-size: 0.9rem;
}
/* Specific override for phone input to prevent overlap */
#quizPhone {
    padding-left: 95px !important;
}
.select2-container--default .select2-selection--single {
    background-color: #f1f1f1 !important;
    border: none !important;
    border-radius: 50px !important;
    height: 48px !important;
    display: flex;
    align-items: center;
}
.select2-container--default .select2-selection--single .select2-selection__rendered {
    padding-left: 25px !important;
    color: #333 !important;
}
.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 46px !important;
    right: 15px !important;
}

/* Property Carousel Styles */
.prop-carousel {
    position: relative;
    width: 100%;
    height: 450px;
    overflow: hidden;
    border-radius: 25px;
}
.prop-track-wrapper {
    width: 100%;
    height: 100%;
    overflow: hidden;
}
.prop-track {
    display: flex;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}
.prop-slide {
    min-width: 100%;
    flex-shrink: 0;
    height: 100%;
    object-fit: cover;
    position: relative;
    display: block !important;
}
.prop-prev, .prop-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(8px);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    z-index: 5;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    opacity: 0;
}
.stack-card:hover .prop-prev, 
.stack-card:hover .prop-next {
    opacity: 1;
}
.prop-prev:hover, .prop-next:hover {
    background: rgba(255,255,255,0.4);
    transform: translateY(-50%) scale(1.1);
}
.prop-prev { left: 15px; }
.prop-next { right: 15px; }

.prop-thumbs {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 10;
    padding: 4px;
    border-radius: 12px;
    opacity: 0;
    transition: all 0.3s ease;
    max-width: 90%;
    overflow-x: auto;
    scrollbar-width: none;
}
.prop-thumbs::-webkit-scrollbar { display: none; }

.stack-card:hover .prop-thumbs {
    opacity: 1;
}
.prop-thumb {
    width: 45px;
    height: 45px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s ease;
    flex-shrink: 0;
    opacity: 0.7;
}
.prop-thumb:hover { opacity: 1; }
.prop-thumb.active {
    border-color: #fff;
    opacity: 1;
    transform: scale(1.05);
}
.prop-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.stack-card .agent-info img {
    border: 2px solid rgba(255,255,255,0.2);
}
.stack-card:not(.duo) .agent-info img {
    border: 2px solid rgba(0,0,0,0.1);
}
.stack-card .agent-info span {
    font-size: 0.85rem;
}
.stack-card .agent-info a {
    color: #333;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
}
.stack-card.duo .agent-info a {
    color: rgba(255,255,255,0.9);
}
.stack-card .agent-info a:hover {
    transform: scale(1.15);
    color: #c9a35d;
}
.stack-card .agent-info i.fa-phone {
    transform: rotate(90deg); /* Adjust orientation if it feels flipped */
}
.stack-card.duo .agent-info a:hover {
    color: #fff;
}
.stack-card .price-tag {
    font-size: 1.4rem !important;
}
@media (max-width: 991px) {
    .prop-carousel {
        height: 300px;
    }
    .stack-card .price-tag {
        font-size: 1.2rem !important;
    }
}

/* Disable stacking for specific cards */
.stack-card.no-stack {
    position: relative !important;
    top: auto !important;
    margin-bottom: 30px !important;
    transform: none !important;
    z-index: 1 !important;
}
.dynamic-listings-container {
    padding-bottom: 40px;
}
