/* Region Villas Component Styles */
.tag-section {
    margin-top: 30px;
    padding-bottom: 30px;
}

/* Modern card design */
.tag-card {
    height: 100%;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    background: white;
    max-width: 100%;
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
}

.tag-card:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.12);
    transform: translateY(-3px);
}

/* Fixed height image container */
.tag-card .tag-image-container {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    margin: 0;
    padding: 0;
    display: block;
    background-color: #f5f5f5; /* Resim yüklenene kadar arka plan rengi */
}

.tag-card .tag-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    transition: transform 0.3s ease;
    display: block;
    margin: 0;
    padding: 0;
    max-width: 100%;
    aspect-ratio: 400/220;
}

.tag-card:hover .tag-image-container img {
    transform: scale(1.05);
}

/* Badge positioning */
.tag-card .tag-featured {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #ff7a00;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 500;
    z-index: 2;
}

/* Content section */
.tag-card .tag-content {
    padding: 12px;
}

.tag-card .tag-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: #1a1a1a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tag-card .tag-location {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #666;
    font-size: 0.85rem;
    margin-bottom: 8px;
}

.tag-card .tag-location i {
    color: #ff7a00;
}

/* Features list */
.tag-card .tag-features {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
}

.tag-card .tag-feature-item {
    display: flex;
    align-items: center;
    gap: 3px;
    color: #666;
    font-size: 0.8rem;
}

.tag-card .tag-feature-item i {
    color: #ff7a00;
    font-size: 1rem;
}

/* Button styling */
.tag-card .tag-button {
    background: #ff7a00;
    color: white;
    padding: 6px 15px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.tag-card .tag-button:hover {
    background: #e66a00;
    transform: translateY(-2px);
}

/* Navigation arrows */
.tag-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
}

.tag-nav.prev {
    left: 5px;
}

.tag-nav.next {
    right: 5px;
}

.tag-nav i {
    color: #ff7a00;
    font-size: 0.9rem;
}

.tag-nav:hover {
    background: #ff7a00;
    transform: translateY(-50%) scale(1.1);
}

.tag-nav:hover i {
    color: white;
}

/* Swiper container */
.tag-slider-container {
    position: relative;
    padding: 0 40px;
    margin: 0;
    overflow: hidden;
}

.tag-swiper {
    width: 100%;
    margin: 0 auto;
}

.tag-swiper .swiper-slide {
    height: auto;
    width: auto;
    transition: transform 0.3s ease;
}

/* Pagination */
.tag-swiper .swiper-pagination {
    position: relative;
    margin-top: 30px;
}

.tag-swiper .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: #ddd;
    opacity: 1;
    margin: 0 5px;
}

.tag-swiper .swiper-pagination-bullet-active {
    background: #ff7a00;
    width: 30px;
    border-radius: 5px;
}

/* Bottom button */
.tag-bottom-btn {
    display: inline-block;
    background: #ff7a00;
    color: white;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
}

.tag-bottom-btn:hover {
    background: #e66a00;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(255, 122, 0, 0.3);
}

/* Responsive */
@media (max-width: 576px) {
    .tag-slider-container {
        padding: 0 25px;
        margin: 0 -5px; /* Negative margin to counteract centering issues */
        width: calc(100% + 10px); /* Compensate for the negative margin */
    }
    
    .tag-card .tag-image-container {
        height: 160px;
    }
    
    /* Ensure first slide is properly visible */
    .tag-swiper .swiper-slide:first-child {
        opacity: 1;
        visibility: visible;
    }
}

@media (max-width: 768px) {
    .tag-slider-container {
        padding: 0 30px;
    }
    
    .tag-card .tag-image-container {
        height: 180px;
    }
    
    .tag-nav {
        width: 30px;
        height: 30px;
    }
    
    .tag-nav.prev {
        left: 0;
    }
    
    .tag-nav.next {
        right: 0;
    }
}
