/**
 * Star Inn Suites & Retreat - Card Components
 *
 * This file contains styles for all card-based components including
 * destination cards, property cards, category cards, testimonials, etc.
 */

/* ===== Grid Layouts ===== */
.cards-grid-8 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

@media (min-width: 640px) {
    .cards-grid-8 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    .cards-grid-8 {
        grid-template-columns: repeat(4, 1fr);
    }
}

.cards-grid-3x2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .cards-grid-3x2 {
        grid-template-columns: repeat(3, 1fr);
    }
}

.cards-grid-3 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .cards-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .cards-grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

.categories-grid-3 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

@media (min-width: 640px) {
    .categories-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 900px) {
    .categories-grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ===== Destination Cards ===== */
.destination-card {
    position: relative;
    height: 320px;
    border-radius: 1rem;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.5s ease, box-shadow 0.3s ease;
}

.destination-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(212, 169, 50, 0.2);
}

.destination-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.destination-card:hover img {
    transform: scale(1.1);
}

.destination-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 30%, rgba(7,13,21,0.95) 100%);
}

.destination-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.25rem;
    z-index: 5;
    transition: transform 0.3s;
}

.destination-card:hover .destination-content {
    transform: translateY(-10px);
}

.destination-count {
    color: var(--gold-400);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.destination-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.35rem;
    margin-top: 0.25rem;
}

.destination-arrow {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 5;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--gradient-gold);
    color: var(--navy-950);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s;
    font-size: 0.85rem;
}

.destination-card:hover .destination-arrow {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Property Cards ===== */
.property-card {
    background: linear-gradient(135deg, rgba(212, 169, 50, 0.05), rgba(26, 42, 66, 0.5));
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid rgba(212, 169, 50, 0.1);
    transition: all 0.4s;
}

.property-card:hover {
    border-color: rgba(212, 169, 50, 0.3);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.property-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.property-card:hover .property-image img {
    transform: scale(1.08);
}

.property-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    padding: 0.25rem 0.75rem;
    background: var(--gradient-gold);
    color: var(--navy-950);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    border-radius: 2rem;
}

.property-favorite {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(7,13,21,0.6);
    backdrop-filter: blur(8px);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    font-size: 0.8rem;
}

.property-favorite:hover {
    background: var(--brand-coral);
}

.property-content {
    padding: 1.25rem;
}

.property-rating {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
}

.property-rating i {
    color: var(--gold-500);
}

.property-rating span {
    font-weight: 600;
}

.property-rating .reviews {
    color: rgba(255,255,255,0.5);
    font-weight: 400;
}

.property-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.property-location {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: rgba(255,255,255,0.6);
    font-size: 0.85rem;
}

.property-location i {
    color: var(--gold-500);
    font-size: 0.75rem;
}

/* ===== Category Cards ===== */
.category-card {
    background: linear-gradient(135deg, rgba(212, 169, 50, 0.08), rgba(26, 42, 66, 0.5));
    border: 1px solid rgba(212, 169, 50, 0.15);
    border-radius: 1rem;
    padding: 2.5rem 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.4s;
}

.category-card:hover {
    border-color: var(--gold-500);
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(212, 169, 50, 0.15);
}

.category-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.25rem;
    border-radius: 1rem;
    background: var(--gradient-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--navy-950);
    font-size: 2rem;
    transition: transform 0.3s;
}

.category-card:hover .category-icon {
    transform: scale(1.1) rotate(5deg);
}

.category-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.category-count {
    color: var(--gold-500);
    font-size: 0.9rem;
    font-weight: 500;
}

/* ===== Experience Cards ===== */
.experience-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 768px) {
    .experience-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.experience-card {
    position: relative;
    height: 400px;
    overflow: hidden;
    cursor: pointer;
}

.experience-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.experience-card:hover img {
    transform: scale(1.1);
}

.experience-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(7,13,21,0.9) 100%);
}

.experience-content {
    position: absolute;
    bottom: 2rem;
    left: 0;
    right: 0;
    text-align: center;
    z-index: 5;
    padding: 0 1rem;
}

.experience-label {
    font-style: italic;
    color: var(--gold-400);
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.experience-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.75rem;
    font-weight: 500;
}

/* ===== Testimonial Cards ===== */
.testimonial-card {
    background: linear-gradient(135deg, rgba(26, 42, 66, 0.6), rgba(26, 42, 66, 0.4));
    border: 1px solid rgba(212, 169, 50, 0.15);
    border-radius: 1rem;
    padding: 1.25rem;
    transition: all 0.4s;
    display: flex;
    flex-direction: column;
}

.testimonial-card:hover {
    border-color: rgba(212, 169, 50, 0.3);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
    transform: translateY(-5px);
}

.testimonial-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 0.75rem;
    margin-bottom: 1.25rem;
}

.testimonial-stars {
    margin-bottom: 0.75rem;
    color: var(--gold-500);
    font-size: 0.9rem;
}

.testimonial-stars i {
    margin-right: 2px;
}

.testimonial-text {
    color: rgba(255,255,255,0.8);
    font-style: italic;
    line-height: 1.8;
    margin-bottom: 1.25rem;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: auto;
}

.testimonial-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--gradient-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--navy-950);
    flex-shrink: 0;
}

.testimonial-name {
    font-weight: 600;
    font-size: 0.95rem;
}

.testimonial-location {
    color: rgba(255,255,255,0.5);
    font-size: 0.8rem;
}

.testimonial-nav {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    margin-top: 2.5rem;
}
div#categories-grid {
    position: relative;
}

/* ===== Skeleton Loading ===== */
@keyframes skeleton-shimmer {
    0%   { transform: translateX(-100%); }
    100% { transform: translateX(250%); }
}

/* Apply to any skeleton block — gives a grey base + sliding white flash */
.skeleton-shimmer {
    position: relative;
    overflow: hidden;
    background: #3a4f63;
}

.skeleton-shimmer::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.18) 50%,
        transparent 100%
    );
    animation: skeleton-shimmer 1.6s ease-in-out infinite;
}

/* Destination skeleton — same dimensions as .destination-card */
.skeleton-dest {
    height: 320px;
    border-radius: 1rem;
}

/* Property skeleton — mirrors .property-card */
.skeleton-prop {
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.skeleton-prop-image {
    height: 220px;
    width: 100%;
}

.skeleton-prop-content {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    background: #2a3a4d;
}

/* Reusable text-line placeholders */
.sk-line {
    border-radius: 4px;
    height: 12px;
}

.sk-line-sm  { width: 45%; }
.sk-line-md  { width: 70%; }
.sk-line-lg  { width: 90%; }
.sk-line-h2  { height: 20px; }