/**
 * Star Inn Suites & Retreat - Destinations Page Styles
 */

/* Page Hero */
.page-hero {
    position: relative;
    height: 50vh;
    min-height: 400px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.page-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}

.page-hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(7,13,21,0.85) 0%, rgba(7,13,21,0.7) 50%, rgba(7,13,21,0.85) 100%);
}

.page-hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    width: 100%;
}

.page-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1.25rem;
    margin-bottom: 1.25rem;
    background: rgba(212, 169, 50, 0.15);
    border: 1px solid rgba(212, 169, 50, 0.4);
    border-radius: 3rem;
    animation: slideUp 0.8s ease 0.2s both;
}

.page-hero-badge i {
    color: var(--gold-500);
    font-size: 0.8rem;
}

.page-hero-badge span {
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    color: var(--gold-300);
    text-transform: uppercase;
}

.page-hero-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 1rem;
    animation: slideUp 0.8s ease 0.4s both;
}

.page-hero-title span {
    font-weight: 600;
    font-style: italic;
}

.page-hero-subtitle {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.8);
    max-width: 600px;
    margin: 0 auto;
    animation: slideUp 0.8s ease 0.6s both;
}

.breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 2rem;
    animation: slideUp 0.8s ease 0.8s both;
}

.breadcrumb a {
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
    transition: color 0.3s;
}

.breadcrumb a:hover {
    color: var(--gold-400);
}

.breadcrumb span {
    color: var(--gold-500);
    font-size: 0.9rem;
}

.breadcrumb i {
    color: rgba(255,255,255,0.4);
    font-size: 0.7rem;
}

/* Search & Filter Bar */
.filter-bar {
    background: var(--navy-900);
    padding: 1.5rem 0;
    border-bottom: 1px solid rgba(212, 169, 50, 0.1);
}

.filter-bar-inner {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 768px) {
    .filter-bar-inner {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.filter-left {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-search {
    position: relative;
    flex: 1;
    min-width: 250px;
}

.filter-search input {
    width: 100%;
    padding: 0.875rem 1rem 0.875rem 3rem;
    background: rgba(212, 169, 50, 0.08);
    border: 1px solid rgba(212, 169, 50, 0.2);
    border-radius: 0.5rem;
    color: #fff;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.filter-search input:focus {
    outline: none;
    border-color: var(--gold-500);
    background: rgba(212, 169, 50, 0.12);
}

.filter-search input::placeholder {
    color: rgba(255,255,255,0.5);
}

.filter-search i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gold-500);
}

.filter-select {
    padding: 0.875rem 2.5rem 0.875rem 1rem;
    background: rgba(212, 169, 50, 0.08);
    border: 1px solid rgba(212, 169, 50, 0.2);
    border-radius: 0.5rem;
    color: #fff;
    font-size: 0.9rem;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23d4a932' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    cursor: pointer;
    transition: all 0.3s;
}

.filter-select:focus {
    outline: none;
    border-color: var(--gold-500);
}

.filter-select option {
    background: var(--navy-900);
    color: #fff;
}

.filter-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.results-count {
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
}

.results-count strong {
    color: var(--gold-500);
}

.view-toggle {
    display: flex;
    gap: 0.5rem;
}

.view-btn {
    width: 40px;
    height: 40px;
    border-radius: 0.5rem;
    background: rgba(212, 169, 50, 0.08);
    border: 1px solid rgba(212, 169, 50, 0.2);
    color: rgba(255,255,255,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.view-btn:hover {
    border-color: var(--gold-500);
    color: var(--gold-500);
}

.view-btn.active {
    background: var(--gold-500);
    border-color: var(--gold-500);
    color: var(--navy-950);
}

/* Region Tags */
.region-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.region-tag {
    padding: 0.5rem 1.25rem;
    background: rgba(212, 169, 50, 0.08);
    border: 1px solid rgba(212, 169, 50, 0.2);
    border-radius: 2rem;
    color: rgba(255,255,255,0.8);
    font-size: 0.85rem;
    transition: all 0.3s;
    cursor: pointer;
}

.region-tag:hover {
    border-color: var(--gold-500);
    color: var(--gold-400);
}

.region-tag.active {
    background: var(--gradient-gold);
    border-color: var(--gold-500);
    color: var(--navy-950);
    font-weight: 600;
}

/* Destinations Grid */
.destinations-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

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

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

.destination-card {
    position: relative;
    height: 350px;
    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 25px 50px 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 20%, rgba(7,13,21,0.95) 100%);
}

.destination-overlay {
    position: absolute;
    inset: 0;
    background: rgba(212, 169, 50, 0.2);
    opacity: 0;
    transition: opacity 0.3s;
}

.destination-card:hover .destination-overlay {
    opacity: 1;
}

.destination-content {
    position: absolute;
    bottom: 0; left: 0;
    right: 0;
    padding: 1.5rem;
    z-index: 5;
}

.destination-region {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(212, 169, 50, 0.2);
    border: 1px solid rgba(212, 169, 50, 0.4);
    border-radius: 2rem;
    font-size: 0.7rem;
    color: var(--gold-400);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.destination-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
    transition: color 0.3s;
}

.destination-card:hover .destination-name {
    color: var(--gold-400);
}

.destination-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: rgba(255,255,255,0.7);
    font-size: 0.85rem;
}

.destination-meta span {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

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

.destination-arrow {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 5;
    width: 40px;
    height: 40px;
    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;
}

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

/* Featured Destination */
.featured-destination {
    grid-column: span 2;
    height: 450px;
}

@media (max-width: 767px) {
    .featured-destination {
        grid-column: span 2;
    }
}

.featured-destination .destination-content {
    padding: 2rem;
}

.featured-destination .destination-name {
    font-size: 2rem;
}

.featured-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 5;
    padding: 0.4rem 1rem;
    background: var(--gradient-gold);
    color: var(--navy-950);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-radius: 2rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.featured-badge i {
    font-size: 0.65rem;
}

/* List View */
.destinations-list {
    display: none;
    flex-direction: column;
    gap: 1.5rem;
}

.destinations-list.active {
    display: flex;
}

.destinations-grid.hidden {
    display: none;
}

.destination-list-card {
    display: flex;
    background: linear-gradient(135deg, rgba(212, 169, 50, 0.05), rgba(26, 42, 66, 0.5));
    border: 1px solid rgba(212, 169, 50, 0.15);
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.4s;
}

.destination-list-card:hover {
    border-color: rgba(212, 169, 50, 0.3);
    transform: translateX(10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.destination-list-image {
    width: 300px;
    height: 200px;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.destination-list-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

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

.destination-list-content {
    flex: 1;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.destination-list-region {
    display: inline-block;
    width: fit-content;
    padding: 0.25rem 0.75rem;
    background: rgba(212, 169, 50, 0.15);
    border-radius: 2rem;
    font-size: 0.7rem;
    color: var(--gold-500);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.destination-list-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.destination-list-desc {
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.destination-list-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.destination-list-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255,255,255,0.7);
    font-size: 0.85rem;
}

.destination-list-meta i {
    color: var(--gold-500);
}

.destination-list-btn {
    margin-left: auto;
}

@media (max-width: 768px) {
    .destination-list-card {
        flex-direction: column;
    }
    .destination-list-image {
        width: 100%;
        height: 180px;
    }
    .destination-list-btn {
        margin-left: 0;
        margin-top: 1rem;
    }
}

/* Pagination */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 3rem;
}

.page-btn {
    width: 44px;
    height: 44px;
    border-radius: 0.5rem;
    background: rgba(212, 169, 50, 0.08);
    border: 1px solid rgba(212, 169, 50, 0.2);
    color: rgba(255,255,255,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.page-btn:hover {
    border-color: var(--gold-500);
    color: var(--gold-500);
}

.page-btn.active {
    background: var(--gradient-gold);
    border-color: var(--gold-500);
    color: var(--navy-950);
    font-weight: 600;
}

.page-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.page-dots {
    color: rgba(255,255,255,0.4);
    padding: 0 0.5rem;
}

/* Loading Spinner */
.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 0;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(212, 169, 50, 0.2);
    border-top-color: var(--gold-500);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
}

.empty-state-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 1.5rem;
    background: rgba(212, 169, 50, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--gold-500);
}

.empty-state h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: rgba(255,255,255,0.6);
    margin-bottom: 1.5rem;
}
