/**
 * ThisPlace Hero Section Styles
 * 
 * Styles for place landing page hero sections with video/image support
 * Version: 1.0.0
 */

/* Fix for WordPress admin bar overlap */
body.admin-bar .thisplace-place-header {
    top: 32px;
}

@media screen and (max-width: 782px) {
    body.admin-bar .thisplace-place-header {
        top: 46px;
    }
}

/* ==========================================================================
   Header Styles - Updated for Custom Panels
   ========================================================================== */

.thisplace-place-header {
    background: #343a40; /* Darker background as per design */
    padding: 0.5rem 0;
}

.thisplace-header-content {
    display: flex;
    align-items: center;
    gap: 1.5rem; /* Space between logo and nav */
}

/* Logo Styles */
.thisplace-logo-img-full {
    height: 40px; /* Control logo height */
    width: auto;
}

/* Hierarchical Navigation Panels */
.thisplace-hierarchical-nav {
    display: flex;
    align-items: center;
    gap: 1px; /* Separator line between panels */
}

.thisplace-nav-panel {
    position: relative;
}

.thisplace-nav-button {
    background: transparent;
    border: none;
    color: white;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: background-color 0.2s ease;
}

.thisplace-nav-button:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.thisplace-nav-dropdown-icon {
    font-size: 0.7rem;
    opacity: 0.8;
}

.thisplace-nav-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #343a40;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    padding: 0.5rem 0;
    min-width: 200px;
    z-index: 1010;
    max-height: 300px;
    overflow-y: auto;
}

.thisplace-nav-panel.open .thisplace-nav-dropdown {
    display: block;
}

.thisplace-nav-dropdown a {
    display: block;
    padding: 0.75rem 1rem;
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background-color 0.2s ease;
}

.thisplace-nav-dropdown a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.thisplace-nav-dropdown a.active {
    background-color: #007cba;
    font-weight: bold;
}

/* ==========================================================================
   Hero Section - Updated for Pin Logo
   ========================================================================== */

.thisplace-hero-inner {
    display: flex;
    flex-direction: column; /* Stack pin and name vertically */
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
}

.thisplace-place-pin {
    margin-bottom: 0; /* Remove bottom margin */
}

.thisplace-pin-icon-svg {
    width: 60px; /* Adjust size as needed */
    height: auto;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

/* Make place text white with strong shadow for readability */
.thisplace-place-name {
	color: #ffffff;
	text-shadow: 0 4px 12px rgba(0,0,0,0.6);
	font-weight: 700;
	margin: 0;
}


/* ==========================================================================
   Content Categories/Tabs
   ========================================================================== */

.thisplace-content-categories {
    margin: 3rem 0 2rem;
    border-bottom: 1px solid #e9ecef;
}

.thisplace-category-tabs {
    display: flex;
    gap: 0;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.thisplace-category-tabs::-webkit-scrollbar {
    display: none;
}

.thisplace-tab-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1rem;
    background: none;
    border: none;
    color: #6c757d;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.2s ease;
    white-space: nowrap;
    min-width: fit-content;
}

.thisplace-tab-button:hover {
    color: #495057;
    background: rgba(0, 123, 186, 0.05);
}

.thisplace-tab-button.active {
    color: #007cba;
    border-bottom-color: #007cba;
    background: rgba(0, 123, 186, 0.08);
}

.thisplace-tab-icon {
    font-size: 1.1rem;
}

/* Tab Color Themes */
.thisplace-tab-button[data-category="latest"].active {
    color: #3498db;
    border-bottom-color: #3498db;
}

.thisplace-tab-button[data-category="news-events"].active {
    color: #e67e22;
    border-bottom-color: #e67e22;
}

.thisplace-tab-button[data-category="food-drink"].active {
    color: #e74c3c;
    border-bottom-color: #e74c3c;
}

.thisplace-tab-button[data-category="art-culture"].active {
    color: #9b59b6;
    border-bottom-color: #9b59b6;
}

.thisplace-tab-button[data-category="nature-outdoors"].active {
    color: #27ae60;
    border-bottom-color: #27ae60;
}

/* ==========================================================================
   Content Grid
   ========================================================================== */

.thisplace-content-grid {
    margin: 2rem 0;
}

.thisplace-articles-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

/* ==========================================================================
   Place Content Section
   ========================================================================== */

.thisplace-place-content {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 2px solid #e9ecef;
}

.thisplace-place-content h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #2c3e50;
    text-align: center;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.thisplace-footer {
    background: #2c3e50;
    color: white;
    padding: 2rem 0;
    margin-top: 4rem;
    text-align: center;
}

/* ==========================================================================
   Mobile Hamburger Menu
   ========================================================================== */

.thisplace-mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    flex-direction: column;
    gap: 4px;
}

.thisplace-hamburger-line {
    width: 24px;
    height: 3px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.thisplace-mobile-menu-toggle.active .thisplace-hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.thisplace-mobile-menu-toggle.active .thisplace-hamburger-line:nth-child(2) {
    opacity: 0;
}

.thisplace-mobile-menu-toggle.active .thisplace-hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Full-Screen Menu */
.thisplace-mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    overflow-y: auto;
}

.thisplace-mobile-menu-content {
    padding: 2rem;
    max-width: 500px;
    margin: 0 auto;
}

.thisplace-mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.thisplace-mobile-menu-header h2 {
    color: white;
    margin: 0;
    font-size: 1.5rem;
}

.thisplace-mobile-menu-close {
    background: transparent;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

/* Mobile Accordion */
.thisplace-mobile-accordion-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.thisplace-mobile-accordion-header {
    width: 100%;
    background: transparent;
    border: none;
    color: white;
    padding: 1.5rem 0;
    font-size: 1.2rem;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.thisplace-mobile-accordion-content {
    display: none;
    padding: 0 0 1.5rem 1rem;
}

.thisplace-mobile-accordion-item.open .thisplace-mobile-accordion-content {
    display: block;
}

.thisplace-mobile-accordion-item.open .fa-chevron-down {
    transform: rotate(180deg);
}

.thisplace-mobile-accordion-content a {
    display: block;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    padding: 0.75rem 0;
    font-size: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.thisplace-mobile-accordion-content a:hover,
.thisplace-mobile-accordion-content a.active {
    color: #007cba;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 768px) {
    /* Show hamburger, hide desktop nav */
    .thisplace-mobile-menu-toggle {
        display: flex;
    }
    
    .thisplace-hierarchical-nav {
        display: none;
    }
    
    .thisplace-header-content {
        justify-content: space-between;
    }
    
    .thisplace-hero-inner {
        flex-direction: column;
        gap: 1rem;
    }
    
    .thisplace-place-name {
        font-size: 2.5rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .thisplace-place-name {
        font-size: 2rem;
    }
    
    .thisplace-pin-icon {
        width: 50px;
        height: 50px;
    }
    
    .thisplace-tab-button {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }
}

/* ==========================================================================
   Print Styles
   ========================================================================== */

@media print {
    .thisplace-place-header,
    .thisplace-content-categories,
    .thisplace-footer {
        display: none;
    }
    
    .thisplace-hero-section {
        height: auto;
        min-height: auto;
        page-break-inside: avoid;
    }
    
    .thisplace-hero-video {
        display: none;
    }
} 

/* Hero section sizing: narrower height, centered crop */
.thisplace-hero-section {
	position: relative;
	width: 100vw;
	left: 50%;
	right: 50%;
	margin-left: -50vw;
	margin-right: -50vw;
	height: 48vh; /* narrower aspect */
	min-height: 360px;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* Remove any dark overlay from hero content */
.thisplace-hero-content {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 10;
	background: transparent; /* no mask */
}

/* Put icon and name on the same row */
.thisplace-hero-inner {
	display: flex;
	flex-direction: row; /* same line */
	align-items: center;
	justify-content: center;
	gap: 0.75rem;
}

.thisplace-pin-icon-svg {
	width: 56px;
	height: auto;
	filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}

.thisplace-place-name {
	color: #fff;
	text-shadow: 0 4px 4px rgba;
	font-weight: 700;
	font-size: 3rem;
	margin: 0;
	text-align: center;
}

/* Ensure video/image fully covers area */
.thisplace-hero-media { position:absolute; inset:0; z-index:1; }
.thisplace-hero-video, .thisplace-hero-image { width:100%; height:100%; object-fit:cover; object-position:center; display:block; background:#000; }

@media (max-width: 768px) {
	.thisplace-hero-section { height: 42vh; min-height: 280px; }
	.thisplace-place-name { font-size: 2.25rem; }
	.thisplace-pin-icon-svg { width: 44px; }
	/* keep row layout on mobile as requested */
} 