/* Custom styles extracted from index.html */

/* IE Panel */
.ie-panel {
	display: none;
	background: #212121;
	padding: 10px 0;
	box-shadow: 3px 3px 5px 0 rgba(0, 0, 0, 0.3);
	clear: both;
	text-align: center;
	position: relative;
	z-index: 1;
}

html.ie-10 .ie-panel,
html.lt-ie-10 .ie-panel {
	display: block;
}

/* Page animation */
.page.animated {
	animation-duration: 500ms;
}

/* Slider slides - background images handled via data attributes in JS */
.swiper-slide[data-slide-bg] {
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}

.swiper-slide[data-slide-bg="images/slider-01-2048x1000.jpg"] {
	background-image: url('../images/slider-01-2048x1000.jpg');
}

.swiper-slide[data-slide-bg="images/slider-02-2048x1000.jpg"] {
	background-image: url('../images/slider-02-2048x1000.jpg');
}

.swiper-slide[data-slide-bg="images/slider-03-2048x1000.jpg"] {
	background-image: url('../images/slider-03-2048x1000.jpg');
}

/* RD Navbar */
.rd-navbar-wrap {
	height: 81.4px;
}

/* Dropdown menu - styles handled by main CSS */

/* WOW animations - visibility handled by JavaScript, but we can set defaults */
.wow {
	visibility: visible;
}

/* Ensure pet cards are visible on mobile devices */
#pets-container .col-xl-3 {
	visibility: visible !important;
	opacity: 1 !important;
}

.google-map {
	position: relative;
	overflow: hidden;
	min-height: 300px;
	background: #e5e3df;
}

.google-map-container {
	min-height: 300px;
}

/* Center logo on mobile (small screens) */
.rd-navbar-fixed .rd-navbar-panel {
	justify-content: center;
	padding-left: 56px;
	padding-right: 56px;
}

.rd-navbar-fixed .rd-navbar-toggle {
	position: absolute;
	left: 4px;
	z-index: 1081;
	cursor: pointer;
}

.rd-navbar-fixed .rd-navbar-brand {
	margin-left: 0;
	margin-right: 0;
	text-align: center;
	flex: 1;
	display: flex;
	justify-content: center;
	align-items: center;
}

.clickable-card {
	text-decoration: none;
	display: block;
	cursor: pointer;
	/* Prevent default touch behavior on mobile devices */
	-webkit-tap-highlight-color: transparent;
	-webkit-touch-callout: none;
	-webkit-user-select: none;
	-ms-user-select: none;
	user-select: none;
	touch-action: manipulation;
	/* Prevent page jumps */
	will-change: scroll-position;
}

/* Add active state for touch devices to simulate hover effect */
.clickable-card:active .post-figure,
.clickable-card.active .post-figure {
	opacity: .2;
}

.clickable-card:active .post-body,
.clickable-card.active .post-body {
	transform: translateY(0);
}

.clickable-card:active .post-text,
.clickable-card.active .post-text {
	opacity: 1;
	transform: translateY(0);
}

.gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    padding: 15px 0;
}

.gallery .gallery-item {
    transition: transform 0.2s;
    display: inline-block;
    position: relative;
}

.gallery .gallery-item:hover {
    transform: scale(1.05);
}

.gallery .gallery-item a {
    display: block;
    position: relative;
}

.gallery .gallery-item .video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery .gallery-item .video-badge {
    position: absolute;
    bottom: 5px;
    right: 5px;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.7rem;
}

/* Blueimp gallery video styles - centered with play button */
.blueimp-gallery {
    text-align: center;
}

.blueimp-gallery video {
    object-fit: contain;
    width: 100% !important;
    height: auto !important;
    max-width: 70%;
    display: block;
    margin: 0 auto;
    position: absolute;
    top: 50%!important;
    left: 50%!important;
    transform: translate(-50%, -50%)!important;
}

/* Make blueimp gallery controls visible */
.blueimp-gallery > .prev,
.blueimp-gallery > .next,
.blueimp-gallery > .play-pause {
    opacity: 1 !important;
    display: block !important;
}

/* Style close button with white X */
.blueimp-gallery > .close {
    opacity: 1 !important;
    display: block !important;
    color: white !important;
    font-size: 2em !important;
    text-align: center !important;
    text-decoration: none !important;
}

.blueimp-gallery > .close:before {
    content: '×';
    font-weight: normal;
}

/* Manual arrows for left and right controls */
.blueimp-gallery-display > .next,
.blueimp-gallery-display > .prev {
    width: 60px !important;
    height: 60px !important;
    background: none !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: none !important;
    pointer-events: auto !important;
    border: none !important;
}

.blueimp-gallery-display > .next:before,
.blueimp-gallery-display > .prev:before {
    content: "" !important;
    display: block !important;
    width: 0 !important;
    height: 0 !important;
    border-top: 20px solid transparent !important;
    border-bottom: 20px solid transparent !important;
    margin: 0 20px !important;
    border-left: none !important;
    border-right: none !important;
}

.blueimp-gallery-display > .prev:before {
    border-right: 30px solid rgba(255, 255, 255, 0.7) !important;
}

.blueimp-gallery-display > .next:before {
    border-left: 30px solid rgba(255, 255, 255, 0.7) !important;
}

/* Hide arrows on mobile devices */
@media (max-width: 768px) {
    .blueimp-gallery-display > .next,
    .blueimp-gallery-display > .prev {
        display: none !important;
    }
    
    /* Make video width 90% on mobile */
    .blueimp-gallery video {
        max-width: 90% !important;
    }
}

/* Custom play button overlay for videos */
.blueimp-gallery .video-content {
    position: relative;
    display: inline-block;
}

.blueimp-gallery .video-play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
}

.blueimp-gallery .video-play {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.48)!important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    pointer-events: auto !important;
}

.blueimp-gallery .video-play:before {
    content: "";
    display: block;
    width: 0;
    height: 0;
    border-top: 20px solid transparent;
    border-bottom: 20px solid transparent;
    border-left: 30px solid #333;
    margin-left: 5px;
}

.blueimp-gallery .video-content {
    pointer-events: none !important;
}

.blueimp-gallery .video-content video {
    pointer-events: auto !important;
}

.blueimp-gallery .video-cover {
    max-width: 70%;
    top: 50%!important;
    left: 50%!important;
    transform: translate(-50%, -50%);
    pointer-events: auto;
}

/* Custom modal styles */
.custom-modal {
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.25);
    border: none;
    overflow: hidden;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.custom-modal .modal-header {
    background: #598ee6;
    border-bottom: none;
    padding: 15px 20px;
	position: relative;
}

.custom-modal .modal-header::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-size: cover;
    opacity: 0.12;
	background-image: url("../images/paws-bg.png");
}

.custom-modal .modal-title {
    font-weight: 600;
    font-size: 1.25rem;
    color: white;
	z-index: 10;
}

.custom-modal .modal-body {
    padding: 20px;
    font-size: 1rem;
    color: #555;
}

/* Navigation highlight styles */
.rd-navbar-nav .rd-nav-item.active .rd-nav-link {
    color: #e0e0e0 !important;
    font-weight: bold;
}

.rd-navbar-nav .rd-nav-link {
    transition: color 0.3s ease;
}

.rd-navbar-nav .rd-nav-link:hover {
    color: #e8e8e8 !important;
}

.rd-navbar {
	position: fixed;
	width: 100%;
	z-index: 1000000;
}

.div-img-block {
	height: 230px;
	display: block;
	background-size: cover;
	background-position: center;
}

.social-networks i {
	font-style: normal !important;
}

/* Contact section styles */
.contact-info .unit {
    align-items: flex-start;
}

.contact-info .unit-left {
    min-width: 24px; /* Ensures icons have consistent width */
}

.contact-info .unit-body {
    flex: 1;
}

/* Fix for Safari hover animation inconsistency */
.post {
	-webkit-transform: translateZ(0); /* Force hardware acceleration */
	transform: translateZ(0);
}

.post-body {
	-webkit-transition: -webkit-transform 0.5s ease-out;
	transition: transform 0.5s ease-out;
}

.post-text {
	-webkit-transition: opacity 0.3s ease-out, -webkit-transform 0.5s ease-out;
	transition: opacity 0.3s ease-out, transform 0.5s ease-out;
	/* Ensure smooth transitions in Safari */
	-webkit-backface-visibility: hidden;
	backface-visibility: hidden;
	-webkit-perspective: 1000px;
	perspective: 1000px;
}

.blueimp-gallery {
	z-index: 9999990!important;
}

.modal {
	z-index: 9999989!important;
}

.gallery i {
	font-style: normal !important;
}