/* Genel mobil düzeltmeler */
* {
    box-sizing: border-box;
}

html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

.pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    margin-top: 40px;
    margin-bottom: 20px;
    font-family: 'Poppins', sans-serif;
    gap: 5px;
}

.page-btn {
    background-color: #c31a25;
    color: white;
    border: none;
    padding: 10px 15px;
    margin: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 5px;
    font-weight: 500;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    min-width: 42px;
    text-align: center;
}

.page-btn:hover:not(:disabled) {
    background-color: #9e1520;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.page-btn:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    opacity: 0.7;
}

#pageNumbers {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 5px;
}

.page-number {
    background-color: #f0f0f0;
    color: #333;
    border: none;
    padding: 8px 0;
    margin: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 5px;
    font-weight: 500;
    min-width: 36px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-number:hover {
    background-color: #e0e0e0;
    transform: translateY(-2px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.page-number.active {
    background-color: #c31a25;
    color: white;
    box-shadow: 0 2px 5px rgba(195, 26, 37, 0.3);
    pointer-events: none;
}

.page-ellipsis {
    padding: 8px 6px;
    margin: 0;
    font-weight: bold;
    color: #555;
    min-width: 20px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    user-select: none;
}

.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #c31a25;
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 20px;
    cursor: pointer;
    display: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    z-index: 1000;
    padding: 0;
    overflow: hidden;
}

.back-to-top:hover {
    background-color: #9e1520;
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.back-to-top .icon-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

.back-to-top i {
    transition: transform 0.3s ease;
}

.back-to-top:hover i {
    transform: translateY(-2px);
}

@media screen and (max-width: 768px) {
    .back-to-top {
        bottom: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .back-to-top .icon-container {
        position: relative;
        left: 0.5px; /* Gerekirse bu değeri ayarlayın */
        top: 0.5px; /* Gerekirse bu değeri ayarlayın */
    }
}

/* Responsive tasarım için medya sorguları */
@media screen and (max-width: 768px) {
    /* Yurt kartları mobil optimizasyonu */
    .yurt-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 0 10px;
    }
    
    .yurt-card img {
        height: 180px;
    }
    
    .yurt-card-content {
        padding: 12px;
    }
    
    .yurt-card h3 {
        font-size: 1.1em;
    }
    
    .yurt-card p {
        font-size: 0.9em;
    }
    
    .yurt-card .btn {
        padding: 10px 16px;
        font-size: 0.9em;
    }

    .pagination {
        flex-direction: row;
        align-items: center;
        justify-content: center;
        flex-wrap: wrap;
        gap: 8px;
    }

    .page-btn {
        min-width: 36px;
        padding: 8px 12px;
        font-size: 14px;
        order: 1;
    }

    #pageNumbers {
        order: 0;
        width: 100%;
        margin-bottom: 10px;
        justify-content: center;
    }

    .page-number {
        min-width: 32px;
        height: 32px;
        padding: 6px 0;
        font-size: 14px;
    }
    
    .page-ellipsis {
        padding: 6px 4px;
        font-size: 14px;
    }
}

@media screen and (max-width: 480px) {
    .yurt-card img {
        height: 160px;
    }
    
    .pagination {
        gap: 5px;
    }
    
    .page-btn {
        min-width: 32px;
        padding: 6px 10px;
        font-size: 13px;
    }
    
    .page-number {
        min-width: 28px;
        height: 28px;
        padding: 5px 0;
        font-size: 13px;
    }
    
    .page-ellipsis {
        padding: 5px 3px;
        font-size: 13px;
    }
}

.search-container {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

#searchInput {
    width: 50%;
    max-width: 400px;
    padding: 10px;
    font-size: 16px;
    border: 2px solid #c31a25;
    border-radius: 5px 0 0 5px;
    outline: none;
}

#searchButton, #clearSearch {
    padding: 10px 15px;
    background-color: #c31a25;
    color: white;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
}

#searchButton {
    border-radius: 0 5px 5px 0;
}

#clearSearch {
    border-radius: 5px;
    margin-left: 10px;
}

#searchButton:hover, #clearSearch:hover {
    background-color: #9e1520;
}

#searchResults {
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

@media screen and (max-width: 768px) {
    .search-container {
        padding: 0 10px;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    #searchInput {
        width: 100%;
        max-width: 300px;
        border-radius: 5px;
    }
    
    #searchButton, #clearSearch {
        border-radius: 5px;
        margin: 0;
        flex: 1;
        max-width: 145px;
    }
}

.cookie-consent {
    display: none;
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 400px;
    background-color: #ffffff;
    color: #333333;
    text-align: center;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    font-family: Arial, sans-serif;
  }
  
  .cookie-content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .cookie-content p {
    margin-bottom: 15px;
    font-size: 14px;
    line-height: 1.5;
  }
  
  .cookie-link {
    color: #ff0000;
    text-decoration: none;
    font-weight: bold;
  }
  
  .cookie-link:hover {
    text-decoration: underline;
  }
  
  .cookie-button {
    background-color: #ff0000;
    color: white;
    border: none;
    padding: 10px 20px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 4px 2px;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.3s ease;
  }
  
  .cookie-button:hover {
    background-color: #b30600;
  }
  
  @media screen and (max-width: 768px) {
    .cookie-consent {
      bottom: 0;
      left: 0;
      right: 0;
      width: 98%;
      max-width: none;
      border-radius: 0;
      transform: none;
      padding: 15px;
    }
  
    .cookie-content p {
      font-size: 13px;
    }
  
    .cookie-button {
      width: 100%;
      padding: 12px;
      font-size: 14px;
    }
  }