/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #3a6ea5;
    --secondary-color: #ff6b6b;
    --accent-color: #f8b500;
    --text-color: #333;
    --light-text: #fff;
    --dark-bg: #2c3e50;
    --light-bg: #f9f9f9;
    --border-radius: 8px;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --gallery-bg-image: none;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    overflow-x: hidden;
    background-color: #fff;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    line-height: 1.3;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    position: relative;
    display: inline-block;
    margin-bottom: 30px;
    padding-bottom: 15px;
    font-size: 2.5rem;
    color: var(--dark-bg);
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--accent-color);
}

.section-divider {
    display: none;
}

/* Header styles */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 0;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: var(--transition);
}

header.scrolled {
    padding: 0.7rem 0;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 40px;
    width: auto;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 2rem;
}

nav ul li a {
    color: var(--text-color);
    font-weight: 500;
    position: relative;
    padding: 5px 0;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

nav ul li a:hover::after {
    width: 100%;
}

.phone-number {
    display: flex;
    align-items: center;
}

.phone-number a {
    color: var(--primary-color);
    font-weight: 600;
    display: flex;
    align-items: center;
}

.phone-number i {
    margin-right: 5px;
    font-size: 1.2rem;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    cursor: pointer;
    z-index: 1001;
}

.mobile-menu-btn span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text-color);
    transition: var(--transition);
}

/* Mobile menu button animation */
.mobile-menu-btn.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
    display: block;
    opacity: 1;
}

/* Hero section */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('img/Smestaj.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--light-text);
    padding: 0 1rem;
    margin-top: 0;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.7));
    z-index: 0;
}

.hero-content {
    max-width: 800px;
    z-index: 2;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    animation: fadeInDown 1s ease;
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    animation: fadeInDown 1s ease 0.3s forwards;
    opacity: 0;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    animation: fadeInUp 1s ease 0.6s forwards;
    opacity: 0;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    font-weight: 500;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cta-button.primary {
    background: var(--primary-color);
    color: var(--light-text);
}

.cta-button.secondary {
    background: transparent;
    color: var(--light-text);
    border: 2px solid var(--light-text);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.cta-button.primary:hover {
    background: #2c5282;
}

.cta-button.secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* About section */
.about {
    padding: 6rem 0;
    background: var(--light-bg);
    position: relative;
    z-index: 5;
    margin-top: 0;
    padding-top: 6rem;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    opacity: 1 !important;
}

.about-text p {
    margin-bottom: 1.5rem;
    color: #555;
}

.about-features {
    list-style: none;
    margin-top: 2rem;
}

.about-features li {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
}

.about-features i {
    color: var(--primary-color);
    margin-right: 0.8rem;
}

.about-image {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.about-image:hover img {
    transform: scale(1.05);
}

/* Rooms section */
.rooms {
    padding: 6rem 0;
    background: #fff;
    position: relative;
    z-index: 5;
}

.rooms-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    opacity: 1 !important;
    position: relative;
}

.room-card {
    background: #fff;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.room-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.room-image {
    height: 250px;
    position: relative;
    overflow: hidden;
}

.room-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.room-card:hover .room-image img {
    transform: scale(1.05);
}

.room-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

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

.room-info {
    padding: 1.5rem;
}

.room-info h3 {
    color: var(--dark-bg);
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.room-info p {
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.room-features {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin-top: 1rem;
}

.room-features li {
    display: flex;
    align-items: center;
}

.room-features i {
    color: var(--primary-color);
    margin-right: 0.5rem;
    width: 20px;
    text-align: center;
}

.gallery-btn {
    background: var(--primary-color);
    color: #fff;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
    font-family: 'Poppins', sans-serif;
}

.gallery-btn:hover {
    background: #2c5282;
}

/* Amenities section */
.amenities {
    padding: 6rem 0;
    background: var(--light-bg);
    position: relative;
    z-index: 5;
}

.amenities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    opacity: 1 !important;
}

.amenity-card {
    background: #fff;
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    height: 100%;
}

.amenity-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.amenity-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.amenity-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    color: var(--dark-bg);
}

.amenity-card p {
    color: #666;
}

/* Location section */
.location {
    background: var(--light-bg);
    padding: 5rem 0;
}

.location-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.map-container {
    width: 100%;
    height: 450px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.location-info {
    padding: 2rem;
    background: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.location-info h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--dark-bg);
}

.location-info p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.location-info i {
    color: var(--primary-color);
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

/* Contact section */
.contact {
    padding: 5rem 0;
    background: #fff;
}

.contact-info {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
    background: var(--light-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
}

.contact-details {
    padding: 2rem;
}

.contact-details h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--dark-bg);
}

.contact-details p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.contact-details a {
    color: var(--primary-color);
}

.contact-details a:hover {
    text-decoration: underline;
}

.contact-details i {
    color: var(--primary-color);
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.business-info {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.reservation-note {
    margin-top: 1.5rem;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.8);
    border-left: 4px solid var(--accent-color);
    border-radius: 4px;
}

.reservation-note p {
    margin-bottom: 0;
    font-size: 1rem;
}

/* Jednostavne ikonice društvenih mreža */
.social-media {
    display: flex;
    margin-top: 1.5rem;
    justify-content: center;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    transition: var(--transition);
    border: none;
    outline: none;
    margin: 0 10px;
}

.social-icon i {
    color: #333;
    font-size: 32px;
}

/* Brand colors for social icons */
.social-icon .fa-whatsapp {
    color: #25D366;
}

.social-icon .fa-viber {
    color: #7360f2;
}

.social-icon .fa-bed {
    color: #003580;
}

.social-icon:hover {
    transform: translateY(-3px);
    text-decoration: none !important;
    border: none;
    outline: none;
}

/* Footer */
footer {
    background: var(--dark-bg);
    color: #fff;
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--primary-color);
}

.footer-section p {
    margin-bottom: 0.8rem;
}

.footer-section a {
    color: #fff;
}

.footer-section a:hover {
    color: var(--primary-color);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.8rem;
}

.footer-links-container {
    display: flex;
    gap: 2rem;
}

.footer-links-column {
    flex: 1;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Gallery Modal */
.gallery-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    overflow: hidden;
    cursor: pointer;
}

.gallery-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 1200px;
    background: #fff;
    border-radius: var(--border-radius);
    overflow: hidden;
    animation: fadeIn 0.3s ease;
    opacity: 1;
    transition: opacity 0.3s ease;
    cursor: default;
    max-height: 90vh;
    height: 90vh;
    display: flex;
    flex-direction: column;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    color: #fff;
    cursor: pointer;
    z-index: 2001;
    transition: var(--transition);
    background: rgba(0, 0, 0, 0.7);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-modal:hover {
    color: var(--accent-color);
    background: rgba(0, 0, 0, 0.8);
}

.gallery-container {
    display: grid;
    grid-template-columns: 3fr 1fr;
    height: 100%;
    flex: 1;
    overflow: hidden;
}

.gallery-main {
    position: relative;
    height: 100%;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex: 1;
}

.main-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: opacity 0.3s ease;
    position: relative;
    z-index: 1;
    width: 100%;
}

.gallery-main::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: var(--gallery-bg-image);
    background-size: cover;
    background-position: center;
    filter: blur(25px);
    opacity: 0.4;
    z-index: 0;
    transition: background-image 0.3s ease;
}

.gallery-sidebar {
    padding: 2rem;
    background: #fff;
    overflow-y: auto;
    height: 100%;
}

.gallery-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--dark-bg);
}

.gallery-description {
    color: #666;
    margin-bottom: 0.6rem;
}

.gallery-thumbnails {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}

.gallery-thumbnails img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
    opacity: 0.7;
    transform: scale(0.95);
    transition: transform 0.3s ease, opacity 0.3s ease, border 0.3s ease;
    margin-bottom: 0;
}

.gallery-thumbnails img:hover {
    opacity: 1;
    transform: scale(1);
}

.gallery-thumbnails img.active {
    opacity: 1;
    border: 2px solid var(--primary-color);
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
}

/* Stilizovanje scrollbara za bolju vidljivost */
.gallery-thumbnails::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.gallery-thumbnails::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
    margin: 1px;
}

.gallery-thumbnails::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

.gallery-thumbnails::-webkit-scrollbar-thumb:hover {
    background: #2c5282;
}

.gallery-nav {
    display: none;
}

/* Navigation arrows */
.prev-btn, .next-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    z-index: 1001;
    font-size: 1.2rem;
    opacity: 0.8;
}

.prev-btn {
    left: 20px;
}

.next-btn {
    right: 20px;
}

.prev-btn:hover, .next-btn:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-50%) scale(1.1);
    opacity: 1;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Media Queries */
@media (max-width: 1100px) {
    .rooms-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .about-image {
        order: -1;
    }
    
    .location-container {
        grid-template-columns: 1fr;
    }
    
    .gallery-container {
        grid-template-columns: 1fr;
        height: auto;
    }
    
    .gallery-main {
        height: 50vh;
    }
}

@media (max-width: 768px) {
    header {
        padding: 0.8rem 0;
    }
    
    header .container {
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        align-items: center;
        width: 100%;
        padding: 0 15px;
    }
    
    .logo {
        justify-content: flex-start;
        grid-column: 1;
        margin-left: 5px;
    }
    
    .logo img {
        height: 30px;
    }
    
    .phone-number {
        grid-column: 2;
        justify-content: center;
        margin-left: 10px;
        margin-top: 8px;
    }
    
    .phone-number a {
        font-size: 1rem;
    }
    
    .phone-number i {
        font-size: 1.1rem;
    }
    
    .mobile-menu-btn {
        display: flex;
        grid-column: 3;
        justify-self: flex-end;
        margin-right: 5px;
    }
    
    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: #fff;
        padding: 80px 30px 30px;
        transition: var(--transition);
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }
    
    nav.active {
        right: 0;
    }
    
    nav ul {
        flex-direction: column;
    }
    
    nav ul li {
        margin: 1.5rem 0;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .rooms-container {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 1rem;
        gap: 1rem;
        /* Hide scrollbar */
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE and Edge */
    }
    
    .rooms-container::-webkit-scrollbar {
        display: none; /* Chrome, Safari, Opera */
    }
    
    .room-card {
        flex: 0 0 85%;
        scroll-snap-align: center;
        margin-right: 0.5rem;
        position: relative;
    }
    
    .room-card::after {
        content: '';
        position: absolute;
        bottom: -15px;
        left: 50%;
        transform: translateX(-50%);
        width: 30px;
        height: 4px;
        background-color: #ddd;
        border-radius: 2px;
    }
    
    .rooms::before {
        content: '← Prevucite prstom →';
        display: block;
        text-align: center;
        padding: 0.5rem;
        font-size: 0.8rem;
        color: #777;
        margin-bottom: 1rem;
    }
    
    /* Improved mobile layout for location and contact sections */
    .location-info {
        padding: 1.5rem;
    }
    
    .location-info h3 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .location-info p {
        margin-bottom: 0.8rem;
        font-size: 1rem;
    }
    
    .map-container {
        height: 300px;
    }
    
    .contact-details {
        padding: 1.5rem;
    }
    
    .contact-details h3 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .contact-details p {
        margin-bottom: 0.8rem;
        font-size: 1rem;
    }
    
    .reservation-note {
        padding: 0.8rem 1rem;
        margin-top: 1rem;
    }
    
    .reservation-note p {
        font-size: 0.9rem;
        white-space: normal;
        line-height: 1.4;
    }
    
    .social-media {
        margin-top: 1rem;
    }
    
    .social-icon {
        width: 40px;
        height: 40px;
        margin-right: 10px;
    }
    
    .prev-btn, .next-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .prev-btn {
        left: 10px;
    }
    
    .next-btn {
        right: 10px;
    }
    
    /* Mobile gallery layout improvements */
    .gallery-modal.active {
        align-items: center;
        justify-content: center;
    }
    
    .modal-content {
        width: 95%;
        max-height: 90vh;
        height: 90vh;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        display: flex;
        flex-direction: column;
    }
    
    .gallery-container {
        grid-template-columns: 1fr;
        height: 100%;
        display: flex;
        flex-direction: column;
        flex: 1;
    }
    
    .gallery-main {
        height: 70%;
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
    }
    
    .gallery-sidebar {
        padding: 0.5rem 1rem 0 1rem;
        height: 30%;
        text-align: center;
        overflow-y: auto;
        display: flex;
        flex-direction: column;
    }
    
    .gallery-title {
        font-size: 1.1rem;
        margin-bottom: 0.2rem;
        flex: 0 0 auto;
        height: 25px;
        line-height: 25px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    .gallery-description {
        min-height: 50px;
        height: 50px;
        overflow-y: auto;
        margin-bottom: 0.2rem;
        flex: 0 0 auto;
        font-size: 0.9rem;
    }
    
    .gallery-thumbnails {
        display: flex;
        overflow-x: auto;
        gap: 0.4rem;
        margin-top: 0.1rem;
        padding-bottom: 0;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        justify-content: flex-start;
        width: 100%;
        flex: 1 1 auto;
        max-height: none;
    }
    
    .gallery-thumbnails img {
        flex: 0 0 45%;
        height: 120px;
        scroll-snap-align: start;
        object-fit: cover;
        aspect-ratio: 16/9;
        margin-bottom: 0;
    }
    
    /* Make third image match the others but show it's partial */
    .gallery-thumbnails img:nth-child(3) {
        flex: 0 0 20%;
        margin-right: 0.5rem;
        object-fit: cover;
        aspect-ratio: 16/9;
        height: 120px;
    }
    
    /* Improve navigation buttons */
    .prev-btn, .next-btn {
        width: 40px;
        height: 40px;
        opacity: 0.9;
        z-index: 1010;
    }
    
    /* Stilizovanje scrollbara za mobilni prikaz */
    .gallery-thumbnails::-webkit-scrollbar {
        height: 4px;
        margin-top: 0;
    }
    
    .gallery-thumbnails::-webkit-scrollbar-track {
        margin: 0;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    header .container {
        grid-template-columns: 0.8fr auto 0.8fr;
        padding: 0 10px;
    }
    
    .logo {
        margin-left: 3px;
    }
    
    .logo img {
        height: 28px;
    }
    
    .phone-number {
        margin-left: 8px;
        margin-top: 6px;
    }
    
    .phone-number a {
        font-size: 0.9rem;
    }
    
    .mobile-menu-btn {
        margin-right: 3px;
    }
}

@media (max-width: 320px) {
    .hero h1 {
        font-size: 1.5rem;
    }
    
    .hero p {
        font-size: 0.9rem;
    }
}

/* Show left arrow when scrolled */
.rooms-container.scrolled::before {
    display: flex;
}

/* Room navigation arrows */
.room-nav-arrow {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.room-nav-arrow.visible {
    opacity: 1;
}

.left-arrow {
    left: 10px;
}

.right-arrow {
    right: 10px;
}

.room-nav-arrow i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

   