/* Ceylon Escapes - Inviting Hotels Section */
#ceylon-escape-section {
    padding: 80px 0;
    background: linear-gradient(to right, #f9fafb, #f2f7fa);
    font-family: 'Poppins', sans-serif;
    position: relative;
    overflow: hidden;
}

/* Background pattern */
#ceylon-escape-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3z' fill='%2305a3b7' fill-opacity='0.04' fill-rule='evenodd'/%3E%3C/svg%3E");
    z-index: 0;
    opacity: 0.7;
}

.ce-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

/* Header Section */
.ce-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 50px;
    position: relative;
}

.ce-title-wrapper {
    flex: 0 0 30%;
}

.ce-accent-line {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #05a3b7, #037ade);
    margin-bottom: 15px;
    position: relative;
    overflow: hidden;
}

.ce-accent-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.7);
    animation: ce-shimmer 2.5s infinite;
}

@keyframes ce-shimmer {
    0% { left: -100%; }
    50% { left: 100%; }
    100% { left: 100%; }
}

.ce-section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #222;
    margin: 0;
    position: relative;
    overflow: hidden;
}

.ce-section-title span {
    display: inline-block;
    transform: translateY(100%);
    opacity: 0;
    animation: ce-title-reveal 0.8s cubic-bezier(0.215, 0.61, 0.355, 1) forwards;
    animation-delay: calc(0.05s * var(--index));
}

@keyframes ce-title-reveal {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.ce-description-wrapper {
    flex: 0 0 60%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.ce-description {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #444;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(20px);
    animation: ce-fade-up 0.8s forwards;
    animation-delay: 0.3s;
}

.ce-view-all {
    align-self: flex-start;
    display: inline-block;
    padding: 10px 30px;
    background: linear-gradient(135deg, #05a3b7, #037ade);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 200;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(5, 163, 183, 0.2);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px);
    animation: ce-fade-up 0.8s forwards;
    animation-delay: 0.5s;
}

.ce-view-all::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transform: skewX(-30deg);
    transition: all 0.5s ease;
}

.ce-view-all:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(5, 163, 183, 0.3);
}

.ce-view-all:hover::before {
    animation: ce-button-shine 0.8s forwards;
}

@keyframes ce-button-shine {
    100% {
        left: 200%;
    }
}

@keyframes ce-fade-up {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hotel Grid Layout */
.ce-hotel-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;
}

.ce-featured-hotel {
    height: 100%;
}

.ce-hotel-regular-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 20px;
}

/* Hotel Card Styling */
.ce-hotel-card {
    border-radius: 12px;
    overflow: hidden;
    background: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    opacity: 0;
    transform: translateY(30px);
}

.ce-card-inner {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.ce-image-wrapper {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.ce-featured-hotel .ce-image-wrapper {
    height: 300px;
}

.ce-hotel-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.ce-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.2));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ce-hotel-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.ce-hotel-name {
    font-size: 1.3rem;
    font-weight: 600;
    color: #222;
    margin: 0 0 10px;
    position: relative;
}

.ce-hotel-name::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #05a3b7, #037ade);
    transition: width 0.3s ease;
}

.ce-hotel-description {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #666;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ce-hotel-location {
    display: flex;
    align-items: center;
    margin-top: auto;
    font-size: 0.9rem;
    color: #05a3b7;
}

.ce-location-icon {
    margin-right: 5px;
}

.ce-city {
    font-weight: 200;
}

/* Hotel Card Hover Effects */
.ce-hotel-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.ce-hotel-card:hover .ce-hotel-image {
    transform: scale(1.05);
}

.ce-hotel-card:hover .ce-overlay {
    opacity: 1;
}

.ce-hotel-card:hover .ce-hotel-name::after {
    width: 40px;
}

/* Animation for cards appearing */
@keyframes ce-card-appear {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .ce-header {
        flex-direction: column;
    }
    
    .ce-title-wrapper {
        margin-bottom: 30px;
    }
    
    .ce-hotel-grid {
        grid-template-columns: 1fr;
    }
    
    .ce-hotel-regular-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .ce-section-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    #ceylon-escape-section {
        padding: 60px 0;
    }
    
    .ce-hotel-regular-grid {
        grid-template-columns: 1fr;
    }
    
    .ce-section-title {
        font-size: 2rem;
    }
    
    .ce-featured-hotel .ce-image-wrapper {
        height: 250px;
    }
}

/* Accessibility Considerations */
@media (prefers-reduced-motion: reduce) {
    .ce-accent-line::after,
    .ce-section-title span,
    .ce-description,
    .ce-view-all,
    .ce-hotel-card,
    .ce-hotel-image,
    .ce-hotel-name::after {
        animation: none !important;
        transition: none !important;
        transform: none !important;
        opacity: 1 !important;
    }
} 