/* Reset ve Genel Stiller */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: url('/images/sea.webp') no-repeat center center fixed;
    background-size: cover;
    min-height: 100vh;
    position: relative;
}

/* Arka Plan Overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 159, 234, 0.85) 0%, rgba(10, 20, 107, 0.85) 100%);
    z-index: -1;
}

/* Header ve Logo */
.header {
    padding: 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    /* position: sticky; */
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.main-logo-2 {
    max-width: 900px;
    margin: 0 auto;
    padding: 0;
    animation: logoFadeIn 1.5s ease-in-out;
}

.main-logo-2 svg {
    width: 100%;
    height: auto;
}

@keyframes logoFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Ana İçerik */
.main-content {
    padding: 30px 20px;
}

.container {
    max-width: 1600px;
    margin: 0 auto;
}

/* Başlık Bölümü */
.section-title {
    font-size: 3rem;
    font-weight: 400;
    text-align: center;
    color: #fff;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    animation: titleSlideIn 1s ease-out;
}

.section-subtitle {
    font-size: 1.3rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 50px;
    font-weight: 300;
    animation: titleSlideIn 1.2s ease-out;
}

@keyframes titleSlideIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Otel Grid */
.hotels-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
    padding: 20px 0;
    justify-items: center;
}

/* Son satırda 1 veya 2 öğe kaldığında ortalamak için */
.hotels-grid > .hotel-card:nth-last-child(1):nth-child(3n + 1) {
    grid-column: 2 / 3;
}

.hotels-grid > .hotel-card:nth-last-child(2):nth-child(3n + 2),
.hotels-grid > .hotel-card:nth-last-child(1):nth-child(3n + 2) {
    grid-column: auto;
}

.hotels-grid:has(.hotel-card:nth-last-child(2):nth-child(3n + 2)) {
    justify-items: center;
}

.hotels-grid > .hotel-card:nth-last-child(2):nth-child(3n + 2) {
    margin-right: 17.5px;
}

.hotels-grid > .hotel-card:nth-last-child(1):nth-child(3n + 2) {
    margin-left: 17.5px;
}

/* Otel Kartları */
.hotel-card {
    background: #fff;
    border: 2px solid #eee;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
    color: inherit;
    display: block;
    animation: cardFadeIn 1.8s ease-out backwards;
    width: 100%;
    max-width: 500px;
}

.hotel-card:nth-child(1) { animation-delay: 0.1s; }
.hotel-card:nth-child(2) { animation-delay: 0.2s; }
.hotel-card:nth-child(3) { animation-delay: 0.3s; }
.hotel-card:nth-child(4) { animation-delay: 0.4s; }
.hotel-card:nth-child(5) { animation-delay: 0.5s; }
.hotel-card:nth-child(6) { animation-delay: 0.6s; }
.hotel-card:nth-child(7) { animation-delay: 0.7s; }

@keyframes cardFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.hotel-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

/* Otel Resmi */
.hotel-image {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.hotel-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.hotel-card:hover .hotel-image img {
    transform: scale(1.1);
}

/* Overlay ve Logo */
.hotel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.1) 100%);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 20px;
    opacity: 1;
    transition: all 0.4s ease;
}

.hotel-card:hover .hotel-overlay {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.2) 100%);
}

.hotel-logo {
    max-width: 180px;
    max-height: 100px;
    object-fit: contain!important;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.6));
    transform: scale(1);
    transition: transform 0.4s ease;
}

.hotel-card:hover .hotel-logo {
    transform: scale(1.08);
}

/* Otel Bilgileri */
.hotel-info {
    padding: 5px 25px;
}

.hotel-info h3 {
    font-size: 1.1rem;
    font-weight: 400;
    color: #1b1464;
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

.hotel-card:hover .hotel-info h3 {
    color: #244fba;
}

.hotel-info p {
    font-size: 1rem;
    color: #666;
    line-height: 1.5;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #4e73df 0%, #224abe 100%);
    padding: 60px 20px 20px;
    margin-top: 60px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 50px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-column {
    color: white;
}

/* Logo Column */
.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-logo-img {
    max-width: 200px;
    height: auto;
    filter: brightness(0) invert(1);
}

/* Footer Titles */
.footer-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Footer Links */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: white;
    transform: translateX(5px);
    text-decoration: underline;
}

/* Footer Bottom */
.footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    padding: 0 10px;
}

.footer-bottom strong {
    font-weight: 700;
    color: white;
}

/* Responsive Tasarım */
@media (max-width: 1200px) {
    .hotels-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    /* 2 sütunlu düzende son öğe tek kalırsa ortala */
    .hotels-grid > .hotel-card:nth-last-child(1):nth-child(2n + 1) {
        grid-column: 1 / -1;
        justify-self: center;
    }
    
    /* 3 sütun kurallarını sıfırla */
    .hotels-grid > .hotel-card:nth-last-child(1):nth-child(3n + 1),
    .hotels-grid > .hotel-card:nth-last-child(2):nth-child(3n + 2),
    .hotels-grid > .hotel-card:nth-last-child(1):nth-child(3n + 2) {
        grid-column: auto;
        margin: 0;
    }

    /* Footer responsive */
    .footer-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .footer-bottom {
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
    }
    .footer-bottom p {
        margin-top: 8px;
    }
    .hotels-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    /* Tek sütunda ortalama gereksiz - tüm kuralları sıfırla */
    .hotels-grid > .hotel-card:nth-last-child(1):nth-child(2n + 1),
    .hotels-grid > .hotel-card:nth-last-child(1):nth-child(3n + 1),
    .hotels-grid > .hotel-card:nth-last-child(2):nth-child(3n + 2),
    .hotels-grid > .hotel-card:nth-last-child(1):nth-child(3n + 2) {
        grid-column: auto;
        margin: 0;
    }
    
    .hotel-image {
        height: 250px;
    }
    
    .main-logo-2 {
        max-width: 450px;
    }
    
    .header {
        padding: 0;
    }
    
    .main-content {
        padding: 40px 15px;
    }

    /* Footer responsive */
    .footer-container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .footer-logo {
        justify-content: center;
    }

    .footer-links a:hover {
        transform: none;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 1.8rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    .hotel-info h3 {
        font-size: 0.9rem;
    }
    
    .main-logo-2 {
        max-width: 350px;
    }
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Loading Animation */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}
