/**
 * Location Category Archive Styles
 * 3-Column Grid Layout for Istanbul.com
 * Version: 1.1.0
 */

/* ========================================
   PAGE HEADER
   ======================================== */

.location-category-archive {
    padding-bottom: 60px;
    background: #f8f9fa;
    min-height: 100vh;
}

.location-category-header {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    padding: 60px 0;
    margin-bottom: 50px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.location-category-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="0.5"/></svg>');
    background-size: 60px 60px;
    opacity: 0.5;
}

.location-category-header .container {
    position: relative;
    z-index: 1;
}

.location-category-title {
    color: #ffffff;
    font-size: 42px;
    font-weight: 700;
    margin: 0 0 15px 0;
    text-transform: none;
    letter-spacing: -0.5px;
}

.location-category-description {
    color: rgba(255, 255, 255, 0.85);
    font-size: 18px;
    max-width: 700px;
    margin: 0 auto 20px;
    line-height: 1.7;
}

.location-category-count {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 500;
    backdrop-filter: blur(10px);
}

/* ========================================
   GRID LAYOUT
   ======================================== */

.location-category-content {
    max-width: 1200px;
    margin: 0 auto;
}

.location-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

/* ========================================
   LOCATION CARD
   ======================================== */

.location-card {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.location-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Card Image Link */
.location-card-image-link {
    display: block;
    text-decoration: none;
    overflow: hidden;
    border-radius: 20px 20px 0 0;
}

/* Card Image */
.location-card-image {
    position: relative;
    overflow: hidden;
    height: 220px;
    border-radius: 20px 20px 0 0;
}

.location-card-image img,
.location-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 20px 20px 0 0;
}

.location-card:hover .location-card-image img,
.location-card:hover .location-thumbnail {
    transform: scale(1.08);
}

.location-no-image {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e8e8e8 0%, #f5f5f5 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px 20px 0 0;
}

.location-no-image i {
    font-size: 48px;
    color: #bdbdbd;
}

/* Card Content */
.location-card-content {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.location-card-title {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 10px 0;
    line-height: 1.4;
    color: #1a1a2e;
}

.location-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.location-card-title a:hover {
    color: #0f3460;
}

/* Card Meta - Reading Time */
.location-card-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 12px;
}

.location-reading-time {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #888888;
    font-size: 13px;
    font-weight: 500;
}

.location-reading-time i {
    font-size: 12px;
    color: #aaaaaa;
}

/* Card Excerpt */
.location-card-excerpt {
    color: #666666;
    font-size: 14px;
    line-height: 1.7;
    margin: 0 0 20px 0;
    flex-grow: 1;
}

/* Read More Link */
.location-read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #1a1a2e;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    padding: 12px 24px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: auto;
    width: fit-content;
}

.location-read-more i {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.location-read-more:hover {
    background: linear-gradient(135deg, #1a1a2e 0%, #0f3460 100%);
    color: #ffffff;
    transform: translateX(5px);
    box-shadow: 0 8px 20px rgba(26, 26, 46, 0.25);
}

.location-read-more:hover i {
    transform: translateX(4px);
}

/* ========================================
   PAGINATION
   ======================================== */

.location-pagination {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.location-pagination ul {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.location-pagination li {
    margin: 0;
}

.location-pagination a,
.location-pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 16px;
    background: #ffffff;
    color: #1a1a2e;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.location-pagination a:hover {
    background: #1a1a2e;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(26, 26, 46, 0.3);
}

.location-pagination .current {
    background: #1a1a2e;
    color: #ffffff;
}

.location-pagination .prev,
.location-pagination .next {
    gap: 8px;
}

.location-pagination .dots {
    background: transparent;
    box-shadow: none;
    color: #999;
}

/* ========================================
   NO RESULTS
   ======================================== */

.location-no-results {
    text-align: center;
    padding: 80px 20px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.location-no-results i {
    font-size: 64px;
    color: #e0e0e0;
    margin-bottom: 20px;
}

.location-no-results h2 {
    font-size: 24px;
    color: #1a1a2e;
    margin: 0 0 10px 0;
}

.location-no-results p {
    color: #666666;
    font-size: 16px;
    margin: 0;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media screen and (max-width: 1024px) {
    .location-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .location-category-title {
        font-size: 36px;
    }
    
    .location-card-image {
        height: 200px;
    }
}



@media screen and (max-width: 768px) {
    .location-category-archive {
        padding-bottom: 40px;
    }

    .admin_bar_showing .location-category-archive {
        padding-top: 156px!important;
        padding-bottom: 40px;
    }
    
    .location-category-header {
        padding: 40px 0;
        margin-bottom: 30px;
    }
    
    .location-category-title {
        font-size: 28px;
    }
    
    .location-category-description {
        font-size: 16px;
    }
    
    .location-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .location-card {
        border-radius: 16px;
    }
    
    .location-card-image-link,
    .location-card-image,
    .location-card-image img,
    .location-thumbnail,
    .location-no-image {
        border-radius: 16px 16px 0 0;
    }
    
    .location-card-image {
        height: 200px;
    }
    
    .location-card-content {
        padding: 20px;
    }
    
    .location-card-title {
        font-size: 18px;
    }
    
    .location-pagination a,
    .location-pagination span {
        min-width: 40px;
        height: 40px;
        padding: 0 12px;
        font-size: 13px;
    }
}

@media screen and (max-width: 480px) {
    .location-category-title {
        font-size: 24px;
    }
    
    .location-category-count {
        font-size: 13px;
        padding: 6px 16px;
    }
    
    .location-card-image {
        height: 180px;
    }
    
    .location-read-more {
        width: 100%;
        justify-content: center;
    }
}

/* ========================================
   ANIMATIONS
   ======================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.location-card {
    animation: fadeInUp 0.6s ease forwards;
}

.location-card:nth-child(1) { animation-delay: 0.1s; }
.location-card:nth-child(2) { animation-delay: 0.2s; }
.location-card:nth-child(3) { animation-delay: 0.3s; }
.location-card:nth-child(4) { animation-delay: 0.15s; }
.location-card:nth-child(5) { animation-delay: 0.25s; }
.location-card:nth-child(6) { animation-delay: 0.35s; }
.location-card:nth-child(7) { animation-delay: 0.2s; }
.location-card:nth-child(8) { animation-delay: 0.3s; }
.location-card:nth-child(9) { animation-delay: 0.4s; }

/* ========================================
   SEARCH PAGE STYLES
   ======================================== */

.location-search-page .location-category-title span {
    color: #e94560;
}

.location-search-form-wrapper {
    max-width: 600px;
    margin: 30px auto 20px;
}

.location-search-form-wrapper form {
    display: flex;
    gap: 0;
    background: #ffffff;
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.location-search-form-wrapper input[type="search"],
.location-search-form-wrapper input[type="text"] {
    flex: 1;
    border: none;
    padding: 18px 25px;
    font-size: 16px;
    outline: none;
    background: transparent;
    color: #333;
}

.location-search-form-wrapper input[type="search"]::placeholder,
.location-search-form-wrapper input[type="text"]::placeholder {
    color: #999;
}

.location-search-form-wrapper button,
.location-search-form-wrapper input[type="submit"] {
    background: linear-gradient(135deg, #e94560 0%, #c73e54 100%);
    border: none;
    color: #ffffff;
    padding: 18px 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.location-search-form-wrapper button:hover,
.location-search-form-wrapper input[type="submit"]:hover {
    background: linear-gradient(135deg, #c73e54 0%, #a33347 100%);
}

.location-search-form-wrapper .is-search-icon {
    display: none;
}

/* Category Tags on Search Results */
.location-card-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}

.location-category-tag {
    display: inline-block;
    padding: 4px 10px;
    background: #f0f0f0;
    color: #666;
    font-size: 11px;
    font-weight: 500;
    border-radius: 15px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.location-category-tag:hover {
    background: #e94560;
    color: #ffffff;
    text-decoration: none;
}

/* Search No Results */
.location-search-page .location-no-results .fa-search {
    font-size: 60px;
}

/* Responsive Search Form */
@media (max-width: 768px) {
    .location-search-form-wrapper {
        padding: 0 15px;
    }
    
    .location-search-form-wrapper form {
        /* flex-direction: column; */
        border-radius: 15px;
    }
    
    .location-search-form-wrapper input[type="search"],
    .location-search-form-wrapper input[type="text"] {
        padding: 15px 20px;
        text-align: center;
    }
    
    .location-search-form-wrapper button,
    .location-search-form-wrapper input[type="submit"] {
        padding: 15px 20px;
        border-radius: 0 0 15px 15px;
    }
}
