/**
 * SMESTAJ Plugin - Main Stylesheet
 * Moderan, responsive dizajn sa parallax efektima
 * Author: Roster Soft
 */

/* ==========================================================================
   CSS Variables - Koristi boje iz teme
   ========================================================================== */

:root {
    --smestaj-primary-color: var(--wp--preset--color--primary, #667eea);
    --smestaj-secondary-color: var(--wp--preset--color--secondary, #764ba2);
    --smestaj-text-color: var(--wp--preset--color--foreground, #2c3e50);
    --smestaj-background: var(--wp--preset--color--background, #ffffff);
    --smestaj-border-color: var(--wp--preset--color--border, #e1e8ed);
    --smestaj-heading-color: var(--wp--preset--color--heading, #2c3e50);
    --smestaj-link-color: var(--wp--preset--color--link, #667eea);
    --smestaj-success: var(--wp--preset--color--success, #28a745);
    --smestaj-warning: var(--wp--preset--color--warning, #ffc107);
    --smestaj-danger: var(--wp--preset--color--danger, #dc3545);
    --smestaj-info: var(--wp--preset--color--info, #17a2b8);
    --smestaj-light: var(--wp--preset--color--light, #f8f9fa);
    --smestaj-dark: var(--wp--preset--color--dark, #343a40);
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */

.smestaj-single-apartman *,
.smestaj-archive-apartman *,
.smestaj-widget-container *,
.smestaj-shortcode-container * {
    box-sizing: border-box;
}

/* ==========================================================================
   Typography
   ========================================================================== */

.smestaj-hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 1rem 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
}

/* ==========================================================================
   Hero Section with Parallax
   ========================================================================== */

.smestaj-hero-section {
    position: static !important;
    min-height: 40vh;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4rem;
}

.smestaj-hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.smestaj-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #03504659 0%, #3172489e 100%);
}

.smestaj-hero-content {
    position: relative;
    z-index: 10;
    width: 100%;
    padding: 4rem 2rem;
}

.smestaj-hero-content .container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Breadcrumbs */
.smestaj-breadcrumbs {
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.8);
}

.smestaj-breadcrumbs a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color 0.3s ease;
}

.smestaj-breadcrumbs a:hover {
    color: #ffffff;
}

.smestaj-breadcrumbs .separator {
    margin: 0 0.5rem;
    opacity: 0.5;
}

.smestaj-breadcrumbs .current {
    color: #ffffff;
}

/* Hero Vila */
.smestaj-hero-vila {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.smestaj-hero-vila a {
    color: #ffffff;
    text-decoration: none;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    transition: border-color 0.3s ease;
}

.smestaj-hero-vila a:hover {
    border-bottom-color: #ffffff;
}

/* Hero Info Grid */
.smestaj-hero-info-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.smestaj-hero-info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.95);
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    transition: all 0.3s ease;
}

.smestaj-hero-info-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.smestaj-hero-info-item .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
}

/* SVG Icons */
.smestaj-icon {
    flex-shrink: 0;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.smestaj-hero-info-item .smestaj-icon {
    width: 20px;
    height: 20px;
}

.smestaj-gallery-overlay .smestaj-icon {
    width: 24px;
    height: 24px;
}

.smestaj-amenity-item .smestaj-icon {
    width: 20px;
    height: 20px;
    stroke: #28a745;
}

.smestaj-contact-phone .smestaj-icon {
    width: 20px;
    height: 20px;
}

.smestaj-hero-info-item a {
    color: #ffffff;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.smestaj-hero-info-item a:hover {
    opacity: 0.8;
}

@media (max-width: 768px) {
    .smestaj-hero-info-grid {
        gap: 0.75rem;
    }
    
    .smestaj-hero-info-item {
        font-size: 0.875rem;
        padding: 0.4rem 0.8rem;
    }
}

/* Hero Categories */
.smestaj-hero-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.smestaj-category-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    color: #ffffff;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.smestaj-category-badge:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

/* ==========================================================================
   Gallery Section
   ========================================================================== */

.smestaj-gallery-section {
    padding: 4rem 0;
    background: #f8f9fa;
}

.smestaj-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.smestaj-gallery-item {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.smestaj-gallery-item:hover {
    /* transform removed - no upward movement */
}

.smestaj-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.smestaj-gallery-item:hover img {
    transform: scale(1.05);
}

.smestaj-gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #03504659 0%, #3172489e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
    pointer-events: none;
}

.smestaj-gallery-item:hover .smestaj-gallery-overlay {
    opacity: 1;
}

.smestaj-gallery-overlay .dashicons {
    font-size: 3rem;
    color: #ffffff;
}

.smestaj-gallery-more {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    aspect-ratio: 4/3;
}

.smestaj-view-all-btn {
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    transition: transform 0.3s ease;
}

.smestaj-view-all-btn:hover {
    transform: scale(1.05);
}

.smestaj-view-all-btn span {
    display: block;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

/* ==========================================================================
   Main Content
   ========================================================================== */

.smestaj-main-content {
    padding: 4rem 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.smestaj-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 3rem;
}

/* Quick Info */
.smestaj-quick-info {
    background: #ffffff;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
}

.smestaj-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
}

.smestaj-info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.smestaj-info-item .dashicons {
    font-size: 2rem;
    width: 2rem;
    height: 2rem;
    color: #667eea;
    flex-shrink: 0;
}

.smestaj-info-content {
    flex: 1;
}

.smestaj-info-label {
    font-size: 0.875rem;
    color: #6c757d;
    margin-bottom: 0.25rem;
}

.smestaj-info-value {
    font-size: 1.125rem;
    font-weight: 600;
    color: #212529;
}

/* Description */
.smestaj-description {
    background: #ffffff;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
}

.smestaj-description h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #212529;
    margin: 0 0 1.5rem 0;
}

.smestaj-description-content {
    font-size: 1rem;
    line-height: 1.7;
    color: #495057;
}

/* Amenities */
.smestaj-amenities {
    background: #ffffff;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.smestaj-amenities h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #212529;
    margin: 0 0 1.5rem 0;
}

.smestaj-amenities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.smestaj-amenity-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    font-size: 0.938rem;
    color: #495057;
    transition: all 0.3s ease;
}

.smestaj-amenity-item:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

/* Video Section */
.smestaj-video-section {
    background: #ffffff;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-top: 2rem;
}

.smestaj-video-section h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #212529;
    margin: 0 0 1.5rem 0;
}

.smestaj-video-container {
    width: 100%;
}

.smestaj-video-responsive {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    background: #000000;
}

.smestaj-video-responsive iframe,
.smestaj-video-responsive video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 12px;
}

.smestaj-video-responsive video {
    object-fit: contain;
}

/* ==========================================================================
   Booking Card (Sticky)
   ========================================================================== */

.smestaj-booking-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.12);
    position: sticky;
    top: 2rem;
}

.smestaj-price-box {
    text-align: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.smestaj-price {
    color: #ffffff;
}

.smestaj-price-amount {
    font-size: 2.5rem;
    font-weight: 700;
    display: block;
    line-height: 1;
}

.smestaj-price-period {
    font-size: 1rem;
    opacity: 0.9;
}

.smestaj-booking-form h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #212529;
    margin: 0 0 1.5rem 0;
}

/* Form Styles */
.smestaj-form-group {
    margin-bottom: 1.25rem;
}

.smestaj-form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #495057;
    margin-bottom: 0.5rem;
}

.smestaj-form-group input,
.smestaj-form-group select,
.smestaj-form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border: 1px solid #ced4da;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.smestaj-form-group input:focus,
.smestaj-form-group select:focus,
.smestaj-form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.smestaj-form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* Children Ages Container */
#children_ages_container {
    border-top: 1px solid #e9ecef;
    padding-top: 1rem;
    margin-top: 0.5rem;
}

#children_ages_container .smestaj-form-group {
    margin-bottom: 1rem;
}

#children_ages_container label {
    font-size: 0.875rem;
    color: #667eea;
    font-weight: 600;
}

/* Validation Styles */
.smestaj-form-group input.error,
.smestaj-form-group select.error {
    border-color: #d32f2f;
    background-color: #ffebee;
}

.smestaj-form-group input.error:focus {
    border-color: #d32f2f;
    box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.1);
}

.age-validation-message {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.75rem;
    color: #d32f2f;
    font-weight: 500;
}

/* Buttons */
.smestaj-btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    line-height: 1.5;
}

.smestaj-btn-primary {
    background: linear-gradient(135deg, #035046 0%, #317248 100%);
    color: #ffffff;
    width: 100%;
}

.smestaj-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(3, 80, 70, 0.4);
}

.smestaj-btn-outline {
    background: transparent;
    border: 2px solid #035046;
    color: #035046;
}

.smestaj-btn-outline:hover {
    background: linear-gradient(135deg, #035046 0%, #317248 100%);
    color: #ffffff;
    transform: translateY(-2px);
    border-color: transparent;
}

/* Contact Info */
.smestaj-contact-info {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e9ecef;
}

.smestaj-contact-phone {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: #035046;
    text-decoration: none;
    margin-top: 0.5rem;
}

.smestaj-contact-phone:hover {
    color: #317248;
}

/* ==========================================================================
   Archive & Grid Styles
   ========================================================================== */

.smestaj-archive-hero {
    position: relative;
    min-height: 40vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #035046 0%, #317248 100%);
    margin-bottom: 4rem;
    overflow: hidden;
}

.smestaj-archive-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 1rem 0;
    text-align: center;
}

.smestaj-archive-description {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

/* Filter Bar */
.smestaj-filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 2rem;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 3rem;
}

.smestaj-filter-controls {
    display: flex;
    gap: 1rem;
    flex: 1;
    flex-wrap: wrap;
}

.smestaj-view-toggle {
    display: flex;
    gap: 0.5rem;
    align-items: flex-end;
}

.smestaj-view-btn {
    padding: 0.75rem;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.smestaj-view-btn:hover {
    background: #e9ecef;
    border-color: #035046;
}

.smestaj-view-btn.active {
    background: linear-gradient(135deg, #035046 0%, #317248 100%);
    border-color: #035046;
}

.smestaj-view-btn.active .dashicons {
    color: #ffffff;
}

.smestaj-view-btn .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
    color: #6c757d;
}

.smestaj-filter-bar.smestaj-filter-inline {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 1.5rem;
    padding: 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.3);
}

.smestaj-filter-group {
    flex: 1;
    min-width: 200px;
}

.smestaj-filter-inline .smestaj-filter-group {
    flex: 0 0 auto;
    min-width: 250px;
}

.smestaj-filter-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #495057;
    margin-bottom: 0.5rem;
}

.smestaj-filter-inline .smestaj-filter-group label {
    color: #ffffff;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.smestaj-filter-select {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border: 1px solid #ced4da;
    border-radius: 8px;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.smestaj-filter-inline .smestaj-filter-select {
    padding: 0.875rem 1.25rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.95);
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.smestaj-filter-inline .smestaj-filter-select:hover {
    background: #ffffff;
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.smestaj-filter-select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.smestaj-filter-inline .smestaj-filter-select:focus {
    border-color: #ffffff;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.3);
}

/* Apartman Grid */
.smestaj-apartman-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
    transition: all 0.3s ease;
}

/* List View */
.smestaj-apartman-grid.list-view {
    grid-template-columns: 1fr;
}

.smestaj-apartman-grid.list-view .smestaj-apartman-card {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2rem;
}

.smestaj-apartman-grid.list-view .smestaj-card-image {
    aspect-ratio: 4/3;
}

.smestaj-apartman-grid.list-view .smestaj-card-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.smestaj-apartman-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.smestaj-apartman-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.smestaj-card-image {
    position: relative;
    display: block;
    aspect-ratio: 16/10;
    overflow: hidden;
}

.smestaj-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.smestaj-apartman-card:hover .smestaj-card-image img {
    transform: scale(1.1);
}

.smestaj-card-badge,
.smestaj-card-price-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    font-weight: 700;
    color: #667eea;
    font-size: 1.125rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.smestaj-card-content {
    padding: 1.5rem;
}

.smestaj-card-content h3,
.smestaj-card-content h4 {
    margin: 0 0 1rem 0;
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.3;
}

.smestaj-card-content h3 a,
.smestaj-card-content h4 a {
    color: #212529;
    text-decoration: none;
    transition: color 0.3s ease;
}

.smestaj-card-content h3 a:hover,
.smestaj-card-content h4 a:hover {
    color: #667eea;
}

.smestaj-card-vila {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #6c757d;
    margin-bottom: 1rem;
}

.smestaj-card-meta,
.smestaj-card-features {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
}

.smestaj-meta-item,
.smestaj-feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #495057;
}

.smestaj-meta-item .dashicons,
.smestaj-feature .dashicons {
    color: #667eea;
    font-size: 1.125rem;
    width: 1.125rem;
    height: 1.125rem;
}

.smestaj-card-excerpt {
    font-size: 0.938rem;
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.smestaj-card-btn,
.smestaj-card-price {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1rem;
}

.smestaj-card-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #667eea;
}

.smestaj-card-price span {
    font-size: 0.875rem;
    font-weight: 400;
    color: #6c757d;
}

/* No Results */
.smestaj-no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem 2rem;
    font-size: 1.125rem;
    color: #6c757d;
}

/* Pagination */
.smestaj-pagination {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
}

.smestaj-pagination .page-numbers {
    display: flex;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.smestaj-pagination .page-numbers li {
    display: inline-block;
}

.smestaj-pagination .page-numbers a,
.smestaj-pagination .page-numbers span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.75rem;
    border: 1px solid #ced4da;
    border-radius: 8px;
    color: #495057;
    text-decoration: none;
    transition: all 0.3s ease;
}

.smestaj-pagination .page-numbers a:hover {
    background: #667eea;
    border-color: #667eea;
    color: #ffffff;
}

.smestaj-pagination .page-numbers .current {
    background: #667eea;
    border-color: #667eea;
    color: #ffffff;
}

/* ==========================================================================
   Related Section
   ========================================================================== */

.smestaj-related-section {
    padding: 4rem 0;
    background: #f8f9fa;
}

.smestaj-related-section h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #212529;
    margin: 0 0 2rem 0;
    text-align: center;
}

.smestaj-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

/* ==========================================================================
   Widget & Shortcode Styles
   ========================================================================== */

.smestaj-widget-container,
.smestaj-shortcode-container {
    margin: 2rem 0;
}

.smestaj-widget-grid {
    display: grid;
    gap: 2rem;
    margin-top: 2rem;
}

.smestaj-grid-cols-2 {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.smestaj-grid-cols-3 {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.smestaj-grid-cols-4 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.smestaj-widget-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.smestaj-widget-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.smestaj-widget-footer {
    text-align: center;
    margin-top: 3rem;
}

.smestaj-view-all-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, #035046 0%, #317248 100%);
    color: #ffffff;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.125rem;
    transition: all 0.3s ease;
}

.smestaj-view-all-link:hover {
    background: linear-gradient(135deg, #023a31 0%, #265a38 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(3, 80, 70, 0.4);
}

/* Placeholder Image */
.smestaj-placeholder-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.smestaj-placeholder-image .dashicons {
    font-size: 4rem;
    color: #ced4da;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 1024px) {
    .smestaj-content-wrapper {
        grid-template-columns: 1fr;
    }
    
    .smestaj-booking-card {
        position: static;
    }
}

@media (max-width: 768px) {
    .smestaj-hero-section {
        min-height: 50vh;
    }
    
    .smestaj-info-grid {
        grid-template-columns: 1fr;
    }
    
    .smestaj-filter-bar {
        flex-direction: column;
    }
    
    .smestaj-filter-group {
        width: 100%;
    }
    
    .smestaj-apartman-grid,
    .smestaj-related-grid,
    .smestaj-gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .container {
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    .smestaj-hero-title {
        font-size: 1.75rem;
    }
    
    .smestaj-archive-title {
        font-size: 2rem;
    }
    
    .smestaj-quick-info,
    .smestaj-description,
    .smestaj-amenities,
    .smestaj-video-section,
    .smestaj-booking-card {
        padding: 1.5rem;
    }
    
    .smestaj-price-amount {
        font-size: 2rem;
    }
}

/* ==========================================================================
   Animations (will be triggered by JS)
   ========================================================================== */

[data-aos] {
    opacity: 0;
    transition-property: transform, opacity;
    transition-duration: 0.6s;
    transition-timing-function: ease;
}

[data-aos].aos-animate {
    opacity: 1;
}

[data-aos="fade-up"] {
    transform: translateY(30px);
}

[data-aos="fade-up"].aos-animate {
    transform: translateY(0);
}

[data-aos="fade-left"] {
    transform: translateX(-30px);
}

[data-aos="fade-left"].aos-animate {
    transform: translateX(0);
}

/* ==========================================================================
   Elementor Widgets
   ========================================================================== */

.smestaj-elementor-widget {
    margin: 2rem 0;
}

.smestaj-elementor-widget .smestaj-apartman-grid {
    display: grid;
    gap: 2rem;
    margin-top: 2rem;
}

.smestaj-elementor-widget .smestaj-grid-2 {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.smestaj-elementor-widget .smestaj-grid-3 {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.smestaj-elementor-widget .smestaj-grid-4 {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

.smestaj-vila-header,
.smestaj-kategorija-header {
    margin-bottom: 2rem;
    padding: 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 8px;
}

.smestaj-vila-header h2,
.smestaj-kategorija-header h2 {
    margin: 0 0 1rem 0;
    font-size: 2rem;
    color: white;
}

.smestaj-vila-description,
.smestaj-kategorija-description {
    font-size: 1rem;
    line-height: 1.6;
    opacity: 0.95;
}

@media (max-width: 768px) {
    .smestaj-elementor-widget .smestaj-apartman-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Foto Galerija sa Lightbox
   ========================================================================== */

.smestaj-gallery-card {
    margin: 3rem 0;
    padding: 0;
}

.smestaj-gallery-card h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--smestaj-heading-color);
    position: relative;
    padding-bottom: 1rem;
}

.smestaj-gallery-card h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, var(--smestaj-primary-color) 0%, var(--smestaj-secondary-color) 100%);
    border-radius: 2px;
}

/* Horizontal Infinite Gallery Slider - Film Strip Style */
.smestaj-gallery-slider-section {
    width: 100%;
    padding: 0;
    margin: 0;
    background: #000;
    overflow: hidden;
    position: relative;
}

.smestaj-gallery-slider-wrapper {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.smestaj-gallery-slider-track {
    display: flex;
    gap: 0;
    animation: infiniteScroll 40s linear infinite;
    will-change: transform;
}

/* Pauziraj animaciju na hover */
.smestaj-gallery-slider-section:hover .smestaj-gallery-slider-track {
    animation-play-state: paused;
}

.smestaj-slider-item {
    flex: 0 0 400px;
    height: 500px;
    position: relative;
    overflow: hidden;
    background: transparent;
}

.smestaj-slider-item a {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    position: relative;
}

/* Link sa lightbox klasom mora biti vidljiv */
a.smestaj-lightbox {
    display: block;
    opacity: 1;
    visibility: visible;
    position: relative;
}

.smestaj-slider-item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    opacity: 1;
    border-radius: 0;
}

.smestaj-slider-item:hover img {
    transform: scale(1.15);
}

.smestaj-gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #03504659 0%, #3172489e 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    color: white;
}

.smestaj-slider-item:hover .smestaj-gallery-overlay {
    opacity: 1;
}

.smestaj-gallery-overlay .dashicons {
    font-size: 56px;
    width: 56px;
    height: 56px;
    margin-bottom: 10px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.smestaj-gallery-overlay .gallery-zoom-text {
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Infinite Scroll Animation */
@keyframes infiniteScroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Responsive */
@media (max-width: 1200px) {
    .smestaj-slider-item {
        flex: 0 0 350px;
        height: 450px;
    }
    
    .smestaj-gallery-slider-track {
        animation-duration: 35s;
    }
}

@media (max-width: 768px) {
    .smestaj-slider-item {
        flex: 0 0 300px;
        height: 400px;
    }
    
    .smestaj-gallery-slider-track {
        animation-duration: 30s;
    }
    
    .smestaj-gallery-slider-section {
        padding: 40px 0;
    }
}

@media (max-width: 480px) {
    .smestaj-slider-item {
        flex: 0 0 250px;
        height: 350px;
    }
    
    .smestaj-gallery-slider-track {
        animation-duration: 25s;
    }
}

/* ==========================================================================
   Lightbox2 Custom Styles
   ========================================================================== */

/* Override Lightbox2 default styles */
.lightbox {
    z-index: 999999 !important;
}

.lb-overlay {
    background: rgba(0, 0, 0, 0.9) !important;
}

.lb-outerContainer {
    border-radius: 12px !important;
    background: transparent !important;
}

.lb-container img {
    border-radius: 8px;
}

.lb-nav a.lb-prev,
.lb-nav a.lb-next {
    opacity: 1 !important;
}

.lb-nav a.lb-prev:hover,
.lb-nav a.lb-next:hover {
    opacity: 1 !important;
}

.lb-data .lb-number {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

.lb-data .lb-caption {
    font-size: 15px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.95);
}

.lb-closeContainer {
    position: relative;
}

.lb-close {
    background: url('data:image/svg+xml;utf8,<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"30\" height=\"30\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"white\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><line x1=\"18\" y1=\"6\" x2=\"6\" y2=\"18\"></line><line x1=\"6\" y1=\"6\" x2=\"18\" y2=\"18\"></line></svg>') no-repeat center !important;
    width: 30px !important;
    height: 30px !important;
    opacity: 0.8 !important;
    transition: opacity 0.3s ease, transform 0.3s ease !important;
}

.lb-close:hover {
    opacity: 1 !important;
    transform: rotate(90deg) !important;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .smestaj-gallery-fullwidth {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 10px;
    }
}

/* ==========================================================================
   Vila Opis Widget
   ========================================================================== */

.smestaj-vila-opis {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}

.smestaj-vila-opis-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.smestaj-vila-opis-wrapper.reverse {
    direction: rtl;
}

.smestaj-vila-opis-wrapper.reverse > * {
    direction: ltr;
}

.smestaj-vila-opis-image {
    width: 100%;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.smestaj-vila-opis-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    transition: transform 0.5s ease;
}

.smestaj-vila-opis-image:hover img {
    transform: scale(1.05);
}

.smestaj-vila-description-text {
    font-size: 16px;
    line-height: 1.8;
    color: #4a5568;
}

.smestaj-vila-description-text p {
    margin-bottom: 1em;
}

.smestaj-vila-description-text p:last-child {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .smestaj-vila-opis {
        padding: 40px 15px;
    }
    
    .smestaj-vila-opis-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .smestaj-vila-opis-wrapper.reverse {
        direction: ltr;
    }
}

/* ==========================================================================
   Print Styles
   ========================================================================== */

@media print {
    .smestaj-filter-bar,
    .smestaj-booking-card,
    .smestaj-related-section,
    .smestaj-gallery-overlay,
    .lightbox {
        display: none;
    }
}

